Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="src/dbi_main.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 docs_subdirs
636 LIBOBJS
637 LIBADD_DL
638 PROFILE
639 DEBUG
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LIBTOOL
656 LD
657 FGREP
658 SED
659 driverdir
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 LIBDBI_PATCH
669 LIBDBI_MINOR
670 LIBDBI_MAJOR
671 LIB_AGE
672 LIB_REVISION
673 LIB_CURRENT
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 am__untar
685 am__tar
686 AMTAR
687 am__leading_dot
688 SET_MAKE
689 AWK
690 mkdir_p
691 MKDIR_P
692 INSTALL_STRIP_PROGRAM
693 STRIP
694 install_sh
695 MAKEINFO
696 AUTOHEADER
697 AUTOMAKE
698 AUTOCONF
699 ACLOCAL
700 VERSION
701 PACKAGE
702 CYGPATH_W
703 am__isrc
704 INSTALL_DATA
705 INSTALL_SCRIPT
706 INSTALL_PROGRAM
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 EGREP
711 GREP
712 CPP
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_maintainer_mode
762 enable_dependency_tracking
763 with_gnu_ld
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_sysroot
769 enable_libtool_lock
770 with_ltdl
771 with_shlib_ext
772 with_dlsym_prefix
773 enable_docs
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures this package to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393
1394 cat <<\_ACEOF
1395
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-maintainer-mode
1401 enable make rules and dependencies not useful (and
1402 sometimes confusing) to the casual installer
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-docs do not build and install the documentation.
1413
1414 Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1419 both]
1420 --with-sysroot=DIR Search for dependent libraries within DIR
1421 (or the compiler's sysroot if not specified).
1422 --with-ltdl Use libtool's libltdl to load runtime modules no
1423 --with-shlib-ext Specifies the filename extension of loadable modules (usually not necessary).
1424 --with-dlsym-prefix Specifies a required prefix for symbol names of dynamically loaded modules (usually not necessary).
1425
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1438
1439 Report bugs to the package provider.
1440 _ACEOF
1441 ac_status=$?
1442 fi
1443
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
1450 ac_builddir=.
1451
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *)
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1467
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1497 fi
1498
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 configure
1503 generated by GNU Autoconf 2.69
1504
1505 Copyright (C) 2012 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1508 _ACEOF
1509 exit
1510 fi
1511
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1515
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1520 {
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1542 ac_retval=0
1543 else
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548 fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552 } # ac_fn_c_try_compile
1553
1554 # ac_fn_c_try_cpp LINENO
1555 # ----------------------
1556 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_cpp ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { { ac_try="$ac_cpp conftest.$ac_ext"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } > conftest.i && {
1576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_cpp
1590
1591 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1592 # -------------------------------------------------------
1593 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1594 # the include files in INCLUDES and setting the cache variable VAR
1595 # accordingly.
1596 ac_fn_c_check_header_mongrel ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if eval \${$3+:} false; then :
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1604 fi
1605 eval ac_res=\$$3
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607 $as_echo "$ac_res" >&6; }
1608 else
1609 # Is the header compilable?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1611 $as_echo_n "checking $2 usability... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 $4
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"; then :
1618 ac_header_compiler=yes
1619 else
1620 ac_header_compiler=no
1621 fi
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1624 $as_echo "$ac_header_compiler" >&6; }
1625
1626 # Is the header present?
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1628 $as_echo_n "checking $2 presence... " >&6; }
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_cpp "$LINENO"; then :
1634 ac_header_preproc=yes
1635 else
1636 ac_header_preproc=no
1637 fi
1638 rm -f conftest.err conftest.i conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1640 $as_echo "$ac_header_preproc" >&6; }
1641
1642 # So? What about this header?
1643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1644 yes:no: )
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1646 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 ;;
1650 no:yes:* )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1652 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1654 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1656 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1658 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 ;;
1662 esac
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1667 else
1668 eval "$3=\$ac_header_compiler"
1669 fi
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_header_mongrel
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 eval "$3=yes"
1739 else
1740 eval "$3=no"
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_compile
1750
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_link ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 test -x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_link
1796
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1813
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1818
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1824
1825 #undef $2
1826
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1840
1841 int
1842 main ()
1843 {
1844 return $2 ();
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_func
1863
1864 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1865 # ---------------------------------------------
1866 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1867 # accordingly.
1868 ac_fn_c_check_decl ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 as_decl_name=`echo $2|sed 's/ *(.*//'`
1872 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1874 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $4
1881 int
1882 main ()
1883 {
1884 #ifndef $as_decl_name
1885 #ifdef __cplusplus
1886 (void) $as_decl_use;
1887 #else
1888 (void) $as_decl_name;
1889 #endif
1890 #endif
1891
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_decl
1909 cat >config.log <<_ACEOF
1910 This file contains any messages produced by compilers while
1911 running configure, to aid debugging if configure makes a mistake.
1912
1913 It was created by $as_me, which was
1914 generated by GNU Autoconf 2.69. Invocation command line was
1915
1916 $ $0 $@
1917
1918 _ACEOF
1919 exec 5>>config.log
1920 {
1921 cat <<_ASUNAME
1922 ## --------- ##
1923 ## Platform. ##
1924 ## --------- ##
1925
1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934
1935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942
1943 _ASUNAME
1944
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 $as_echo "PATH: $as_dir"
1951 done
1952 IFS=$as_save_IFS
1953
1954 } >&5
1955
1956 cat >&5 <<_ACEOF
1957
1958
1959 ## ----------- ##
1960 ## Core tests. ##
1961 ## ----------- ##
1962
1963 _ACEOF
1964
1965
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_configure_args=
1972 ac_configure_args0=
1973 ac_configure_args1=
1974 ac_must_keep_next=false
1975 for ac_pass in 1 2
1976 do
1977 for ac_arg
1978 do
1979 case $ac_arg in
1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982 | -silent | --silent | --silen | --sile | --sil)
1983 continue ;;
1984 *\'*)
1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 esac
1987 case $ac_pass in
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 2)
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
1991 if test $ac_must_keep_next = true; then
1992 ac_must_keep_next=false # Got value, back to normal.
1993 else
1994 case $ac_arg in
1995 *=* | --config-cache | -C | -disable-* | --disable-* \
1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998 | -with-* | --with-* | -without-* | --without-* | --x)
1999 case "$ac_configure_args0 " in
2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 esac
2002 ;;
2003 -* ) ac_must_keep_next=true ;;
2004 esac
2005 fi
2006 as_fn_append ac_configure_args " '$ac_arg'"
2007 ;;
2008 esac
2009 done
2010 done
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2013
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log. We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020 # Save into config.log some information that might help in debugging.
2021 {
2022 echo
2023
2024 $as_echo "## ---------------- ##
2025 ## Cache variables. ##
2026 ## ---------------- ##"
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
2029 (
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;;
2043 esac
2044 done
2045 (set) 2>&1 |
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
2048 sed -n \
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
2052 *)
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 ;;
2055 esac |
2056 sort
2057 )
2058 echo
2059
2060 $as_echo "## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##"
2063 echo
2064 for ac_var in $ac_subst_vars
2065 do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 esac
2070 $as_echo "$ac_var='\''$ac_val'\''"
2071 done | sort
2072 echo
2073
2074 if test -n "$ac_subst_files"; then
2075 $as_echo "## ------------------- ##
2076 ## File substitutions. ##
2077 ## ------------------- ##"
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 $as_echo "## ----------- ##
2092 ## confdefs.h. ##
2093 ## ----------- ##"
2094 echo
2095 cat confdefs.h
2096 echo
2097 fi
2098 test "$ac_signal" != 0 &&
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
2101 } >&5
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 exit $exit_status
2105 ' 0
2106 for ac_signal in 1 2 13 15; do
2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108 done
2109 ac_signal=0
2110
2111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2112 rm -f -r conftest* confdefs.h
2113
2114 $as_echo "/* confdefs.h */" > confdefs.h
2115
2116 # Predefined preprocessor variables.
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_URL "$PACKAGE_URL"
2140 _ACEOF
2141
2142
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 ac_site_file1=NONE
2146 ac_site_file2=NONE
2147 if test -n "$CONFIG_SITE"; then
2148 # We do not want a PATH search for config.site.
2149 case $CONFIG_SITE in #((
2150 -*) ac_site_file1=./$CONFIG_SITE;;
2151 */*) ac_site_file1=$CONFIG_SITE;;
2152 *) ac_site_file1=./$CONFIG_SITE;;
2153 esac
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157 else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2160 fi
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 do
2163 test "x$ac_site_file" = xNONE && continue
2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file" \
2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2173 fi
2174 done
2175
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2186 fi
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 $as_echo "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2191 fi
2192
2193 # Check that the precious variables saved in the cache have kept the same
2194 # value.
2195 ac_cache_corrupted=false
2196 for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2202 set,)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,set)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,);;
2211 *)
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2224 fi
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 fi;;
2230 esac
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2233 case $ac_new_val in
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2236 esac
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240 esac
2241 fi
2242 done
2243 if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 fi
2250 ## -------------------- ##
2251 ## Main body of script. ##
2252 ## -------------------- ##
2253
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_CC+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2298 else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2301 fi
2302
2303
2304 fi
2305 if test -z "$ac_cv_prog_CC"; then
2306 ac_ct_CC=$CC
2307 # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CC="gcc"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2337 $as_echo "$ac_ct_CC" >&6; }
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343 if test "x$ac_ct_CC" = x; then
2344 CC=""
2345 else
2346 case $cross_compiling:$ac_tool_warned in
2347 yes:)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350 ac_tool_warned=yes ;;
2351 esac
2352 CC=$ac_ct_CC
2353 fi
2354 else
2355 CC="$ac_cv_prog_CC"
2356 fi
2357
2358 if test -z "$CC"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}cc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2377 ac_cv_prog_CC="${ac_tool_prefix}cc"
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2380 fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&6; }
2391 else
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2394 fi
2395
2396
2397 fi
2398 fi
2399 if test -z "$CC"; then
2400 # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc; ac_word=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if ${ac_cv_prog_CC+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2409 else
2410 ac_prog_rejected=no
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2419 ac_prog_rejected=yes
2420 continue
2421 fi
2422 ac_cv_prog_CC="cc"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 if test $ac_prog_rejected = yes; then
2431 # We found a bogon in the path, so make sure we never use it.
2432 set dummy $ac_cv_prog_CC
2433 shift
2434 if test $# != 0; then
2435 # We chose a different compiler from the bogus one.
2436 # However, it has the same basename, so the bogon will be chosen
2437 # first if we set CC to just the basename; use the full file name.
2438 shift
2439 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2440 fi
2441 fi
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2448 else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2451 fi
2452
2453
2454 fi
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 for ac_prog in cl.exe
2458 do
2459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 test -n "$CC" && break
2497 done
2498 fi
2499 if test -z "$CC"; then
2500 ac_ct_CC=$CC
2501 for ac_prog in cl.exe
2502 do
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CC="$ac_prog"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2533 $as_echo "$ac_ct_CC" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540 test -n "$ac_ct_CC" && break
2541 done
2542
2543 if test "x$ac_ct_CC" = x; then
2544 CC=""
2545 else
2546 case $cross_compiling:$ac_tool_warned in
2547 yes:)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552 CC=$ac_ct_CC
2553 fi
2554 fi
2555
2556 fi
2557
2558
2559 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error $? "no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details" "$LINENO" 5; }
2563
2564 # Provide some information about the compiler.
2565 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2566 set X $ac_compile
2567 ac_compiler=$2
2568 for ac_option in --version -v -V -qversion; do
2569 { { ac_try="$ac_compiler $ac_option >&5"
2570 case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573 esac
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2577 ac_status=$?
2578 if test -s conftest.err; then
2579 sed '10a\
2580 ... rest of stderr output deleted ...
2581 10q' conftest.err >conftest.er1
2582 cat conftest.er1 >&5
2583 fi
2584 rm -f conftest.er1 conftest.err
2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2586 test $ac_status = 0; }
2587 done
2588
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2591
2592 int
2593 main ()
2594 {
2595
2596 ;
2597 return 0;
2598 }
2599 _ACEOF
2600 ac_clean_files_save=$ac_clean_files
2601 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2602 # Try to create an executable without -o first, disregard a.out.
2603 # It will help us diagnose broken compilers, and finding out an intuition
2604 # of exeext.
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2606 $as_echo_n "checking whether the C compiler works... " >&6; }
2607 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2608
2609 # The possible output files:
2610 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2611
2612 ac_rmfiles=
2613 for ac_file in $ac_files
2614 do
2615 case $ac_file in
2616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2617 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2618 esac
2619 done
2620 rm -f $ac_rmfiles
2621
2622 if { { ac_try="$ac_link_default"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link_default") 2>&5
2630 ac_status=$?
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }; then :
2633 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2634 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2635 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2636 # so that the user can short-circuit this test for compilers unknown to
2637 # Autoconf.
2638 for ac_file in $ac_files ''
2639 do
2640 test -f "$ac_file" || continue
2641 case $ac_file in
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2643 ;;
2644 [ab].out )
2645 # We found the default executable, but exeext='' is most
2646 # certainly right.
2647 break;;
2648 *.* )
2649 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2650 then :; else
2651 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 fi
2653 # We set ac_cv_exeext here because the later test for it is not
2654 # safe: cross compilers may not add the suffix if given an `-o'
2655 # argument, so we may need to know it at that point already.
2656 # Even if this section looks crufty: it has the advantage of
2657 # actually working.
2658 break;;
2659 * )
2660 break;;
2661 esac
2662 done
2663 test "$ac_cv_exeext" = no && ac_cv_exeext=
2664
2665 else
2666 ac_file=''
2667 fi
2668 if test -z "$ac_file"; then :
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 as_fn_error 77 "C compiler cannot create executables
2677 See \`config.log' for more details" "$LINENO" 5; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2680 $as_echo "yes" >&6; }
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2683 $as_echo_n "checking for C compiler default output file name... " >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2685 $as_echo "$ac_file" >&6; }
2686 ac_exeext=$ac_cv_exeext
2687
2688 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2689 ac_clean_files=$ac_clean_files_save
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2691 $as_echo_n "checking for suffix of executables... " >&6; }
2692 if { { ac_try="$ac_link"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_link") 2>&5
2700 ac_status=$?
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; then :
2703 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2704 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2705 # work properly (i.e., refer to `conftest.exe'), while it won't with
2706 # `rm'.
2707 for ac_file in conftest.exe conftest conftest.*; do
2708 test -f "$ac_file" || continue
2709 case $ac_file in
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2711 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2712 break;;
2713 * ) break;;
2714 esac
2715 done
2716 else
2717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2720 See \`config.log' for more details" "$LINENO" 5; }
2721 fi
2722 rm -f conftest conftest$ac_cv_exeext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2724 $as_echo "$ac_cv_exeext" >&6; }
2725
2726 rm -f conftest.$ac_ext
2727 EXEEXT=$ac_cv_exeext
2728 ac_exeext=$EXEEXT
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2731 #include <stdio.h>
2732 int
2733 main ()
2734 {
2735 FILE *f = fopen ("conftest.out", "w");
2736 return ferror (f) || fclose (f) != 0;
2737
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 ac_clean_files="$ac_clean_files conftest.out"
2743 # Check that the compiler produces executables we can run. If not, either
2744 # the compiler is broken, or we cross compile.
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2746 $as_echo_n "checking whether we are cross compiling... " >&6; }
2747 if test "$cross_compiling" != yes; then
2748 { { ac_try="$ac_link"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_link") 2>&5
2756 ac_status=$?
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }
2759 if { ac_try='./conftest$ac_cv_exeext'
2760 { { case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_try") 2>&5
2767 ac_status=$?
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; }; then
2770 cross_compiling=no
2771 else
2772 if test "$cross_compiling" = maybe; then
2773 cross_compiling=yes
2774 else
2775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 as_fn_error $? "cannot run C compiled programs.
2778 If you meant to cross compile, use \`--host'.
2779 See \`config.log' for more details" "$LINENO" 5; }
2780 fi
2781 fi
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2784 $as_echo "$cross_compiling" >&6; }
2785
2786 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2787 ac_clean_files=$ac_clean_files_save
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2789 $as_echo_n "checking for suffix of object files... " >&6; }
2790 if ${ac_cv_objext+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2795
2796 int
2797 main ()
2798 {
2799
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.o conftest.obj
2805 if { { ac_try="$ac_compile"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_compile") 2>&5
2813 ac_status=$?
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }; then :
2816 for ac_file in conftest.o conftest.obj conftest.*; do
2817 test -f "$ac_file" || continue;
2818 case $ac_file in
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2820 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2821 break;;
2822 esac
2823 done
2824 else
2825 $as_echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "cannot compute suffix of object files: cannot compile
2831 See \`config.log' for more details" "$LINENO" 5; }
2832 fi
2833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2836 $as_echo "$ac_cv_objext" >&6; }
2837 OBJEXT=$ac_cv_objext
2838 ac_objext=$OBJEXT
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2840 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2841 if ${ac_cv_c_compiler_gnu+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2846
2847 int
2848 main ()
2849 {
2850 #ifndef __GNUC__
2851 choke me
2852 #endif
2853
2854 ;
2855 return 0;
2856 }
2857 _ACEOF
2858 if ac_fn_c_try_compile "$LINENO"; then :
2859 ac_compiler_gnu=yes
2860 else
2861 ac_compiler_gnu=no
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2865
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2868 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2869 if test $ac_compiler_gnu = yes; then
2870 GCC=yes
2871 else
2872 GCC=
2873 fi
2874 ac_test_CFLAGS=${CFLAGS+set}
2875 ac_save_CFLAGS=$CFLAGS
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2877 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2878 if ${ac_cv_prog_cc_g+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 ac_save_c_werror_flag=$ac_c_werror_flag
2882 ac_c_werror_flag=yes
2883 ac_cv_prog_cc_g=no
2884 CFLAGS="-g"
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2887
2888 int
2889 main ()
2890 {
2891
2892 ;
2893 return 0;
2894 }
2895 _ACEOF
2896 if ac_fn_c_try_compile "$LINENO"; then :
2897 ac_cv_prog_cc_g=yes
2898 else
2899 CFLAGS=""
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 if ac_fn_c_try_compile "$LINENO"; then :
2912
2913 else
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2915 CFLAGS="-g"
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2918
2919 int
2920 main ()
2921 {
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_compile "$LINENO"; then :
2928 ac_cv_prog_cc_g=yes
2929 fi
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 fi
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 fi
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 ac_c_werror_flag=$ac_save_c_werror_flag
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2938 $as_echo "$ac_cv_prog_cc_g" >&6; }
2939 if test "$ac_test_CFLAGS" = set; then
2940 CFLAGS=$ac_save_CFLAGS
2941 elif test $ac_cv_prog_cc_g = yes; then
2942 if test "$GCC" = yes; then
2943 CFLAGS="-g -O2"
2944 else
2945 CFLAGS="-g"
2946 fi
2947 else
2948 if test "$GCC" = yes; then
2949 CFLAGS="-O2"
2950 else
2951 CFLAGS=
2952 fi
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2955 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2956 if ${ac_cv_prog_cc_c89+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 ac_cv_prog_cc_c89=no
2960 ac_save_CC=$CC
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2963 #include <stdarg.h>
2964 #include <stdio.h>
2965 struct stat;
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2970 char **p;
2971 int i;
2972 {
2973 return p[i];
2974 }
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2976 {
2977 char *s;
2978 va_list v;
2979 va_start (v,p);
2980 s = g (p, va_arg (v,int));
2981 va_end (v);
2982 return s;
2983 }
2984
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2986 function prototypes and stuff, but not '\xHH' hex character constants.
2987 These don't provoke an error unfortunately, instead are silently treated
2988 as 'x'. The following induces an error, until -std is added to get
2989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2990 array size at least. It's necessary to write '\x00'==0 to get something
2991 that's true only with -std. */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2993
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995 inside strings and character constants. */
2996 #define FOO(x) 'x'
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2998
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3003 int argc;
3004 char **argv;
3005 int
3006 main ()
3007 {
3008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3009 ;
3010 return 0;
3011 }
3012 _ACEOF
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3015 do
3016 CC="$ac_save_CC $ac_arg"
3017 if ac_fn_c_try_compile "$LINENO"; then :
3018 ac_cv_prog_cc_c89=$ac_arg
3019 fi
3020 rm -f core conftest.err conftest.$ac_objext
3021 test "x$ac_cv_prog_cc_c89" != "xno" && break
3022 done
3023 rm -f conftest.$ac_ext
3024 CC=$ac_save_CC
3025
3026 fi
3027 # AC_CACHE_VAL
3028 case "x$ac_cv_prog_cc_c89" in
3029 x)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3031 $as_echo "none needed" >&6; } ;;
3032 xno)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3034 $as_echo "unsupported" >&6; } ;;
3035 *)
3036 CC="$CC $ac_cv_prog_cc_c89"
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3039 esac
3040 if test "x$ac_cv_prog_cc_c89" != xno; then :
3041
3042 fi
3043
3044 ac_ext=c
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
3050
3051 ac_ext=c
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3057 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3058 # On Suns, sometimes $CPP names a directory.
3059 if test -n "$CPP" && test -d "$CPP"; then
3060 CPP=
3061 fi
3062 if test -z "$CPP"; then
3063 if ${ac_cv_prog_CPP+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 # Double quotes because CPP needs to be expanded
3067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3068 do
3069 ac_preproc_ok=false
3070 for ac_c_preproc_warn_flag in '' yes
3071 do
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3080 #ifdef __STDC__
3081 # include <limits.h>
3082 #else
3083 # include <assert.h>
3084 #endif
3085 Syntax error
3086 _ACEOF
3087 if ac_fn_c_try_cpp "$LINENO"; then :
3088
3089 else
3090 # Broken: fails on valid input.
3091 continue
3092 fi
3093 rm -f conftest.err conftest.i conftest.$ac_ext
3094
3095 # OK, works on sane cases. Now check whether nonexistent headers
3096 # can be detected and how.
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099 #include <ac_nonexistent.h>
3100 _ACEOF
3101 if ac_fn_c_try_cpp "$LINENO"; then :
3102 # Broken: success on invalid input.
3103 continue
3104 else
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.i conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.i conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then :
3115 break
3116 fi
3117
3118 done
3119 ac_cv_prog_CPP=$CPP
3120
3121 fi
3122 CPP=$ac_cv_prog_CPP
3123 else
3124 ac_cv_prog_CPP=$CPP
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3127 $as_echo "$CPP" >&6; }
3128 ac_preproc_ok=false
3129 for ac_c_preproc_warn_flag in '' yes
3130 do
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 # <limits.h> exists even on freestanding compilers.
3135 # On the NeXT, cc -E runs the code through the compiler's parser,
3136 # not just through cpp. "Syntax error" is here to catch this case.
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139 #ifdef __STDC__
3140 # include <limits.h>
3141 #else
3142 # include <assert.h>
3143 #endif
3144 Syntax error
3145 _ACEOF
3146 if ac_fn_c_try_cpp "$LINENO"; then :
3147
3148 else
3149 # Broken: fails on valid input.
3150 continue
3151 fi
3152 rm -f conftest.err conftest.i conftest.$ac_ext
3153
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158 #include <ac_nonexistent.h>
3159 _ACEOF
3160 if ac_fn_c_try_cpp "$LINENO"; then :
3161 # Broken: success on invalid input.
3162 continue
3163 else
3164 # Passes both tests.
3165 ac_preproc_ok=:
3166 break
3167 fi
3168 rm -f conftest.err conftest.i conftest.$ac_ext
3169
3170 done
3171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172 rm -f conftest.i conftest.err conftest.$ac_ext
3173 if $ac_preproc_ok; then :
3174
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3190 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3191 if ${ac_cv_path_GREP+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -z "$GREP"; then
3195 ac_path_GREP_found=false
3196 # Loop through the user's path and test for each of PROGNAME-LIST
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_prog in grep ggrep; do
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3205 as_fn_executable_p "$ac_path_GREP" || continue
3206 # Check for GNU ac_path_GREP and select it if it is found.
3207 # Check for GNU $ac_path_GREP
3208 case `"$ac_path_GREP" --version 2>&1` in
3209 *GNU*)
3210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3211 *)
3212 ac_count=0
3213 $as_echo_n 0123456789 >"conftest.in"
3214 while :
3215 do
3216 cat "conftest.in" "conftest.in" >"conftest.tmp"
3217 mv "conftest.tmp" "conftest.in"
3218 cp "conftest.in" "conftest.nl"
3219 $as_echo 'GREP' >> "conftest.nl"
3220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3222 as_fn_arith $ac_count + 1 && ac_count=$as_val
3223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3224 # Best one so far, save it but keep looking for a better one
3225 ac_cv_path_GREP="$ac_path_GREP"
3226 ac_path_GREP_max=$ac_count
3227 fi
3228 # 10*(2^10) chars as input seems more than enough
3229 test $ac_count -gt 10 && break
3230 done
3231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3232 esac
3233
3234 $ac_path_GREP_found && break 3
3235 done
3236 done
3237 done
3238 IFS=$as_save_IFS
3239 if test -z "$ac_cv_path_GREP"; then
3240 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3241 fi
3242 else
3243 ac_cv_path_GREP=$GREP
3244 fi
3245
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3248 $as_echo "$ac_cv_path_GREP" >&6; }
3249 GREP="$ac_cv_path_GREP"
3250
3251
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3253 $as_echo_n "checking for egrep... " >&6; }
3254 if ${ac_cv_path_EGREP+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3258 then ac_cv_path_EGREP="$GREP -E"
3259 else
3260 if test -z "$EGREP"; then
3261 ac_path_EGREP_found=false
3262 # Loop through the user's path and test for each of PROGNAME-LIST
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_prog in egrep; do
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3271 as_fn_executable_p "$ac_path_EGREP" || continue
3272 # Check for GNU ac_path_EGREP and select it if it is found.
3273 # Check for GNU $ac_path_EGREP
3274 case `"$ac_path_EGREP" --version 2>&1` in
3275 *GNU*)
3276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3277 *)
3278 ac_count=0
3279 $as_echo_n 0123456789 >"conftest.in"
3280 while :
3281 do
3282 cat "conftest.in" "conftest.in" >"conftest.tmp"
3283 mv "conftest.tmp" "conftest.in"
3284 cp "conftest.in" "conftest.nl"
3285 $as_echo 'EGREP' >> "conftest.nl"
3286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3288 as_fn_arith $ac_count + 1 && ac_count=$as_val
3289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3290 # Best one so far, save it but keep looking for a better one
3291 ac_cv_path_EGREP="$ac_path_EGREP"
3292 ac_path_EGREP_max=$ac_count
3293 fi
3294 # 10*(2^10) chars as input seems more than enough
3295 test $ac_count -gt 10 && break
3296 done
3297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3298 esac
3299
3300 $ac_path_EGREP_found && break 3
3301 done
3302 done
3303 done
3304 IFS=$as_save_IFS
3305 if test -z "$ac_cv_path_EGREP"; then
3306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3307 fi
3308 else
3309 ac_cv_path_EGREP=$EGREP
3310 fi
3311
3312 fi
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3315 $as_echo "$ac_cv_path_EGREP" >&6; }
3316 EGREP="$ac_cv_path_EGREP"
3317
3318
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3320 $as_echo_n "checking for ANSI C header files... " >&6; }
3321 if ${ac_cv_header_stdc+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326 #include <stdlib.h>
3327 #include <stdarg.h>
3328 #include <string.h>
3329 #include <float.h>
3330
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_cv_header_stdc=yes
3341 else
3342 ac_cv_header_stdc=no
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345
3346 if test $ac_cv_header_stdc = yes; then
3347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350 #include <string.h>
3351
3352 _ACEOF
3353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354 $EGREP "memchr" >/dev/null 2>&1; then :
3355
3356 else
3357 ac_cv_header_stdc=no
3358 fi
3359 rm -f conftest*
3360
3361 fi
3362
3363 if test $ac_cv_header_stdc = yes; then
3364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdlib.h>
3368
3369 _ACEOF
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 $EGREP "free" >/dev/null 2>&1; then :
3372
3373 else
3374 ac_cv_header_stdc=no
3375 fi
3376 rm -f conftest*
3377
3378 fi
3379
3380 if test $ac_cv_header_stdc = yes; then
3381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3382 if test "$cross_compiling" = yes; then :
3383 :
3384 else
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3387 #include <ctype.h>
3388 #include <stdlib.h>
3389 #if ((' ' & 0x0FF) == 0x020)
3390 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3391 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3392 #else
3393 # define ISLOWER(c) \
3394 (('a' <= (c) && (c) <= 'i') \
3395 || ('j' <= (c) && (c) <= 'r') \
3396 || ('s' <= (c) && (c) <= 'z'))
3397 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3398 #endif
3399
3400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3401 int
3402 main ()
3403 {
3404 int i;
3405 for (i = 0; i < 256; i++)
3406 if (XOR (islower (i), ISLOWER (i))
3407 || toupper (i) != TOUPPER (i))
3408 return 2;
3409 return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_run "$LINENO"; then :
3413
3414 else
3415 ac_cv_header_stdc=no
3416 fi
3417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3418 conftest.$ac_objext conftest.beam conftest.$ac_ext
3419 fi
3420
3421 fi
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3424 $as_echo "$ac_cv_header_stdc" >&6; }
3425 if test $ac_cv_header_stdc = yes; then
3426
3427 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3428
3429 fi
3430
3431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3433 inttypes.h stdint.h unistd.h
3434 do :
3435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3437 "
3438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3439 cat >>confdefs.h <<_ACEOF
3440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3441 _ACEOF
3442
3443 fi
3444
3445 done
3446
3447
3448
3449 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3450 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3451 MINIX=yes
3452 else
3453 MINIX=
3454 fi
3455
3456
3457 if test "$MINIX" = yes; then
3458
3459 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3460
3461
3462 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3463
3464
3465 $as_echo "#define _MINIX 1" >>confdefs.h
3466
3467 fi
3468
3469
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3471 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3472 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 # define __EXTENSIONS__ 1
3479 $ac_includes_default
3480 int
3481 main ()
3482 {
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_cv_safe_to_define___extensions__=yes
3490 else
3491 ac_cv_safe_to_define___extensions__=no
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3496 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3497 test $ac_cv_safe_to_define___extensions__ = yes &&
3498 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3499
3500 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3501
3502 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3503
3504 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3505
3506 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3507
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3511 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3512 # Check whether --enable-maintainer-mode was given.
3513 if test "${enable_maintainer_mode+set}" = set; then :
3514 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3515 else
3516 USE_MAINTAINER_MODE=no
3517 fi
3518
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3520 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3521 if test $USE_MAINTAINER_MODE = yes; then
3522 MAINTAINER_MODE_TRUE=
3523 MAINTAINER_MODE_FALSE='#'
3524 else
3525 MAINTAINER_MODE_TRUE='#'
3526 MAINTAINER_MODE_FALSE=
3527 fi
3528
3529 MAINT=$MAINTAINER_MODE_TRUE
3530
3531
3532
3533 LIB_CURRENT=2
3534 LIB_REVISION=0
3535 LIB_AGE=1
3536
3537 LIBDBI_MAJOR=`expr $LIB_CURRENT - $LIB_AGE - 1`
3538 LIBDBI_MINOR=`expr $LIB_AGE + 8`
3539 LIBDBI_PATCH=$LIB_REVISION
3540
3541 am__api_version='1.12'
3542
3543 ac_aux_dir=
3544 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3545 if test -f "$ac_dir/install-sh"; then
3546 ac_aux_dir=$ac_dir
3547 ac_install_sh="$ac_aux_dir/install-sh -c"
3548 break
3549 elif test -f "$ac_dir/install.sh"; then
3550 ac_aux_dir=$ac_dir
3551 ac_install_sh="$ac_aux_dir/install.sh -c"
3552 break
3553 elif test -f "$ac_dir/shtool"; then
3554 ac_aux_dir=$ac_dir
3555 ac_install_sh="$ac_aux_dir/shtool install -c"
3556 break
3557 fi
3558 done
3559 if test -z "$ac_aux_dir"; then
3560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3561 fi
3562
3563 # These three variables are undocumented and unsupported,
3564 # and are intended to be withdrawn in a future Autoconf release.
3565 # They can cause serious problems if a builder's source tree is in a directory
3566 # whose full name contains unusual characters.
3567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3570
3571
3572 # Find a good install program. We prefer a C program (faster),
3573 # so one script is as good as another. But avoid the broken or
3574 # incompatible versions:
3575 # SysV /etc/install, /usr/sbin/install
3576 # SunOS /usr/etc/install
3577 # IRIX /sbin/install
3578 # AIX /bin/install
3579 # AmigaOS /C/install, which installs bootblocks on floppy discs
3580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3583 # OS/2's system install, which has a completely different semantic
3584 # ./install, which can be erroneously created by make from ./install.sh.
3585 # Reject install programs that cannot install multiple files.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3588 if test -z "$INSTALL"; then
3589 if ${ac_cv_path_install+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 # Account for people who put trailing slashes in PATH elements.
3598 case $as_dir/ in #((
3599 ./ | .// | /[cC]/* | \
3600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3602 /usr/ucb/* ) ;;
3603 *)
3604 # OSF1 and SCO ODT 3.0 have their own names for install.
3605 # Don't use installbsd from OSF since it installs stuff as root
3606 # by default.
3607 for ac_prog in ginstall scoinst install; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3610 if test $ac_prog = install &&
3611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612 # AIX install. It has an incompatible calling convention.
3613 :
3614 elif test $ac_prog = install &&
3615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616 # program-specific install script used by HP pwplus--don't use.
3617 :
3618 else
3619 rm -rf conftest.one conftest.two conftest.dir
3620 echo one > conftest.one
3621 echo two > conftest.two
3622 mkdir conftest.dir
3623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3624 test -s conftest.one && test -s conftest.two &&
3625 test -s conftest.dir/conftest.one &&
3626 test -s conftest.dir/conftest.two
3627 then
3628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3629 break 3
3630 fi
3631 fi
3632 fi
3633 done
3634 done
3635 ;;
3636 esac
3637
3638 done
3639 IFS=$as_save_IFS
3640
3641 rm -rf conftest.one conftest.two conftest.dir
3642
3643 fi
3644 if test "${ac_cv_path_install+set}" = set; then
3645 INSTALL=$ac_cv_path_install
3646 else
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for INSTALL within a source directory, because that will
3649 # break other packages using the cache if that directory is
3650 # removed, or if the value is a relative name.
3651 INSTALL=$ac_install_sh
3652 fi
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3655 $as_echo "$INSTALL" >&6; }
3656
3657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658 # It thinks the first close brace ends the variable substitution.
3659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3660
3661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3662
3663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3664
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3666 $as_echo_n "checking whether build environment is sane... " >&6; }
3667 # Reject unsafe characters in $srcdir or the absolute working directory
3668 # name. Accept space and tab only in the latter.
3669 am_lf='
3670 '
3671 case `pwd` in
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3674 esac
3675 case $srcdir in
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3678 esac
3679
3680 # Do 'set' in a subshell so we don't clobber the current shell's
3681 # arguments. Must try -L first in case configure is actually a
3682 # symlink; some systems play weird games with the mod time of symlinks
3683 # (eg FreeBSD returns the mod time of the symlink's containing
3684 # directory).
3685 if (
3686 am_has_slept=no
3687 for am_try in 1 2; do
3688 echo "timestamp, slept: $am_has_slept" > conftest.file
3689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3690 if test "$*" = "X"; then
3691 # -L didn't work.
3692 set X `ls -t "$srcdir/configure" conftest.file`
3693 fi
3694 if test "$*" != "X $srcdir/configure conftest.file" \
3695 && test "$*" != "X conftest.file $srcdir/configure"; then
3696
3697 # If neither matched, then we have a broken ls. This can happen
3698 # if, for instance, CONFIG_SHELL is bash and it inherits a
3699 # broken ls alias from the environment. This has actually
3700 # happened. Such a system could not be considered "sane".
3701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3702 alias in your environment" "$LINENO" 5
3703 fi
3704 if test "$2" = conftest.file || test $am_try -eq 2; then
3705 break
3706 fi
3707 # Just in case.
3708 sleep 1
3709 am_has_slept=yes
3710 done
3711 test "$2" = conftest.file
3712 )
3713 then
3714 # Ok.
3715 :
3716 else
3717 as_fn_error $? "newly created file is older than distributed files!
3718 Check your system clock" "$LINENO" 5
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3721 $as_echo "yes" >&6; }
3722 # If we didn't sleep, we still need to ensure time stamps of config.status and
3723 # generated files are strictly newer.
3724 am_sleep_pid=
3725 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3726 ( sleep 1 ) &
3727 am_sleep_pid=$!
3728 fi
3729
3730 rm -f conftest.file
3731
3732 test "$program_prefix" != NONE &&
3733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3734 # Use a double $ so make ignores it.
3735 test "$program_suffix" != NONE &&
3736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3737 # Double any \ or $.
3738 # By default was `s,x,x', remove it if useless.
3739 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3740 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3741
3742 # expand $ac_aux_dir to an absolute path
3743 am_aux_dir=`cd $ac_aux_dir && pwd`
3744
3745 if test x"${MISSING+set}" != xset; then
3746 case $am_aux_dir in
3747 *\ * | *\ *)
3748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3749 *)
3750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3751 esac
3752 fi
3753 # Use eval to expand $SHELL
3754 if eval "$MISSING --run true"; then
3755 am_missing_run="$MISSING --run "
3756 else
3757 am_missing_run=
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3759 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3760 fi
3761
3762 if test x"${install_sh}" != xset; then
3763 case $am_aux_dir in
3764 *\ * | *\ *)
3765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3766 *)
3767 install_sh="\${SHELL} $am_aux_dir/install-sh"
3768 esac
3769 fi
3770
3771 # Installed binaries are usually stripped using 'strip' when the user
3772 # run "make install-strip". However 'strip' might not be the right
3773 # tool to use in cross-compilation environments, therefore Automake
3774 # will honor the 'STRIP' environment variable to overrule this program.
3775 if test "$cross_compiling" != no; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}strip; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_STRIP+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -n "$STRIP"; then
3785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 STRIP=$ac_cv_prog_STRIP
3805 if test -n "$STRIP"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3807 $as_echo "$STRIP" >&6; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813
3814 fi
3815 if test -z "$ac_cv_prog_STRIP"; then
3816 ac_ct_STRIP=$STRIP
3817 # Extract the first word of "strip", so it can be a program name with args.
3818 set dummy strip; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 if test -n "$ac_ct_STRIP"; then
3825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_ac_ct_STRIP="strip"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3837 fi
3838 done
3839 done
3840 IFS=$as_save_IFS
3841
3842 fi
3843 fi
3844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3845 if test -n "$ac_ct_STRIP"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3847 $as_echo "$ac_ct_STRIP" >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 fi
3852
3853 if test "x$ac_ct_STRIP" = x; then
3854 STRIP=":"
3855 else
3856 case $cross_compiling:$ac_tool_warned in
3857 yes:)
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860 ac_tool_warned=yes ;;
3861 esac
3862 STRIP=$ac_ct_STRIP
3863 fi
3864 else
3865 STRIP="$ac_cv_prog_STRIP"
3866 fi
3867
3868 fi
3869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3870
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3872 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3873 if test -z "$MKDIR_P"; then
3874 if ${ac_cv_path_mkdir+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3879 do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_prog in mkdir gmkdir; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3886 'mkdir (GNU coreutils) '* | \
3887 'mkdir (coreutils) '* | \
3888 'mkdir (fileutils) '4.1*)
3889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3890 break 3;;
3891 esac
3892 done
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi
3898
3899 test -d ./--version && rmdir ./--version
3900 if test "${ac_cv_path_mkdir+set}" = set; then
3901 MKDIR_P="$ac_cv_path_mkdir -p"
3902 else
3903 # As a last resort, use the slow shell script. Don't cache a
3904 # value for MKDIR_P within a source directory, because that will
3905 # break other packages using the cache if that directory is
3906 # removed, or if the value is a relative name.
3907 MKDIR_P="$ac_install_sh -d"
3908 fi
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3911 $as_echo "$MKDIR_P" >&6; }
3912
3913 for ac_prog in gawk mawk nawk awk
3914 do
3915 # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if ${ac_cv_prog_AWK+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$AWK"; then
3923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_AWK="$ac_prog"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936 done
3937 done
3938 IFS=$as_save_IFS
3939
3940 fi
3941 fi
3942 AWK=$ac_cv_prog_AWK
3943 if test -n "$AWK"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3945 $as_echo "$AWK" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 fi
3950
3951
3952 test -n "$AWK" && break
3953 done
3954
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3957 set x ${MAKE-make}
3958 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3959 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat >conftest.make <<\_ACEOF
3963 SHELL = /bin/sh
3964 all:
3965 @echo '@@@%%%=$(MAKE)=@@@%%%'
3966 _ACEOF
3967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3969 *@@@%%%=?*=@@@%%%*)
3970 eval ac_cv_prog_make_${ac_make}_set=yes;;
3971 *)
3972 eval ac_cv_prog_make_${ac_make}_set=no;;
3973 esac
3974 rm -f conftest.make
3975 fi
3976 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3978 $as_echo "yes" >&6; }
3979 SET_MAKE=
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3983 SET_MAKE="MAKE=${MAKE-make}"
3984 fi
3985
3986 rm -rf .tst 2>/dev/null
3987 mkdir .tst 2>/dev/null
3988 if test -d .tst; then
3989 am__leading_dot=.
3990 else
3991 am__leading_dot=_
3992 fi
3993 rmdir .tst 2>/dev/null
3994
3995 DEPDIR="${am__leading_dot}deps"
3996
3997 ac_config_commands="$ac_config_commands depfiles"
3998
3999
4000 am_make=${MAKE-make}
4001 cat > confinc << 'END'
4002 am__doit:
4003 @echo this is the am__doit target
4004 .PHONY: am__doit
4005 END
4006 # If we don't find an include directive, just comment out the code.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4009 am__include="#"
4010 am__quote=
4011 _am_result=none
4012 # First try GNU make style include.
4013 echo "include confinc" > confmf
4014 # Ignore all kinds of additional output from 'make'.
4015 case `$am_make -s -f confmf 2> /dev/null` in #(
4016 *the\ am__doit\ target*)
4017 am__include=include
4018 am__quote=
4019 _am_result=GNU
4020 ;;
4021 esac
4022 # Now try BSD make style include.
4023 if test "$am__include" = "#"; then
4024 echo '.include "confinc"' > confmf
4025 case `$am_make -s -f confmf 2> /dev/null` in #(
4026 *the\ am__doit\ target*)
4027 am__include=.include
4028 am__quote="\""
4029 _am_result=BSD
4030 ;;
4031 esac
4032 fi
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036 $as_echo "$_am_result" >&6; }
4037 rm -f confinc confmf
4038
4039 # Check whether --enable-dependency-tracking was given.
4040 if test "${enable_dependency_tracking+set}" = set; then :
4041 enableval=$enable_dependency_tracking;
4042 fi
4043
4044 if test "x$enable_dependency_tracking" != xno; then
4045 am_depcomp="$ac_aux_dir/depcomp"
4046 AMDEPBACKSLASH='\'
4047 am__nodep='_no'
4048 fi
4049 if test "x$enable_dependency_tracking" != xno; then
4050 AMDEP_TRUE=
4051 AMDEP_FALSE='#'
4052 else
4053 AMDEP_TRUE='#'
4054 AMDEP_FALSE=
4055 fi
4056
4057
4058 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4059 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4060 # is not polluted with repeated "-I."
4061 am__isrc=' -I$(srcdir)'
4062 # test to see if srcdir already configured
4063 if test -f $srcdir/config.status; then
4064 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4065 fi
4066 fi
4067
4068 # test whether we have cygpath
4069 if test -z "$CYGPATH_W"; then
4070 if (cygpath --version) >/dev/null 2>/dev/null; then
4071 CYGPATH_W='cygpath -w'
4072 else
4073 CYGPATH_W=echo
4074 fi
4075 fi
4076
4077
4078 # Define the identity of the package.
4079
4080 PACKAGE=libdbi
4081 VERSION=$LIBDBI_MAJOR.$LIBDBI_MINOR.$LIBDBI_PATCH
4082
4083
4084 cat >>confdefs.h <<_ACEOF
4085 #define PACKAGE "$PACKAGE"
4086 _ACEOF
4087
4088
4089 cat >>confdefs.h <<_ACEOF
4090 #define VERSION "$VERSION"
4091 _ACEOF
4092
4093 # Some tools Automake needs.
4094
4095 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4096
4097
4098 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4099
4100
4101 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4102
4103
4104 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4105
4106
4107 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4108
4109 # For better backward compatibility. To be removed once Automake 1.9.x
4110 # dies out for good. For more background, see:
4111 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4112 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4113 mkdir_p='$(MKDIR_P)'
4114
4115 # We need awk for the "check" target. The system "awk" is bad on
4116 # some platforms.
4117 # Always define AMTAR for backward compatibility. Yes, it's still used
4118 # in the wild :-( We should find a proper way to deprecate it ...
4119 AMTAR='$${TAR-tar}'
4120
4121 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4122
4123
4124
4125
4126 depcc="$CC" am_compiler_list=
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4129 $as_echo_n "checking dependency style of $depcc... " >&6; }
4130 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4134 # We make a subdir and do the tests there. Otherwise we can end up
4135 # making bogus files that we don't know about and never remove. For
4136 # instance it was reported that on HP-UX the gcc test will end up
4137 # making a dummy file named 'D' -- because '-MD' means "put the output
4138 # in D".
4139 rm -rf conftest.dir
4140 mkdir conftest.dir
4141 # Copy depcomp to subdir because otherwise we won't find it if we're
4142 # using a relative directory.
4143 cp "$am_depcomp" conftest.dir
4144 cd conftest.dir
4145 # We will build objects and dependencies in a subdirectory because
4146 # it helps to detect inapplicable dependency modes. For instance
4147 # both Tru64's cc and ICC support -MD to output dependencies as a
4148 # side effect of compilation, but ICC will put the dependencies in
4149 # the current directory while Tru64 will put them in the object
4150 # directory.
4151 mkdir sub
4152
4153 am_cv_CC_dependencies_compiler_type=none
4154 if test "$am_compiler_list" = ""; then
4155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4156 fi
4157 am__universal=false
4158 case " $depcc " in #(
4159 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4160 esac
4161
4162 for depmode in $am_compiler_list; do
4163 # Setup a source with many dependencies, because some compilers
4164 # like to wrap large dependency lists on column 80 (with \), and
4165 # we should not choose a depcomp mode which is confused by this.
4166 #
4167 # We need to recreate these files for each test, as the compiler may
4168 # overwrite some of them when testing with obscure command lines.
4169 # This happens at least with the AIX C compiler.
4170 : > sub/conftest.c
4171 for i in 1 2 3 4 5 6; do
4172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4174 # Solaris 10 /bin/sh.
4175 echo '/* dummy */' > sub/conftst$i.h
4176 done
4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4178
4179 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4180 # mode. It turns out that the SunPro C++ compiler does not properly
4181 # handle '-M -o', and we need to detect this. Also, some Intel
4182 # versions had trouble with output in subdirs.
4183 am__obj=sub/conftest.${OBJEXT-o}
4184 am__minus_obj="-o $am__obj"
4185 case $depmode in
4186 gcc)
4187 # This depmode causes a compiler race in universal mode.
4188 test "$am__universal" = false || continue
4189 ;;
4190 nosideeffect)
4191 # After this tag, mechanisms are not by side-effect, so they'll
4192 # only be used when explicitly requested.
4193 if test "x$enable_dependency_tracking" = xyes; then
4194 continue
4195 else
4196 break
4197 fi
4198 ;;
4199 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4200 # This compiler won't grok '-c -o', but also, the minuso test has
4201 # not run yet. These depmodes are late enough in the game, and
4202 # so weak that their functioning should not be impacted.
4203 am__obj=conftest.${OBJEXT-o}
4204 am__minus_obj=
4205 ;;
4206 none) break ;;
4207 esac
4208 if depmode=$depmode \
4209 source=sub/conftest.c object=$am__obj \
4210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4211 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4212 >/dev/null 2>conftest.err &&
4213 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4214 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4215 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4216 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4217 # icc doesn't choke on unknown options, it will just issue warnings
4218 # or remarks (even with -Werror). So we grep stderr for any message
4219 # that says an option was ignored or not supported.
4220 # When given -MP, icc 7.0 and 7.1 complain thusly:
4221 # icc: Command line warning: ignoring option '-M'; no argument required
4222 # The diagnosis changed in icc 8.0:
4223 # icc: Command line remark: option '-MP' not supported
4224 if (grep 'ignoring option' conftest.err ||
4225 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4226 am_cv_CC_dependencies_compiler_type=$depmode
4227 break
4228 fi
4229 fi
4230 done
4231
4232 cd ..
4233 rm -rf conftest.dir
4234 else
4235 am_cv_CC_dependencies_compiler_type=none
4236 fi
4237
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4240 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4241 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4242
4243 if
4244 test "x$enable_dependency_tracking" != xno \
4245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4246 am__fastdepCC_TRUE=
4247 am__fastdepCC_FALSE='#'
4248 else
4249 am__fastdepCC_TRUE='#'
4250 am__fastdepCC_FALSE=
4251 fi
4252
4253
4254
4255 ac_config_headers="$ac_config_headers config.h"
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266 # Make sure we can run config.sub.
4267 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4268 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4271 $as_echo_n "checking build system type... " >&6; }
4272 if ${ac_cv_build+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_build_alias=$build_alias
4276 test "x$ac_build_alias" = x &&
4277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4278 test "x$ac_build_alias" = x &&
4279 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4280 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4281 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4282
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4285 $as_echo "$ac_cv_build" >&6; }
4286 case $ac_cv_build in
4287 *-*-*) ;;
4288 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4289 esac
4290 build=$ac_cv_build
4291 ac_save_IFS=$IFS; IFS='-'
4292 set x $ac_cv_build
4293 shift
4294 build_cpu=$1
4295 build_vendor=$2
4296 shift; shift
4297 # Remember, the first character of IFS is used to create $*,
4298 # except with old shells:
4299 build_os=$*
4300 IFS=$ac_save_IFS
4301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4305 $as_echo_n "checking host system type... " >&6; }
4306 if ${ac_cv_host+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test "x$host_alias" = x; then
4310 ac_cv_host=$ac_cv_build
4311 else
4312 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4314 fi
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4318 $as_echo "$ac_cv_host" >&6; }
4319 case $ac_cv_host in
4320 *-*-*) ;;
4321 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4322 esac
4323 host=$ac_cv_host
4324 ac_save_IFS=$IFS; IFS='-'
4325 set x $ac_cv_host
4326 shift
4327 host_cpu=$1
4328 host_vendor=$2
4329 shift; shift
4330 # Remember, the first character of IFS is used to create $*,
4331 # except with old shells:
4332 host_os=$*
4333 IFS=$ac_save_IFS
4334 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4335
4336
4337
4338 driverdir=$libdir/dbd
4339
4340
4341 : ${CFLAGS=""}
4342
4343
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 if test -n "$ac_tool_prefix"; then
4350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4351 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_CC+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$CC"; then
4358 ac_cv_prog_CC="$CC" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 CC=$ac_cv_prog_CC
4378 if test -n "$CC"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380 $as_echo "$CC" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387 fi
4388 if test -z "$ac_cv_prog_CC"; then
4389 ac_ct_CC=$CC
4390 # Extract the first word of "gcc", so it can be a program name with args.
4391 set dummy gcc; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -n "$ac_ct_CC"; then
4398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_ac_ct_CC="gcc"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4418 if test -n "$ac_ct_CC"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4420 $as_echo "$ac_ct_CC" >&6; }
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424 fi
4425
4426 if test "x$ac_ct_CC" = x; then
4427 CC=""
4428 else
4429 case $cross_compiling:$ac_tool_warned in
4430 yes:)
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4433 ac_tool_warned=yes ;;
4434 esac
4435 CC=$ac_ct_CC
4436 fi
4437 else
4438 CC="$ac_cv_prog_CC"
4439 fi
4440
4441 if test -z "$CC"; then
4442 if test -n "$ac_tool_prefix"; then
4443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4444 set dummy ${ac_tool_prefix}cc; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_CC+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$CC"; then
4451 ac_cv_prog_CC="$CC" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_CC="${ac_tool_prefix}cc"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 CC=$ac_cv_prog_CC
4471 if test -n "$CC"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4473 $as_echo "$CC" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480 fi
4481 fi
4482 if test -z "$CC"; then
4483 # Extract the first word of "cc", so it can be a program name with args.
4484 set dummy cc; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_CC+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$CC"; then
4491 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 else
4493 ac_prog_rejected=no
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502 ac_prog_rejected=yes
4503 continue
4504 fi
4505 ac_cv_prog_CC="cc"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 if test $ac_prog_rejected = yes; then
4514 # We found a bogon in the path, so make sure we never use it.
4515 set dummy $ac_cv_prog_CC
4516 shift
4517 if test $# != 0; then
4518 # We chose a different compiler from the bogus one.
4519 # However, it has the same basename, so the bogon will be chosen
4520 # first if we set CC to just the basename; use the full file name.
4521 shift
4522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4523 fi
4524 fi
4525 fi
4526 fi
4527 CC=$ac_cv_prog_CC
4528 if test -n "$CC"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4530 $as_echo "$CC" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537 fi
4538 if test -z "$CC"; then
4539 if test -n "$ac_tool_prefix"; then
4540 for ac_prog in cl.exe
4541 do
4542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_CC+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565 IFS=$as_save_IFS
4566
4567 fi
4568 fi
4569 CC=$ac_cv_prog_CC
4570 if test -n "$CC"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4572 $as_echo "$CC" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577
4578
4579 test -n "$CC" && break
4580 done
4581 fi
4582 if test -z "$CC"; then
4583 ac_ct_CC=$CC
4584 for ac_prog in cl.exe
4585 do
4586 # Extract the first word of "$ac_prog", so it can be a program name with args.
4587 set dummy $ac_prog; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -n "$ac_ct_CC"; then
4594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_ac_ct_CC="$ac_prog"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4606 fi
4607 done
4608 done
4609 IFS=$as_save_IFS
4610
4611 fi
4612 fi
4613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4614 if test -n "$ac_ct_CC"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4616 $as_echo "$ac_ct_CC" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620 fi
4621
4622
4623 test -n "$ac_ct_CC" && break
4624 done
4625
4626 if test "x$ac_ct_CC" = x; then
4627 CC=""
4628 else
4629 case $cross_compiling:$ac_tool_warned in
4630 yes:)
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633 ac_tool_warned=yes ;;
4634 esac
4635 CC=$ac_ct_CC
4636 fi
4637 fi
4638
4639 fi
4640
4641
4642 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $? "no acceptable C compiler found in \$PATH
4645 See \`config.log' for more details" "$LINENO" 5; }
4646
4647 # Provide some information about the compiler.
4648 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4649 set X $ac_compile
4650 ac_compiler=$2
4651 for ac_option in --version -v -V -qversion; do
4652 { { ac_try="$ac_compiler $ac_option >&5"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4658 $as_echo "$ac_try_echo"; } >&5
4659 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4660 ac_status=$?
4661 if test -s conftest.err; then
4662 sed '10a\
4663 ... rest of stderr output deleted ...
4664 10q' conftest.err >conftest.er1
4665 cat conftest.er1 >&5
4666 fi
4667 rm -f conftest.er1 conftest.err
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }
4670 done
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4674 if ${ac_cv_c_compiler_gnu+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 int
4681 main ()
4682 {
4683 #ifndef __GNUC__
4684 choke me
4685 #endif
4686
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 ac_compiler_gnu=yes
4693 else
4694 ac_compiler_gnu=no
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4698
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4701 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4702 if test $ac_compiler_gnu = yes; then
4703 GCC=yes
4704 else
4705 GCC=
4706 fi
4707 ac_test_CFLAGS=${CFLAGS+set}
4708 ac_save_CFLAGS=$CFLAGS
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4710 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4711 if ${ac_cv_prog_cc_g+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 ac_save_c_werror_flag=$ac_c_werror_flag
4715 ac_c_werror_flag=yes
4716 ac_cv_prog_cc_g=no
4717 CFLAGS="-g"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_prog_cc_g=yes
4731 else
4732 CFLAGS=""
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735
4736 int
4737 main ()
4738 {
4739
4740 ;
4741 return 0;
4742 }
4743 _ACEOF
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745
4746 else
4747 ac_c_werror_flag=$ac_save_c_werror_flag
4748 CFLAGS="-g"
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751
4752 int
4753 main ()
4754 {
4755
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_prog_cc_g=yes
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 ac_c_werror_flag=$ac_save_c_werror_flag
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4771 $as_echo "$ac_cv_prog_cc_g" >&6; }
4772 if test "$ac_test_CFLAGS" = set; then
4773 CFLAGS=$ac_save_CFLAGS
4774 elif test $ac_cv_prog_cc_g = yes; then
4775 if test "$GCC" = yes; then
4776 CFLAGS="-g -O2"
4777 else
4778 CFLAGS="-g"
4779 fi
4780 else
4781 if test "$GCC" = yes; then
4782 CFLAGS="-O2"
4783 else
4784 CFLAGS=
4785 fi
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4789 if ${ac_cv_prog_cc_c89+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 ac_cv_prog_cc_c89=no
4793 ac_save_CC=$CC
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <stdarg.h>
4797 #include <stdio.h>
4798 struct stat;
4799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4800 struct buf { int x; };
4801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4802 static char *e (p, i)
4803 char **p;
4804 int i;
4805 {
4806 return p[i];
4807 }
4808 static char *f (char * (*g) (char **, int), char **p, ...)
4809 {
4810 char *s;
4811 va_list v;
4812 va_start (v,p);
4813 s = g (p, va_arg (v,int));
4814 va_end (v);
4815 return s;
4816 }
4817
4818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4819 function prototypes and stuff, but not '\xHH' hex character constants.
4820 These don't provoke an error unfortunately, instead are silently treated
4821 as 'x'. The following induces an error, until -std is added to get
4822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4823 array size at least. It's necessary to write '\x00'==0 to get something
4824 that's true only with -std. */
4825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4826
4827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4828 inside strings and character constants. */
4829 #define FOO(x) 'x'
4830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4831
4832 int test (int i, double x);
4833 struct s1 {int (*f) (int a);};
4834 struct s2 {int (*f) (double a);};
4835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4836 int argc;
4837 char **argv;
4838 int
4839 main ()
4840 {
4841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4848 do
4849 CC="$ac_save_CC $ac_arg"
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_prog_cc_c89=$ac_arg
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext
4854 test "x$ac_cv_prog_cc_c89" != "xno" && break
4855 done
4856 rm -f conftest.$ac_ext
4857 CC=$ac_save_CC
4858
4859 fi
4860 # AC_CACHE_VAL
4861 case "x$ac_cv_prog_cc_c89" in
4862 x)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864 $as_echo "none needed" >&6; } ;;
4865 xno)
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867 $as_echo "unsupported" >&6; } ;;
4868 *)
4869 CC="$CC $ac_cv_prog_cc_c89"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4872 esac
4873 if test "x$ac_cv_prog_cc_c89" != xno; then :
4874
4875 fi
4876
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883 ac_ext=c
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4890 # On Suns, sometimes $CPP names a directory.
4891 if test -n "$CPP" && test -d "$CPP"; then
4892 CPP=
4893 fi
4894 if test -z "$CPP"; then
4895 if ${ac_cv_prog_CPP+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 # Double quotes because CPP needs to be expanded
4899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4900 do
4901 ac_preproc_ok=false
4902 for ac_c_preproc_warn_flag in '' yes
4903 do
4904 # Use a header file that comes with gcc, so configuring glibc
4905 # with a fresh cross-compiler works.
4906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4907 # <limits.h> exists even on freestanding compilers.
4908 # On the NeXT, cc -E runs the code through the compiler's parser,
4909 # not just through cpp. "Syntax error" is here to catch this case.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #ifdef __STDC__
4913 # include <limits.h>
4914 #else
4915 # include <assert.h>
4916 #endif
4917 Syntax error
4918 _ACEOF
4919 if ac_fn_c_try_cpp "$LINENO"; then :
4920
4921 else
4922 # Broken: fails on valid input.
4923 continue
4924 fi
4925 rm -f conftest.err conftest.i conftest.$ac_ext
4926
4927 # OK, works on sane cases. Now check whether nonexistent headers
4928 # can be detected and how.
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <ac_nonexistent.h>
4932 _ACEOF
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4934 # Broken: success on invalid input.
4935 continue
4936 else
4937 # Passes both tests.
4938 ac_preproc_ok=:
4939 break
4940 fi
4941 rm -f conftest.err conftest.i conftest.$ac_ext
4942
4943 done
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.i conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then :
4947 break
4948 fi
4949
4950 done
4951 ac_cv_prog_CPP=$CPP
4952
4953 fi
4954 CPP=$ac_cv_prog_CPP
4955 else
4956 ac_cv_prog_CPP=$CPP
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4959 $as_echo "$CPP" >&6; }
4960 ac_preproc_ok=false
4961 for ac_c_preproc_warn_flag in '' yes
4962 do
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #ifdef __STDC__
4972 # include <limits.h>
4973 #else
4974 # include <assert.h>
4975 #endif
4976 Syntax error
4977 _ACEOF
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4979
4980 else
4981 # Broken: fails on valid input.
4982 continue
4983 fi
4984 rm -f conftest.err conftest.i conftest.$ac_ext
4985
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4991 _ACEOF
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: success on invalid input.
4994 continue
4995 else
4996 # Passes both tests.
4997 ac_preproc_ok=:
4998 break
4999 fi
5000 rm -f conftest.err conftest.i conftest.$ac_ext
5001
5002 done
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.i conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then :
5006
5007 else
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5011 See \`config.log' for more details" "$LINENO" 5; }
5012 fi
5013
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5021 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5022 if ${ac_cv_path_SED+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5026 for ac_i in 1 2 3 4 5 6 7; do
5027 ac_script="$ac_script$as_nl$ac_script"
5028 done
5029 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5030 { ac_script=; unset ac_script;}
5031 if test -z "$SED"; then
5032 ac_path_SED_found=false
5033 # Loop through the user's path and test for each of PROGNAME-LIST
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_prog in sed gsed; do
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5042 as_fn_executable_p "$ac_path_SED" || continue
5043 # Check for GNU ac_path_SED and select it if it is found.
5044 # Check for GNU $ac_path_SED
5045 case `"$ac_path_SED" --version 2>&1` in
5046 *GNU*)
5047 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5048 *)
5049 ac_count=0
5050 $as_echo_n 0123456789 >"conftest.in"
5051 while :
5052 do
5053 cat "conftest.in" "conftest.in" >"conftest.tmp"
5054 mv "conftest.tmp" "conftest.in"
5055 cp "conftest.in" "conftest.nl"
5056 $as_echo '' >> "conftest.nl"
5057 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
5060 if test $ac_count -gt ${ac_path_SED_max-0}; then
5061 # Best one so far, save it but keep looking for a better one
5062 ac_cv_path_SED="$ac_path_SED"
5063 ac_path_SED_max=$ac_count
5064 fi
5065 # 10*(2^10) chars as input seems more than enough
5066 test $ac_count -gt 10 && break
5067 done
5068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069 esac
5070
5071 $ac_path_SED_found && break 3
5072 done
5073 done
5074 done
5075 IFS=$as_save_IFS
5076 if test -z "$ac_cv_path_SED"; then
5077 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5078 fi
5079 else
5080 ac_cv_path_SED=$SED
5081 fi
5082
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5085 $as_echo "$ac_cv_path_SED" >&6; }
5086 SED="$ac_cv_path_SED"
5087 rm -f conftest.sed
5088
5089 test -z "$SED" && SED=sed
5090 Xsed="$SED -e 1s/^X//"
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5103 $as_echo_n "checking for fgrep... " >&6; }
5104 if ${ac_cv_path_FGREP+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5108 then ac_cv_path_FGREP="$GREP -F"
5109 else
5110 if test -z "$FGREP"; then
5111 ac_path_FGREP_found=false
5112 # Loop through the user's path and test for each of PROGNAME-LIST
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_prog in fgrep; do
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5121 as_fn_executable_p "$ac_path_FGREP" || continue
5122 # Check for GNU ac_path_FGREP and select it if it is found.
5123 # Check for GNU $ac_path_FGREP
5124 case `"$ac_path_FGREP" --version 2>&1` in
5125 *GNU*)
5126 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5127 *)
5128 ac_count=0
5129 $as_echo_n 0123456789 >"conftest.in"
5130 while :
5131 do
5132 cat "conftest.in" "conftest.in" >"conftest.tmp"
5133 mv "conftest.tmp" "conftest.in"
5134 cp "conftest.in" "conftest.nl"
5135 $as_echo 'FGREP' >> "conftest.nl"
5136 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5138 as_fn_arith $ac_count + 1 && ac_count=$as_val
5139 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5140 # Best one so far, save it but keep looking for a better one
5141 ac_cv_path_FGREP="$ac_path_FGREP"
5142 ac_path_FGREP_max=$ac_count
5143 fi
5144 # 10*(2^10) chars as input seems more than enough
5145 test $ac_count -gt 10 && break
5146 done
5147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5148 esac
5149
5150 $ac_path_FGREP_found && break 3
5151 done
5152 done
5153 done
5154 IFS=$as_save_IFS
5155 if test -z "$ac_cv_path_FGREP"; then
5156 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5157 fi
5158 else
5159 ac_cv_path_FGREP=$FGREP
5160 fi
5161
5162 fi
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5165 $as_echo "$ac_cv_path_FGREP" >&6; }
5166 FGREP="$ac_cv_path_FGREP"
5167
5168
5169 test -z "$GREP" && GREP=grep
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5192 $as_echo_n "checking how to print strings... " >&6; }
5193 # Test print first, because it will be a builtin if present.
5194 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5196 ECHO='print -r --'
5197 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5198 ECHO='printf %s\n'
5199 else
5200 # Use this function as a fallback that always works.
5201 func_fallback_echo ()
5202 {
5203 eval 'cat <<_LTECHO_EOF
5204 $1
5205 _LTECHO_EOF'
5206 }
5207 ECHO='func_fallback_echo'
5208 fi
5209
5210 # func_echo_all arg...
5211 # Invoke $ECHO with all args, space-separated.
5212 func_echo_all ()
5213 {
5214 $ECHO ""
5215 }
5216
5217 case "$ECHO" in
5218 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5219 $as_echo "printf" >&6; } ;;
5220 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5221 $as_echo "print -r" >&6; } ;;
5222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5223 $as_echo "cat" >&6; } ;;
5224 esac
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241 # Check whether --with-gnu-ld was given.
5242 if test "${with_gnu_ld+set}" = set; then :
5243 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5244 else
5245 with_gnu_ld=no
5246 fi
5247
5248 ac_prog=ld
5249 if test "$GCC" = yes; then
5250 # Check if gcc -print-prog-name=ld gives a path.
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5252 $as_echo_n "checking for ld used by $CC... " >&6; }
5253 case $host in
5254 *-*-mingw*)
5255 # gcc leaves a trailing carriage return which upsets mingw
5256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5257 *)
5258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5259 esac
5260 case $ac_prog in
5261 # Accept absolute paths.
5262 [\\/]* | ?:[\\/]*)
5263 re_direlt='/[^/][^/]*/\.\./'
5264 # Canonicalize the pathname of ld
5265 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5266 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5267 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5268 done
5269 test -z "$LD" && LD="$ac_prog"
5270 ;;
5271 "")
5272 # If it fails, then pretend we aren't using GCC.
5273 ac_prog=ld
5274 ;;
5275 *)
5276 # If it is relative, then search for the first ld in PATH.
5277 with_gnu_ld=unknown
5278 ;;
5279 esac
5280 elif test "$with_gnu_ld" = yes; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5282 $as_echo_n "checking for GNU ld... " >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5285 $as_echo_n "checking for non-GNU ld... " >&6; }
5286 fi
5287 if ${lt_cv_path_LD+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -z "$LD"; then
5291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5292 for ac_dir in $PATH; do
5293 IFS="$lt_save_ifs"
5294 test -z "$ac_dir" && ac_dir=.
5295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5296 lt_cv_path_LD="$ac_dir/$ac_prog"
5297 # Check to see if the program is GNU ld. I'd rather use --version,
5298 # but apparently some variants of GNU ld only accept -v.
5299 # Break only if it was the GNU/non-GNU ld that we prefer.
5300 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5301 *GNU* | *'with BFD'*)
5302 test "$with_gnu_ld" != no && break
5303 ;;
5304 *)
5305 test "$with_gnu_ld" != yes && break
5306 ;;
5307 esac
5308 fi
5309 done
5310 IFS="$lt_save_ifs"
5311 else
5312 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5313 fi
5314 fi
5315
5316 LD="$lt_cv_path_LD"
5317 if test -n "$LD"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5319 $as_echo "$LD" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 fi
5324 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5327 if ${lt_cv_prog_gnu_ld+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5331 case `$LD -v 2>&1 </dev/null` in
5332 *GNU* | *'with BFD'*)
5333 lt_cv_prog_gnu_ld=yes
5334 ;;
5335 *)
5336 lt_cv_prog_gnu_ld=no
5337 ;;
5338 esac
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5341 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5342 with_gnu_ld=$lt_cv_prog_gnu_ld
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 case `pwd` in
5354 *\ * | *\ *)
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5356 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5357 esac
5358
5359
5360
5361 macro_version='2.4.2'
5362 macro_revision='1.3337'
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 ltmain="$ac_aux_dir/ltmain.sh"
5377
5378 # Backslashify metacharacters that are still active within
5379 # double-quoted strings.
5380 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5381
5382 # Same as above, but do not quote variable references.
5383 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5384
5385 # Sed substitution to delay expansion of an escaped shell variable in a
5386 # double_quote_subst'ed string.
5387 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5388
5389 # Sed substitution to delay expansion of an escaped single quote.
5390 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5391
5392 # Sed substitution to avoid accidental globbing in evaled expressions
5393 no_glob_subst='s/\*/\\\*/g'
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5396 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5397 if ${lt_cv_path_NM+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$NM"; then
5401 # Let the user override the test.
5402 lt_cv_path_NM="$NM"
5403 else
5404 lt_nm_to_check="${ac_tool_prefix}nm"
5405 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5406 lt_nm_to_check="$lt_nm_to_check nm"
5407 fi
5408 for lt_tmp_nm in $lt_nm_to_check; do
5409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5410 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5411 IFS="$lt_save_ifs"
5412 test -z "$ac_dir" && ac_dir=.
5413 tmp_nm="$ac_dir/$lt_tmp_nm"
5414 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5415 # Check to see if the nm accepts a BSD-compat flag.
5416 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5417 # nm: unknown option "B" ignored
5418 # Tru64's nm complains that /dev/null is an invalid object file
5419 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5420 */dev/null* | *'Invalid file or object type'*)
5421 lt_cv_path_NM="$tmp_nm -B"
5422 break
5423 ;;
5424 *)
5425 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5426 */dev/null*)
5427 lt_cv_path_NM="$tmp_nm -p"
5428 break
5429 ;;
5430 *)
5431 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5432 continue # so that we can try to find one that supports BSD flags
5433 ;;
5434 esac
5435 ;;
5436 esac
5437 fi
5438 done
5439 IFS="$lt_save_ifs"
5440 done
5441 : ${lt_cv_path_NM=no}
5442 fi
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5445 $as_echo "$lt_cv_path_NM" >&6; }
5446 if test "$lt_cv_path_NM" != "no"; then
5447 NM="$lt_cv_path_NM"
5448 else
5449 # Didn't find any BSD compatible name lister, look for dumpbin.
5450 if test -n "$DUMPBIN"; then :
5451 # Let the user override the test.
5452 else
5453 if test -n "$ac_tool_prefix"; then
5454 for ac_prog in dumpbin "link -dump"
5455 do
5456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_DUMPBIN+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$DUMPBIN"; then
5464 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 DUMPBIN=$ac_cv_prog_DUMPBIN
5484 if test -n "$DUMPBIN"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5486 $as_echo "$DUMPBIN" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 test -n "$DUMPBIN" && break
5494 done
5495 fi
5496 if test -z "$DUMPBIN"; then
5497 ac_ct_DUMPBIN=$DUMPBIN
5498 for ac_prog in dumpbin "link -dump"
5499 do
5500 # Extract the first word of "$ac_prog", so it can be a program name with args.
5501 set dummy $ac_prog; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$ac_ct_DUMPBIN"; then
5508 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5528 if test -n "$ac_ct_DUMPBIN"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5530 $as_echo "$ac_ct_DUMPBIN" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536
5537 test -n "$ac_ct_DUMPBIN" && break
5538 done
5539
5540 if test "x$ac_ct_DUMPBIN" = x; then
5541 DUMPBIN=":"
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5548 esac
5549 DUMPBIN=$ac_ct_DUMPBIN
5550 fi
5551 fi
5552
5553 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5554 *COFF*)
5555 DUMPBIN="$DUMPBIN -symbols"
5556 ;;
5557 *)
5558 DUMPBIN=:
5559 ;;
5560 esac
5561 fi
5562
5563 if test "$DUMPBIN" != ":"; then
5564 NM="$DUMPBIN"
5565 fi
5566 fi
5567 test -z "$NM" && NM=nm
5568
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5575 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5576 if ${lt_cv_nm_interface+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 lt_cv_nm_interface="BSD nm"
5580 echo "int some_variable = 0;" > conftest.$ac_ext
5581 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5582 (eval "$ac_compile" 2>conftest.err)
5583 cat conftest.err >&5
5584 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5585 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5586 cat conftest.err >&5
5587 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5588 cat conftest.out >&5
5589 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5590 lt_cv_nm_interface="MS dumpbin"
5591 fi
5592 rm -f conftest*
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5595 $as_echo "$lt_cv_nm_interface" >&6; }
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5598 $as_echo_n "checking whether ln -s works... " >&6; }
5599 LN_S=$as_ln_s
5600 if test "$LN_S" = "ln -s"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602 $as_echo "yes" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5605 $as_echo "no, using $LN_S" >&6; }
5606 fi
5607
5608 # find the maximum length of command line arguments
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5610 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5611 if ${lt_cv_sys_max_cmd_len+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 i=0
5615 teststring="ABCD"
5616
5617 case $build_os in
5618 msdosdjgpp*)
5619 # On DJGPP, this test can blow up pretty badly due to problems in libc
5620 # (any single argument exceeding 2000 bytes causes a buffer overrun
5621 # during glob expansion). Even if it were fixed, the result of this
5622 # check would be larger than it should be.
5623 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5624 ;;
5625
5626 gnu*)
5627 # Under GNU Hurd, this test is not required because there is
5628 # no limit to the length of command line arguments.
5629 # Libtool will interpret -1 as no limit whatsoever
5630 lt_cv_sys_max_cmd_len=-1;
5631 ;;
5632
5633 cygwin* | mingw* | cegcc*)
5634 # On Win9x/ME, this test blows up -- it succeeds, but takes
5635 # about 5 minutes as the teststring grows exponentially.
5636 # Worse, since 9x/ME are not pre-emptively multitasking,
5637 # you end up with a "frozen" computer, even though with patience
5638 # the test eventually succeeds (with a max line length of 256k).
5639 # Instead, let's just punt: use the minimum linelength reported by
5640 # all of the supported platforms: 8192 (on NT/2K/XP).
5641 lt_cv_sys_max_cmd_len=8192;
5642 ;;
5643
5644 mint*)
5645 # On MiNT this can take a long time and run out of memory.
5646 lt_cv_sys_max_cmd_len=8192;
5647 ;;
5648
5649 amigaos*)
5650 # On AmigaOS with pdksh, this test takes hours, literally.
5651 # So we just punt and use a minimum line length of 8192.
5652 lt_cv_sys_max_cmd_len=8192;
5653 ;;
5654
5655 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5656 # This has been around since 386BSD, at least. Likely further.
5657 if test -x /sbin/sysctl; then
5658 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5659 elif test -x /usr/sbin/sysctl; then
5660 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5661 else
5662 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5663 fi
5664 # And add a safety zone
5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5667 ;;
5668
5669 interix*)
5670 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5671 lt_cv_sys_max_cmd_len=196608
5672 ;;
5673
5674 os2*)
5675 # The test takes a long time on OS/2.
5676 lt_cv_sys_max_cmd_len=8192
5677 ;;
5678
5679 osf*)
5680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5682 # nice to cause kernel panics so lets avoid the loop below.
5683 # First set a reasonable default.
5684 lt_cv_sys_max_cmd_len=16384
5685 #
5686 if test -x /sbin/sysconfig; then
5687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5689 esac
5690 fi
5691 ;;
5692 sco3.2v5*)
5693 lt_cv_sys_max_cmd_len=102400
5694 ;;
5695 sysv5* | sco5v6* | sysv4.2uw2*)
5696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5697 if test -n "$kargmax"; then
5698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5699 else
5700 lt_cv_sys_max_cmd_len=32768
5701 fi
5702 ;;
5703 *)
5704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5705 if test -n "$lt_cv_sys_max_cmd_len"; then
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5708 else
5709 # Make teststring a little bigger before we do anything with it.
5710 # a 1K string should be a reasonable start.
5711 for i in 1 2 3 4 5 6 7 8 ; do
5712 teststring=$teststring$teststring
5713 done
5714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5715 # If test is not a shell built-in, we'll probably end up computing a
5716 # maximum length that is only half of the actual maximum length, but
5717 # we can't tell.
5718 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5720 test $i != 17 # 1/2 MB should be enough
5721 do
5722 i=`expr $i + 1`
5723 teststring=$teststring$teststring
5724 done
5725 # Only check the string length outside the loop.
5726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5727 teststring=
5728 # Add a significant safety factor because C++ compilers can tack on
5729 # massive amounts of additional arguments before passing them to the
5730 # linker. It appears as though 1/2 is a usable value.
5731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5732 fi
5733 ;;
5734 esac
5735
5736 fi
5737
5738 if test -n $lt_cv_sys_max_cmd_len ; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5743 $as_echo "none" >&6; }
5744 fi
5745 max_cmd_len=$lt_cv_sys_max_cmd_len
5746
5747
5748
5749
5750
5751
5752 : ${CP="cp -f"}
5753 : ${MV="mv -f"}
5754 : ${RM="rm -f"}
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5758 # Try some XSI features
5759 xsi_shell=no
5760 ( _lt_dummy="a/b/c"
5761 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5762 = c,a/b,b/c, \
5763 && eval 'test $(( 1 + 1 )) -eq 2 \
5764 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5765 && xsi_shell=yes
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5767 $as_echo "$xsi_shell" >&6; }
5768
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5772 lt_shell_append=no
5773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5774 >/dev/null 2>&1 \
5775 && lt_shell_append=yes
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5777 $as_echo "$lt_shell_append" >&6; }
5778
5779
5780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5781 lt_unset=unset
5782 else
5783 lt_unset=false
5784 fi
5785
5786
5787
5788
5789
5790 # test EBCDIC or ASCII
5791 case `echo X|tr X '\101'` in
5792 A) # ASCII based system
5793 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5794 lt_SP2NL='tr \040 \012'
5795 lt_NL2SP='tr \015\012 \040\040'
5796 ;;
5797 *) # EBCDIC based system
5798 lt_SP2NL='tr \100 \n'
5799 lt_NL2SP='tr \r\n \100\100'
5800 ;;
5801 esac
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5812 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5813 if ${lt_cv_to_host_file_cmd+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 case $host in
5817 *-*-mingw* )
5818 case $build in
5819 *-*-mingw* ) # actually msys
5820 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5821 ;;
5822 *-*-cygwin* )
5823 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5824 ;;
5825 * ) # otherwise, assume *nix
5826 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5827 ;;
5828 esac
5829 ;;
5830 *-*-cygwin* )
5831 case $build in
5832 *-*-mingw* ) # actually msys
5833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5834 ;;
5835 *-*-cygwin* )
5836 lt_cv_to_host_file_cmd=func_convert_file_noop
5837 ;;
5838 * ) # otherwise, assume *nix
5839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5840 ;;
5841 esac
5842 ;;
5843 * ) # unhandled hosts (and "normal" native builds)
5844 lt_cv_to_host_file_cmd=func_convert_file_noop
5845 ;;
5846 esac
5847
5848 fi
5849
5850 to_host_file_cmd=$lt_cv_to_host_file_cmd
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5852 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5853
5854
5855
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5859 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5860 if ${lt_cv_to_tool_file_cmd+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 #assume ordinary cross tools, or native build.
5864 lt_cv_to_tool_file_cmd=func_convert_file_noop
5865 case $host in
5866 *-*-mingw* )
5867 case $build in
5868 *-*-mingw* ) # actually msys
5869 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5870 ;;
5871 esac
5872 ;;
5873 esac
5874
5875 fi
5876
5877 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5879 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5880
5881
5882
5883
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5886 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5887 if ${lt_cv_ld_reload_flag+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 lt_cv_ld_reload_flag='-r'
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5893 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5894 reload_flag=$lt_cv_ld_reload_flag
5895 case $reload_flag in
5896 "" | " "*) ;;
5897 *) reload_flag=" $reload_flag" ;;
5898 esac
5899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5900 case $host_os in
5901 cygwin* | mingw* | pw32* | cegcc*)
5902 if test "$GCC" != yes; then
5903 reload_cmds=false
5904 fi
5905 ;;
5906 darwin*)
5907 if test "$GCC" = yes; then
5908 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5909 else
5910 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5911 fi
5912 ;;
5913 esac
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_OBJDUMP+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$OBJDUMP"; then
5932 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 OBJDUMP=$ac_cv_prog_OBJDUMP
5952 if test -n "$OBJDUMP"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5954 $as_echo "$OBJDUMP" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961 fi
5962 if test -z "$ac_cv_prog_OBJDUMP"; then
5963 ac_ct_OBJDUMP=$OBJDUMP
5964 # Extract the first word of "objdump", so it can be a program name with args.
5965 set dummy objdump; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if test -n "$ac_ct_OBJDUMP"; then
5972 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5992 if test -n "$ac_ct_OBJDUMP"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5994 $as_echo "$ac_ct_OBJDUMP" >&6; }
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000 if test "x$ac_ct_OBJDUMP" = x; then
6001 OBJDUMP="false"
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 OBJDUMP=$ac_ct_OBJDUMP
6010 fi
6011 else
6012 OBJDUMP="$ac_cv_prog_OBJDUMP"
6013 fi
6014
6015 test -z "$OBJDUMP" && OBJDUMP=objdump
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6026 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6027 if ${lt_cv_deplibs_check_method+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 lt_cv_file_magic_cmd='$MAGIC_CMD'
6031 lt_cv_file_magic_test_file=
6032 lt_cv_deplibs_check_method='unknown'
6033 # Need to set the preceding variable on all platforms that support
6034 # interlibrary dependencies.
6035 # 'none' -- dependencies not supported.
6036 # `unknown' -- same as none, but documents that we really don't know.
6037 # 'pass_all' -- all dependencies passed with no checks.
6038 # 'test_compile' -- check by making test program.
6039 # 'file_magic [[regex]]' -- check by looking for files in library path
6040 # which responds to the $file_magic_cmd with a given extended regex.
6041 # If you have `file' or equivalent on your system and you're not sure
6042 # whether `pass_all' will *always* work, you probably want this one.
6043
6044 case $host_os in
6045 aix[4-9]*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048
6049 beos*)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052
6053 bsdi[45]*)
6054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6055 lt_cv_file_magic_cmd='/usr/bin/file -L'
6056 lt_cv_file_magic_test_file=/shlib/libc.so
6057 ;;
6058
6059 cygwin*)
6060 # func_win32_libid is a shell function defined in ltmain.sh
6061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6062 lt_cv_file_magic_cmd='func_win32_libid'
6063 ;;
6064
6065 mingw* | pw32*)
6066 # Base MSYS/MinGW do not provide the 'file' command needed by
6067 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6068 # unless we find 'file', for example because we are cross-compiling.
6069 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6070 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6072 lt_cv_file_magic_cmd='func_win32_libid'
6073 else
6074 # Keep this pattern in sync with the one in func_win32_libid.
6075 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6076 lt_cv_file_magic_cmd='$OBJDUMP -f'
6077 fi
6078 ;;
6079
6080 cegcc*)
6081 # use the weaker test based on 'objdump'. See mingw*.
6082 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6083 lt_cv_file_magic_cmd='$OBJDUMP -f'
6084 ;;
6085
6086 darwin* | rhapsody*)
6087 lt_cv_deplibs_check_method=pass_all
6088 ;;
6089
6090 freebsd* | dragonfly*)
6091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6092 case $host_cpu in
6093 i*86 )
6094 # Not sure whether the presence of OpenBSD here was a mistake.
6095 # Let's accept both of them until this is cleared up.
6096 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6097 lt_cv_file_magic_cmd=/usr/bin/file
6098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6099 ;;
6100 esac
6101 else
6102 lt_cv_deplibs_check_method=pass_all
6103 fi
6104 ;;
6105
6106 gnu*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110 haiku*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114 hpux10.20* | hpux11*)
6115 lt_cv_file_magic_cmd=/usr/bin/file
6116 case $host_cpu in
6117 ia64*)
6118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6120 ;;
6121 hppa*64*)
6122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6124 ;;
6125 *)
6126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6128 ;;
6129 esac
6130 ;;
6131
6132 interix[3-9]*)
6133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6135 ;;
6136
6137 irix5* | irix6* | nonstopux*)
6138 case $LD in
6139 *-32|*"-32 ") libmagic=32-bit;;
6140 *-n32|*"-n32 ") libmagic=N32;;
6141 *-64|*"-64 ") libmagic=64-bit;;
6142 *) libmagic=never-match;;
6143 esac
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146
6147 # This must be glibc/ELF.
6148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151
6152 netbsd*)
6153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6155 else
6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6157 fi
6158 ;;
6159
6160 newos6*)
6161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6162 lt_cv_file_magic_cmd=/usr/bin/file
6163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6164 ;;
6165
6166 *nto* | *qnx*)
6167 lt_cv_deplibs_check_method=pass_all
6168 ;;
6169
6170 openbsd*)
6171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6173 else
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6175 fi
6176 ;;
6177
6178 osf3* | osf4* | osf5*)
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182 rdos*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185
6186 solaris*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189
6190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194 sysv4 | sysv4.3*)
6195 case $host_vendor in
6196 motorola)
6197 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]'
6198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6199 ;;
6200 ncr)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203 sequent)
6204 lt_cv_file_magic_cmd='/bin/file'
6205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6206 ;;
6207 sni)
6208 lt_cv_file_magic_cmd='/bin/file'
6209 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6210 lt_cv_file_magic_test_file=/lib/libc.so
6211 ;;
6212 siemens)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215 pc)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218 esac
6219 ;;
6220
6221 tpf*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224 esac
6225
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6228 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6229
6230 file_magic_glob=
6231 want_nocaseglob=no
6232 if test "$build" = "$host"; then
6233 case $host_os in
6234 mingw* | pw32*)
6235 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6236 want_nocaseglob=yes
6237 else
6238 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6239 fi
6240 ;;
6241 esac
6242 fi
6243
6244 file_magic_cmd=$lt_cv_file_magic_cmd
6245 deplibs_check_method=$lt_cv_deplibs_check_method
6246 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269 if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if ${ac_cv_prog_DLLTOOL+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 if test -n "$DLLTOOL"; then
6278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 DLLTOOL=$ac_cv_prog_DLLTOOL
6298 if test -n "$DLLTOOL"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6300 $as_echo "$DLLTOOL" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306
6307 fi
6308 if test -z "$ac_cv_prog_DLLTOOL"; then
6309 ac_ct_DLLTOOL=$DLLTOOL
6310 # Extract the first word of "dlltool", so it can be a program name with args.
6311 set dummy dlltool; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 if test -n "$ac_ct_DLLTOOL"; then
6318 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6338 if test -n "$ac_ct_DLLTOOL"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6340 $as_echo "$ac_ct_DLLTOOL" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346 if test "x$ac_ct_DLLTOOL" = x; then
6347 DLLTOOL="false"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353 ac_tool_warned=yes ;;
6354 esac
6355 DLLTOOL=$ac_ct_DLLTOOL
6356 fi
6357 else
6358 DLLTOOL="$ac_cv_prog_DLLTOOL"
6359 fi
6360
6361 test -z "$DLLTOOL" && DLLTOOL=dlltool
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6373 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6374 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 lt_cv_sharedlib_from_linklib_cmd='unknown'
6378
6379 case $host_os in
6380 cygwin* | mingw* | pw32* | cegcc*)
6381 # two different shell functions defined in ltmain.sh
6382 # decide which to use based on capabilities of $DLLTOOL
6383 case `$DLLTOOL --help 2>&1` in
6384 *--identify-strict*)
6385 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6386 ;;
6387 *)
6388 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6389 ;;
6390 esac
6391 ;;
6392 *)
6393 # fallback: assume linklib IS sharedlib
6394 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6395 ;;
6396 esac
6397
6398 fi
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6400 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6401 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6402 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6403
6404
6405
6406
6407
6408
6409
6410 if test -n "$ac_tool_prefix"; then
6411 for ac_prog in ar
6412 do
6413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_AR+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$AR"; then
6421 ac_cv_prog_AR="$AR" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 AR=$ac_cv_prog_AR
6441 if test -n "$AR"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6443 $as_echo "$AR" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 test -n "$AR" && break
6451 done
6452 fi
6453 if test -z "$AR"; then
6454 ac_ct_AR=$AR
6455 for ac_prog in ar
6456 do
6457 # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$ac_ct_AR"; then
6465 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_ac_ct_AR="$ac_prog"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6485 if test -n "$ac_ct_AR"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6487 $as_echo "$ac_ct_AR" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 test -n "$ac_ct_AR" && break
6495 done
6496
6497 if test "x$ac_ct_AR" = x; then
6498 AR="false"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 AR=$ac_ct_AR
6507 fi
6508 fi
6509
6510 : ${AR=ar}
6511 : ${AR_FLAGS=cru}
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6524 $as_echo_n "checking for archiver @FILE support... " >&6; }
6525 if ${lt_cv_ar_at_file+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 lt_cv_ar_at_file=no
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 int
6533 main ()
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 echo conftest.$ac_objext > conftest.lst
6542 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6544 (eval $lt_ar_try) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }
6548 if test "$ac_status" -eq 0; then
6549 # Ensure the archiver fails upon bogus file names.
6550 rm -f conftest.$ac_objext libconftest.a
6551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6552 (eval $lt_ar_try) 2>&5
6553 ac_status=$?
6554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555 test $ac_status = 0; }
6556 if test "$ac_status" -ne 0; then
6557 lt_cv_ar_at_file=@
6558 fi
6559 fi
6560 rm -f conftest.* libconftest.a
6561
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6567 $as_echo "$lt_cv_ar_at_file" >&6; }
6568
6569 if test "x$lt_cv_ar_at_file" = xno; then
6570 archiver_list_spec=
6571 else
6572 archiver_list_spec=$lt_cv_ar_at_file
6573 fi
6574
6575
6576
6577
6578
6579
6580
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}strip; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if ${ac_cv_prog_STRIP+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$STRIP"; then
6590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 STRIP=$ac_cv_prog_STRIP
6610 if test -n "$STRIP"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6612 $as_echo "$STRIP" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618
6619 fi
6620 if test -z "$ac_cv_prog_STRIP"; then
6621 ac_ct_STRIP=$STRIP
6622 # Extract the first word of "strip", so it can be a program name with args.
6623 set dummy strip; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$ac_ct_STRIP"; then
6630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_ac_ct_STRIP="strip"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6650 if test -n "$ac_ct_STRIP"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6652 $as_echo "$ac_ct_STRIP" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658 if test "x$ac_ct_STRIP" = x; then
6659 STRIP=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6666 esac
6667 STRIP=$ac_ct_STRIP
6668 fi
6669 else
6670 STRIP="$ac_cv_prog_STRIP"
6671 fi
6672
6673 test -z "$STRIP" && STRIP=:
6674
6675
6676
6677
6678
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_RANLIB+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 if test -n "$RANLIB"; then
6689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 RANLIB=$ac_cv_prog_RANLIB
6709 if test -n "$RANLIB"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6711 $as_echo "$RANLIB" >&6; }
6712 else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718 fi
6719 if test -z "$ac_cv_prog_RANLIB"; then
6720 ac_ct_RANLIB=$RANLIB
6721 # Extract the first word of "ranlib", so it can be a program name with args.
6722 set dummy ranlib; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$ac_ct_RANLIB"; then
6729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_RANLIB="ranlib"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6749 if test -n "$ac_ct_RANLIB"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6751 $as_echo "$ac_ct_RANLIB" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757 if test "x$ac_ct_RANLIB" = x; then
6758 RANLIB=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 RANLIB=$ac_ct_RANLIB
6767 fi
6768 else
6769 RANLIB="$ac_cv_prog_RANLIB"
6770 fi
6771
6772 test -z "$RANLIB" && RANLIB=:
6773
6774
6775
6776
6777
6778
6779 # Determine commands to create old-style static archives.
6780 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6781 old_postinstall_cmds='chmod 644 $oldlib'
6782 old_postuninstall_cmds=
6783
6784 if test -n "$RANLIB"; then
6785 case $host_os in
6786 openbsd*)
6787 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6788 ;;
6789 *)
6790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6791 ;;
6792 esac
6793 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6794 fi
6795
6796 case $host_os in
6797 darwin*)
6798 lock_old_archive_extraction=yes ;;
6799 *)
6800 lock_old_archive_extraction=no ;;
6801 esac
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841 # If no C compiler was specified, use CC.
6842 LTCC=${LTCC-"$CC"}
6843
6844 # If no C compiler flags were specified, use CFLAGS.
6845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6846
6847 # Allow CC to be a program name with arguments.
6848 compiler=$CC
6849
6850
6851 # Check for command to grab the raw symbol name followed by C symbol from nm.
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6853 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6854 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857
6858 # These are sane defaults that work on at least a few old systems.
6859 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6860
6861 # Character class describing NM global symbol codes.
6862 symcode='[BCDEGRST]'
6863
6864 # Regexp to match symbols that can be accessed directly from C.
6865 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6866
6867 # Define system-specific variables.
6868 case $host_os in
6869 aix*)
6870 symcode='[BCDT]'
6871 ;;
6872 cygwin* | mingw* | pw32* | cegcc*)
6873 symcode='[ABCDGISTW]'
6874 ;;
6875 hpux*)
6876 if test "$host_cpu" = ia64; then
6877 symcode='[ABCDEGRST]'
6878 fi
6879 ;;
6880 irix* | nonstopux*)
6881 symcode='[BCDEGRST]'
6882 ;;
6883 osf*)
6884 symcode='[BCDEGQRST]'
6885 ;;
6886 solaris*)
6887 symcode='[BDRT]'
6888 ;;
6889 sco3.2v5*)
6890 symcode='[DT]'
6891 ;;
6892 sysv4.2uw2*)
6893 symcode='[DT]'
6894 ;;
6895 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6896 symcode='[ABDT]'
6897 ;;
6898 sysv4)
6899 symcode='[DFNSTU]'
6900 ;;
6901 esac
6902
6903 # If we're using GNU nm, then use its standard symbol codes.
6904 case `$NM -V 2>&1` in
6905 *GNU* | *'with BFD'*)
6906 symcode='[ABCDGIRSTW]' ;;
6907 esac
6908
6909 # Transform an extracted symbol line into a proper C declaration.
6910 # Some systems (esp. on ia64) link data and code symbols differently,
6911 # so use this general approach.
6912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6913
6914 # Transform an extracted symbol line into symbol name and symbol address
6915 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6916 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'"
6917
6918 # Handle CRLF in mingw tool chain
6919 opt_cr=
6920 case $build_os in
6921 mingw*)
6922 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6923 ;;
6924 esac
6925
6926 # Try without a prefix underscore, then with it.
6927 for ac_symprfx in "" "_"; do
6928
6929 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6930 symxfrm="\\1 $ac_symprfx\\2 \\2"
6931
6932 # Write the raw and C identifiers.
6933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6934 # Fake it for dumpbin and say T for any non-static function
6935 # and D for any global variable.
6936 # Also find C++ and __fastcall symbols from MSVC++,
6937 # which start with @ or ?.
6938 lt_cv_sys_global_symbol_pipe="$AWK '"\
6939 " {last_section=section; section=\$ 3};"\
6940 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6941 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6942 " \$ 0!~/External *\|/{next};"\
6943 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6944 " {if(hide[section]) next};"\
6945 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6946 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6947 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6948 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6949 " ' prfx=^$ac_symprfx"
6950 else
6951 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6952 fi
6953 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6954
6955 # Check to see that the pipe works correctly.
6956 pipe_works=no
6957
6958 rm -f conftest*
6959 cat > conftest.$ac_ext <<_LT_EOF
6960 #ifdef __cplusplus
6961 extern "C" {
6962 #endif
6963 char nm_test_var;
6964 void nm_test_func(void);
6965 void nm_test_func(void){}
6966 #ifdef __cplusplus
6967 }
6968 #endif
6969 int main(){nm_test_var='a';nm_test_func();return(0);}
6970 _LT_EOF
6971
6972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973 (eval $ac_compile) 2>&5
6974 ac_status=$?
6975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976 test $ac_status = 0; }; then
6977 # Now try to grab the symbols.
6978 nlist=conftest.nm
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6980 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6981 ac_status=$?
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; } && test -s "$nlist"; then
6984 # Try sorting and uniquifying the output.
6985 if sort "$nlist" | uniq > "$nlist"T; then
6986 mv -f "$nlist"T "$nlist"
6987 else
6988 rm -f "$nlist"T
6989 fi
6990
6991 # Make sure that we snagged all the symbols we need.
6992 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6993 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6994 cat <<_LT_EOF > conftest.$ac_ext
6995 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6996 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6997 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6998 relocations are performed -- see ld's documentation on pseudo-relocs. */
6999 # define LT_DLSYM_CONST
7000 #elif defined(__osf__)
7001 /* This system does not cope well with relocations in const data. */
7002 # define LT_DLSYM_CONST
7003 #else
7004 # define LT_DLSYM_CONST const
7005 #endif
7006
7007 #ifdef __cplusplus
7008 extern "C" {
7009 #endif
7010
7011 _LT_EOF
7012 # Now generate the symbol file.
7013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7014
7015 cat <<_LT_EOF >> conftest.$ac_ext
7016
7017 /* The mapping between symbol names and symbols. */
7018 LT_DLSYM_CONST struct {
7019 const char *name;
7020 void *address;
7021 }
7022 lt__PROGRAM__LTX_preloaded_symbols[] =
7023 {
7024 { "@PROGRAM@", (void *) 0 },
7025 _LT_EOF
7026 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7027 cat <<\_LT_EOF >> conftest.$ac_ext
7028 {0, (void *) 0}
7029 };
7030
7031 /* This works around a problem in FreeBSD linker */
7032 #ifdef FREEBSD_WORKAROUND
7033 static const void *lt_preloaded_setup() {
7034 return lt__PROGRAM__LTX_preloaded_symbols;
7035 }
7036 #endif
7037
7038 #ifdef __cplusplus
7039 }
7040 #endif
7041 _LT_EOF
7042 # Now try linking the two files.
7043 mv conftest.$ac_objext conftstm.$ac_objext
7044 lt_globsym_save_LIBS=$LIBS
7045 lt_globsym_save_CFLAGS=$CFLAGS
7046 LIBS="conftstm.$ac_objext"
7047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7049 (eval $ac_link) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7053 pipe_works=yes
7054 fi
7055 LIBS=$lt_globsym_save_LIBS
7056 CFLAGS=$lt_globsym_save_CFLAGS
7057 else
7058 echo "cannot find nm_test_func in $nlist" >&5
7059 fi
7060 else
7061 echo "cannot find nm_test_var in $nlist" >&5
7062 fi
7063 else
7064 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7065 fi
7066 else
7067 echo "$progname: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7069 fi
7070 rm -rf conftest* conftst*
7071
7072 # Do not use the global_symbol_pipe unless it works.
7073 if test "$pipe_works" = yes; then
7074 break
7075 else
7076 lt_cv_sys_global_symbol_pipe=
7077 fi
7078 done
7079
7080 fi
7081
7082 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7083 lt_cv_sys_global_symbol_to_cdecl=
7084 fi
7085 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7087 $as_echo "failed" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7090 $as_echo "ok" >&6; }
7091 fi
7092
7093 # Response file support.
7094 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7095 nm_file_list_spec='@'
7096 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7097 nm_file_list_spec='@'
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7127 $as_echo_n "checking for sysroot... " >&6; }
7128
7129 # Check whether --with-sysroot was given.
7130 if test "${with_sysroot+set}" = set; then :
7131 withval=$with_sysroot;
7132 else
7133 with_sysroot=no
7134 fi
7135
7136
7137 lt_sysroot=
7138 case ${with_sysroot} in #(
7139 yes)
7140 if test "$GCC" = yes; then
7141 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7142 fi
7143 ;; #(
7144 /*)
7145 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7146 ;; #(
7147 no|'')
7148 ;; #(
7149 *)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7151 $as_echo "${with_sysroot}" >&6; }
7152 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7153 ;;
7154 esac
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7157 $as_echo "${lt_sysroot:-no}" >&6; }
7158
7159
7160
7161
7162
7163 # Check whether --enable-libtool-lock was given.
7164 if test "${enable_libtool_lock+set}" = set; then :
7165 enableval=$enable_libtool_lock;
7166 fi
7167
7168 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7169
7170 # Some flags need to be propagated to the compiler or linker for good
7171 # libtool support.
7172 case $host in
7173 ia64-*-hpux*)
7174 # Find out which ABI we are using.
7175 echo 'int i;' > conftest.$ac_ext
7176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7177 (eval $ac_compile) 2>&5
7178 ac_status=$?
7179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7180 test $ac_status = 0; }; then
7181 case `/usr/bin/file conftest.$ac_objext` in
7182 *ELF-32*)
7183 HPUX_IA64_MODE="32"
7184 ;;
7185 *ELF-64*)
7186 HPUX_IA64_MODE="64"
7187 ;;
7188 esac
7189 fi
7190 rm -rf conftest*
7191 ;;
7192 *-*-irix6*)
7193 # Find out which ABI we are using.
7194 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196 (eval $ac_compile) 2>&5
7197 ac_status=$?
7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; then
7200 if test "$lt_cv_prog_gnu_ld" = yes; then
7201 case `/usr/bin/file conftest.$ac_objext` in
7202 *32-bit*)
7203 LD="${LD-ld} -melf32bsmip"
7204 ;;
7205 *N32*)
7206 LD="${LD-ld} -melf32bmipn32"
7207 ;;
7208 *64-bit*)
7209 LD="${LD-ld} -melf64bmip"
7210 ;;
7211 esac
7212 else
7213 case `/usr/bin/file conftest.$ac_objext` in
7214 *32-bit*)
7215 LD="${LD-ld} -32"
7216 ;;
7217 *N32*)
7218 LD="${LD-ld} -n32"
7219 ;;
7220 *64-bit*)
7221 LD="${LD-ld} -64"
7222 ;;
7223 esac
7224 fi
7225 fi
7226 rm -rf conftest*
7227 ;;
7228
7229 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7230 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7231 # Find out which ABI we are using.
7232 echo 'int i;' > conftest.$ac_ext
7233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237 test $ac_status = 0; }; then
7238 case `/usr/bin/file conftest.o` in
7239 *32-bit*)
7240 case $host in
7241 x86_64-*kfreebsd*-gnu)
7242 LD="${LD-ld} -m elf_i386_fbsd"
7243 ;;
7244 x86_64-*linux*)
7245 LD="${LD-ld} -m elf_i386"
7246 ;;
7247 ppc64-*linux*|powerpc64-*linux*)
7248 LD="${LD-ld} -m elf32ppclinux"
7249 ;;
7250 s390x-*linux*)
7251 LD="${LD-ld} -m elf_s390"
7252 ;;
7253 sparc64-*linux*)
7254 LD="${LD-ld} -m elf32_sparc"
7255 ;;
7256 esac
7257 ;;
7258 *64-bit*)
7259 case $host in
7260 x86_64-*kfreebsd*-gnu)
7261 LD="${LD-ld} -m elf_x86_64_fbsd"
7262 ;;
7263 x86_64-*linux*)
7264 LD="${LD-ld} -m elf_x86_64"
7265 ;;
7266 ppc*-*linux*|powerpc*-*linux*)
7267 LD="${LD-ld} -m elf64ppc"
7268 ;;
7269 s390*-*linux*|s390*-*tpf*)
7270 LD="${LD-ld} -m elf64_s390"
7271 ;;
7272 sparc*-*linux*)
7273 LD="${LD-ld} -m elf64_sparc"
7274 ;;
7275 esac
7276 ;;
7277 esac
7278 fi
7279 rm -rf conftest*
7280 ;;
7281
7282 *-*-sco3.2v5*)
7283 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7284 SAVE_CFLAGS="$CFLAGS"
7285 CFLAGS="$CFLAGS -belf"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7287 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7288 if ${lt_cv_cc_needs_belf+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299
7300 int
7301 main ()
7302 {
7303
7304 ;
7305 return 0;
7306 }
7307 _ACEOF
7308 if ac_fn_c_try_link "$LINENO"; then :
7309 lt_cv_cc_needs_belf=yes
7310 else
7311 lt_cv_cc_needs_belf=no
7312 fi
7313 rm -f core conftest.err conftest.$ac_objext \
7314 conftest$ac_exeext conftest.$ac_ext
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7323 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7326 CFLAGS="$SAVE_CFLAGS"
7327 fi
7328 ;;
7329 *-*solaris*)
7330 # Find out which ABI we are using.
7331 echo 'int i;' > conftest.$ac_ext
7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 case `/usr/bin/file conftest.o` in
7338 *64-bit*)
7339 case $lt_cv_prog_gnu_ld in
7340 yes*)
7341 case $host in
7342 i?86-*-solaris*)
7343 LD="${LD-ld} -m elf_x86_64"
7344 ;;
7345 sparc*-*-solaris*)
7346 LD="${LD-ld} -m elf64_sparc"
7347 ;;
7348 esac
7349 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7350 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7351 LD="${LD-ld}_sol2"
7352 fi
7353 ;;
7354 *)
7355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7356 LD="${LD-ld} -64"
7357 fi
7358 ;;
7359 esac
7360 ;;
7361 esac
7362 fi
7363 rm -rf conftest*
7364 ;;
7365 esac
7366
7367 need_locks="$enable_libtool_lock"
7368
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}mt; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$MANIFEST_TOOL"; then
7378 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7398 if test -n "$MANIFEST_TOOL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7400 $as_echo "$MANIFEST_TOOL" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 fi
7408 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7409 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7410 # Extract the first word of "mt", so it can be a program name with args.
7411 set dummy mt; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$ac_ct_MANIFEST_TOOL"; then
7418 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7438 if test -n "$ac_ct_MANIFEST_TOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7440 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7447 MANIFEST_TOOL=":"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7456 fi
7457 else
7458 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7459 fi
7460
7461 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7463 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7464 if ${lt_cv_path_mainfest_tool+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 lt_cv_path_mainfest_tool=no
7468 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7469 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7470 cat conftest.err >&5
7471 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7472 lt_cv_path_mainfest_tool=yes
7473 fi
7474 rm -f conftest*
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7477 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7478 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7479 MANIFEST_TOOL=:
7480 fi
7481
7482
7483
7484
7485
7486
7487 case $host_os in
7488 rhapsody* | darwin*)
7489 if test -n "$ac_tool_prefix"; then
7490 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7491 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$DSYMUTIL"; then
7498 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7518 if test -n "$DSYMUTIL"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7520 $as_echo "$DSYMUTIL" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526
7527 fi
7528 if test -z "$ac_cv_prog_DSYMUTIL"; then
7529 ac_ct_DSYMUTIL=$DSYMUTIL
7530 # Extract the first word of "dsymutil", so it can be a program name with args.
7531 set dummy dsymutil; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 if test -n "$ac_ct_DSYMUTIL"; then
7538 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7558 if test -n "$ac_ct_DSYMUTIL"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7560 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566 if test "x$ac_ct_DSYMUTIL" = x; then
7567 DSYMUTIL=":"
7568 else
7569 case $cross_compiling:$ac_tool_warned in
7570 yes:)
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573 ac_tool_warned=yes ;;
7574 esac
7575 DSYMUTIL=$ac_ct_DSYMUTIL
7576 fi
7577 else
7578 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7579 fi
7580
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_NMEDIT+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 if test -n "$NMEDIT"; then
7590 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 NMEDIT=$ac_cv_prog_NMEDIT
7610 if test -n "$NMEDIT"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7612 $as_echo "$NMEDIT" >&6; }
7613 else
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618
7619 fi
7620 if test -z "$ac_cv_prog_NMEDIT"; then
7621 ac_ct_NMEDIT=$NMEDIT
7622 # Extract the first word of "nmedit", so it can be a program name with args.
7623 set dummy nmedit; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 if test -n "$ac_ct_NMEDIT"; then
7630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643 done
7644 done
7645 IFS=$as_save_IFS
7646
7647 fi
7648 fi
7649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7650 if test -n "$ac_ct_NMEDIT"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7652 $as_echo "$ac_ct_NMEDIT" >&6; }
7653 else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657
7658 if test "x$ac_ct_NMEDIT" = x; then
7659 NMEDIT=":"
7660 else
7661 case $cross_compiling:$ac_tool_warned in
7662 yes:)
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665 ac_tool_warned=yes ;;
7666 esac
7667 NMEDIT=$ac_ct_NMEDIT
7668 fi
7669 else
7670 NMEDIT="$ac_cv_prog_NMEDIT"
7671 fi
7672
7673 if test -n "$ac_tool_prefix"; then
7674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_LIPO+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$LIPO"; then
7682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 LIPO=$ac_cv_prog_LIPO
7702 if test -n "$LIPO"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7704 $as_echo "$LIPO" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710
7711 fi
7712 if test -z "$ac_cv_prog_LIPO"; then
7713 ac_ct_LIPO=$LIPO
7714 # Extract the first word of "lipo", so it can be a program name with args.
7715 set dummy lipo; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$ac_ct_LIPO"; then
7722 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_ac_ct_LIPO="lipo"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7742 if test -n "$ac_ct_LIPO"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7744 $as_echo "$ac_ct_LIPO" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750 if test "x$ac_ct_LIPO" = x; then
7751 LIPO=":"
7752 else
7753 case $cross_compiling:$ac_tool_warned in
7754 yes:)
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757 ac_tool_warned=yes ;;
7758 esac
7759 LIPO=$ac_ct_LIPO
7760 fi
7761 else
7762 LIPO="$ac_cv_prog_LIPO"
7763 fi
7764
7765 if test -n "$ac_tool_prefix"; then
7766 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7767 set dummy ${ac_tool_prefix}otool; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_OTOOL+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$OTOOL"; then
7774 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 OTOOL=$ac_cv_prog_OTOOL
7794 if test -n "$OTOOL"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7796 $as_echo "$OTOOL" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802
7803 fi
7804 if test -z "$ac_cv_prog_OTOOL"; then
7805 ac_ct_OTOOL=$OTOOL
7806 # Extract the first word of "otool", so it can be a program name with args.
7807 set dummy otool; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$ac_ct_OTOOL"; then
7814 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823 ac_cv_prog_ac_ct_OTOOL="otool"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827 done
7828 done
7829 IFS=$as_save_IFS
7830
7831 fi
7832 fi
7833 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7834 if test -n "$ac_ct_OTOOL"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7836 $as_echo "$ac_ct_OTOOL" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842 if test "x$ac_ct_OTOOL" = x; then
7843 OTOOL=":"
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846 yes:)
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851 OTOOL=$ac_ct_OTOOL
7852 fi
7853 else
7854 OTOOL="$ac_cv_prog_OTOOL"
7855 fi
7856
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_OTOOL64+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$OTOOL64"; then
7866 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 OTOOL64=$ac_cv_prog_OTOOL64
7886 if test -n "$OTOOL64"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7888 $as_echo "$OTOOL64" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$ac_cv_prog_OTOOL64"; then
7897 ac_ct_OTOOL64=$OTOOL64
7898 # Extract the first word of "otool64", so it can be a program name with args.
7899 set dummy otool64; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$ac_ct_OTOOL64"; then
7906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_ac_ct_OTOOL64="otool64"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7926 if test -n "$ac_ct_OTOOL64"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7928 $as_echo "$ac_ct_OTOOL64" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934 if test "x$ac_ct_OTOOL64" = x; then
7935 OTOOL64=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 OTOOL64=$ac_ct_OTOOL64
7944 fi
7945 else
7946 OTOOL64="$ac_cv_prog_OTOOL64"
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7976 $as_echo_n "checking for -single_module linker flag... " >&6; }
7977 if ${lt_cv_apple_cc_single_mod+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 lt_cv_apple_cc_single_mod=no
7981 if test -z "${LT_MULTI_MODULE}"; then
7982 # By default we will add the -single_module flag. You can override
7983 # by either setting the environment variable LT_MULTI_MODULE
7984 # non-empty at configure time, or by adding -multi_module to the
7985 # link flags.
7986 rm -rf libconftest.dylib*
7987 echo "int foo(void){return 1;}" > conftest.c
7988 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7989 -dynamiclib -Wl,-single_module conftest.c" >&5
7990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7992 _lt_result=$?
7993 # If there is a non-empty error log, and "single_module"
7994 # appears in it, assume the flag caused a linker warning
7995 if test -s conftest.err && $GREP single_module conftest.err; then
7996 cat conftest.err >&5
7997 # Otherwise, if the output was created with a 0 exit code from
7998 # the compiler, it worked.
7999 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8000 lt_cv_apple_cc_single_mod=yes
8001 else
8002 cat conftest.err >&5
8003 fi
8004 rm -rf libconftest.dylib*
8005 rm -f conftest.*
8006 fi
8007 fi
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8009 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8010
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8012 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8013 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 lt_cv_ld_exported_symbols_list=no
8017 save_LDFLAGS=$LDFLAGS
8018 echo "_main" > conftest.sym
8019 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022
8023 int
8024 main ()
8025 {
8026
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_link "$LINENO"; then :
8032 lt_cv_ld_exported_symbols_list=yes
8033 else
8034 lt_cv_ld_exported_symbols_list=no
8035 fi
8036 rm -f core conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038 LDFLAGS="$save_LDFLAGS"
8039
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8042 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8045 $as_echo_n "checking for -force_load linker flag... " >&6; }
8046 if ${lt_cv_ld_force_load+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 lt_cv_ld_force_load=no
8050 cat > conftest.c << _LT_EOF
8051 int forced_loaded() { return 2;}
8052 _LT_EOF
8053 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8054 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8055 echo "$AR cru libconftest.a conftest.o" >&5
8056 $AR cru libconftest.a conftest.o 2>&5
8057 echo "$RANLIB libconftest.a" >&5
8058 $RANLIB libconftest.a 2>&5
8059 cat > conftest.c << _LT_EOF
8060 int main() { return 0;}
8061 _LT_EOF
8062 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8063 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8064 _lt_result=$?
8065 if test -s conftest.err && $GREP force_load conftest.err; then
8066 cat conftest.err >&5
8067 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8068 lt_cv_ld_force_load=yes
8069 else
8070 cat conftest.err >&5
8071 fi
8072 rm -f conftest.err libconftest.a conftest conftest.c
8073 rm -rf conftest.dSYM
8074
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8077 $as_echo "$lt_cv_ld_force_load" >&6; }
8078 case $host_os in
8079 rhapsody* | darwin1.[012])
8080 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8081 darwin1.*)
8082 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8083 darwin*) # darwin 5.x on
8084 # if running on 10.5 or later, the deployment target defaults
8085 # to the OS version, if on x86, and 10.4, the deployment
8086 # target defaults to 10.4. Don't you love it?
8087 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8088 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8089 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8090 10.[012]*)
8091 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8092 10.*)
8093 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8094 esac
8095 ;;
8096 esac
8097 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8098 _lt_dar_single_mod='$single_module'
8099 fi
8100 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8101 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8102 else
8103 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8104 fi
8105 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8106 _lt_dsymutil='~$DSYMUTIL $lib || :'
8107 else
8108 _lt_dsymutil=
8109 fi
8110 ;;
8111 esac
8112
8113 for ac_header in dlfcn.h
8114 do :
8115 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8116 "
8117 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8118 cat >>confdefs.h <<_ACEOF
8119 #define HAVE_DLFCN_H 1
8120 _ACEOF
8121
8122 fi
8123
8124 done
8125
8126
8127
8128
8129
8130 # Set options
8131 enable_dlopen=yes
8132
8133
8134
8135
8136 enable_win32_dll=no
8137
8138
8139 # Check whether --enable-shared was given.
8140 if test "${enable_shared+set}" = set; then :
8141 enableval=$enable_shared; p=${PACKAGE-default}
8142 case $enableval in
8143 yes) enable_shared=yes ;;
8144 no) enable_shared=no ;;
8145 *)
8146 enable_shared=no
8147 # Look at the argument we got. We use all the common list separators.
8148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8149 for pkg in $enableval; do
8150 IFS="$lt_save_ifs"
8151 if test "X$pkg" = "X$p"; then
8152 enable_shared=yes
8153 fi
8154 done
8155 IFS="$lt_save_ifs"
8156 ;;
8157 esac
8158 else
8159 enable_shared=yes
8160 fi
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170 # Check whether --enable-static was given.
8171 if test "${enable_static+set}" = set; then :
8172 enableval=$enable_static; p=${PACKAGE-default}
8173 case $enableval in
8174 yes) enable_static=yes ;;
8175 no) enable_static=no ;;
8176 *)
8177 enable_static=no
8178 # Look at the argument we got. We use all the common list separators.
8179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8180 for pkg in $enableval; do
8181 IFS="$lt_save_ifs"
8182 if test "X$pkg" = "X$p"; then
8183 enable_static=yes
8184 fi
8185 done
8186 IFS="$lt_save_ifs"
8187 ;;
8188 esac
8189 else
8190 enable_static=yes
8191 fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 # Check whether --with-pic was given.
8203 if test "${with_pic+set}" = set; then :
8204 withval=$with_pic; lt_p=${PACKAGE-default}
8205 case $withval in
8206 yes|no) pic_mode=$withval ;;
8207 *)
8208 pic_mode=default
8209 # Look at the argument we got. We use all the common list separators.
8210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8211 for lt_pkg in $withval; do
8212 IFS="$lt_save_ifs"
8213 if test "X$lt_pkg" = "X$lt_p"; then
8214 pic_mode=yes
8215 fi
8216 done
8217 IFS="$lt_save_ifs"
8218 ;;
8219 esac
8220 else
8221 pic_mode=default
8222 fi
8223
8224
8225 test -z "$pic_mode" && pic_mode=default
8226
8227
8228
8229
8230
8231
8232
8233 # Check whether --enable-fast-install was given.
8234 if test "${enable_fast_install+set}" = set; then :
8235 enableval=$enable_fast_install; p=${PACKAGE-default}
8236 case $enableval in
8237 yes) enable_fast_install=yes ;;
8238 no) enable_fast_install=no ;;
8239 *)
8240 enable_fast_install=no
8241 # Look at the argument we got. We use all the common list separators.
8242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243 for pkg in $enableval; do
8244 IFS="$lt_save_ifs"
8245 if test "X$pkg" = "X$p"; then
8246 enable_fast_install=yes
8247 fi
8248 done
8249 IFS="$lt_save_ifs"
8250 ;;
8251 esac
8252 else
8253 enable_fast_install=yes
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 # This can be used to rebuild libtool when needed
8267 LIBTOOL_DEPS="$ltmain"
8268
8269 # Always use our own libtool.
8270 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301 test -z "$LN_S" && LN_S="ln -s"
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 if test -n "${ZSH_VERSION+set}" ; then
8317 setopt NO_GLOB_SUBST
8318 fi
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321 $as_echo_n "checking for objdir... " >&6; }
8322 if ${lt_cv_objdir+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 rm -f .libs 2>/dev/null
8326 mkdir .libs 2>/dev/null
8327 if test -d .libs; then
8328 lt_cv_objdir=.libs
8329 else
8330 # MS-DOS does not allow filenames that begin with a dot.
8331 lt_cv_objdir=_libs
8332 fi
8333 rmdir .libs 2>/dev/null
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336 $as_echo "$lt_cv_objdir" >&6; }
8337 objdir=$lt_cv_objdir
8338
8339
8340
8341
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define LT_OBJDIR "$lt_cv_objdir/"
8345 _ACEOF
8346
8347
8348
8349
8350 case $host_os in
8351 aix3*)
8352 # AIX sometimes has problems with the GCC collect2 program. For some
8353 # reason, if we set the COLLECT_NAMES environment variable, the problems
8354 # vanish in a puff of smoke.
8355 if test "X${COLLECT_NAMES+set}" != Xset; then
8356 COLLECT_NAMES=
8357 export COLLECT_NAMES
8358 fi
8359 ;;
8360 esac
8361
8362 # Global variables:
8363 ofile=libtool
8364 can_build_shared=yes
8365
8366 # All known linkers require a `.a' archive for static linking (except MSVC,
8367 # which needs '.lib').
8368 libext=a
8369
8370 with_gnu_ld="$lt_cv_prog_gnu_ld"
8371
8372 old_CC="$CC"
8373 old_CFLAGS="$CFLAGS"
8374
8375 # Set sane defaults for various variables
8376 test -z "$CC" && CC=cc
8377 test -z "$LTCC" && LTCC=$CC
8378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379 test -z "$LD" && LD=ld
8380 test -z "$ac_objext" && ac_objext=o
8381
8382 for cc_temp in $compiler""; do
8383 case $cc_temp in
8384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8386 \-*) ;;
8387 *) break;;
8388 esac
8389 done
8390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8391
8392
8393 # Only perform the check for file, if the check method requires it
8394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8395 case $deplibs_check_method in
8396 file_magic*)
8397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 case $MAGIC_CMD in
8404 [\\/*] | ?:[\\/]*)
8405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406 ;;
8407 *)
8408 lt_save_MAGIC_CMD="$MAGIC_CMD"
8409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411 for ac_dir in $ac_dummy; do
8412 IFS="$lt_save_ifs"
8413 test -z "$ac_dir" && ac_dir=.
8414 if test -f $ac_dir/${ac_tool_prefix}file; then
8415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416 if test -n "$file_magic_test_file"; then
8417 case $deplibs_check_method in
8418 "file_magic "*)
8419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422 $EGREP "$file_magic_regex" > /dev/null; then
8423 :
8424 else
8425 cat <<_LT_EOF 1>&2
8426
8427 *** Warning: the command libtool uses to detect shared libraries,
8428 *** $file_magic_cmd, produces output that libtool cannot recognize.
8429 *** The result is that libtool may fail to recognize shared libraries
8430 *** as such. This will affect the creation of libtool libraries that
8431 *** depend on shared libraries, but programs linked with such libtool
8432 *** libraries will work regardless of this problem. Nevertheless, you
8433 *** may want to report the problem to your system manager and/or to
8434 *** [email protected]
8435
8436 _LT_EOF
8437 fi ;;
8438 esac
8439 fi
8440 break
8441 fi
8442 done
8443 IFS="$lt_save_ifs"
8444 MAGIC_CMD="$lt_save_MAGIC_CMD"
8445 ;;
8446 esac
8447 fi
8448
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if test -n "$MAGIC_CMD"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452 $as_echo "$MAGIC_CMD" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457
8458
8459
8460
8461
8462 if test -z "$lt_cv_path_MAGIC_CMD"; then
8463 if test -n "$ac_tool_prefix"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8465 $as_echo_n "checking for file... " >&6; }
8466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 case $MAGIC_CMD in
8470 [\\/*] | ?:[\\/]*)
8471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 ;;
8473 *)
8474 lt_save_MAGIC_CMD="$MAGIC_CMD"
8475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477 for ac_dir in $ac_dummy; do
8478 IFS="$lt_save_ifs"
8479 test -z "$ac_dir" && ac_dir=.
8480 if test -f $ac_dir/file; then
8481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482 if test -n "$file_magic_test_file"; then
8483 case $deplibs_check_method in
8484 "file_magic "*)
8485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488 $EGREP "$file_magic_regex" > /dev/null; then
8489 :
8490 else
8491 cat <<_LT_EOF 1>&2
8492
8493 *** Warning: the command libtool uses to detect shared libraries,
8494 *** $file_magic_cmd, produces output that libtool cannot recognize.
8495 *** The result is that libtool may fail to recognize shared libraries
8496 *** as such. This will affect the creation of libtool libraries that
8497 *** depend on shared libraries, but programs linked with such libtool
8498 *** libraries will work regardless of this problem. Nevertheless, you
8499 *** may want to report the problem to your system manager and/or to
8500 *** [email protected]
8501
8502 _LT_EOF
8503 fi ;;
8504 esac
8505 fi
8506 break
8507 fi
8508 done
8509 IFS="$lt_save_ifs"
8510 MAGIC_CMD="$lt_save_MAGIC_CMD"
8511 ;;
8512 esac
8513 fi
8514
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if test -n "$MAGIC_CMD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518 $as_echo "$MAGIC_CMD" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523
8524
8525 else
8526 MAGIC_CMD=:
8527 fi
8528 fi
8529
8530 fi
8531 ;;
8532 esac
8533
8534 # Use C for the default configuration in the libtool script
8535
8536 lt_save_CC="$CC"
8537 ac_ext=c
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542
8543
8544 # Source file extension for C test sources.
8545 ac_ext=c
8546
8547 # Object file extension for compiled C test sources.
8548 objext=o
8549 objext=$objext
8550
8551 # Code to be used in simple compile tests
8552 lt_simple_compile_test_code="int some_variable = 0;"
8553
8554 # Code to be used in simple link tests
8555 lt_simple_link_test_code='int main(){return(0);}'
8556
8557
8558
8559
8560
8561
8562
8563 # If no C compiler was specified, use CC.
8564 LTCC=${LTCC-"$CC"}
8565
8566 # If no C compiler flags were specified, use CFLAGS.
8567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8568
8569 # Allow CC to be a program name with arguments.
8570 compiler=$CC
8571
8572 # Save the default compiler, since it gets overwritten when the other
8573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8574 compiler_DEFAULT=$CC
8575
8576 # save warnings/boilerplate of simple test code
8577 ac_outfile=conftest.$ac_objext
8578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8580 _lt_compiler_boilerplate=`cat conftest.err`
8581 $RM conftest*
8582
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586 _lt_linker_boilerplate=`cat conftest.err`
8587 $RM -r conftest*
8588
8589
8590 ## CAVEAT EMPTOR:
8591 ## There is no encapsulation within the following macros, do not change
8592 ## the running order or otherwise move them around unless you know exactly
8593 ## what you are doing...
8594 if test -n "$compiler"; then
8595
8596 lt_prog_compiler_no_builtin_flag=
8597
8598 if test "$GCC" = yes; then
8599 case $cc_basename in
8600 nvcc*)
8601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8602 *)
8603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8604 esac
8605
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 lt_cv_prog_compiler_rtti_exceptions=no
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614 lt_compiler_flag="-fno-rtti -fno-exceptions"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 # The option is referenced via a variable to avoid confusing sed.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>conftest.err)
8626 ac_status=$?
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s "$ac_outfile"; then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings other than the usual output.
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_rtti_exceptions=yes
8636 fi
8637 fi
8638 $RM conftest*
8639
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8643
8644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8646 else
8647 :
8648 fi
8649
8650 fi
8651
8652
8653
8654
8655
8656
8657 lt_prog_compiler_wl=
8658 lt_prog_compiler_pic=
8659 lt_prog_compiler_static=
8660
8661
8662 if test "$GCC" = yes; then
8663 lt_prog_compiler_wl='-Wl,'
8664 lt_prog_compiler_static='-static'
8665
8666 case $host_os in
8667 aix*)
8668 # All AIX code is PIC.
8669 if test "$host_cpu" = ia64; then
8670 # AIX 5 now supports IA64 processor
8671 lt_prog_compiler_static='-Bstatic'
8672 fi
8673 ;;
8674
8675 amigaos*)
8676 case $host_cpu in
8677 powerpc)
8678 # see comment about AmigaOS4 .so support
8679 lt_prog_compiler_pic='-fPIC'
8680 ;;
8681 m68k)
8682 # FIXME: we need at least 68020 code to build shared libraries, but
8683 # adding the `-m68020' flag to GCC prevents building anything better,
8684 # like `-m68040'.
8685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8686 ;;
8687 esac
8688 ;;
8689
8690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8691 # PIC is the default for these OSes.
8692 ;;
8693
8694 mingw* | cygwin* | pw32* | os2* | cegcc*)
8695 # This hack is so that the source file can tell whether it is being
8696 # built for inclusion in a dll (and should export symbols for example).
8697 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8698 # (--disable-auto-import) libraries
8699 lt_prog_compiler_pic='-DDLL_EXPORT'
8700 ;;
8701
8702 darwin* | rhapsody*)
8703 # PIC is the default on this platform
8704 # Common symbols not allowed in MH_DYLIB files
8705 lt_prog_compiler_pic='-fno-common'
8706 ;;
8707
8708 haiku*)
8709 # PIC is the default for Haiku.
8710 # The "-static" flag exists, but is broken.
8711 lt_prog_compiler_static=
8712 ;;
8713
8714 hpux*)
8715 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8716 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8717 # sets the default TLS model and affects inlining.
8718 case $host_cpu in
8719 hppa*64*)
8720 # +Z the default
8721 ;;
8722 *)
8723 lt_prog_compiler_pic='-fPIC'
8724 ;;
8725 esac
8726 ;;
8727
8728 interix[3-9]*)
8729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8730 # Instead, we relocate shared libraries at runtime.
8731 ;;
8732
8733 msdosdjgpp*)
8734 # Just because we use GCC doesn't mean we suddenly get shared libraries
8735 # on systems that don't support them.
8736 lt_prog_compiler_can_build_shared=no
8737 enable_shared=no
8738 ;;
8739
8740 *nto* | *qnx*)
8741 # QNX uses GNU C++, but need to define -shared option too, otherwise
8742 # it will coredump.
8743 lt_prog_compiler_pic='-fPIC -shared'
8744 ;;
8745
8746 sysv4*MP*)
8747 if test -d /usr/nec; then
8748 lt_prog_compiler_pic=-Kconform_pic
8749 fi
8750 ;;
8751
8752 *)
8753 lt_prog_compiler_pic='-fPIC'
8754 ;;
8755 esac
8756
8757 case $cc_basename in
8758 nvcc*) # Cuda Compiler Driver 2.2
8759 lt_prog_compiler_wl='-Xlinker '
8760 if test -n "$lt_prog_compiler_pic"; then
8761 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8762 fi
8763 ;;
8764 esac
8765 else
8766 # PORTME Check for flag to pass linker flags through the system compiler.
8767 case $host_os in
8768 aix*)
8769 lt_prog_compiler_wl='-Wl,'
8770 if test "$host_cpu" = ia64; then
8771 # AIX 5 now supports IA64 processor
8772 lt_prog_compiler_static='-Bstatic'
8773 else
8774 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8775 fi
8776 ;;
8777
8778 mingw* | cygwin* | pw32* | os2* | cegcc*)
8779 # This hack is so that the source file can tell whether it is being
8780 # built for inclusion in a dll (and should export symbols for example).
8781 lt_prog_compiler_pic='-DDLL_EXPORT'
8782 ;;
8783
8784 hpux9* | hpux10* | hpux11*)
8785 lt_prog_compiler_wl='-Wl,'
8786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8787 # not for PA HP-UX.
8788 case $host_cpu in
8789 hppa*64*|ia64*)
8790 # +Z the default
8791 ;;
8792 *)
8793 lt_prog_compiler_pic='+Z'
8794 ;;
8795 esac
8796 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8797 lt_prog_compiler_static='${wl}-a ${wl}archive'
8798 ;;
8799
8800 irix5* | irix6* | nonstopux*)
8801 lt_prog_compiler_wl='-Wl,'
8802 # PIC (with -KPIC) is the default.
8803 lt_prog_compiler_static='-non_shared'
8804 ;;
8805
8806 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8807 case $cc_basename in
8808 # old Intel for x86_64 which still supported -KPIC.
8809 ecc*)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-KPIC'
8812 lt_prog_compiler_static='-static'
8813 ;;
8814 # icc used to be incompatible with GCC.
8815 # ICC 10 doesn't accept -KPIC any more.
8816 icc* | ifort*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-fPIC'
8819 lt_prog_compiler_static='-static'
8820 ;;
8821 # Lahey Fortran 8.1.
8822 lf95*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='--shared'
8825 lt_prog_compiler_static='--static'
8826 ;;
8827 nagfor*)
8828 # NAG Fortran compiler
8829 lt_prog_compiler_wl='-Wl,-Wl,,'
8830 lt_prog_compiler_pic='-PIC'
8831 lt_prog_compiler_static='-Bstatic'
8832 ;;
8833 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8834 # Portland Group compilers (*not* the Pentium gcc compiler,
8835 # which looks to be a dead project)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-fpic'
8838 lt_prog_compiler_static='-Bstatic'
8839 ;;
8840 ccc*)
8841 lt_prog_compiler_wl='-Wl,'
8842 # All Alpha code is PIC.
8843 lt_prog_compiler_static='-non_shared'
8844 ;;
8845 xl* | bgxl* | bgf* | mpixl*)
8846 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-qpic'
8849 lt_prog_compiler_static='-qstaticlink'
8850 ;;
8851 *)
8852 case `$CC -V 2>&1 | sed 5q` in
8853 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8854 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 lt_prog_compiler_wl=''
8858 ;;
8859 *Sun\ F* | *Sun*Fortran*)
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_wl='-Qoption ld '
8863 ;;
8864 *Sun\ C*)
8865 # Sun C 5.9
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl='-Wl,'
8869 ;;
8870 *Intel*\ [CF]*Compiler*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-fPIC'
8873 lt_prog_compiler_static='-static'
8874 ;;
8875 *Portland\ Group*)
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_pic='-fpic'
8878 lt_prog_compiler_static='-Bstatic'
8879 ;;
8880 esac
8881 ;;
8882 esac
8883 ;;
8884
8885 newsos6)
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 ;;
8889
8890 *nto* | *qnx*)
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8892 # it will coredump.
8893 lt_prog_compiler_pic='-fPIC -shared'
8894 ;;
8895
8896 osf3* | osf4* | osf5*)
8897 lt_prog_compiler_wl='-Wl,'
8898 # All OSF/1 code is PIC.
8899 lt_prog_compiler_static='-non_shared'
8900 ;;
8901
8902 rdos*)
8903 lt_prog_compiler_static='-non_shared'
8904 ;;
8905
8906 solaris*)
8907 lt_prog_compiler_pic='-KPIC'
8908 lt_prog_compiler_static='-Bstatic'
8909 case $cc_basename in
8910 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8911 lt_prog_compiler_wl='-Qoption ld ';;
8912 *)
8913 lt_prog_compiler_wl='-Wl,';;
8914 esac
8915 ;;
8916
8917 sunos4*)
8918 lt_prog_compiler_wl='-Qoption ld '
8919 lt_prog_compiler_pic='-PIC'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 sysv4 | sysv4.2uw2* | sysv4.3*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928
8929 sysv4*MP*)
8930 if test -d /usr/nec ;then
8931 lt_prog_compiler_pic='-Kconform_pic'
8932 lt_prog_compiler_static='-Bstatic'
8933 fi
8934 ;;
8935
8936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8940 ;;
8941
8942 unicos*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_can_build_shared=no
8945 ;;
8946
8947 uts4*)
8948 lt_prog_compiler_pic='-pic'
8949 lt_prog_compiler_static='-Bstatic'
8950 ;;
8951
8952 *)
8953 lt_prog_compiler_can_build_shared=no
8954 ;;
8955 esac
8956 fi
8957
8958 case $host_os in
8959 # For platforms which do not support PIC, -DPIC is meaningless:
8960 *djgpp*)
8961 lt_prog_compiler_pic=
8962 ;;
8963 *)
8964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8965 ;;
8966 esac
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8970 if ${lt_cv_prog_compiler_pic+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8976 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8977 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8978
8979 #
8980 # Check to make sure the PIC flag actually works.
8981 #
8982 if test -n "$lt_prog_compiler_pic"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8984 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8985 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 lt_cv_prog_compiler_pic_works=no
8989 ac_outfile=conftest.$ac_objext
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8992 # Insert the option either (1) after the last *FLAGS variable, or
8993 # (2) before a word containing "conftest.", or (3) at the end.
8994 # Note that $ac_compile itself does not contain backslashes and begins
8995 # with a dollar sign (not a hyphen), so the echo should work correctly.
8996 # The option is referenced via a variable to avoid confusing sed.
8997 lt_compile=`echo "$ac_compile" | $SED \
8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000 -e 's:$: $lt_compiler_flag:'`
9001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9002 (eval "$lt_compile" 2>conftest.err)
9003 ac_status=$?
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 if (exit $ac_status) && test -s "$ac_outfile"; then
9007 # The compiler can only warn and ignore the option if not recognized
9008 # So say no if there are warnings other than the usual output.
9009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_pic_works=yes
9013 fi
9014 fi
9015 $RM conftest*
9016
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9019 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9020
9021 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9022 case $lt_prog_compiler_pic in
9023 "" | " "*) ;;
9024 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9025 esac
9026 else
9027 lt_prog_compiler_pic=
9028 lt_prog_compiler_can_build_shared=no
9029 fi
9030
9031 fi
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 #
9044 # Check to make sure the static flag actually works.
9045 #
9046 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9048 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9049 if ${lt_cv_prog_compiler_static_works+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 lt_cv_prog_compiler_static_works=no
9053 save_LDFLAGS="$LDFLAGS"
9054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9057 # The linker can only warn and ignore the option if not recognized
9058 # So say no if there are warnings
9059 if test -s conftest.err; then
9060 # Append any errors to the config.log.
9061 cat conftest.err 1>&5
9062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064 if diff conftest.exp conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_static_works=yes
9066 fi
9067 else
9068 lt_cv_prog_compiler_static_works=yes
9069 fi
9070 fi
9071 $RM -r conftest*
9072 LDFLAGS="$save_LDFLAGS"
9073
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9076 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9077
9078 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9079 :
9080 else
9081 lt_prog_compiler_static=
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9092 if ${lt_cv_prog_compiler_c_o+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 lt_cv_prog_compiler_c_o=no
9096 $RM -r conftest 2>/dev/null
9097 mkdir conftest
9098 cd conftest
9099 mkdir out
9100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9101
9102 lt_compiler_flag="-o out/conftest2.$ac_objext"
9103 # Insert the option either (1) after the last *FLAGS variable, or
9104 # (2) before a word containing "conftest.", or (3) at the end.
9105 # Note that $ac_compile itself does not contain backslashes and begins
9106 # with a dollar sign (not a hyphen), so the echo should work correctly.
9107 lt_compile=`echo "$ac_compile" | $SED \
9108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9110 -e 's:$: $lt_compiler_flag:'`
9111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9112 (eval "$lt_compile" 2>out/conftest.err)
9113 ac_status=$?
9114 cat out/conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9117 then
9118 # The compiler can only warn and ignore the option if not recognized
9119 # So say no if there are warnings
9120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9123 lt_cv_prog_compiler_c_o=yes
9124 fi
9125 fi
9126 chmod u+w . 2>&5
9127 $RM conftest*
9128 # SGI C++ compiler will create directory out/ii_files/ for
9129 # template instantiation
9130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9131 $RM out/* && rmdir out
9132 cd ..
9133 $RM -r conftest
9134 $RM conftest*
9135
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9138 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9139
9140
9141
9142
9143
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9147 if ${lt_cv_prog_compiler_c_o+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 lt_cv_prog_compiler_c_o=no
9151 $RM -r conftest 2>/dev/null
9152 mkdir conftest
9153 cd conftest
9154 mkdir out
9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156
9157 lt_compiler_flag="-o out/conftest2.$ac_objext"
9158 # Insert the option either (1) after the last *FLAGS variable, or
9159 # (2) before a word containing "conftest.", or (3) at the end.
9160 # Note that $ac_compile itself does not contain backslashes and begins
9161 # with a dollar sign (not a hyphen), so the echo should work correctly.
9162 lt_compile=`echo "$ac_compile" | $SED \
9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9165 -e 's:$: $lt_compiler_flag:'`
9166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9167 (eval "$lt_compile" 2>out/conftest.err)
9168 ac_status=$?
9169 cat out/conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9172 then
9173 # The compiler can only warn and ignore the option if not recognized
9174 # So say no if there are warnings
9175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9178 lt_cv_prog_compiler_c_o=yes
9179 fi
9180 fi
9181 chmod u+w . 2>&5
9182 $RM conftest*
9183 # SGI C++ compiler will create directory out/ii_files/ for
9184 # template instantiation
9185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9186 $RM out/* && rmdir out
9187 cd ..
9188 $RM -r conftest
9189 $RM conftest*
9190
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9194
9195
9196
9197
9198 hard_links="nottested"
9199 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9200 # do not overwrite the value of need_locks provided by the user
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9202 $as_echo_n "checking if we can lock with hard links... " >&6; }
9203 hard_links=yes
9204 $RM conftest*
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 touch conftest.a
9207 ln conftest.a conftest.b 2>&5 || hard_links=no
9208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9210 $as_echo "$hard_links" >&6; }
9211 if test "$hard_links" = no; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9213 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9214 need_locks=warn
9215 fi
9216 else
9217 need_locks=no
9218 fi
9219
9220
9221
9222
9223
9224
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9227
9228 runpath_var=
9229 allow_undefined_flag=
9230 always_export_symbols=no
9231 archive_cmds=
9232 archive_expsym_cmds=
9233 compiler_needs_object=no
9234 enable_shared_with_static_runtimes=no
9235 export_dynamic_flag_spec=
9236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9237 hardcode_automatic=no
9238 hardcode_direct=no
9239 hardcode_direct_absolute=no
9240 hardcode_libdir_flag_spec=
9241 hardcode_libdir_separator=
9242 hardcode_minus_L=no
9243 hardcode_shlibpath_var=unsupported
9244 inherit_rpath=no
9245 link_all_deplibs=unknown
9246 module_cmds=
9247 module_expsym_cmds=
9248 old_archive_from_new_cmds=
9249 old_archive_from_expsyms_cmds=
9250 thread_safe_flag_spec=
9251 whole_archive_flag_spec=
9252 # include_expsyms should be a list of space-separated symbols to be *always*
9253 # included in the symbol list
9254 include_expsyms=
9255 # exclude_expsyms can be an extended regexp of symbols to exclude
9256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9258 # as well as any symbol that contains `d'.
9259 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9261 # platforms (ab)use it in PIC code, but their linkers get confused if
9262 # the symbol is explicitly referenced. Since portable code cannot
9263 # rely on this symbol name, it's probably fine to never include it in
9264 # preloaded symbol tables.
9265 # Exclude shared library initialization/finalization symbols.
9266 extract_expsyms_cmds=
9267
9268 case $host_os in
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9271 # When not using gcc, we currently assume that we are using
9272 # Microsoft Visual C++.
9273 if test "$GCC" != yes; then
9274 with_gnu_ld=no
9275 fi
9276 ;;
9277 interix*)
9278 # we just hope/assume this is gcc and not c89 (= MSVC++)
9279 with_gnu_ld=yes
9280 ;;
9281 openbsd*)
9282 with_gnu_ld=no
9283 ;;
9284 esac
9285
9286 ld_shlibs=yes
9287
9288 # On some targets, GNU ld is compatible enough with the native linker
9289 # that we're better off using the native interface for both.
9290 lt_use_gnu_ld_interface=no
9291 if test "$with_gnu_ld" = yes; then
9292 case $host_os in
9293 aix*)
9294 # The AIX port of GNU ld has always aspired to compatibility
9295 # with the native linker. However, as the warning in the GNU ld
9296 # block says, versions before 2.19.5* couldn't really create working
9297 # shared libraries, regardless of the interface used.
9298 case `$LD -v 2>&1` in
9299 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9300 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9301 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9302 *)
9303 lt_use_gnu_ld_interface=yes
9304 ;;
9305 esac
9306 ;;
9307 *)
9308 lt_use_gnu_ld_interface=yes
9309 ;;
9310 esac
9311 fi
9312
9313 if test "$lt_use_gnu_ld_interface" = yes; then
9314 # If archive_cmds runs LD, not CC, wlarc should be empty
9315 wlarc='${wl}'
9316
9317 # Set some defaults for GNU ld with shared library support. These
9318 # are reset later if shared libraries are not supported. Putting them
9319 # here allows them to be overridden if necessary.
9320 runpath_var=LD_RUN_PATH
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 export_dynamic_flag_spec='${wl}--export-dynamic'
9323 # ancient GNU ld didn't support --whole-archive et. al.
9324 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9325 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9326 else
9327 whole_archive_flag_spec=
9328 fi
9329 supports_anon_versioning=no
9330 case `$LD -v 2>&1` in
9331 *GNU\ gold*) supports_anon_versioning=yes ;;
9332 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9333 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9334 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9335 *\ 2.11.*) ;; # other 2.11 versions
9336 *) supports_anon_versioning=yes ;;
9337 esac
9338
9339 # See if GNU ld supports shared libraries.
9340 case $host_os in
9341 aix[3-9]*)
9342 # On AIX/PPC, the GNU linker is very broken
9343 if test "$host_cpu" != ia64; then
9344 ld_shlibs=no
9345 cat <<_LT_EOF 1>&2
9346
9347 *** Warning: the GNU linker, at least up to release 2.19, is reported
9348 *** to be unable to reliably create shared libraries on AIX.
9349 *** Therefore, libtool is disabling shared libraries support. If you
9350 *** really care for shared libraries, you may want to install binutils
9351 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9352 *** You will then need to restart the configuration process.
9353
9354 _LT_EOF
9355 fi
9356 ;;
9357
9358 amigaos*)
9359 case $host_cpu in
9360 powerpc)
9361 # see comment about AmigaOS4 .so support
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363 archive_expsym_cmds=''
9364 ;;
9365 m68k)
9366 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)'
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_minus_L=yes
9369 ;;
9370 esac
9371 ;;
9372
9373 beos*)
9374 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375 allow_undefined_flag=unsupported
9376 # Joseph Beckenbach <[email protected]> says some releases of gcc
9377 # support --undefined. This deserves some investigation. FIXME
9378 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383
9384 cygwin* | mingw* | pw32* | cegcc*)
9385 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9386 # as there is no search path for DLLs.
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 export_dynamic_flag_spec='${wl}--export-all-symbols'
9389 allow_undefined_flag=unsupported
9390 always_export_symbols=no
9391 enable_shared_with_static_runtimes=yes
9392 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9393 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9394
9395 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397 # If the export-symbols file already is a .def file (1st line
9398 # is EXPORTS), use it as is; otherwise, prepend...
9399 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9400 cp $export_symbols $output_objdir/$soname.def;
9401 else
9402 echo EXPORTS > $output_objdir/$soname.def;
9403 cat $export_symbols >> $output_objdir/$soname.def;
9404 fi~
9405 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410
9411 haiku*)
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413 link_all_deplibs=yes
9414 ;;
9415
9416 interix[3-9]*)
9417 hardcode_direct=no
9418 hardcode_shlibpath_var=no
9419 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9420 export_dynamic_flag_spec='${wl}-E'
9421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9422 # Instead, shared libraries are loaded at an image base (0x10000000 by
9423 # default) and relocated if they conflict, which is a slow very memory
9424 # consuming and fragmenting process. To avoid this, we pick a random,
9425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9428 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'
9429 ;;
9430
9431 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9432 tmp_diet=no
9433 if test "$host_os" = linux-dietlibc; then
9434 case $cc_basename in
9435 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9436 esac
9437 fi
9438 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9439 && test "$tmp_diet" = no
9440 then
9441 tmp_addflag=' $pic_flag'
9442 tmp_sharedflag='-shared'
9443 case $cc_basename,$host_cpu in
9444 pgcc*) # Portland Group C compiler
9445 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9446 tmp_addflag=' $pic_flag'
9447 ;;
9448 pgf77* | pgf90* | pgf95* | pgfortran*)
9449 # Portland Group f77 and f90 compilers
9450 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9451 tmp_addflag=' $pic_flag -Mnomain' ;;
9452 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9453 tmp_addflag=' -i_dynamic' ;;
9454 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9455 tmp_addflag=' -i_dynamic -nofor_main' ;;
9456 ifc* | ifort*) # Intel Fortran compiler
9457 tmp_addflag=' -nofor_main' ;;
9458 lf95*) # Lahey Fortran 8.1
9459 whole_archive_flag_spec=
9460 tmp_sharedflag='--shared' ;;
9461 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9462 tmp_sharedflag='-qmkshrobj'
9463 tmp_addflag= ;;
9464 nvcc*) # Cuda Compiler Driver 2.2
9465 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9466 compiler_needs_object=yes
9467 ;;
9468 esac
9469 case `$CC -V 2>&1 | sed 5q` in
9470 *Sun\ C*) # Sun C 5.9
9471 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9472 compiler_needs_object=yes
9473 tmp_sharedflag='-G' ;;
9474 *Sun\ F*) # Sun Fortran 8.3
9475 tmp_sharedflag='-G' ;;
9476 esac
9477 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478
9479 if test "x$supports_anon_versioning" = xyes; then
9480 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9482 echo "local: *; };" >> $output_objdir/$libname.ver~
9483 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9484 fi
9485
9486 case $cc_basename in
9487 xlf* | bgf* | bgxlf* | mpixlf*)
9488 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9489 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9492 if test "x$supports_anon_versioning" = xyes; then
9493 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9495 echo "local: *; };" >> $output_objdir/$libname.ver~
9496 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9497 fi
9498 ;;
9499 esac
9500 else
9501 ld_shlibs=no
9502 fi
9503 ;;
9504
9505 netbsd*)
9506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9508 wlarc=
9509 else
9510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9512 fi
9513 ;;
9514
9515 solaris*)
9516 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9517 ld_shlibs=no
9518 cat <<_LT_EOF 1>&2
9519
9520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9521 *** create shared libraries on Solaris systems. Therefore, libtool
9522 *** is disabling shared libraries support. We urge you to upgrade GNU
9523 *** binutils to release 2.9.1 or newer. Another option is to modify
9524 *** your PATH or compiler configuration so that the native linker is
9525 *** used, and then restart.
9526
9527 _LT_EOF
9528 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 else
9532 ld_shlibs=no
9533 fi
9534 ;;
9535
9536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9537 case `$LD -v 2>&1` in
9538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9539 ld_shlibs=no
9540 cat <<_LT_EOF 1>&2
9541
9542 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9543 *** reliably create shared libraries on SCO systems. Therefore, libtool
9544 *** is disabling shared libraries support. We urge you to upgrade GNU
9545 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9546 *** your PATH or compiler configuration so that the native linker is
9547 *** used, and then restart.
9548
9549 _LT_EOF
9550 ;;
9551 *)
9552 # For security reasons, it is highly recommended that you always
9553 # use absolute paths for naming shared libraries, and exclude the
9554 # DT_RUNPATH tag from executables and libraries. But doing so
9555 # requires that you compile everything twice, which is a pain.
9556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560 else
9561 ld_shlibs=no
9562 fi
9563 ;;
9564 esac
9565 ;;
9566
9567 sunos4*)
9568 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569 wlarc=
9570 hardcode_direct=yes
9571 hardcode_shlibpath_var=no
9572 ;;
9573
9574 *)
9575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9578 else
9579 ld_shlibs=no
9580 fi
9581 ;;
9582 esac
9583
9584 if test "$ld_shlibs" = no; then
9585 runpath_var=
9586 hardcode_libdir_flag_spec=
9587 export_dynamic_flag_spec=
9588 whole_archive_flag_spec=
9589 fi
9590 else
9591 # PORTME fill in a description of your system's linker (not GNU ld)
9592 case $host_os in
9593 aix3*)
9594 allow_undefined_flag=unsupported
9595 always_export_symbols=yes
9596 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'
9597 # Note: this linker hardcodes the directories in LIBPATH if there
9598 # are no directories specified by -L.
9599 hardcode_minus_L=yes
9600 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9601 # Neither direct hardcoding nor static linking is supported with a
9602 # broken collect2.
9603 hardcode_direct=unsupported
9604 fi
9605 ;;
9606
9607 aix[4-9]*)
9608 if test "$host_cpu" = ia64; then
9609 # On IA64, the linker does run time linking by default, so we don't
9610 # have to do anything special.
9611 aix_use_runtimelinking=no
9612 exp_sym_flag='-Bexport'
9613 no_entry_flag=""
9614 else
9615 # If we're using GNU nm, then we don't want the "-C" option.
9616 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9617 # Also, AIX nm treats weak defined symbols like other global
9618 # defined symbols, whereas GNU nm marks them as "W".
9619 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9620 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9621 else
9622 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'
9623 fi
9624 aix_use_runtimelinking=no
9625
9626 # Test if we are trying to use run time linking or normal
9627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9628 # need to do runtime linking.
9629 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9630 for ld_flag in $LDFLAGS; do
9631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9632 aix_use_runtimelinking=yes
9633 break
9634 fi
9635 done
9636 ;;
9637 esac
9638
9639 exp_sym_flag='-bexport'
9640 no_entry_flag='-bnoentry'
9641 fi
9642
9643 # When large executables or shared objects are built, AIX ld can
9644 # have problems creating the table of contents. If linking a library
9645 # or program results in "error TOC overflow" add -mminimal-toc to
9646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9648
9649 archive_cmds=''
9650 hardcode_direct=yes
9651 hardcode_direct_absolute=yes
9652 hardcode_libdir_separator=':'
9653 link_all_deplibs=yes
9654 file_list_spec='${wl}-f,'
9655
9656 if test "$GCC" = yes; then
9657 case $host_os in aix4.[012]|aix4.[012].*)
9658 # We only want to do this on AIX 4.2 and lower, the check
9659 # below for broken collect2 doesn't work under 4.3+
9660 collect2name=`${CC} -print-prog-name=collect2`
9661 if test -f "$collect2name" &&
9662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9663 then
9664 # We have reworked collect2
9665 :
9666 else
9667 # We have old collect2
9668 hardcode_direct=unsupported
9669 # It fails to find uninstalled libraries when the uninstalled
9670 # path is not listed in the libpath. Setting hardcode_minus_L
9671 # to unsupported forces relinking
9672 hardcode_minus_L=yes
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_libdir_separator=
9675 fi
9676 ;;
9677 esac
9678 shared_flag='-shared'
9679 if test "$aix_use_runtimelinking" = yes; then
9680 shared_flag="$shared_flag "'${wl}-G'
9681 fi
9682 else
9683 # not using gcc
9684 if test "$host_cpu" = ia64; then
9685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9686 # chokes on -Wl,-G. The following line is correct:
9687 shared_flag='-G'
9688 else
9689 if test "$aix_use_runtimelinking" = yes; then
9690 shared_flag='${wl}-G'
9691 else
9692 shared_flag='${wl}-bM:SRE'
9693 fi
9694 fi
9695 fi
9696
9697 export_dynamic_flag_spec='${wl}-bexpall'
9698 # It seems that -bexpall does not export symbols beginning with
9699 # underscore (_), so it is better to generate a list of symbols to export.
9700 always_export_symbols=yes
9701 if test "$aix_use_runtimelinking" = yes; then
9702 # Warning - without using the other runtime loading flags (-brtl),
9703 # -berok will link without error, but may produce a broken library.
9704 allow_undefined_flag='-berok'
9705 # Determine the default libpath from the value encoded in an
9706 # empty executable.
9707 if test "${lt_cv_aix_libpath+set}" = set; then
9708 aix_libpath=$lt_cv_aix_libpath
9709 else
9710 if ${lt_cv_aix_libpath_+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715
9716 int
9717 main ()
9718 {
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725
9726 lt_aix_libpath_sed='
9727 /Import File Strings/,/^$/ {
9728 /^0/ {
9729 s/^0 *\([^ ]*\) *$/\1/
9730 p
9731 }
9732 }'
9733 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734 # Check for a 64-bit object if we didn't find anything.
9735 if test -z "$lt_cv_aix_libpath_"; then
9736 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9737 fi
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 if test -z "$lt_cv_aix_libpath_"; then
9742 lt_cv_aix_libpath_="/usr/lib:/lib"
9743 fi
9744
9745 fi
9746
9747 aix_libpath=$lt_cv_aix_libpath_
9748 fi
9749
9750 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9751 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9752 else
9753 if test "$host_cpu" = ia64; then
9754 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9755 allow_undefined_flag="-z nodefs"
9756 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"
9757 else
9758 # Determine the default libpath from the value encoded in an
9759 # empty executable.
9760 if test "${lt_cv_aix_libpath+set}" = set; then
9761 aix_libpath=$lt_cv_aix_libpath
9762 else
9763 if ${lt_cv_aix_libpath_+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768
9769 int
9770 main ()
9771 {
9772
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778
9779 lt_aix_libpath_sed='
9780 /Import File Strings/,/^$/ {
9781 /^0/ {
9782 s/^0 *\([^ ]*\) *$/\1/
9783 p
9784 }
9785 }'
9786 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9787 # Check for a 64-bit object if we didn't find anything.
9788 if test -z "$lt_cv_aix_libpath_"; then
9789 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 fi
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 if test -z "$lt_cv_aix_libpath_"; then
9795 lt_cv_aix_libpath_="/usr/lib:/lib"
9796 fi
9797
9798 fi
9799
9800 aix_libpath=$lt_cv_aix_libpath_
9801 fi
9802
9803 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9804 # Warning - without using the other run time loading flags,
9805 # -berok will link without error, but may produce a broken library.
9806 no_undefined_flag=' ${wl}-bernotok'
9807 allow_undefined_flag=' ${wl}-berok'
9808 if test "$with_gnu_ld" = yes; then
9809 # We only use this code for GNU lds that support --whole-archive.
9810 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9811 else
9812 # Exported symbols can be pulled into shared objects from archives
9813 whole_archive_flag_spec='$convenience'
9814 fi
9815 archive_cmds_need_lc=yes
9816 # This is similar to how AIX traditionally builds its shared libraries.
9817 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'
9818 fi
9819 fi
9820 ;;
9821
9822 amigaos*)
9823 case $host_cpu in
9824 powerpc)
9825 # see comment about AmigaOS4 .so support
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 archive_expsym_cmds=''
9828 ;;
9829 m68k)
9830 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)'
9831 hardcode_libdir_flag_spec='-L$libdir'
9832 hardcode_minus_L=yes
9833 ;;
9834 esac
9835 ;;
9836
9837 bsdi[45]*)
9838 export_dynamic_flag_spec=-rdynamic
9839 ;;
9840
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 # When not using gcc, we currently assume that we are using
9843 # Microsoft Visual C++.
9844 # hardcode_libdir_flag_spec is actually meaningless, as there is
9845 # no search path for DLLs.
9846 case $cc_basename in
9847 cl*)
9848 # Native MSVC
9849 hardcode_libdir_flag_spec=' '
9850 allow_undefined_flag=unsupported
9851 always_export_symbols=yes
9852 file_list_spec='@'
9853 # Tell ltmain to make .lib files, not .a files.
9854 libext=lib
9855 # Tell ltmain to make .dll files, not .so files.
9856 shrext_cmds=".dll"
9857 # FIXME: Setting linknames here is a bad hack.
9858 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9859 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9860 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9861 else
9862 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9863 fi~
9864 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9865 linknames='
9866 # The linker will not automatically build a static lib if we build a DLL.
9867 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9868 enable_shared_with_static_runtimes=yes
9869 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9871 # Don't use ranlib
9872 old_postinstall_cmds='chmod 644 $oldlib'
9873 postlink_cmds='lt_outputfile="@OUTPUT@"~
9874 lt_tool_outputfile="@TOOL_OUTPUT@"~
9875 case $lt_outputfile in
9876 *.exe|*.EXE) ;;
9877 *)
9878 lt_outputfile="$lt_outputfile.exe"
9879 lt_tool_outputfile="$lt_tool_outputfile.exe"
9880 ;;
9881 esac~
9882 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9883 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9884 $RM "$lt_outputfile.manifest";
9885 fi'
9886 ;;
9887 *)
9888 # Assume MSVC wrapper
9889 hardcode_libdir_flag_spec=' '
9890 allow_undefined_flag=unsupported
9891 # Tell ltmain to make .lib files, not .a files.
9892 libext=lib
9893 # Tell ltmain to make .dll files, not .so files.
9894 shrext_cmds=".dll"
9895 # FIXME: Setting linknames here is a bad hack.
9896 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9897 # The linker will automatically build a .lib file if we build a DLL.
9898 old_archive_from_new_cmds='true'
9899 # FIXME: Should let the user specify the lib program.
9900 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901 enable_shared_with_static_runtimes=yes
9902 ;;
9903 esac
9904 ;;
9905
9906 darwin* | rhapsody*)
9907
9908
9909 archive_cmds_need_lc=no
9910 hardcode_direct=no
9911 hardcode_automatic=yes
9912 hardcode_shlibpath_var=unsupported
9913 if test "$lt_cv_ld_force_load" = "yes"; then
9914 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9915
9916 else
9917 whole_archive_flag_spec=''
9918 fi
9919 link_all_deplibs=yes
9920 allow_undefined_flag="$_lt_dar_allow_undefined"
9921 case $cc_basename in
9922 ifort*) _lt_dar_can_shared=yes ;;
9923 *) _lt_dar_can_shared=$GCC ;;
9924 esac
9925 if test "$_lt_dar_can_shared" = "yes"; then
9926 output_verbose_link_cmd=func_echo_all
9927 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9928 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9929 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}"
9930 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}"
9931
9932 else
9933 ld_shlibs=no
9934 fi
9935
9936 ;;
9937
9938 dgux*)
9939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_shlibpath_var=no
9942 ;;
9943
9944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9945 # support. Future versions do this automatically, but an explicit c++rt0.o
9946 # does not break anything, and helps significantly (at the cost of a little
9947 # extra space).
9948 freebsd2.2*)
9949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9950 hardcode_libdir_flag_spec='-R$libdir'
9951 hardcode_direct=yes
9952 hardcode_shlibpath_var=no
9953 ;;
9954
9955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9956 freebsd2.*)
9957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_direct=yes
9959 hardcode_minus_L=yes
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9964 freebsd* | dragonfly*)
9965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966 hardcode_libdir_flag_spec='-R$libdir'
9967 hardcode_direct=yes
9968 hardcode_shlibpath_var=no
9969 ;;
9970
9971 hpux9*)
9972 if test "$GCC" = yes; then
9973 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9974 else
9975 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'
9976 fi
9977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_separator=:
9979 hardcode_direct=yes
9980
9981 # hardcode_minus_L: Not really in the search PATH,
9982 # but as the default location of the library.
9983 hardcode_minus_L=yes
9984 export_dynamic_flag_spec='${wl}-E'
9985 ;;
9986
9987 hpux10*)
9988 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9989 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990 else
9991 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992 fi
9993 if test "$with_gnu_ld" = no; then
9994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995 hardcode_libdir_separator=:
9996 hardcode_direct=yes
9997 hardcode_direct_absolute=yes
9998 export_dynamic_flag_spec='${wl}-E'
9999 # hardcode_minus_L: Not really in the search PATH,
10000 # but as the default location of the library.
10001 hardcode_minus_L=yes
10002 fi
10003 ;;
10004
10005 hpux11*)
10006 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10007 case $host_cpu in
10008 hppa*64*)
10009 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 ;;
10011 ia64*)
10012 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10013 ;;
10014 *)
10015 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 esac
10018 else
10019 case $host_cpu in
10020 hppa*64*)
10021 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 ;;
10023 ia64*)
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 *)
10027
10028 # Older versions of the 11.00 compiler do not understand -b yet
10029 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10031 $as_echo_n "checking if $CC understands -b... " >&6; }
10032 if ${lt_cv_prog_compiler__b+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 lt_cv_prog_compiler__b=no
10036 save_LDFLAGS="$LDFLAGS"
10037 LDFLAGS="$LDFLAGS -b"
10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10040 # The linker can only warn and ignore the option if not recognized
10041 # So say no if there are warnings
10042 if test -s conftest.err; then
10043 # Append any errors to the config.log.
10044 cat conftest.err 1>&5
10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler__b=yes
10049 fi
10050 else
10051 lt_cv_prog_compiler__b=yes
10052 fi
10053 fi
10054 $RM -r conftest*
10055 LDFLAGS="$save_LDFLAGS"
10056
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10059 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10060
10061 if test x"$lt_cv_prog_compiler__b" = xyes; then
10062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063 else
10064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10065 fi
10066
10067 ;;
10068 esac
10069 fi
10070 if test "$with_gnu_ld" = no; then
10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10072 hardcode_libdir_separator=:
10073
10074 case $host_cpu in
10075 hppa*64*|ia64*)
10076 hardcode_direct=no
10077 hardcode_shlibpath_var=no
10078 ;;
10079 *)
10080 hardcode_direct=yes
10081 hardcode_direct_absolute=yes
10082 export_dynamic_flag_spec='${wl}-E'
10083
10084 # hardcode_minus_L: Not really in the search PATH,
10085 # but as the default location of the library.
10086 hardcode_minus_L=yes
10087 ;;
10088 esac
10089 fi
10090 ;;
10091
10092 irix5* | irix6* | nonstopux*)
10093 if test "$GCC" = yes; then
10094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10095 # Try to use the -exported_symbol ld option, if it does not
10096 # work, assume that -exports_file does not work either and
10097 # implicitly export all symbols.
10098 # This should be the same for all languages, so no per-tag cache variable.
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10100 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10101 if ${lt_cv_irix_exported_symbol+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int foo (void) { return 0; }
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 lt_cv_irix_exported_symbol=yes
10112 else
10113 lt_cv_irix_exported_symbol=no
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 LDFLAGS="$save_LDFLAGS"
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10120 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10121 if test "$lt_cv_irix_exported_symbol" = yes; then
10122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10123 fi
10124 else
10125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10127 fi
10128 archive_cmds_need_lc='no'
10129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10130 hardcode_libdir_separator=:
10131 inherit_rpath=yes
10132 link_all_deplibs=yes
10133 ;;
10134
10135 netbsd*)
10136 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10138 else
10139 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10140 fi
10141 hardcode_libdir_flag_spec='-R$libdir'
10142 hardcode_direct=yes
10143 hardcode_shlibpath_var=no
10144 ;;
10145
10146 newsos6)
10147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 hardcode_direct=yes
10149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10150 hardcode_libdir_separator=:
10151 hardcode_shlibpath_var=no
10152 ;;
10153
10154 *nto* | *qnx*)
10155 ;;
10156
10157 openbsd*)
10158 if test -f /usr/libexec/ld.so; then
10159 hardcode_direct=yes
10160 hardcode_shlibpath_var=no
10161 hardcode_direct_absolute=yes
10162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 export_dynamic_flag_spec='${wl}-E'
10167 else
10168 case $host_os in
10169 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10171 hardcode_libdir_flag_spec='-R$libdir'
10172 ;;
10173 *)
10174 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10176 ;;
10177 esac
10178 fi
10179 else
10180 ld_shlibs=no
10181 fi
10182 ;;
10183
10184 os2*)
10185 hardcode_libdir_flag_spec='-L$libdir'
10186 hardcode_minus_L=yes
10187 allow_undefined_flag=unsupported
10188 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'
10189 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10190 ;;
10191
10192 osf3*)
10193 if test "$GCC" = yes; then
10194 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10195 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10196 else
10197 allow_undefined_flag=' -expect_unresolved \*'
10198 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10199 fi
10200 archive_cmds_need_lc='no'
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 hardcode_libdir_separator=:
10203 ;;
10204
10205 osf4* | osf5*) # as osf3* with the addition of -msym flag
10206 if test "$GCC" = yes; then
10207 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10208 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210 else
10211 allow_undefined_flag=' -expect_unresolved \*'
10212 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10213 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~
10214 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10215
10216 # Both c and cxx compiler support -rpath directly
10217 hardcode_libdir_flag_spec='-rpath $libdir'
10218 fi
10219 archive_cmds_need_lc='no'
10220 hardcode_libdir_separator=:
10221 ;;
10222
10223 solaris*)
10224 no_undefined_flag=' -z defs'
10225 if test "$GCC" = yes; then
10226 wlarc='${wl}'
10227 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10230 else
10231 case `$CC -V 2>&1` in
10232 *"Compilers 5.0"*)
10233 wlarc=''
10234 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10237 ;;
10238 *)
10239 wlarc='${wl}'
10240 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10242 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10243 ;;
10244 esac
10245 fi
10246 hardcode_libdir_flag_spec='-R$libdir'
10247 hardcode_shlibpath_var=no
10248 case $host_os in
10249 solaris2.[0-5] | solaris2.[0-5].*) ;;
10250 *)
10251 # The compiler driver will combine and reorder linker options,
10252 # but understands `-z linker_flag'. GCC discards it without `$wl',
10253 # but is careful enough not to reorder.
10254 # Supported since Solaris 2.6 (maybe 2.5.1?)
10255 if test "$GCC" = yes; then
10256 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10257 else
10258 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10259 fi
10260 ;;
10261 esac
10262 link_all_deplibs=yes
10263 ;;
10264
10265 sunos4*)
10266 if test "x$host_vendor" = xsequent; then
10267 # Use $CC to link under sequent, because it throws in some extra .o
10268 # files that make .init and .fini sections work.
10269 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10272 fi
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 hardcode_direct=yes
10275 hardcode_minus_L=yes
10276 hardcode_shlibpath_var=no
10277 ;;
10278
10279 sysv4)
10280 case $host_vendor in
10281 sni)
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_direct=yes # is this really true???
10284 ;;
10285 siemens)
10286 ## LD is ld it makes a PLAMLIB
10287 ## CC just makes a GrossModule.
10288 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10289 reload_cmds='$CC -r -o $output$reload_objs'
10290 hardcode_direct=no
10291 ;;
10292 motorola)
10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10295 ;;
10296 esac
10297 runpath_var='LD_RUN_PATH'
10298 hardcode_shlibpath_var=no
10299 ;;
10300
10301 sysv4.3*)
10302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_shlibpath_var=no
10304 export_dynamic_flag_spec='-Bexport'
10305 ;;
10306
10307 sysv4*MP*)
10308 if test -d /usr/nec; then
10309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10310 hardcode_shlibpath_var=no
10311 runpath_var=LD_RUN_PATH
10312 hardcode_runpath_var=yes
10313 ld_shlibs=yes
10314 fi
10315 ;;
10316
10317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10318 no_undefined_flag='${wl}-z,text'
10319 archive_cmds_need_lc=no
10320 hardcode_shlibpath_var=no
10321 runpath_var='LD_RUN_PATH'
10322
10323 if test "$GCC" = yes; then
10324 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 else
10327 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 fi
10330 ;;
10331
10332 sysv5* | sco3.2v5* | sco5v6*)
10333 # Note: We can NOT use -z defs as we might desire, because we do not
10334 # link with -lc, and that would cause any symbols used from libc to
10335 # always be unresolved, which means just about no library would
10336 # ever link correctly. If we're not using GNU ld we use -z text
10337 # though, which does catch some bad symbols but isn't as heavy-handed
10338 # as -z defs.
10339 no_undefined_flag='${wl}-z,text'
10340 allow_undefined_flag='${wl}-z,nodefs'
10341 archive_cmds_need_lc=no
10342 hardcode_shlibpath_var=no
10343 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10344 hardcode_libdir_separator=':'
10345 link_all_deplibs=yes
10346 export_dynamic_flag_spec='${wl}-Bexport'
10347 runpath_var='LD_RUN_PATH'
10348
10349 if test "$GCC" = yes; then
10350 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 else
10353 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 fi
10356 ;;
10357
10358 uts4*)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 *)
10365 ld_shlibs=no
10366 ;;
10367 esac
10368
10369 if test x$host_vendor = xsni; then
10370 case $host in
10371 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10372 export_dynamic_flag_spec='${wl}-Blargedynsym'
10373 ;;
10374 esac
10375 fi
10376 fi
10377
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10379 $as_echo "$ld_shlibs" >&6; }
10380 test "$ld_shlibs" = no && can_build_shared=no
10381
10382 with_gnu_ld=$with_gnu_ld
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398 #
10399 # Do we need to explicitly link libc?
10400 #
10401 case "x$archive_cmds_need_lc" in
10402 x|xyes)
10403 # Assume -lc should be added
10404 archive_cmds_need_lc=yes
10405
10406 if test "$enable_shared" = yes && test "$GCC" = yes; then
10407 case $archive_cmds in
10408 *'~'*)
10409 # FIXME: we may have to deal with multi-command sequences.
10410 ;;
10411 '$CC '*)
10412 # Test whether the compiler implicitly links with -lc since on some
10413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10414 # to ld, don't add -lc before -lgcc.
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10416 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10417 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 $RM conftest*
10421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10422
10423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10424 (eval $ac_compile) 2>&5
10425 ac_status=$?
10426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427 test $ac_status = 0; } 2>conftest.err; then
10428 soname=conftest
10429 lib=conftest
10430 libobjs=conftest.$ac_objext
10431 deplibs=
10432 wl=$lt_prog_compiler_wl
10433 pic_flag=$lt_prog_compiler_pic
10434 compiler_flags=-v
10435 linker_flags=-v
10436 verstring=
10437 output_objdir=.
10438 libname=conftest
10439 lt_save_allow_undefined_flag=$allow_undefined_flag
10440 allow_undefined_flag=
10441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10442 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10443 ac_status=$?
10444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10445 test $ac_status = 0; }
10446 then
10447 lt_cv_archive_cmds_need_lc=no
10448 else
10449 lt_cv_archive_cmds_need_lc=yes
10450 fi
10451 allow_undefined_flag=$lt_save_allow_undefined_flag
10452 else
10453 cat conftest.err 1>&5
10454 fi
10455 $RM conftest*
10456
10457 fi
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10459 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10460 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10461 ;;
10462 esac
10463 fi
10464 ;;
10465 esac
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10619 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10620
10621 if test "$GCC" = yes; then
10622 case $host_os in
10623 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10624 *) lt_awk_arg="/^libraries:/" ;;
10625 esac
10626 case $host_os in
10627 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10628 *) lt_sed_strip_eq="s,=/,/,g" ;;
10629 esac
10630 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10631 case $lt_search_path_spec in
10632 *\;*)
10633 # if the path contains ";" then we assume it to be the separator
10634 # otherwise default to the standard path separator (i.e. ":") - it is
10635 # assumed that no part of a normal pathname contains ";" but that should
10636 # okay in the real world where ";" in dirpaths is itself problematic.
10637 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10638 ;;
10639 *)
10640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10641 ;;
10642 esac
10643 # Ok, now we have the path, separated by spaces, we can step through it
10644 # and add multilib dir if necessary.
10645 lt_tmp_lt_search_path_spec=
10646 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10647 for lt_sys_path in $lt_search_path_spec; do
10648 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10649 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10650 else
10651 test -d "$lt_sys_path" && \
10652 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10653 fi
10654 done
10655 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10656 BEGIN {RS=" "; FS="/|\n";} {
10657 lt_foo="";
10658 lt_count=0;
10659 for (lt_i = NF; lt_i > 0; lt_i--) {
10660 if ($lt_i != "" && $lt_i != ".") {
10661 if ($lt_i == "..") {
10662 lt_count++;
10663 } else {
10664 if (lt_count == 0) {
10665 lt_foo="/" $lt_i lt_foo;
10666 } else {
10667 lt_count--;
10668 }
10669 }
10670 }
10671 }
10672 if (lt_foo != "") { lt_freq[lt_foo]++; }
10673 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10674 }'`
10675 # AWK program above erroneously prepends '/' to C:/dos/paths
10676 # for these hosts.
10677 case $host_os in
10678 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10679 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10680 esac
10681 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10682 else
10683 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10684 fi
10685 library_names_spec=
10686 libname_spec='lib$name'
10687 soname_spec=
10688 shrext_cmds=".so"
10689 postinstall_cmds=
10690 postuninstall_cmds=
10691 finish_cmds=
10692 finish_eval=
10693 shlibpath_var=
10694 shlibpath_overrides_runpath=unknown
10695 version_type=none
10696 dynamic_linker="$host_os ld.so"
10697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10698 need_lib_prefix=unknown
10699 hardcode_into_libs=no
10700
10701 # when you set need_version to no, make sure it does not cause -set_version
10702 # flags to be left without arguments
10703 need_version=unknown
10704
10705 case $host_os in
10706 aix3*)
10707 version_type=linux # correct to gnu/linux during the next big refactor
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10709 shlibpath_var=LIBPATH
10710
10711 # AIX 3 has no versioning support, so we append a major version to the name.
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 ;;
10714
10715 aix[4-9]*)
10716 version_type=linux # correct to gnu/linux during the next big refactor
10717 need_lib_prefix=no
10718 need_version=no
10719 hardcode_into_libs=yes
10720 if test "$host_cpu" = ia64; then
10721 # AIX 5 supports IA64
10722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 else
10725 # With GCC up to 2.95.x, collect2 would create an import file
10726 # for dependence libraries. The import file would start with
10727 # the line `#! .'. This would cause the generated library to
10728 # depend on `.', always an invalid library. This was fixed in
10729 # development snapshots of GCC prior to 3.0.
10730 case $host_os in
10731 aix4 | aix4.[01] | aix4.[01].*)
10732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10733 echo ' yes '
10734 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10735 :
10736 else
10737 can_build_shared=no
10738 fi
10739 ;;
10740 esac
10741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10742 # soname into executable. Probably we can add versioning support to
10743 # collect2, so additional links can be useful in future.
10744 if test "$aix_use_runtimelinking" = yes; then
10745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10746 # instead of lib<name>.a to let people know that these are not
10747 # typical AIX shared libraries.
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 else
10750 # We preserve .a as extension for shared libraries through AIX4.2
10751 # and later when we are not doing run time linking.
10752 library_names_spec='${libname}${release}.a $libname.a'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 fi
10755 shlibpath_var=LIBPATH
10756 fi
10757 ;;
10758
10759 amigaos*)
10760 case $host_cpu in
10761 powerpc)
10762 # Since July 2007 AmigaOS4 officially supports .so libraries.
10763 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 ;;
10766 m68k)
10767 library_names_spec='$libname.ixlibrary $libname.a'
10768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10769 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10770 ;;
10771 esac
10772 ;;
10773
10774 beos*)
10775 library_names_spec='${libname}${shared_ext}'
10776 dynamic_linker="$host_os ld.so"
10777 shlibpath_var=LIBRARY_PATH
10778 ;;
10779
10780 bsdi[45]*)
10781 version_type=linux # correct to gnu/linux during the next big refactor
10782 need_version=no
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10789 # the default ld.so.conf also contains /usr/contrib/lib and
10790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10791 # libtool to hard-code these into programs
10792 ;;
10793
10794 cygwin* | mingw* | pw32* | cegcc*)
10795 version_type=windows
10796 shrext_cmds=".dll"
10797 need_version=no
10798 need_lib_prefix=no
10799
10800 case $GCC,$cc_basename in
10801 yes,*)
10802 # gcc
10803 library_names_spec='$libname.dll.a'
10804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10805 postinstall_cmds='base_file=`basename \${file}`~
10806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10807 dldir=$destdir/`dirname \$dlpath`~
10808 test -d \$dldir || mkdir -p \$dldir~
10809 $install_prog $dir/$dlname \$dldir/$dlname~
10810 chmod a+x \$dldir/$dlname~
10811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10813 fi'
10814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10815 dlpath=$dir/\$dldll~
10816 $RM \$dlpath'
10817 shlibpath_overrides_runpath=yes
10818
10819 case $host_os in
10820 cygwin*)
10821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823
10824 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10825 ;;
10826 mingw* | cegcc*)
10827 # MinGW DLLs use traditional 'lib' prefix
10828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829 ;;
10830 pw32*)
10831 # pw32 DLLs use 'pw' prefix rather than 'lib'
10832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10833 ;;
10834 esac
10835 dynamic_linker='Win32 ld.exe'
10836 ;;
10837
10838 *,cl*)
10839 # Native MSVC
10840 libname_spec='$name'
10841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842 library_names_spec='${libname}.dll.lib'
10843
10844 case $build_os in
10845 mingw*)
10846 sys_lib_search_path_spec=
10847 lt_save_ifs=$IFS
10848 IFS=';'
10849 for lt_path in $LIB
10850 do
10851 IFS=$lt_save_ifs
10852 # Let DOS variable expansion print the short 8.3 style file name.
10853 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10854 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10855 done
10856 IFS=$lt_save_ifs
10857 # Convert to MSYS style.
10858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10859 ;;
10860 cygwin*)
10861 # Convert to unix form, then to dos form, then back to unix form
10862 # but this time dos style (no spaces!) so that the unix form looks
10863 # like /cygdrive/c/PROGRA~1:/cygdr...
10864 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10865 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10866 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10867 ;;
10868 *)
10869 sys_lib_search_path_spec="$LIB"
10870 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10871 # It is most probably a Windows format PATH.
10872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10873 else
10874 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10875 fi
10876 # FIXME: find the short name or the path components, as spaces are
10877 # common. (e.g. "Program Files" -> "PROGRA~1")
10878 ;;
10879 esac
10880
10881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10882 postinstall_cmds='base_file=`basename \${file}`~
10883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10884 dldir=$destdir/`dirname \$dlpath`~
10885 test -d \$dldir || mkdir -p \$dldir~
10886 $install_prog $dir/$dlname \$dldir/$dlname'
10887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10888 dlpath=$dir/\$dldll~
10889 $RM \$dlpath'
10890 shlibpath_overrides_runpath=yes
10891 dynamic_linker='Win32 link.exe'
10892 ;;
10893
10894 *)
10895 # Assume MSVC wrapper
10896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10897 dynamic_linker='Win32 ld.exe'
10898 ;;
10899 esac
10900 # FIXME: first we should search . and the directory the executable is in
10901 shlibpath_var=PATH
10902 ;;
10903
10904 darwin* | rhapsody*)
10905 dynamic_linker="$host_os dyld"
10906 version_type=darwin
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10910 soname_spec='${libname}${release}${major}$shared_ext'
10911 shlibpath_overrides_runpath=yes
10912 shlibpath_var=DYLD_LIBRARY_PATH
10913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10914
10915 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10917 ;;
10918
10919 dgux*)
10920 version_type=linux # correct to gnu/linux during the next big refactor
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 ;;
10927
10928 freebsd* | dragonfly*)
10929 # DragonFly does not have aout. When/if they implement a new
10930 # versioning mechanism, adjust this.
10931 if test -x /usr/bin/objformat; then
10932 objformat=`/usr/bin/objformat`
10933 else
10934 case $host_os in
10935 freebsd[23].*) objformat=aout ;;
10936 *) objformat=elf ;;
10937 esac
10938 fi
10939 version_type=freebsd-$objformat
10940 case $version_type in
10941 freebsd-elf*)
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10943 need_version=no
10944 need_lib_prefix=no
10945 ;;
10946 freebsd-*)
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10948 need_version=yes
10949 ;;
10950 esac
10951 shlibpath_var=LD_LIBRARY_PATH
10952 case $host_os in
10953 freebsd2.*)
10954 shlibpath_overrides_runpath=yes
10955 ;;
10956 freebsd3.[01]* | freebsdelf3.[01]*)
10957 shlibpath_overrides_runpath=yes
10958 hardcode_into_libs=yes
10959 ;;
10960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10962 shlibpath_overrides_runpath=no
10963 hardcode_into_libs=yes
10964 ;;
10965 *) # from 4.6 on, and DragonFly
10966 shlibpath_overrides_runpath=yes
10967 hardcode_into_libs=yes
10968 ;;
10969 esac
10970 ;;
10971
10972 gnu*)
10973 version_type=linux # correct to gnu/linux during the next big refactor
10974 need_lib_prefix=no
10975 need_version=no
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=no
10980 hardcode_into_libs=yes
10981 ;;
10982
10983 haiku*)
10984 version_type=linux # correct to gnu/linux during the next big refactor
10985 need_lib_prefix=no
10986 need_version=no
10987 dynamic_linker="$host_os runtime_loader"
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LIBRARY_PATH
10991 shlibpath_overrides_runpath=yes
10992 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10993 hardcode_into_libs=yes
10994 ;;
10995
10996 hpux9* | hpux10* | hpux11*)
10997 # Give a soname corresponding to the major version so that dld.sl refuses to
10998 # link against other versions.
10999 version_type=sunos
11000 need_lib_prefix=no
11001 need_version=no
11002 case $host_cpu in
11003 ia64*)
11004 shrext_cmds='.so'
11005 hardcode_into_libs=yes
11006 dynamic_linker="$host_os dld.so"
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010 soname_spec='${libname}${release}${shared_ext}$major'
11011 if test "X$HPUX_IA64_MODE" = X32; then
11012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11013 else
11014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11015 fi
11016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11017 ;;
11018 hppa*64*)
11019 shrext_cmds='.sl'
11020 hardcode_into_libs=yes
11021 dynamic_linker="$host_os dld.sl"
11022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11028 ;;
11029 *)
11030 shrext_cmds='.sl'
11031 dynamic_linker="$host_os dld.sl"
11032 shlibpath_var=SHLIB_PATH
11033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 ;;
11037 esac
11038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11039 postinstall_cmds='chmod 555 $lib'
11040 # or fails outright, so override atomically:
11041 install_override_mode=555
11042 ;;
11043
11044 interix[3-9]*)
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=no
11053 hardcode_into_libs=yes
11054 ;;
11055
11056 irix5* | irix6* | nonstopux*)
11057 case $host_os in
11058 nonstopux*) version_type=nonstopux ;;
11059 *)
11060 if test "$lt_cv_prog_gnu_ld" = yes; then
11061 version_type=linux # correct to gnu/linux during the next big refactor
11062 else
11063 version_type=irix
11064 fi ;;
11065 esac
11066 need_lib_prefix=no
11067 need_version=no
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11070 case $host_os in
11071 irix5* | nonstopux*)
11072 libsuff= shlibsuff=
11073 ;;
11074 *)
11075 case $LD in # libtool.m4 will add one of these switches to LD
11076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11077 libsuff= shlibsuff= libmagic=32-bit;;
11078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11079 libsuff=32 shlibsuff=N32 libmagic=N32;;
11080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11082 *) libsuff= shlibsuff= libmagic=never-match;;
11083 esac
11084 ;;
11085 esac
11086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11087 shlibpath_overrides_runpath=no
11088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11090 hardcode_into_libs=yes
11091 ;;
11092
11093 # No shared lib support for Linux oldld, aout, or coff.
11094 linux*oldld* | linux*aout* | linux*coff*)
11095 dynamic_linker=no
11096 ;;
11097
11098 # This must be glibc/ELF.
11099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11100 version_type=linux # correct to gnu/linux during the next big refactor
11101 need_lib_prefix=no
11102 need_version=no
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=no
11108
11109 # Some binutils ld are patched to set DT_RUNPATH
11110 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 lt_cv_shlibpath_overrides_runpath=no
11114 save_LDFLAGS=$LDFLAGS
11115 save_libdir=$libdir
11116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11120
11121 int
11122 main ()
11123 {
11124
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11131 lt_cv_shlibpath_overrides_runpath=yes
11132 fi
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LDFLAGS=$save_LDFLAGS
11137 libdir=$save_libdir
11138
11139 fi
11140
11141 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11142
11143 # This implies no fast_install, which is unacceptable.
11144 # Some rework will be needed to allow for fast_install
11145 # before this can be enabled.
11146 hardcode_into_libs=yes
11147
11148 # Append ld.so.conf contents to the search path
11149 if test -f /etc/ld.so.conf; then
11150 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11152 fi
11153
11154 # We used to test for /lib/ld.so.1 and disable shared libraries on
11155 # powerpc, because MkLinux only supported shared libraries with the
11156 # GNU dynamic linker. Since this was broken with cross compilers,
11157 # most powerpc-linux boxes support dynamic linking these days and
11158 # people can always --disable-shared, the test was removed, and we
11159 # assume the GNU/Linux dynamic linker is in use.
11160 dynamic_linker='GNU/Linux ld.so'
11161 ;;
11162
11163 netbsd*)
11164 version_type=sunos
11165 need_lib_prefix=no
11166 need_version=no
11167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170 dynamic_linker='NetBSD (a.out) ld.so'
11171 else
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 dynamic_linker='NetBSD ld.elf_so'
11175 fi
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes
11178 hardcode_into_libs=yes
11179 ;;
11180
11181 newsos6)
11182 version_type=linux # correct to gnu/linux during the next big refactor
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 ;;
11187
11188 *nto* | *qnx*)
11189 version_type=qnx
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=no
11196 hardcode_into_libs=yes
11197 dynamic_linker='ldqnx.so'
11198 ;;
11199
11200 openbsd*)
11201 version_type=sunos
11202 sys_lib_dlsearch_path_spec="/usr/lib"
11203 need_lib_prefix=no
11204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11205 case $host_os in
11206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11207 *) need_version=no ;;
11208 esac
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213 case $host_os in
11214 openbsd2.[89] | openbsd2.[89].*)
11215 shlibpath_overrides_runpath=no
11216 ;;
11217 *)
11218 shlibpath_overrides_runpath=yes
11219 ;;
11220 esac
11221 else
11222 shlibpath_overrides_runpath=yes
11223 fi
11224 ;;
11225
11226 os2*)
11227 libname_spec='$name'
11228 shrext_cmds=".dll"
11229 need_lib_prefix=no
11230 library_names_spec='$libname${shared_ext} $libname.a'
11231 dynamic_linker='OS/2 ld.exe'
11232 shlibpath_var=LIBPATH
11233 ;;
11234
11235 osf3* | osf4* | osf5*)
11236 version_type=osf
11237 need_lib_prefix=no
11238 need_version=no
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11244 ;;
11245
11246 rdos*)
11247 dynamic_linker=no
11248 ;;
11249
11250 solaris*)
11251 version_type=linux # correct to gnu/linux during the next big refactor
11252 need_lib_prefix=no
11253 need_version=no
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 hardcode_into_libs=yes
11259 # ldd complains unless libraries are executable
11260 postinstall_cmds='chmod +x $lib'
11261 ;;
11262
11263 sunos4*)
11264 version_type=sunos
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11269 if test "$with_gnu_ld" = yes; then
11270 need_lib_prefix=no
11271 fi
11272 need_version=yes
11273 ;;
11274
11275 sysv4 | sysv4.3*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 case $host_vendor in
11281 sni)
11282 shlibpath_overrides_runpath=no
11283 need_lib_prefix=no
11284 runpath_var=LD_RUN_PATH
11285 ;;
11286 siemens)
11287 need_lib_prefix=no
11288 ;;
11289 motorola)
11290 need_lib_prefix=no
11291 need_version=no
11292 shlibpath_overrides_runpath=no
11293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11294 ;;
11295 esac
11296 ;;
11297
11298 sysv4*MP*)
11299 if test -d /usr/nec ;then
11300 version_type=linux # correct to gnu/linux during the next big refactor
11301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11302 soname_spec='$libname${shared_ext}.$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 fi
11305 ;;
11306
11307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11308 version_type=freebsd-elf
11309 need_lib_prefix=no
11310 need_version=no
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 shlibpath_overrides_runpath=yes
11315 hardcode_into_libs=yes
11316 if test "$with_gnu_ld" = yes; then
11317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11318 else
11319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11320 case $host_os in
11321 sco3.2v5*)
11322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11323 ;;
11324 esac
11325 fi
11326 sys_lib_dlsearch_path_spec='/usr/lib'
11327 ;;
11328
11329 tpf*)
11330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11331 version_type=linux # correct to gnu/linux during the next big refactor
11332 need_lib_prefix=no
11333 need_version=no
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=no
11337 hardcode_into_libs=yes
11338 ;;
11339
11340 uts4*)
11341 version_type=linux # correct to gnu/linux during the next big refactor
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 ;;
11346
11347 *)
11348 dynamic_linker=no
11349 ;;
11350 esac
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11352 $as_echo "$dynamic_linker" >&6; }
11353 test "$dynamic_linker" = no && can_build_shared=no
11354
11355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11356 if test "$GCC" = yes; then
11357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11358 fi
11359
11360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11361 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11362 fi
11363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11364 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11365 fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11459 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11460 hardcode_action=
11461 if test -n "$hardcode_libdir_flag_spec" ||
11462 test -n "$runpath_var" ||
11463 test "X$hardcode_automatic" = "Xyes" ; then
11464
11465 # We can hardcode non-existent directories.
11466 if test "$hardcode_direct" != no &&
11467 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11468 # have to relink, otherwise we might link with an installed library
11469 # when we should be linking with a yet-to-be-installed one
11470 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11471 test "$hardcode_minus_L" != no; then
11472 # Linking always hardcodes the temporary library directory.
11473 hardcode_action=relink
11474 else
11475 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11476 hardcode_action=immediate
11477 fi
11478 else
11479 # We cannot hardcode anything, or else we can only hardcode existing
11480 # directories.
11481 hardcode_action=unsupported
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11484 $as_echo "$hardcode_action" >&6; }
11485
11486 if test "$hardcode_action" = relink ||
11487 test "$inherit_rpath" = yes; then
11488 # Fast installation is not supported
11489 enable_fast_install=no
11490 elif test "$shlibpath_overrides_runpath" = yes ||
11491 test "$enable_shared" = no; then
11492 # Fast installation is not necessary
11493 enable_fast_install=needless
11494 fi
11495
11496
11497
11498
11499
11500
11501 if test "x$enable_dlopen" != xyes; then
11502 enable_dlopen=unknown
11503 enable_dlopen_self=unknown
11504 enable_dlopen_self_static=unknown
11505 else
11506 lt_cv_dlopen=no
11507 lt_cv_dlopen_libs=
11508
11509 case $host_os in
11510 beos*)
11511 lt_cv_dlopen="load_add_on"
11512 lt_cv_dlopen_libs=
11513 lt_cv_dlopen_self=yes
11514 ;;
11515
11516 mingw* | pw32* | cegcc*)
11517 lt_cv_dlopen="LoadLibrary"
11518 lt_cv_dlopen_libs=
11519 ;;
11520
11521 cygwin*)
11522 lt_cv_dlopen="dlopen"
11523 lt_cv_dlopen_libs=
11524 ;;
11525
11526 darwin*)
11527 # if libdl is installed we need to link against it
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11530 if ${ac_cv_lib_dl_dlopen+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-ldl $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char dlopen ();
11545 int
11546 main ()
11547 {
11548 return dlopen ();
11549 ;
11550 return 0;
11551 }
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_dl_dlopen=yes
11555 else
11556 ac_cv_lib_dl_dlopen=no
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11564 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566 else
11567
11568 lt_cv_dlopen="dyld"
11569 lt_cv_dlopen_libs=
11570 lt_cv_dlopen_self=yes
11571
11572 fi
11573
11574 ;;
11575
11576 *)
11577 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11578 if test "x$ac_cv_func_shl_load" = xyes; then :
11579 lt_cv_dlopen="shl_load"
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11582 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11583 if ${ac_cv_lib_dld_shl_load+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-ldld $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11590
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char shl_load ();
11598 int
11599 main ()
11600 {
11601 return shl_load ();
11602 ;
11603 return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_dld_shl_load=yes
11608 else
11609 ac_cv_lib_dld_shl_load=no
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11616 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11617 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11619 else
11620 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11621 if test "x$ac_cv_func_dlopen" = xyes; then :
11622 lt_cv_dlopen="dlopen"
11623 else
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11626 if ${ac_cv_lib_dl_dlopen+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldl $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11641 int
11642 main ()
11643 {
11644 return dlopen ();
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650 ac_cv_lib_dl_dlopen=yes
11651 else
11652 ac_cv_lib_dl_dlopen=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11664 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11665 if ${ac_cv_lib_svld_dlopen+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 ac_check_lib_save_LIBS=$LIBS
11669 LIBS="-lsvld $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char dlopen ();
11680 int
11681 main ()
11682 {
11683 return dlopen ();
11684 ;
11685 return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 ac_cv_lib_svld_dlopen=yes
11690 else
11691 ac_cv_lib_svld_dlopen=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11698 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11699 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11701 else
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11703 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11704 if ${ac_cv_lib_dld_dld_link+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-ldld $LIBS"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char dld_link ();
11719 int
11720 main ()
11721 {
11722 return dld_link ();
11723 ;
11724 return 0;
11725 }
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"; then :
11728 ac_cv_lib_dld_dld_link=yes
11729 else
11730 ac_cv_lib_dld_dld_link=no
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_lib_save_LIBS
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11737 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11738 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11739 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11740 fi
11741
11742
11743 fi
11744
11745
11746 fi
11747
11748
11749 fi
11750
11751
11752 fi
11753
11754
11755 fi
11756
11757 ;;
11758 esac
11759
11760 if test "x$lt_cv_dlopen" != xno; then
11761 enable_dlopen=yes
11762 else
11763 enable_dlopen=no
11764 fi
11765
11766 case $lt_cv_dlopen in
11767 dlopen)
11768 save_CPPFLAGS="$CPPFLAGS"
11769 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11770
11771 save_LDFLAGS="$LDFLAGS"
11772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11773
11774 save_LIBS="$LIBS"
11775 LIBS="$lt_cv_dlopen_libs $LIBS"
11776
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11778 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11779 if ${lt_cv_dlopen_self+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 if test "$cross_compiling" = yes; then :
11783 lt_cv_dlopen_self=cross
11784 else
11785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11786 lt_status=$lt_dlunknown
11787 cat > conftest.$ac_ext <<_LT_EOF
11788 #line $LINENO "configure"
11789 #include "confdefs.h"
11790
11791 #if HAVE_DLFCN_H
11792 #include <dlfcn.h>
11793 #endif
11794
11795 #include <stdio.h>
11796
11797 #ifdef RTLD_GLOBAL
11798 # define LT_DLGLOBAL RTLD_GLOBAL
11799 #else
11800 # ifdef DL_GLOBAL
11801 # define LT_DLGLOBAL DL_GLOBAL
11802 # else
11803 # define LT_DLGLOBAL 0
11804 # endif
11805 #endif
11806
11807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11808 find out it does not work in some platform. */
11809 #ifndef LT_DLLAZY_OR_NOW
11810 # ifdef RTLD_LAZY
11811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11812 # else
11813 # ifdef DL_LAZY
11814 # define LT_DLLAZY_OR_NOW DL_LAZY
11815 # else
11816 # ifdef RTLD_NOW
11817 # define LT_DLLAZY_OR_NOW RTLD_NOW
11818 # else
11819 # ifdef DL_NOW
11820 # define LT_DLLAZY_OR_NOW DL_NOW
11821 # else
11822 # define LT_DLLAZY_OR_NOW 0
11823 # endif
11824 # endif
11825 # endif
11826 # endif
11827 #endif
11828
11829 /* When -fvisbility=hidden is used, assume the code has been annotated
11830 correspondingly for the symbols needed. */
11831 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11832 int fnord () __attribute__((visibility("default")));
11833 #endif
11834
11835 int fnord () { return 42; }
11836 int main ()
11837 {
11838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11839 int status = $lt_dlunknown;
11840
11841 if (self)
11842 {
11843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11844 else
11845 {
11846 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11847 else puts (dlerror ());
11848 }
11849 /* dlclose (self); */
11850 }
11851 else
11852 puts (dlerror ());
11853
11854 return status;
11855 }
11856 _LT_EOF
11857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11858 (eval $ac_link) 2>&5
11859 ac_status=$?
11860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11862 (./conftest; exit; ) >&5 2>/dev/null
11863 lt_status=$?
11864 case x$lt_status in
11865 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11866 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11867 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11868 esac
11869 else :
11870 # compilation failed
11871 lt_cv_dlopen_self=no
11872 fi
11873 fi
11874 rm -fr conftest*
11875
11876
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11879 $as_echo "$lt_cv_dlopen_self" >&6; }
11880
11881 if test "x$lt_cv_dlopen_self" = xyes; then
11882 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11884 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11885 if ${lt_cv_dlopen_self_static+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 if test "$cross_compiling" = yes; then :
11889 lt_cv_dlopen_self_static=cross
11890 else
11891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11892 lt_status=$lt_dlunknown
11893 cat > conftest.$ac_ext <<_LT_EOF
11894 #line $LINENO "configure"
11895 #include "confdefs.h"
11896
11897 #if HAVE_DLFCN_H
11898 #include <dlfcn.h>
11899 #endif
11900
11901 #include <stdio.h>
11902
11903 #ifdef RTLD_GLOBAL
11904 # define LT_DLGLOBAL RTLD_GLOBAL
11905 #else
11906 # ifdef DL_GLOBAL
11907 # define LT_DLGLOBAL DL_GLOBAL
11908 # else
11909 # define LT_DLGLOBAL 0
11910 # endif
11911 #endif
11912
11913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11914 find out it does not work in some platform. */
11915 #ifndef LT_DLLAZY_OR_NOW
11916 # ifdef RTLD_LAZY
11917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11918 # else
11919 # ifdef DL_LAZY
11920 # define LT_DLLAZY_OR_NOW DL_LAZY
11921 # else
11922 # ifdef RTLD_NOW
11923 # define LT_DLLAZY_OR_NOW RTLD_NOW
11924 # else
11925 # ifdef DL_NOW
11926 # define LT_DLLAZY_OR_NOW DL_NOW
11927 # else
11928 # define LT_DLLAZY_OR_NOW 0
11929 # endif
11930 # endif
11931 # endif
11932 # endif
11933 #endif
11934
11935 /* When -fvisbility=hidden is used, assume the code has been annotated
11936 correspondingly for the symbols needed. */
11937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11938 int fnord () __attribute__((visibility("default")));
11939 #endif
11940
11941 int fnord () { return 42; }
11942 int main ()
11943 {
11944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945 int status = $lt_dlunknown;
11946
11947 if (self)
11948 {
11949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11950 else
11951 {
11952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11953 else puts (dlerror ());
11954 }
11955 /* dlclose (self); */
11956 }
11957 else
11958 puts (dlerror ());
11959
11960 return status;
11961 }
11962 _LT_EOF
11963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11964 (eval $ac_link) 2>&5
11965 ac_status=$?
11966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11967 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11968 (./conftest; exit; ) >&5 2>/dev/null
11969 lt_status=$?
11970 case x$lt_status in
11971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11973 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11974 esac
11975 else :
11976 # compilation failed
11977 lt_cv_dlopen_self_static=no
11978 fi
11979 fi
11980 rm -fr conftest*
11981
11982
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11985 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11986 fi
11987
11988 CPPFLAGS="$save_CPPFLAGS"
11989 LDFLAGS="$save_LDFLAGS"
11990 LIBS="$save_LIBS"
11991 ;;
11992 esac
11993
11994 case $lt_cv_dlopen_self in
11995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11996 *) enable_dlopen_self=unknown ;;
11997 esac
11998
11999 case $lt_cv_dlopen_self_static in
12000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12001 *) enable_dlopen_self_static=unknown ;;
12002 esac
12003 fi
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021 striplib=
12022 old_striplib=
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12024 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12025 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12026 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12027 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029 $as_echo "yes" >&6; }
12030 else
12031 # FIXME - insert some real tests, host_os isn't really good enough
12032 case $host_os in
12033 darwin*)
12034 if test -n "$STRIP" ; then
12035 striplib="$STRIP -x"
12036 old_striplib="$STRIP -S"
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038 $as_echo "yes" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042 fi
12043 ;;
12044 *)
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 ;;
12048 esac
12049 fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062 # Report which library types will actually be built
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12064 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12066 $as_echo "$can_build_shared" >&6; }
12067
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12069 $as_echo_n "checking whether to build shared libraries... " >&6; }
12070 test "$can_build_shared" = "no" && enable_shared=no
12071
12072 # On AIX, shared libraries and static libraries use the same namespace, and
12073 # are all built from PIC.
12074 case $host_os in
12075 aix3*)
12076 test "$enable_shared" = yes && enable_static=no
12077 if test -n "$RANLIB"; then
12078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12079 postinstall_cmds='$RANLIB $lib'
12080 fi
12081 ;;
12082
12083 aix[4-9]*)
12084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12085 test "$enable_shared" = yes && enable_static=no
12086 fi
12087 ;;
12088 esac
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12090 $as_echo "$enable_shared" >&6; }
12091
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12093 $as_echo_n "checking whether to build static libraries... " >&6; }
12094 # Make sure either enable_shared or enable_static is yes.
12095 test "$enable_shared" = yes || enable_static=yes
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12097 $as_echo "$enable_static" >&6; }
12098
12099
12100
12101
12102 fi
12103 ac_ext=c
12104 ac_cpp='$CPP $CPPFLAGS'
12105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12108
12109 CC="$lt_save_CC"
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125 ac_config_commands="$ac_config_commands libtool"
12126
12127
12128
12129
12130 # Only expand once:
12131
12132
12133
12134
12135
12136
12137
12138 if test -z "$GCC" ; then
12139 DEBUG="-g $CFLAGS"
12140 PROFILE="-g -p $CFLAGS"
12141 else
12142 DEBUG="-g -Wall -std=gnu99 $CFLAGS"
12143 PROFILE="-g -p -std=gnu99 $CFLAGS"
12144 CFLAGS="-std=gnu99 $CFLAGS"
12145 fi
12146
12147
12148
12149
12150
12151 case $host in
12152 *-*-*bsd*)
12153 dlsym_handle=0
12154 dlopen_flag="RTLD_NOW" ;;
12155 *)
12156 dlsym_handle=1
12157 dlopen_flag="RTLD_NOW" ;;
12158 esac
12159
12160
12161 cat >>confdefs.h <<_ACEOF
12162 #define DLOPEN_FLAG $dlopen_flag
12163 _ACEOF
12164
12165
12166 cat >>confdefs.h <<_ACEOF
12167 #define DLSYM_HANDLE $dlsym_handle
12168 _ACEOF
12169
12170
12171
12172 use_ltdl=no
12173
12174 # Check whether --with-ltdl was given.
12175 if test "${with_ltdl+set}" = set; then :
12176 withval=$with_ltdl; use_ltdl=$withval
12177 fi
12178
12179
12180 if test "x$use_ltdl" = xyes; then
12181 for ac_header in ltdl.h
12182 do :
12183 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
12184 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12185 cat >>confdefs.h <<_ACEOF
12186 #define HAVE_LTDL_H 1
12187 _ACEOF
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
12189 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
12190 if ${ac_cv_lib_ltdl_lt_dlopen+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-lltdl $LIBS"
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char lt_dlopen ();
12205 int
12206 main ()
12207 {
12208 return lt_dlopen ();
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"; then :
12214 ac_cv_lib_ltdl_lt_dlopen=yes
12215 else
12216 ac_cv_lib_ltdl_lt_dlopen=no
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
12223 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
12224 if test "x$ac_cv_lib_ltdl_lt_dlopen" = xyes; then :
12225 LIBADD_DL=-lltdl
12226 fi
12227
12228 fi
12229
12230 done
12231
12232 else
12233 for ac_header in mach-o/dyld.h
12234 do :
12235 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
12236 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_MACH_O_DYLD_H 1
12239 _ACEOF
12240 for ac_func in NSLinkModule
12241 do :
12242 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
12243 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_NSLINKMODULE 1
12246 _ACEOF
12247
12248 LIBADD_DL=""
12249 dlsym_prefix=_
12250
12251 fi
12252 done
12253
12254 else
12255
12256 for ac_header in dlfcn.h
12257 do :
12258 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12259 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12260 cat >>confdefs.h <<_ACEOF
12261 #define HAVE_DLFCN_H 1
12262 _ACEOF
12263
12264 fi
12265
12266 done
12267
12268 for ac_func in dlopen
12269 do :
12270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12271 if test "x$ac_cv_func_dlopen" = xyes; then :
12272 cat >>confdefs.h <<_ACEOF
12273 #define HAVE_DLOPEN 1
12274 _ACEOF
12275 LIBADD_DL=
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12279 if ${ac_cv_lib_dl_dlopen+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_check_lib_save_LIBS=$LIBS
12283 LIBS="-ldl $LIBS"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char dlopen ();
12294 int
12295 main ()
12296 {
12297 return dlopen ();
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 ac_cv_lib_dl_dlopen=yes
12304 else
12305 ac_cv_lib_dl_dlopen=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12314 LIBADD_DL=-ldl
12315 fi
12316
12317 fi
12318 done
12319
12320 fi
12321
12322 done
12323
12324 fi
12325
12326
12327 case $host in
12328 *-*-win32*)
12329 shlib_ext=.dll ;;
12330 *-*-cygwin*)
12331 shlib_ext=.dll ;;
12332 *-*-mingw32*)
12333 shlib_ext=.dll ;;
12334 *-*-darwin*)
12335 shlib_ext=.so ;;
12336 *)
12337 shlib_ext=.so ;;
12338 esac
12339
12340
12341 # Check whether --with-shlib-ext was given.
12342 if test "${with_shlib_ext+set}" = set; then :
12343 withval=$with_shlib_ext; shlib_ext=$withval
12344 fi
12345
12346
12347 # Check whether --with-dlsym-prefix was given.
12348 if test "${with_dlsym_prefix+set}" = set; then :
12349 withval=$with_dlsym_prefix; dlsym_prefix=$withval
12350 fi
12351
12352
12353
12354 cat >>confdefs.h <<_ACEOF
12355 #define DRIVER_EXT "$shlib_ext"
12356 _ACEOF
12357
12358
12359 cat >>confdefs.h <<_ACEOF
12360 #define DLSYM_PREFIX "$dlsym_prefix"
12361 _ACEOF
12362
12363
12364
12365 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "$ac_includes_default"
12366 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
12367 ac_have_decl=1
12368 else
12369 ac_have_decl=0
12370 fi
12371
12372 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_DECL_READDIR_R $ac_have_decl
12374 _ACEOF
12375 ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "$ac_includes_default"
12376 if test "x$ac_cv_have_decl_gmtime_r" = xyes; then :
12377 ac_have_decl=1
12378 else
12379 ac_have_decl=0
12380 fi
12381
12382 cat >>confdefs.h <<_ACEOF
12383 #define HAVE_DECL_GMTIME_R $ac_have_decl
12384 _ACEOF
12385 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12386 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12387 ac_have_decl=1
12388 else
12389 ac_have_decl=0
12390 fi
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_DECL_VASPRINTF $ac_have_decl
12394 _ACEOF
12395 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12396 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12397 ac_have_decl=1
12398 else
12399 ac_have_decl=0
12400 fi
12401
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_DECL_ASPRINTF $ac_have_decl
12404 _ACEOF
12405
12406 for ac_func in strtoll readdir_r gmtime_r fpathconf dirfd vasprintf
12407 do :
12408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12409 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12410 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12411 cat >>confdefs.h <<_ACEOF
12412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12413 _ACEOF
12414
12415 fi
12416 done
12417
12418 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
12419 if test "x$ac_cv_func_atoll" = xyes; then :
12420 $as_echo "#define HAVE_ATOLL 1" >>confdefs.h
12421
12422 else
12423 case " $LIBOBJS " in
12424 *" atoll.$ac_objext "* ) ;;
12425 *) LIBOBJS="$LIBOBJS atoll.$ac_objext"
12426 ;;
12427 esac
12428
12429 fi
12430
12431 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
12432 if test "x$ac_cv_func_timegm" = xyes; then :
12433 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
12434
12435 else
12436 case " $LIBOBJS " in
12437 *" timegm.$ac_objext "* ) ;;
12438 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
12439 ;;
12440 esac
12441
12442 fi
12443
12444 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
12445 if test "x$ac_cv_func_asprintf" = xyes; then :
12446 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
12447
12448 else
12449 case " $LIBOBJS " in
12450 *" asprintf.$ac_objext "* ) ;;
12451 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
12452 ;;
12453 esac
12454
12455 fi
12456
12457
12458 for ac_func in vasprintf
12459 do :
12460 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
12461 if test "x$ac_cv_func_vasprintf" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_VASPRINTF 1
12464 _ACEOF
12465
12466 fi
12467 done
12468
12469 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
12470 if test "x$ac_cv_func_asprintf" = xyes; then :
12471 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
12472
12473 else
12474 case " $LIBOBJS " in
12475 *" asprintf.$ac_objext "* ) ;;
12476 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
12477 ;;
12478 esac
12479
12480 fi
12481
12482
12483
12484
12485 for ac_header in string.h strings.h
12486 do :
12487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12490 cat >>confdefs.h <<_ACEOF
12491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12492 _ACEOF
12493
12494 fi
12495
12496 done
12497
12498
12499
12500 ac_docs="YES"
12501 # Check whether --enable-docs was given.
12502 if test "${enable_docs+set}" = set; then :
12503 enableval=$enable_docs; if test "$enable_docs" = "no"; then
12504 ac_docs="NO"
12505 fi
12506 fi
12507
12508
12509 if test "$ac_docs" = "YES"; then
12510 docs_subdirs="doc"
12511 else
12512 docs_subdirs=""
12513 fi
12514
12515
12516
12517
12518 ac_config_files="$ac_config_files include/dbi/dbi.h"
12519
12520
12521 ac_config_files="$ac_config_files libdbi.spec Makefile src/Makefile doc/Makefile include/Makefile include/dbi/Makefile dbi.pc"
12522
12523 cat >confcache <<\_ACEOF
12524 # This file is a shell script that caches the results of configure
12525 # tests run on this system so they can be shared between configure
12526 # scripts and configure runs, see configure's option --config-cache.
12527 # It is not useful on other systems. If it contains results you don't
12528 # want to keep, you may remove or edit it.
12529 #
12530 # config.status only pays attention to the cache file if you give it
12531 # the --recheck option to rerun configure.
12532 #
12533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12535 # following values.
12536
12537 _ACEOF
12538
12539 # The following way of writing the cache mishandles newlines in values,
12540 # but we know of no workaround that is simple, portable, and efficient.
12541 # So, we kill variables containing newlines.
12542 # Ultrix sh set writes to stderr and can't be redirected directly,
12543 # and sets the high bit in the cache file unless we assign to the vars.
12544 (
12545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12546 eval ac_val=\$$ac_var
12547 case $ac_val in #(
12548 *${as_nl}*)
12549 case $ac_var in #(
12550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12552 esac
12553 case $ac_var in #(
12554 _ | IFS | as_nl) ;; #(
12555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12556 *) { eval $ac_var=; unset $ac_var;} ;;
12557 esac ;;
12558 esac
12559 done
12560
12561 (set) 2>&1 |
12562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12563 *${as_nl}ac_space=\ *)
12564 # `set' does not quote correctly, so add quotes: double-quote
12565 # substitution turns \\\\ into \\, and sed turns \\ into \.
12566 sed -n \
12567 "s/'/'\\\\''/g;
12568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12569 ;; #(
12570 *)
12571 # `set' quotes correctly as required by POSIX, so do not add quotes.
12572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12573 ;;
12574 esac |
12575 sort
12576 ) |
12577 sed '
12578 /^ac_cv_env_/b end
12579 t clear
12580 :clear
12581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12582 t end
12583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12584 :end' >>confcache
12585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12586 if test -w "$cache_file"; then
12587 if test "x$cache_file" != "x/dev/null"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12589 $as_echo "$as_me: updating cache $cache_file" >&6;}
12590 if test ! -f "$cache_file" || test -h "$cache_file"; then
12591 cat confcache >"$cache_file"
12592 else
12593 case $cache_file in #(
12594 */* | ?:*)
12595 mv -f confcache "$cache_file"$$ &&
12596 mv -f "$cache_file"$$ "$cache_file" ;; #(
12597 *)
12598 mv -f confcache "$cache_file" ;;
12599 esac
12600 fi
12601 fi
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12605 fi
12606 fi
12607 rm -f confcache
12608
12609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12610 # Let make expand exec_prefix.
12611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12612
12613 DEFS=-DHAVE_CONFIG_H
12614
12615 ac_libobjs=
12616 ac_ltlibobjs=
12617 U=
12618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12619 # 1. Remove the extension, and $U if already installed.
12620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12623 # will be set to the directory where LIBOBJS objects are built.
12624 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12625 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12626 done
12627 LIBOBJS=$ac_libobjs
12628
12629 LTLIBOBJS=$ac_ltlibobjs
12630
12631
12632 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12633 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12637 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12638 if test -n "$am_sleep_pid"; then
12639 # Hide warnings about reused PIDs.
12640 wait $am_sleep_pid 2>/dev/null
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12643 $as_echo "done" >&6; }
12644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12645 as_fn_error $? "conditional \"AMDEP\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12647 fi
12648 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12649 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651 fi
12652 if test -n "$EXEEXT"; then
12653 am__EXEEXT_TRUE=
12654 am__EXEEXT_FALSE='#'
12655 else
12656 am__EXEEXT_TRUE='#'
12657 am__EXEEXT_FALSE=
12658 fi
12659
12660
12661 : "${CONFIG_STATUS=./config.status}"
12662 ac_write_fail=0
12663 ac_clean_files_save=$ac_clean_files
12664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12667 as_write_fail=0
12668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12669 #! $SHELL
12670 # Generated by $as_me.
12671 # Run this file to recreate the current configuration.
12672 # Compiler output produced by configure, useful for debugging
12673 # configure, is in config.log if it exists.
12674
12675 debug=false
12676 ac_cs_recheck=false
12677 ac_cs_silent=false
12678
12679 SHELL=\${CONFIG_SHELL-$SHELL}
12680 export SHELL
12681 _ASEOF
12682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12683 ## -------------------- ##
12684 ## M4sh Initialization. ##
12685 ## -------------------- ##
12686
12687 # Be more Bourne compatible
12688 DUALCASE=1; export DUALCASE # for MKS sh
12689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12690 emulate sh
12691 NULLCMD=:
12692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12693 # is contrary to our usage. Disable this feature.
12694 alias -g '${1+"$@"}'='"$@"'
12695 setopt NO_GLOB_SUBST
12696 else
12697 case `(set -o) 2>/dev/null` in #(
12698 *posix*) :
12699 set -o posix ;; #(
12700 *) :
12701 ;;
12702 esac
12703 fi
12704
12705
12706 as_nl='
12707 '
12708 export as_nl
12709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12713 # Prefer a ksh shell builtin over an external printf program on Solaris,
12714 # but without wasting forks for bash or zsh.
12715 if test -z "$BASH_VERSION$ZSH_VERSION" \
12716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12717 as_echo='print -r --'
12718 as_echo_n='print -rn --'
12719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12720 as_echo='printf %s\n'
12721 as_echo_n='printf %s'
12722 else
12723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12724 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12725 as_echo_n='/usr/ucb/echo -n'
12726 else
12727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12728 as_echo_n_body='eval
12729 arg=$1;
12730 case $arg in #(
12731 *"$as_nl"*)
12732 expr "X$arg" : "X\\(.*\\)$as_nl";
12733 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12734 esac;
12735 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12736 '
12737 export as_echo_n_body
12738 as_echo_n='sh -c $as_echo_n_body as_echo'
12739 fi
12740 export as_echo_body
12741 as_echo='sh -c $as_echo_body as_echo'
12742 fi
12743
12744 # The user is always right.
12745 if test "${PATH_SEPARATOR+set}" != set; then
12746 PATH_SEPARATOR=:
12747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12749 PATH_SEPARATOR=';'
12750 }
12751 fi
12752
12753
12754 # IFS
12755 # We need space, tab and new line, in precisely that order. Quoting is
12756 # there to prevent editors from complaining about space-tab.
12757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12758 # splitting by setting IFS to empty value.)
12759 IFS=" "" $as_nl"
12760
12761 # Find who we are. Look in the path if we contain no directory separator.
12762 as_myself=
12763 case $0 in #((
12764 *[\\/]* ) as_myself=$0 ;;
12765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12771 done
12772 IFS=$as_save_IFS
12773
12774 ;;
12775 esac
12776 # We did not find ourselves, most probably we were run as `sh COMMAND'
12777 # in which case we are not to be found in the path.
12778 if test "x$as_myself" = x; then
12779 as_myself=$0
12780 fi
12781 if test ! -f "$as_myself"; then
12782 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12783 exit 1
12784 fi
12785
12786 # Unset variables that we do not need and which cause bugs (e.g. in
12787 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12788 # suppresses any "Segmentation fault" message there. '((' could
12789 # trigger a bug in pdksh 5.2.14.
12790 for as_var in BASH_ENV ENV MAIL MAILPATH
12791 do eval test x\${$as_var+set} = xset \
12792 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12793 done
12794 PS1='$ '
12795 PS2='> '
12796 PS4='+ '
12797
12798 # NLS nuisances.
12799 LC_ALL=C
12800 export LC_ALL
12801 LANGUAGE=C
12802 export LANGUAGE
12803
12804 # CDPATH.
12805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12806
12807
12808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12809 # ----------------------------------------
12810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12812 # script with STATUS, using 1 if that was 0.
12813 as_fn_error ()
12814 {
12815 as_status=$1; test $as_status -eq 0 && as_status=1
12816 if test "$4"; then
12817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12818 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12819 fi
12820 $as_echo "$as_me: error: $2" >&2
12821 as_fn_exit $as_status
12822 } # as_fn_error
12823
12824
12825 # as_fn_set_status STATUS
12826 # -----------------------
12827 # Set $? to STATUS, without forking.
12828 as_fn_set_status ()
12829 {
12830 return $1
12831 } # as_fn_set_status
12832
12833 # as_fn_exit STATUS
12834 # -----------------
12835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12836 as_fn_exit ()
12837 {
12838 set +e
12839 as_fn_set_status $1
12840 exit $1
12841 } # as_fn_exit
12842
12843 # as_fn_unset VAR
12844 # ---------------
12845 # Portably unset VAR.
12846 as_fn_unset ()
12847 {
12848 { eval $1=; unset $1;}
12849 }
12850 as_unset=as_fn_unset
12851 # as_fn_append VAR VALUE
12852 # ----------------------
12853 # Append the text in VALUE to the end of the definition contained in VAR. Take
12854 # advantage of any shell optimizations that allow amortized linear growth over
12855 # repeated appends, instead of the typical quadratic growth present in naive
12856 # implementations.
12857 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12858 eval 'as_fn_append ()
12859 {
12860 eval $1+=\$2
12861 }'
12862 else
12863 as_fn_append ()
12864 {
12865 eval $1=\$$1\$2
12866 }
12867 fi # as_fn_append
12868
12869 # as_fn_arith ARG...
12870 # ------------------
12871 # Perform arithmetic evaluation on the ARGs, and store the result in the
12872 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12873 # must be portable across $(()) and expr.
12874 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12875 eval 'as_fn_arith ()
12876 {
12877 as_val=$(( $* ))
12878 }'
12879 else
12880 as_fn_arith ()
12881 {
12882 as_val=`expr "$@" || test $? -eq 1`
12883 }
12884 fi # as_fn_arith
12885
12886
12887 if expr a : '\(a\)' >/dev/null 2>&1 &&
12888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12889 as_expr=expr
12890 else
12891 as_expr=false
12892 fi
12893
12894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12895 as_basename=basename
12896 else
12897 as_basename=false
12898 fi
12899
12900 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12901 as_dirname=dirname
12902 else
12903 as_dirname=false
12904 fi
12905
12906 as_me=`$as_basename -- "$0" ||
12907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12908 X"$0" : 'X\(//\)$' \| \
12909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12910 $as_echo X/"$0" |
12911 sed '/^.*\/\([^/][^/]*\)\/*$/{
12912 s//\1/
12913 q
12914 }
12915 /^X\/\(\/\/\)$/{
12916 s//\1/
12917 q
12918 }
12919 /^X\/\(\/\).*/{
12920 s//\1/
12921 q
12922 }
12923 s/.*/./; q'`
12924
12925 # Avoid depending upon Character Ranges.
12926 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12927 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12928 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12929 as_cr_digits='0123456789'
12930 as_cr_alnum=$as_cr_Letters$as_cr_digits
12931
12932 ECHO_C= ECHO_N= ECHO_T=
12933 case `echo -n x` in #(((((
12934 -n*)
12935 case `echo 'xy\c'` in
12936 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12937 xy) ECHO_C='\c';;
12938 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12939 ECHO_T=' ';;
12940 esac;;
12941 *)
12942 ECHO_N='-n';;
12943 esac
12944
12945 rm -f conf$$ conf$$.exe conf$$.file
12946 if test -d conf$$.dir; then
12947 rm -f conf$$.dir/conf$$.file
12948 else
12949 rm -f conf$$.dir
12950 mkdir conf$$.dir 2>/dev/null
12951 fi
12952 if (echo >conf$$.file) 2>/dev/null; then
12953 if ln -s conf$$.file conf$$ 2>/dev/null; then
12954 as_ln_s='ln -s'
12955 # ... but there are two gotchas:
12956 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12957 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12958 # In both cases, we have to default to `cp -pR'.
12959 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12960 as_ln_s='cp -pR'
12961 elif ln conf$$.file conf$$ 2>/dev/null; then
12962 as_ln_s=ln
12963 else
12964 as_ln_s='cp -pR'
12965 fi
12966 else
12967 as_ln_s='cp -pR'
12968 fi
12969 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12970 rmdir conf$$.dir 2>/dev/null
12971
12972
12973 # as_fn_mkdir_p
12974 # -------------
12975 # Create "$as_dir" as a directory, including parents if necessary.
12976 as_fn_mkdir_p ()
12977 {
12978
12979 case $as_dir in #(
12980 -*) as_dir=./$as_dir;;
12981 esac
12982 test -d "$as_dir" || eval $as_mkdir_p || {
12983 as_dirs=
12984 while :; do
12985 case $as_dir in #(
12986 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12987 *) as_qdir=$as_dir;;
12988 esac
12989 as_dirs="'$as_qdir' $as_dirs"
12990 as_dir=`$as_dirname -- "$as_dir" ||
12991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992 X"$as_dir" : 'X\(//\)[^/]' \| \
12993 X"$as_dir" : 'X\(//\)$' \| \
12994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12995 $as_echo X"$as_dir" |
12996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12997 s//\1/
12998 q
12999 }
13000 /^X\(\/\/\)[^/].*/{
13001 s//\1/
13002 q
13003 }
13004 /^X\(\/\/\)$/{
13005 s//\1/
13006 q
13007 }
13008 /^X\(\/\).*/{
13009 s//\1/
13010 q
13011 }
13012 s/.*/./; q'`
13013 test -d "$as_dir" && break
13014 done
13015 test -z "$as_dirs" || eval "mkdir $as_dirs"
13016 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13017
13018
13019 } # as_fn_mkdir_p
13020 if mkdir -p . 2>/dev/null; then
13021 as_mkdir_p='mkdir -p "$as_dir"'
13022 else
13023 test -d ./-p && rmdir ./-p
13024 as_mkdir_p=false
13025 fi
13026
13027
13028 # as_fn_executable_p FILE
13029 # -----------------------
13030 # Test if FILE is an executable regular file.
13031 as_fn_executable_p ()
13032 {
13033 test -f "$1" && test -x "$1"
13034 } # as_fn_executable_p
13035 as_test_x='test -x'
13036 as_executable_p=as_fn_executable_p
13037
13038 # Sed expression to map a string onto a valid CPP name.
13039 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13040
13041 # Sed expression to map a string onto a valid variable name.
13042 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13043
13044
13045 exec 6>&1
13046 ## ----------------------------------- ##
13047 ## Main body of $CONFIG_STATUS script. ##
13048 ## ----------------------------------- ##
13049 _ASEOF
13050 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13051
13052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13053 # Save the log message, to keep $0 and so on meaningful, and to
13054 # report actual input values of CONFIG_FILES etc. instead of their
13055 # values after options handling.
13056 ac_log="
13057 This file was extended by $as_me, which was
13058 generated by GNU Autoconf 2.69. Invocation command line was
13059
13060 CONFIG_FILES = $CONFIG_FILES
13061 CONFIG_HEADERS = $CONFIG_HEADERS
13062 CONFIG_LINKS = $CONFIG_LINKS
13063 CONFIG_COMMANDS = $CONFIG_COMMANDS
13064 $ $0 $@
13065
13066 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13067 "
13068
13069 _ACEOF
13070
13071 case $ac_config_files in *"
13072 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13073 esac
13074
13075 case $ac_config_headers in *"
13076 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13077 esac
13078
13079
13080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13081 # Files that config.status was made for.
13082 config_files="$ac_config_files"
13083 config_headers="$ac_config_headers"
13084 config_commands="$ac_config_commands"
13085
13086 _ACEOF
13087
13088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13089 ac_cs_usage="\
13090 \`$as_me' instantiates files and other configuration actions
13091 from templates according to the current configuration. Unless the files
13092 and actions are specified as TAGs, all are instantiated by default.
13093
13094 Usage: $0 [OPTION]... [TAG]...
13095
13096 -h, --help print this help, then exit
13097 -V, --version print version number and configuration settings, then exit
13098 --config print configuration, then exit
13099 -q, --quiet, --silent
13100 do not print progress messages
13101 -d, --debug don't remove temporary files
13102 --recheck update $as_me by reconfiguring in the same conditions
13103 --file=FILE[:TEMPLATE]
13104 instantiate the configuration file FILE
13105 --header=FILE[:TEMPLATE]
13106 instantiate the configuration header FILE
13107
13108 Configuration files:
13109 $config_files
13110
13111 Configuration headers:
13112 $config_headers
13113
13114 Configuration commands:
13115 $config_commands
13116
13117 Report bugs to the package provider."
13118
13119 _ACEOF
13120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13121 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13122 ac_cs_version="\\
13123 config.status
13124 configured by $0, generated by GNU Autoconf 2.69,
13125 with options \\"\$ac_cs_config\\"
13126
13127 Copyright (C) 2012 Free Software Foundation, Inc.
13128 This config.status script is free software; the Free Software Foundation
13129 gives unlimited permission to copy, distribute and modify it."
13130
13131 ac_pwd='$ac_pwd'
13132 srcdir='$srcdir'
13133 INSTALL='$INSTALL'
13134 MKDIR_P='$MKDIR_P'
13135 AWK='$AWK'
13136 test -n "\$AWK" || AWK=awk
13137 _ACEOF
13138
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13140 # The default lists apply if the user does not specify any file.
13141 ac_need_defaults=:
13142 while test $# != 0
13143 do
13144 case $1 in
13145 --*=?*)
13146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13148 ac_shift=:
13149 ;;
13150 --*=)
13151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13152 ac_optarg=
13153 ac_shift=:
13154 ;;
13155 *)
13156 ac_option=$1
13157 ac_optarg=$2
13158 ac_shift=shift
13159 ;;
13160 esac
13161
13162 case $ac_option in
13163 # Handling of the options.
13164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13165 ac_cs_recheck=: ;;
13166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13167 $as_echo "$ac_cs_version"; exit ;;
13168 --config | --confi | --conf | --con | --co | --c )
13169 $as_echo "$ac_cs_config"; exit ;;
13170 --debug | --debu | --deb | --de | --d | -d )
13171 debug=: ;;
13172 --file | --fil | --fi | --f )
13173 $ac_shift
13174 case $ac_optarg in
13175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13176 '') as_fn_error $? "missing file argument" ;;
13177 esac
13178 as_fn_append CONFIG_FILES " '$ac_optarg'"
13179 ac_need_defaults=false;;
13180 --header | --heade | --head | --hea )
13181 $ac_shift
13182 case $ac_optarg in
13183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13184 esac
13185 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13186 ac_need_defaults=false;;
13187 --he | --h)
13188 # Conflict between --help and --header
13189 as_fn_error $? "ambiguous option: \`$1'
13190 Try \`$0 --help' for more information.";;
13191 --help | --hel | -h )
13192 $as_echo "$ac_cs_usage"; exit ;;
13193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13194 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13195 ac_cs_silent=: ;;
13196
13197 # This is an error.
13198 -*) as_fn_error $? "unrecognized option: \`$1'
13199 Try \`$0 --help' for more information." ;;
13200
13201 *) as_fn_append ac_config_targets " $1"
13202 ac_need_defaults=false ;;
13203
13204 esac
13205 shift
13206 done
13207
13208 ac_configure_extra_args=
13209
13210 if $ac_cs_silent; then
13211 exec 6>/dev/null
13212 ac_configure_extra_args="$ac_configure_extra_args --silent"
13213 fi
13214
13215 _ACEOF
13216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13217 if \$ac_cs_recheck; then
13218 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13219 shift
13220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13221 CONFIG_SHELL='$SHELL'
13222 export CONFIG_SHELL
13223 exec "\$@"
13224 fi
13225
13226 _ACEOF
13227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13228 exec 5>>config.log
13229 {
13230 echo
13231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13232 ## Running $as_me. ##
13233 _ASBOX
13234 $as_echo "$ac_log"
13235 } >&5
13236
13237 _ACEOF
13238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13239 #
13240 # INIT-COMMANDS
13241 #
13242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13243
13244
13245 # The HP-UX ksh and POSIX shell print the target directory to stdout
13246 # if CDPATH is set.
13247 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13248
13249 sed_quote_subst='$sed_quote_subst'
13250 double_quote_subst='$double_quote_subst'
13251 delay_variable_subst='$delay_variable_subst'
13252 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13253 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13254 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13255 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13256 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13257 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13258 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13259 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13260 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13261 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13262 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13263 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13264 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13265 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13266 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13267 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13268 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13269 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13270 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13271 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13272 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13273 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13274 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13275 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13276 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13277 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13278 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13279 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13280 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13281 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13282 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13283 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13284 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13285 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13286 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13287 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13288 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13289 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13290 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13291 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13292 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13293 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13294 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13295 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13296 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13297 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13298 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13299 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13300 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13301 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13302 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13303 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13304 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13305 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13306 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13307 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13309 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13310 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13311 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13312 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13313 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13314 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13315 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13316 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13317 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13318 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13319 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13320 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13321 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13322 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13323 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13324 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13325 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13326 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13327 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13328 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13329 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13330 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13331 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13332 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13333 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13334 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13335 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13336 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13337 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13338 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13339 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13340 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13341 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13342 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13343 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13344 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13345 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13346 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13347 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13348 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13349 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13350 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13351 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13352 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13353 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13354 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13355 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13356 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13357 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13358 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13359 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13360 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13361 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13362 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13363 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13364 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13365 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13366 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13367 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13368 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13369 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13370 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13371 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13372 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13373 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13374 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13375 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13376 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13377 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13378 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13379 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13380 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13381 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13382
13383 LTCC='$LTCC'
13384 LTCFLAGS='$LTCFLAGS'
13385 compiler='$compiler_DEFAULT'
13386
13387 # A function that is used when there is no print builtin or printf.
13388 func_fallback_echo ()
13389 {
13390 eval 'cat <<_LTECHO_EOF
13391 \$1
13392 _LTECHO_EOF'
13393 }
13394
13395 # Quote evaled strings.
13396 for var in SED \
13397 GREP \
13398 EGREP \
13399 FGREP \
13400 SHELL \
13401 ECHO \
13402 LD \
13403 PATH_SEPARATOR \
13404 NM \
13405 LN_S \
13406 lt_SP2NL \
13407 lt_NL2SP \
13408 reload_flag \
13409 OBJDUMP \
13410 deplibs_check_method \
13411 file_magic_cmd \
13412 file_magic_glob \
13413 want_nocaseglob \
13414 DLLTOOL \
13415 sharedlib_from_linklib_cmd \
13416 AR \
13417 AR_FLAGS \
13418 archiver_list_spec \
13419 STRIP \
13420 RANLIB \
13421 CC \
13422 CFLAGS \
13423 compiler \
13424 lt_cv_sys_global_symbol_pipe \
13425 lt_cv_sys_global_symbol_to_cdecl \
13426 lt_cv_sys_global_symbol_to_c_name_address \
13427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13428 nm_file_list_spec \
13429 lt_prog_compiler_no_builtin_flag \
13430 lt_prog_compiler_pic \
13431 lt_prog_compiler_wl \
13432 lt_prog_compiler_static \
13433 lt_cv_prog_compiler_c_o \
13434 need_locks \
13435 MANIFEST_TOOL \
13436 DSYMUTIL \
13437 NMEDIT \
13438 LIPO \
13439 OTOOL \
13440 OTOOL64 \
13441 shrext_cmds \
13442 export_dynamic_flag_spec \
13443 whole_archive_flag_spec \
13444 compiler_needs_object \
13445 with_gnu_ld \
13446 allow_undefined_flag \
13447 no_undefined_flag \
13448 hardcode_libdir_flag_spec \
13449 hardcode_libdir_separator \
13450 exclude_expsyms \
13451 include_expsyms \
13452 file_list_spec \
13453 variables_saved_for_relink \
13454 libname_spec \
13455 library_names_spec \
13456 soname_spec \
13457 install_override_mode \
13458 finish_eval \
13459 old_striplib \
13460 striplib; do
13461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13462 *[\\\\\\\`\\"\\\$]*)
13463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13464 ;;
13465 *)
13466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13467 ;;
13468 esac
13469 done
13470
13471 # Double-quote double-evaled strings.
13472 for var in reload_cmds \
13473 old_postinstall_cmds \
13474 old_postuninstall_cmds \
13475 old_archive_cmds \
13476 extract_expsyms_cmds \
13477 old_archive_from_new_cmds \
13478 old_archive_from_expsyms_cmds \
13479 archive_cmds \
13480 archive_expsym_cmds \
13481 module_cmds \
13482 module_expsym_cmds \
13483 export_symbols_cmds \
13484 prelink_cmds \
13485 postlink_cmds \
13486 postinstall_cmds \
13487 postuninstall_cmds \
13488 finish_cmds \
13489 sys_lib_search_path_spec \
13490 sys_lib_dlsearch_path_spec; do
13491 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13492 *[\\\\\\\`\\"\\\$]*)
13493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13494 ;;
13495 *)
13496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13497 ;;
13498 esac
13499 done
13500
13501 ac_aux_dir='$ac_aux_dir'
13502 xsi_shell='$xsi_shell'
13503 lt_shell_append='$lt_shell_append'
13504
13505 # See if we are running on zsh, and set the options which allow our
13506 # commands through without removal of \ escapes INIT.
13507 if test -n "\${ZSH_VERSION+set}" ; then
13508 setopt NO_GLOB_SUBST
13509 fi
13510
13511
13512 PACKAGE='$PACKAGE'
13513 VERSION='$VERSION'
13514 TIMESTAMP='$TIMESTAMP'
13515 RM='$RM'
13516 ofile='$ofile'
13517
13518
13519
13520
13521 _ACEOF
13522
13523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13524
13525 # Handling of arguments.
13526 for ac_config_target in $ac_config_targets
13527 do
13528 case $ac_config_target in
13529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13531 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13532 "include/dbi/dbi.h") CONFIG_FILES="$CONFIG_FILES include/dbi/dbi.h" ;;
13533 "libdbi.spec") CONFIG_FILES="$CONFIG_FILES libdbi.spec" ;;
13534 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13535 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13536 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13537 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13538 "include/dbi/Makefile") CONFIG_FILES="$CONFIG_FILES include/dbi/Makefile" ;;
13539 "dbi.pc") CONFIG_FILES="$CONFIG_FILES dbi.pc" ;;
13540
13541 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13542 esac
13543 done
13544
13545
13546 # If the user did not use the arguments to specify the items to instantiate,
13547 # then the envvar interface is used. Set only those that are not.
13548 # We use the long form for the default assignment because of an extremely
13549 # bizarre bug on SunOS 4.1.3.
13550 if $ac_need_defaults; then
13551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13554 fi
13555
13556 # Have a temporary directory for convenience. Make it in the build tree
13557 # simply because there is no reason against having it here, and in addition,
13558 # creating and moving files from /tmp can sometimes cause problems.
13559 # Hook for its removal unless debugging.
13560 # Note that there is a small window in which the directory will not be cleaned:
13561 # after its creation but before its name has been assigned to `$tmp'.
13562 $debug ||
13563 {
13564 tmp= ac_tmp=
13565 trap 'exit_status=$?
13566 : "${ac_tmp:=$tmp}"
13567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13568 ' 0
13569 trap 'as_fn_exit 1' 1 2 13 15
13570 }
13571 # Create a (secure) tmp directory for tmp files.
13572
13573 {
13574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13575 test -d "$tmp"
13576 } ||
13577 {
13578 tmp=./conf$$-$RANDOM
13579 (umask 077 && mkdir "$tmp")
13580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13581 ac_tmp=$tmp
13582
13583 # Set up the scripts for CONFIG_FILES section.
13584 # No need to generate them if there are no CONFIG_FILES.
13585 # This happens for instance with `./config.status config.h'.
13586 if test -n "$CONFIG_FILES"; then
13587
13588
13589 ac_cr=`echo X | tr X '\015'`
13590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13591 # But we know of no other shell where ac_cr would be empty at this
13592 # point, so we can use a bashism as a fallback.
13593 if test "x$ac_cr" = x; then
13594 eval ac_cr=\$\'\\r\'
13595 fi
13596 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13598 ac_cs_awk_cr='\\r'
13599 else
13600 ac_cs_awk_cr=$ac_cr
13601 fi
13602
13603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13604 _ACEOF
13605
13606
13607 {
13608 echo "cat >conf$$subs.awk <<_ACEOF" &&
13609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13610 echo "_ACEOF"
13611 } >conf$$subs.sh ||
13612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13613 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13614 ac_delim='%!_!# '
13615 for ac_last_try in false false false false false :; do
13616 . ./conf$$subs.sh ||
13617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13618
13619 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13620 if test $ac_delim_n = $ac_delim_num; then
13621 break
13622 elif $ac_last_try; then
13623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13624 else
13625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13626 fi
13627 done
13628 rm -f conf$$subs.sh
13629
13630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13632 _ACEOF
13633 sed -n '
13634 h
13635 s/^/S["/; s/!.*/"]=/
13636 p
13637 g
13638 s/^[^!]*!//
13639 :repl
13640 t repl
13641 s/'"$ac_delim"'$//
13642 t delim
13643 :nl
13644 h
13645 s/\(.\{148\}\)..*/\1/
13646 t more1
13647 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13648 p
13649 n
13650 b repl
13651 :more1
13652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13653 p
13654 g
13655 s/.\{148\}//
13656 t nl
13657 :delim
13658 h
13659 s/\(.\{148\}\)..*/\1/
13660 t more2
13661 s/["\\]/\\&/g; s/^/"/; s/$/"/
13662 p
13663 b
13664 :more2
13665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13666 p
13667 g
13668 s/.\{148\}//
13669 t delim
13670 ' <conf$$subs.awk | sed '
13671 /^[^""]/{
13672 N
13673 s/\n//
13674 }
13675 ' >>$CONFIG_STATUS || ac_write_fail=1
13676 rm -f conf$$subs.awk
13677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 _ACAWK
13679 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13680 for (key in S) S_is_set[key] = 1
13681 FS = ""
13682
13683 }
13684 {
13685 line = $ 0
13686 nfields = split(line, field, "@")
13687 substed = 0
13688 len = length(field[1])
13689 for (i = 2; i < nfields; i++) {
13690 key = field[i]
13691 keylen = length(key)
13692 if (S_is_set[key]) {
13693 value = S[key]
13694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13695 len += length(value) + length(field[++i])
13696 substed = 1
13697 } else
13698 len += 1 + keylen
13699 }
13700
13701 print line
13702 }
13703
13704 _ACAWK
13705 _ACEOF
13706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13709 else
13710 cat
13711 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13712 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13713 _ACEOF
13714
13715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13717 # trailing colons and then remove the whole line if VPATH becomes empty
13718 # (actually we leave an empty line to preserve line numbers).
13719 if test "x$srcdir" = x.; then
13720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13721 h
13722 s///
13723 s/^/:/
13724 s/[ ]*$/:/
13725 s/:\$(srcdir):/:/g
13726 s/:\${srcdir}:/:/g
13727 s/:@srcdir@:/:/g
13728 s/^:*//
13729 s/:*$//
13730 x
13731 s/\(=[ ]*\).*/\1/
13732 G
13733 s/\n//
13734 s/^[^=]*=[ ]*$//
13735 }'
13736 fi
13737
13738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13739 fi # test -n "$CONFIG_FILES"
13740
13741 # Set up the scripts for CONFIG_HEADERS section.
13742 # No need to generate them if there are no CONFIG_HEADERS.
13743 # This happens for instance with `./config.status Makefile'.
13744 if test -n "$CONFIG_HEADERS"; then
13745 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13746 BEGIN {
13747 _ACEOF
13748
13749 # Transform confdefs.h into an awk script `defines.awk', embedded as
13750 # here-document in config.status, that substitutes the proper values into
13751 # config.h.in to produce config.h.
13752
13753 # Create a delimiter string that does not exist in confdefs.h, to ease
13754 # handling of long lines.
13755 ac_delim='%!_!# '
13756 for ac_last_try in false false :; do
13757 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13758 if test -z "$ac_tt"; then
13759 break
13760 elif $ac_last_try; then
13761 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13762 else
13763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13764 fi
13765 done
13766
13767 # For the awk script, D is an array of macro values keyed by name,
13768 # likewise P contains macro parameters if any. Preserve backslash
13769 # newline sequences.
13770
13771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13772 sed -n '
13773 s/.\{148\}/&'"$ac_delim"'/g
13774 t rset
13775 :rset
13776 s/^[ ]*#[ ]*define[ ][ ]*/ /
13777 t def
13778 d
13779 :def
13780 s/\\$//
13781 t bsnl
13782 s/["\\]/\\&/g
13783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13784 D["\1"]=" \3"/p
13785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13786 d
13787 :bsnl
13788 s/["\\]/\\&/g
13789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13790 D["\1"]=" \3\\\\\\n"\\/p
13791 t cont
13792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13793 t cont
13794 d
13795 :cont
13796 n
13797 s/.\{148\}/&'"$ac_delim"'/g
13798 t clear
13799 :clear
13800 s/\\$//
13801 t bsnlc
13802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13803 d
13804 :bsnlc
13805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13806 b cont
13807 ' <confdefs.h | sed '
13808 s/'"$ac_delim"'/"\\\
13809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13810
13811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13812 for (key in D) D_is_set[key] = 1
13813 FS = ""
13814 }
13815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13816 line = \$ 0
13817 split(line, arg, " ")
13818 if (arg[1] == "#") {
13819 defundef = arg[2]
13820 mac1 = arg[3]
13821 } else {
13822 defundef = substr(arg[1], 2)
13823 mac1 = arg[2]
13824 }
13825 split(mac1, mac2, "(") #)
13826 macro = mac2[1]
13827 prefix = substr(line, 1, index(line, defundef) - 1)
13828 if (D_is_set[macro]) {
13829 # Preserve the white space surrounding the "#".
13830 print prefix "define", macro P[macro] D[macro]
13831 next
13832 } else {
13833 # Replace #undef with comments. This is necessary, for example,
13834 # in the case of _POSIX_SOURCE, which is predefined and required
13835 # on some systems where configure will not decide to define it.
13836 if (defundef == "undef") {
13837 print "/*", prefix defundef, macro, "*/"
13838 next
13839 }
13840 }
13841 }
13842 { print }
13843 _ACAWK
13844 _ACEOF
13845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13846 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13847 fi # test -n "$CONFIG_HEADERS"
13848
13849
13850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13851 shift
13852 for ac_tag
13853 do
13854 case $ac_tag in
13855 :[FHLC]) ac_mode=$ac_tag; continue;;
13856 esac
13857 case $ac_mode$ac_tag in
13858 :[FHL]*:*);;
13859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13860 :[FH]-) ac_tag=-:-;;
13861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13862 esac
13863 ac_save_IFS=$IFS
13864 IFS=:
13865 set x $ac_tag
13866 IFS=$ac_save_IFS
13867 shift
13868 ac_file=$1
13869 shift
13870
13871 case $ac_mode in
13872 :L) ac_source=$1;;
13873 :[FH])
13874 ac_file_inputs=
13875 for ac_f
13876 do
13877 case $ac_f in
13878 -) ac_f="$ac_tmp/stdin";;
13879 *) # Look for the file first in the build tree, then in the source tree
13880 # (if the path is not absolute). The absolute path cannot be DOS-style,
13881 # because $ac_f cannot contain `:'.
13882 test -f "$ac_f" ||
13883 case $ac_f in
13884 [\\/$]*) false;;
13885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13886 esac ||
13887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13888 esac
13889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13890 as_fn_append ac_file_inputs " '$ac_f'"
13891 done
13892
13893 # Let's still pretend it is `configure' which instantiates (i.e., don't
13894 # use $as_me), people would be surprised to read:
13895 # /* config.h. Generated by config.status. */
13896 configure_input='Generated from '`
13897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13898 `' by configure.'
13899 if test x"$ac_file" != x-; then
13900 configure_input="$ac_file. $configure_input"
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13902 $as_echo "$as_me: creating $ac_file" >&6;}
13903 fi
13904 # Neutralize special characters interpreted by sed in replacement strings.
13905 case $configure_input in #(
13906 *\&* | *\|* | *\\* )
13907 ac_sed_conf_input=`$as_echo "$configure_input" |
13908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13909 *) ac_sed_conf_input=$configure_input;;
13910 esac
13911
13912 case $ac_tag in
13913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13915 esac
13916 ;;
13917 esac
13918
13919 ac_dir=`$as_dirname -- "$ac_file" ||
13920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13921 X"$ac_file" : 'X\(//\)[^/]' \| \
13922 X"$ac_file" : 'X\(//\)$' \| \
13923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13924 $as_echo X"$ac_file" |
13925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13926 s//\1/
13927 q
13928 }
13929 /^X\(\/\/\)[^/].*/{
13930 s//\1/
13931 q
13932 }
13933 /^X\(\/\/\)$/{
13934 s//\1/
13935 q
13936 }
13937 /^X\(\/\).*/{
13938 s//\1/
13939 q
13940 }
13941 s/.*/./; q'`
13942 as_dir="$ac_dir"; as_fn_mkdir_p
13943 ac_builddir=.
13944
13945 case "$ac_dir" in
13946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13947 *)
13948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13949 # A ".." for each directory in $ac_dir_suffix.
13950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13951 case $ac_top_builddir_sub in
13952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13954 esac ;;
13955 esac
13956 ac_abs_top_builddir=$ac_pwd
13957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13958 # for backward compatibility:
13959 ac_top_builddir=$ac_top_build_prefix
13960
13961 case $srcdir in
13962 .) # We are building in place.
13963 ac_srcdir=.
13964 ac_top_srcdir=$ac_top_builddir_sub
13965 ac_abs_top_srcdir=$ac_pwd ;;
13966 [\\/]* | ?:[\\/]* ) # Absolute name.
13967 ac_srcdir=$srcdir$ac_dir_suffix;
13968 ac_top_srcdir=$srcdir
13969 ac_abs_top_srcdir=$srcdir ;;
13970 *) # Relative name.
13971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13972 ac_top_srcdir=$ac_top_build_prefix$srcdir
13973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13974 esac
13975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13976
13977
13978 case $ac_mode in
13979 :F)
13980 #
13981 # CONFIG_FILE
13982 #
13983
13984 case $INSTALL in
13985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13987 esac
13988 ac_MKDIR_P=$MKDIR_P
13989 case $MKDIR_P in
13990 [\\/$]* | ?:[\\/]* ) ;;
13991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13992 esac
13993 _ACEOF
13994
13995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13996 # If the template does not know about datarootdir, expand it.
13997 # FIXME: This hack should be removed a few years after 2.60.
13998 ac_datarootdir_hack=; ac_datarootdir_seen=
13999 ac_sed_dataroot='
14000 /datarootdir/ {
14001 p
14002 q
14003 }
14004 /@datadir@/p
14005 /@docdir@/p
14006 /@infodir@/p
14007 /@localedir@/p
14008 /@mandir@/p'
14009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14010 *datarootdir*) ac_datarootdir_seen=yes;;
14011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14014 _ACEOF
14015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14016 ac_datarootdir_hack='
14017 s&@datadir@&$datadir&g
14018 s&@docdir@&$docdir&g
14019 s&@infodir@&$infodir&g
14020 s&@localedir@&$localedir&g
14021 s&@mandir@&$mandir&g
14022 s&\\\${datarootdir}&$datarootdir&g' ;;
14023 esac
14024 _ACEOF
14025
14026 # Neutralize VPATH when `$srcdir' = `.'.
14027 # Shell code in configure.ac might set extrasub.
14028 # FIXME: do we really want to maintain this feature?
14029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030 ac_sed_extra="$ac_vpsub
14031 $extrasub
14032 _ACEOF
14033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14034 :t
14035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14036 s|@configure_input@|$ac_sed_conf_input|;t t
14037 s&@top_builddir@&$ac_top_builddir_sub&;t t
14038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14039 s&@srcdir@&$ac_srcdir&;t t
14040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14041 s&@top_srcdir@&$ac_top_srcdir&;t t
14042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14043 s&@builddir@&$ac_builddir&;t t
14044 s&@abs_builddir@&$ac_abs_builddir&;t t
14045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14046 s&@INSTALL@&$ac_INSTALL&;t t
14047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14048 $ac_datarootdir_hack
14049 "
14050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14051 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14052
14053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14054 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14056 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14058 which seems to be undefined. Please make sure it is defined" >&5
14059 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14060 which seems to be undefined. Please make sure it is defined" >&2;}
14061
14062 rm -f "$ac_tmp/stdin"
14063 case $ac_file in
14064 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14065 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14066 esac \
14067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14068 ;;
14069 :H)
14070 #
14071 # CONFIG_HEADER
14072 #
14073 if test x"$ac_file" != x-; then
14074 {
14075 $as_echo "/* $configure_input */" \
14076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14077 } >"$ac_tmp/config.h" \
14078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14079 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14082 else
14083 rm -f "$ac_file"
14084 mv "$ac_tmp/config.h" "$ac_file" \
14085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14086 fi
14087 else
14088 $as_echo "/* $configure_input */" \
14089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14090 || as_fn_error $? "could not create -" "$LINENO" 5
14091 fi
14092 # Compute "$ac_file"'s index in $config_headers.
14093 _am_arg="$ac_file"
14094 _am_stamp_count=1
14095 for _am_header in $config_headers :; do
14096 case $_am_header in
14097 $_am_arg | $_am_arg:* )
14098 break ;;
14099 * )
14100 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14101 esac
14102 done
14103 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14104 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14105 X"$_am_arg" : 'X\(//\)[^/]' \| \
14106 X"$_am_arg" : 'X\(//\)$' \| \
14107 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14108 $as_echo X"$_am_arg" |
14109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14110 s//\1/
14111 q
14112 }
14113 /^X\(\/\/\)[^/].*/{
14114 s//\1/
14115 q
14116 }
14117 /^X\(\/\/\)$/{
14118 s//\1/
14119 q
14120 }
14121 /^X\(\/\).*/{
14122 s//\1/
14123 q
14124 }
14125 s/.*/./; q'`/stamp-h$_am_stamp_count
14126 ;;
14127
14128 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14129 $as_echo "$as_me: executing $ac_file commands" >&6;}
14130 ;;
14131 esac
14132
14133
14134 case $ac_file$ac_mode in
14135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14136 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14137 # are listed without --file. Let's play safe and only enable the eval
14138 # if we detect the quoting.
14139 case $CONFIG_FILES in
14140 *\'*) eval set x "$CONFIG_FILES" ;;
14141 *) set x $CONFIG_FILES ;;
14142 esac
14143 shift
14144 for mf
14145 do
14146 # Strip MF so we end up with the name of the file.
14147 mf=`echo "$mf" | sed -e 's/:.*$//'`
14148 # Check whether this is an Automake generated Makefile or not.
14149 # We used to match only the files named 'Makefile.in', but
14150 # some people rename them; so instead we look at the file content.
14151 # Grep'ing the first line is not enough: some people post-process
14152 # each Makefile.in and add a new line on top of each file to say so.
14153 # Grep'ing the whole file is not good either: AIX grep has a line
14154 # limit of 2048, but all sed's we know have understand at least 4000.
14155 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14156 dirpart=`$as_dirname -- "$mf" ||
14157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14158 X"$mf" : 'X\(//\)[^/]' \| \
14159 X"$mf" : 'X\(//\)$' \| \
14160 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14161 $as_echo X"$mf" |
14162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14163 s//\1/
14164 q
14165 }
14166 /^X\(\/\/\)[^/].*/{
14167 s//\1/
14168 q
14169 }
14170 /^X\(\/\/\)$/{
14171 s//\1/
14172 q
14173 }
14174 /^X\(\/\).*/{
14175 s//\1/
14176 q
14177 }
14178 s/.*/./; q'`
14179 else
14180 continue
14181 fi
14182 # Extract the definition of DEPDIR, am__include, and am__quote
14183 # from the Makefile without running 'make'.
14184 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14185 test -z "$DEPDIR" && continue
14186 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14187 test -z "am__include" && continue
14188 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14189 # Find all dependency output files, they are included files with
14190 # $(DEPDIR) in their names. We invoke sed twice because it is the
14191 # simplest approach to changing $(DEPDIR) to its actual value in the
14192 # expansion.
14193 for file in `sed -n "
14194 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14195 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14196 # Make sure the directory exists.
14197 test -f "$dirpart/$file" && continue
14198 fdir=`$as_dirname -- "$file" ||
14199 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14200 X"$file" : 'X\(//\)[^/]' \| \
14201 X"$file" : 'X\(//\)$' \| \
14202 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14203 $as_echo X"$file" |
14204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14205 s//\1/
14206 q
14207 }
14208 /^X\(\/\/\)[^/].*/{
14209 s//\1/
14210 q
14211 }
14212 /^X\(\/\/\)$/{
14213 s//\1/
14214 q
14215 }
14216 /^X\(\/\).*/{
14217 s//\1/
14218 q
14219 }
14220 s/.*/./; q'`
14221 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14222 # echo "creating $dirpart/$file"
14223 echo '# dummy' > "$dirpart/$file"
14224 done
14225 done
14226 }
14227 ;;
14228 "libtool":C)
14229
14230 # See if we are running on zsh, and set the options which allow our
14231 # commands through without removal of \ escapes.
14232 if test -n "${ZSH_VERSION+set}" ; then
14233 setopt NO_GLOB_SUBST
14234 fi
14235
14236 cfgfile="${ofile}T"
14237 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14238 $RM "$cfgfile"
14239
14240 cat <<_LT_EOF >> "$cfgfile"
14241 #! $SHELL
14242
14243 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14244 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14247 #
14248 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14249 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14250 # Foundation, Inc.
14251 # Written by Gordon Matzigkeit, 1996
14252 #
14253 # This file is part of GNU Libtool.
14254 #
14255 # GNU Libtool is free software; you can redistribute it and/or
14256 # modify it under the terms of the GNU General Public License as
14257 # published by the Free Software Foundation; either version 2 of
14258 # the License, or (at your option) any later version.
14259 #
14260 # As a special exception to the GNU General Public License,
14261 # if you distribute this file as part of a program or library that
14262 # is built using GNU Libtool, you may include this file under the
14263 # same distribution terms that you use for the rest of that program.
14264 #
14265 # GNU Libtool is distributed in the hope that it will be useful,
14266 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14268 # GNU General Public License for more details.
14269 #
14270 # You should have received a copy of the GNU General Public License
14271 # along with GNU Libtool; see the file COPYING. If not, a copy
14272 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14273 # obtained by writing to the Free Software Foundation, Inc.,
14274 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14275
14276
14277 # The names of the tagged configurations supported by this script.
14278 available_tags=""
14279
14280 # ### BEGIN LIBTOOL CONFIG
14281
14282 # A sed program that does not truncate output.
14283 SED=$lt_SED
14284
14285 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14286 Xsed="\$SED -e 1s/^X//"
14287
14288 # A grep program that handles long lines.
14289 GREP=$lt_GREP
14290
14291 # An ERE matcher.
14292 EGREP=$lt_EGREP
14293
14294 # A literal string matcher.
14295 FGREP=$lt_FGREP
14296
14297 # Shell to use when invoking shell scripts.
14298 SHELL=$lt_SHELL
14299
14300 # An echo program that protects backslashes.
14301 ECHO=$lt_ECHO
14302
14303 # Which release of libtool.m4 was used?
14304 macro_version=$macro_version
14305 macro_revision=$macro_revision
14306
14307 # Whether or not to build shared libraries.
14308 build_libtool_libs=$enable_shared
14309
14310 # Whether or not to build static libraries.
14311 build_old_libs=$enable_static
14312
14313 # What type of objects to build.
14314 pic_mode=$pic_mode
14315
14316 # Whether or not to optimize for fast installation.
14317 fast_install=$enable_fast_install
14318
14319 # The PATH separator for the build system.
14320 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14321
14322 # The host system.
14323 host_alias=$host_alias
14324 host=$host
14325 host_os=$host_os
14326
14327 # The build system.
14328 build_alias=$build_alias
14329 build=$build
14330 build_os=$build_os
14331
14332 # A BSD- or MS-compatible name lister.
14333 NM=$lt_NM
14334
14335 # Whether we need soft or hard links.
14336 LN_S=$lt_LN_S
14337
14338 # What is the maximum length of a command?
14339 max_cmd_len=$max_cmd_len
14340
14341 # Object file suffix (normally "o").
14342 objext=$ac_objext
14343
14344 # Executable file suffix (normally "").
14345 exeext=$exeext
14346
14347 # whether the shell understands "unset".
14348 lt_unset=$lt_unset
14349
14350 # turn spaces into newlines.
14351 SP2NL=$lt_lt_SP2NL
14352
14353 # turn newlines into spaces.
14354 NL2SP=$lt_lt_NL2SP
14355
14356 # convert \$build file names to \$host format.
14357 to_host_file_cmd=$lt_cv_to_host_file_cmd
14358
14359 # convert \$build files to toolchain format.
14360 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14361
14362 # An object symbol dumper.
14363 OBJDUMP=$lt_OBJDUMP
14364
14365 # Method to check whether dependent libraries are shared objects.
14366 deplibs_check_method=$lt_deplibs_check_method
14367
14368 # Command to use when deplibs_check_method = "file_magic".
14369 file_magic_cmd=$lt_file_magic_cmd
14370
14371 # How to find potential files when deplibs_check_method = "file_magic".
14372 file_magic_glob=$lt_file_magic_glob
14373
14374 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14375 want_nocaseglob=$lt_want_nocaseglob
14376
14377 # DLL creation program.
14378 DLLTOOL=$lt_DLLTOOL
14379
14380 # Command to associate shared and link libraries.
14381 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14382
14383 # The archiver.
14384 AR=$lt_AR
14385
14386 # Flags to create an archive.
14387 AR_FLAGS=$lt_AR_FLAGS
14388
14389 # How to feed a file listing to the archiver.
14390 archiver_list_spec=$lt_archiver_list_spec
14391
14392 # A symbol stripping program.
14393 STRIP=$lt_STRIP
14394
14395 # Commands used to install an old-style archive.
14396 RANLIB=$lt_RANLIB
14397 old_postinstall_cmds=$lt_old_postinstall_cmds
14398 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14399
14400 # Whether to use a lock for old archive extraction.
14401 lock_old_archive_extraction=$lock_old_archive_extraction
14402
14403 # A C compiler.
14404 LTCC=$lt_CC
14405
14406 # LTCC compiler flags.
14407 LTCFLAGS=$lt_CFLAGS
14408
14409 # Take the output of nm and produce a listing of raw symbols and C names.
14410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14411
14412 # Transform the output of nm in a proper C declaration.
14413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14414
14415 # Transform the output of nm in a C name address pair.
14416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14417
14418 # Transform the output of nm in a C name address pair when lib prefix is needed.
14419 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14420
14421 # Specify filename containing input files for \$NM.
14422 nm_file_list_spec=$lt_nm_file_list_spec
14423
14424 # The root where to search for dependent libraries,and in which our libraries should be installed.
14425 lt_sysroot=$lt_sysroot
14426
14427 # The name of the directory that contains temporary libtool files.
14428 objdir=$objdir
14429
14430 # Used to examine libraries when file_magic_cmd begins with "file".
14431 MAGIC_CMD=$MAGIC_CMD
14432
14433 # Must we lock files when doing compilation?
14434 need_locks=$lt_need_locks
14435
14436 # Manifest tool.
14437 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14438
14439 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14440 DSYMUTIL=$lt_DSYMUTIL
14441
14442 # Tool to change global to local symbols on Mac OS X.
14443 NMEDIT=$lt_NMEDIT
14444
14445 # Tool to manipulate fat objects and archives on Mac OS X.
14446 LIPO=$lt_LIPO
14447
14448 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14449 OTOOL=$lt_OTOOL
14450
14451 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14452 OTOOL64=$lt_OTOOL64
14453
14454 # Old archive suffix (normally "a").
14455 libext=$libext
14456
14457 # Shared library suffix (normally ".so").
14458 shrext_cmds=$lt_shrext_cmds
14459
14460 # The commands to extract the exported symbol list from a shared archive.
14461 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14462
14463 # Variables whose values should be saved in libtool wrapper scripts and
14464 # restored at link time.
14465 variables_saved_for_relink=$lt_variables_saved_for_relink
14466
14467 # Do we need the "lib" prefix for modules?
14468 need_lib_prefix=$need_lib_prefix
14469
14470 # Do we need a version for libraries?
14471 need_version=$need_version
14472
14473 # Library versioning type.
14474 version_type=$version_type
14475
14476 # Shared library runtime path variable.
14477 runpath_var=$runpath_var
14478
14479 # Shared library path variable.
14480 shlibpath_var=$shlibpath_var
14481
14482 # Is shlibpath searched before the hard-coded library search path?
14483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14484
14485 # Format of library name prefix.
14486 libname_spec=$lt_libname_spec
14487
14488 # List of archive names. First name is the real one, the rest are links.
14489 # The last name is the one that the linker finds with -lNAME
14490 library_names_spec=$lt_library_names_spec
14491
14492 # The coded name of the library, if different from the real name.
14493 soname_spec=$lt_soname_spec
14494
14495 # Permission mode override for installation of shared libraries.
14496 install_override_mode=$lt_install_override_mode
14497
14498 # Command to use after installation of a shared archive.
14499 postinstall_cmds=$lt_postinstall_cmds
14500
14501 # Command to use after uninstallation of a shared archive.
14502 postuninstall_cmds=$lt_postuninstall_cmds
14503
14504 # Commands used to finish a libtool library installation in a directory.
14505 finish_cmds=$lt_finish_cmds
14506
14507 # As "finish_cmds", except a single script fragment to be evaled but
14508 # not shown.
14509 finish_eval=$lt_finish_eval
14510
14511 # Whether we should hardcode library paths into libraries.
14512 hardcode_into_libs=$hardcode_into_libs
14513
14514 # Compile-time system search path for libraries.
14515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14516
14517 # Run-time system search path for libraries.
14518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14519
14520 # Whether dlopen is supported.
14521 dlopen_support=$enable_dlopen
14522
14523 # Whether dlopen of programs is supported.
14524 dlopen_self=$enable_dlopen_self
14525
14526 # Whether dlopen of statically linked programs is supported.
14527 dlopen_self_static=$enable_dlopen_self_static
14528
14529 # Commands to strip libraries.
14530 old_striplib=$lt_old_striplib
14531 striplib=$lt_striplib
14532
14533
14534 # The linker used to build libraries.
14535 LD=$lt_LD
14536
14537 # How to create reloadable object files.
14538 reload_flag=$lt_reload_flag
14539 reload_cmds=$lt_reload_cmds
14540
14541 # Commands used to build an old-style archive.
14542 old_archive_cmds=$lt_old_archive_cmds
14543
14544 # A language specific compiler.
14545 CC=$lt_compiler
14546
14547 # Is the compiler the GNU compiler?
14548 with_gcc=$GCC
14549
14550 # Compiler flag to turn off builtin functions.
14551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14552
14553 # Additional compiler flags for building library objects.
14554 pic_flag=$lt_lt_prog_compiler_pic
14555
14556 # How to pass a linker flag through the compiler.
14557 wl=$lt_lt_prog_compiler_wl
14558
14559 # Compiler flag to prevent dynamic linking.
14560 link_static_flag=$lt_lt_prog_compiler_static
14561
14562 # Does compiler simultaneously support -c and -o options?
14563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14564
14565 # Whether or not to add -lc for building shared libraries.
14566 build_libtool_need_lc=$archive_cmds_need_lc
14567
14568 # Whether or not to disallow shared libs when runtime libs are static.
14569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14570
14571 # Compiler flag to allow reflexive dlopens.
14572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14573
14574 # Compiler flag to generate shared objects directly from archives.
14575 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14576
14577 # Whether the compiler copes with passing no objects directly.
14578 compiler_needs_object=$lt_compiler_needs_object
14579
14580 # Create an old-style archive from a shared archive.
14581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14582
14583 # Create a temporary old-style archive to link instead of a shared archive.
14584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14585
14586 # Commands used to build a shared archive.
14587 archive_cmds=$lt_archive_cmds
14588 archive_expsym_cmds=$lt_archive_expsym_cmds
14589
14590 # Commands used to build a loadable module if different from building
14591 # a shared archive.
14592 module_cmds=$lt_module_cmds
14593 module_expsym_cmds=$lt_module_expsym_cmds
14594
14595 # Whether we are building with GNU ld or not.
14596 with_gnu_ld=$lt_with_gnu_ld
14597
14598 # Flag that allows shared libraries with undefined symbols to be built.
14599 allow_undefined_flag=$lt_allow_undefined_flag
14600
14601 # Flag that enforces no undefined symbols.
14602 no_undefined_flag=$lt_no_undefined_flag
14603
14604 # Flag to hardcode \$libdir into a binary during linking.
14605 # This must work even if \$libdir does not exist
14606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14607
14608 # Whether we need a single "-rpath" flag with a separated argument.
14609 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14610
14611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14612 # DIR into the resulting binary.
14613 hardcode_direct=$hardcode_direct
14614
14615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14616 # DIR into the resulting binary and the resulting library dependency is
14617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14618 # library is relocated.
14619 hardcode_direct_absolute=$hardcode_direct_absolute
14620
14621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14622 # into the resulting binary.
14623 hardcode_minus_L=$hardcode_minus_L
14624
14625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14626 # into the resulting binary.
14627 hardcode_shlibpath_var=$hardcode_shlibpath_var
14628
14629 # Set to "yes" if building a shared library automatically hardcodes DIR
14630 # into the library and all subsequent libraries and executables linked
14631 # against it.
14632 hardcode_automatic=$hardcode_automatic
14633
14634 # Set to yes if linker adds runtime paths of dependent libraries
14635 # to runtime path list.
14636 inherit_rpath=$inherit_rpath
14637
14638 # Whether libtool must link a program against all its dependency libraries.
14639 link_all_deplibs=$link_all_deplibs
14640
14641 # Set to "yes" if exported symbols are required.
14642 always_export_symbols=$always_export_symbols
14643
14644 # The commands to list exported symbols.
14645 export_symbols_cmds=$lt_export_symbols_cmds
14646
14647 # Symbols that should not be listed in the preloaded symbols.
14648 exclude_expsyms=$lt_exclude_expsyms
14649
14650 # Symbols that must always be exported.
14651 include_expsyms=$lt_include_expsyms
14652
14653 # Commands necessary for linking programs (against libraries) with templates.
14654 prelink_cmds=$lt_prelink_cmds
14655
14656 # Commands necessary for finishing linking programs.
14657 postlink_cmds=$lt_postlink_cmds
14658
14659 # Specify filename containing input files.
14660 file_list_spec=$lt_file_list_spec
14661
14662 # How to hardcode a shared library path into an executable.
14663 hardcode_action=$hardcode_action
14664
14665 # ### END LIBTOOL CONFIG
14666
14667 _LT_EOF
14668
14669 case $host_os in
14670 aix3*)
14671 cat <<\_LT_EOF >> "$cfgfile"
14672 # AIX sometimes has problems with the GCC collect2 program. For some
14673 # reason, if we set the COLLECT_NAMES environment variable, the problems
14674 # vanish in a puff of smoke.
14675 if test "X${COLLECT_NAMES+set}" != Xset; then
14676 COLLECT_NAMES=
14677 export COLLECT_NAMES
14678 fi
14679 _LT_EOF
14680 ;;
14681 esac
14682
14683
14684 ltmain="$ac_aux_dir/ltmain.sh"
14685
14686
14687 # We use sed instead of cat because bash on DJGPP gets confused if
14688 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14689 # text mode, it properly converts lines to CR/LF. This bash problem
14690 # is reportedly fixed, but why not run on old versions too?
14691 sed '$q' "$ltmain" >> "$cfgfile" \
14692 || (rm -f "$cfgfile"; exit 1)
14693
14694 if test x"$xsi_shell" = xyes; then
14695 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14696 func_dirname ()\
14697 {\
14698 \ case ${1} in\
14699 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14700 \ * ) func_dirname_result="${3}" ;;\
14701 \ esac\
14702 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14703 && mv -f "$cfgfile.tmp" "$cfgfile" \
14704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14705 test 0 -eq $? || _lt_function_replace_fail=:
14706
14707
14708 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14709 func_basename ()\
14710 {\
14711 \ func_basename_result="${1##*/}"\
14712 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14716
14717
14718 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14719 func_dirname_and_basename ()\
14720 {\
14721 \ case ${1} in\
14722 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14723 \ * ) func_dirname_result="${3}" ;;\
14724 \ esac\
14725 \ func_basename_result="${1##*/}"\
14726 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14727 && mv -f "$cfgfile.tmp" "$cfgfile" \
14728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14729 test 0 -eq $? || _lt_function_replace_fail=:
14730
14731
14732 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14733 func_stripname ()\
14734 {\
14735 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14736 \ # positional parameters, so assign one to ordinary parameter first.\
14737 \ func_stripname_result=${3}\
14738 \ func_stripname_result=${func_stripname_result#"${1}"}\
14739 \ func_stripname_result=${func_stripname_result%"${2}"}\
14740 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14741 && mv -f "$cfgfile.tmp" "$cfgfile" \
14742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14743 test 0 -eq $? || _lt_function_replace_fail=:
14744
14745
14746 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14747 func_split_long_opt ()\
14748 {\
14749 \ func_split_long_opt_name=${1%%=*}\
14750 \ func_split_long_opt_arg=${1#*=}\
14751 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14752 && mv -f "$cfgfile.tmp" "$cfgfile" \
14753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14754 test 0 -eq $? || _lt_function_replace_fail=:
14755
14756
14757 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14758 func_split_short_opt ()\
14759 {\
14760 \ func_split_short_opt_arg=${1#??}\
14761 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14762 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14763 && mv -f "$cfgfile.tmp" "$cfgfile" \
14764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14765 test 0 -eq $? || _lt_function_replace_fail=:
14766
14767
14768 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14769 func_lo2o ()\
14770 {\
14771 \ case ${1} in\
14772 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14773 \ *) func_lo2o_result=${1} ;;\
14774 \ esac\
14775 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14776 && mv -f "$cfgfile.tmp" "$cfgfile" \
14777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14778 test 0 -eq $? || _lt_function_replace_fail=:
14779
14780
14781 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14782 func_xform ()\
14783 {\
14784 func_xform_result=${1%.*}.lo\
14785 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14786 && mv -f "$cfgfile.tmp" "$cfgfile" \
14787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14789
14790
14791 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14792 func_arith ()\
14793 {\
14794 func_arith_result=$(( $* ))\
14795 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14796 && mv -f "$cfgfile.tmp" "$cfgfile" \
14797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14798 test 0 -eq $? || _lt_function_replace_fail=:
14799
14800
14801 sed -e '/^func_len ()$/,/^} # func_len /c\
14802 func_len ()\
14803 {\
14804 func_len_result=${#1}\
14805 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14806 && mv -f "$cfgfile.tmp" "$cfgfile" \
14807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14808 test 0 -eq $? || _lt_function_replace_fail=:
14809
14810 fi
14811
14812 if test x"$lt_shell_append" = xyes; then
14813 sed -e '/^func_append ()$/,/^} # func_append /c\
14814 func_append ()\
14815 {\
14816 eval "${1}+=\\${2}"\
14817 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14818 && mv -f "$cfgfile.tmp" "$cfgfile" \
14819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14820 test 0 -eq $? || _lt_function_replace_fail=:
14821
14822
14823 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14824 func_append_quoted ()\
14825 {\
14826 \ func_quote_for_eval "${2}"\
14827 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14828 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14829 && mv -f "$cfgfile.tmp" "$cfgfile" \
14830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14831 test 0 -eq $? || _lt_function_replace_fail=:
14832
14833
14834 # Save a `func_append' function call where possible by direct use of '+='
14835 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14836 && mv -f "$cfgfile.tmp" "$cfgfile" \
14837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14838 test 0 -eq $? || _lt_function_replace_fail=:
14839 else
14840 # Save a `func_append' function call even when '+=' is not available
14841 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14842 && mv -f "$cfgfile.tmp" "$cfgfile" \
14843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14844 test 0 -eq $? || _lt_function_replace_fail=:
14845 fi
14846
14847 if test x"$_lt_function_replace_fail" = x":"; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14849 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14850 fi
14851
14852
14853 mv -f "$cfgfile" "$ofile" ||
14854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14855 chmod +x "$ofile"
14856
14857 ;;
14858
14859 esac
14860 done # for ac_tag
14861
14862
14863 as_fn_exit 0
14864 _ACEOF
14865 ac_clean_files=$ac_clean_files_save
14866
14867 test $ac_write_fail = 0 ||
14868 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14869
14870
14871 # configure is writing to config.log, and then calls config.status.
14872 # config.status does its own redirection, appending to config.log.
14873 # Unfortunately, on DOS this fails, as config.log is still kept open
14874 # by configure, so config.status won't be able to write to it; its
14875 # output is simply discarded. So we exec the FD to /dev/null,
14876 # effectively closing config.log, so it can be properly (re)opened and
14877 # appended to by config.status. When coming back to configure, we
14878 # need to make the FD available again.
14879 if test "$no_create" != yes; then
14880 ac_cs_success=:
14881 ac_config_status_args=
14882 test "$silent" = yes &&
14883 ac_config_status_args="$ac_config_status_args --quiet"
14884 exec 5>/dev/null
14885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14886 exec 5>>config.log
14887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14888 # would make configure fail if this is the last instruction.
14889 $ac_cs_success || as_fn_exit 1
14890 fi
14891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14894 fi
14895
14896