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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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/kakasi.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 LIBOBJS
636 LTLIBICONV
637 LIBICONV
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 CPP
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_maintainer_mode
753 enable_dependency_tracking
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 with_gnu_ld
759 with_sysroot
760 enable_libtool_lock
761 enable_wakatigaki
762 enable_eachyomi
763 enable_utf8
764 enable_rpath
765 with_libiconv_prefix
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *=) ac_optarg= ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 ;;
1182
1183 esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204 do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281 else
1282 ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures this package to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1370
1371 cat <<\_ACEOF
1372
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
1394 --disable-dependency-tracking speeds up one-time build
1395 --enable-dependency-tracking do not reject slow dependency extractors
1396 --enable-shared[=PKGS] build shared libraries [default=yes]
1397 --enable-static[=PKGS] build static libraries [default=yes]
1398 --enable-fast-install[=PKGS]
1399 optimize for fast installation [default=yes]
1400 --disable-libtool-lock avoid locking (might break parallel builds)
1401 --enable-wakatigaki wakatigaki default=yes
1402 --enable-eachyomi eachyomi default=yes
1403 --enable-utf8 utf8 default=yes
1404 --disable-rpath do not hardcode runtime library paths
1405
1406 Optional Packages:
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1409 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1412 --with-sysroot=DIR Search for dependent libraries within DIR
1413 (or the compiler's sysroot if not specified).
1414 --with-gnu-ld assume the C compiler uses GNU ld default=no
1415 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1416 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to the package provider.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 configure
1495 generated by GNU Autoconf 2.69
1496
1497 Copyright (C) 2012 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501 exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540 fi
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_c_try_cpp LINENO
1547 # ----------------------
1548 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_cpp ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } > conftest.i && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 }; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577 fi
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_cpp
1582
1583 # ac_fn_c_try_link LINENO
1584 # -----------------------
1585 # Try to link conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_link ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext conftest$ac_exeext
1590 if { { ac_try="$ac_link"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_link") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest$ac_exeext && {
1609 test "$cross_compiling" = yes ||
1610 test -x conftest$ac_exeext
1611 }; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618 fi
1619 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1620 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1621 # interfere with the next link command; also delete a directory that is
1622 # left behind by Apple's compiler. We do this before executing the actions.
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_link
1628
1629 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists and can be compiled using the include files in
1632 # INCLUDES, setting the cache variable VAR accordingly.
1633 ac_fn_c_check_header_compile ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 $4
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647 eval "$3=yes"
1648 else
1649 eval "$3=no"
1650 fi
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 fi
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658 } # ac_fn_c_check_header_compile
1659
1660 # ac_fn_c_try_run LINENO
1661 # ----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663 # that executables *can* be run.
1664 ac_fn_c_try_run ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1678 { { case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_try") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; }; }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: program exited with status $ac_status" >&5
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=$ac_status
1695 fi
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_run
1701
1702 # ac_fn_c_check_func LINENO FUNC VAR
1703 # ----------------------------------
1704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1705 ac_fn_c_check_func ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1717 #define $2 innocuous_$2
1718
1719 /* System header to define __stub macros and hopefully few prototypes,
1720 which can conflict with char $2 (); below.
1721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1722 <limits.h> exists even on freestanding compilers. */
1723
1724 #ifdef __STDC__
1725 # include <limits.h>
1726 #else
1727 # include <assert.h>
1728 #endif
1729
1730 #undef $2
1731
1732 /* Override any GCC internal prototype to avoid an error.
1733 Use char because int might match the return type of a GCC
1734 builtin and then its argument prototype would still apply. */
1735 #ifdef __cplusplus
1736 extern "C"
1737 #endif
1738 char $2 ();
1739 /* The GNU C library defines this for functions which it implements
1740 to always fail with ENOSYS. Some functions are actually named
1741 something starting with __ and the normal name is an alias. */
1742 #if defined __stub_$2 || defined __stub___$2
1743 choke me
1744 #endif
1745
1746 int
1747 main ()
1748 {
1749 return $2 ();
1750 ;
1751 return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_link "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext \
1760 conftest$ac_exeext conftest.$ac_ext
1761 fi
1762 eval ac_res=\$$3
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_func
1768
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if eval \${$3+:} false; then :
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787 # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797 else
1798 ac_header_compiler=no
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1803
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813 else
1814 ac_header_preproc=no
1815 fi
1816 rm -f conftest.err conftest.i conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1819
1820 # So? What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ;;
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 esac
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_header_mongrel
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1858
1859 It was created by $as_me, which was
1860 generated by GNU Autoconf 2.69. Invocation command line was
1861
1862 $ $0 $@
1863
1864 _ACEOF
1865 exec 5>>config.log
1866 {
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1871
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1880
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888
1889 _ASUNAME
1890
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 $as_echo "PATH: $as_dir"
1897 done
1898 IFS=$as_save_IFS
1899
1900 } >&5
1901
1902 cat >&5 <<_ACEOF
1903
1904
1905 ## ----------- ##
1906 ## Core tests. ##
1907 ## ----------- ##
1908
1909 _ACEOF
1910
1911
1912 # Keep a trace of the command line.
1913 # Strip out --no-create and --no-recursion so they do not pile up.
1914 # Strip out --silent because we don't want to record it for future runs.
1915 # Also quote any args containing shell meta-characters.
1916 # Make two passes to allow for proper duplicate-argument suppression.
1917 ac_configure_args=
1918 ac_configure_args0=
1919 ac_configure_args1=
1920 ac_must_keep_next=false
1921 for ac_pass in 1 2
1922 do
1923 for ac_arg
1924 do
1925 case $ac_arg in
1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1929 continue ;;
1930 *\'*)
1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 esac
1933 case $ac_pass in
1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1935 2)
1936 as_fn_append ac_configure_args1 " '$ac_arg'"
1937 if test $ac_must_keep_next = true; then
1938 ac_must_keep_next=false # Got value, back to normal.
1939 else
1940 case $ac_arg in
1941 *=* | --config-cache | -C | -disable-* | --disable-* \
1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944 | -with-* | --with-* | -without-* | --without-* | --x)
1945 case "$ac_configure_args0 " in
1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 esac
1948 ;;
1949 -* ) ac_must_keep_next=true ;;
1950 esac
1951 fi
1952 as_fn_append ac_configure_args " '$ac_arg'"
1953 ;;
1954 esac
1955 done
1956 done
1957 { ac_configure_args0=; unset ac_configure_args0;}
1958 { ac_configure_args1=; unset ac_configure_args1;}
1959
1960 # When interrupted or exit'd, cleanup temporary files, and complete
1961 # config.log. We remove comments because anyway the quotes in there
1962 # would cause problems or look ugly.
1963 # WARNING: Use '\'' to represent an apostrophe within the trap.
1964 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1965 trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1967 {
1968 echo
1969
1970 $as_echo "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1973 echo
1974 # The following way of writing the cache mishandles newlines in values,
1975 (
1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in #(
1979 *${as_nl}*)
1980 case $ac_var in #(
1981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 esac
1984 case $ac_var in #(
1985 _ | IFS | as_nl) ;; #(
1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1988 esac ;;
1989 esac
1990 done
1991 (set) 2>&1 |
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space=\ *)
1994 sed -n \
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 ;; #(
1998 *)
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000 ;;
2001 esac |
2002 sort
2003 )
2004 echo
2005
2006 $as_echo "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 $as_echo "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019
2020 if test -n "$ac_subst_files"; then
2021 $as_echo "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 $as_echo "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 $as_echo "## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##"
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 $as_echo "$as_me: caught signal $ac_signal"
2046 $as_echo "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051 ' 0
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 done
2055 ac_signal=0
2056
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2059
2060 $as_echo "/* confdefs.h */" > confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_URL "$PACKAGE_URL"
2086 _ACEOF
2087
2088
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer an explicitly selected file to automatically selected ones.
2091 ac_site_file1=NONE
2092 ac_site_file2=NONE
2093 if test -n "$CONFIG_SITE"; then
2094 # We do not want a PATH search for config.site.
2095 case $CONFIG_SITE in #((
2096 -*) ac_site_file1=./$CONFIG_SITE;;
2097 */*) ac_site_file1=$CONFIG_SITE;;
2098 *) ac_site_file1=./$CONFIG_SITE;;
2099 esac
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_file1=$prefix/share/config.site
2102 ac_site_file2=$prefix/etc/config.site
2103 else
2104 ac_site_file1=$ac_default_prefix/share/config.site
2105 ac_site_file2=$ac_default_prefix/etc/config.site
2106 fi
2107 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2108 do
2109 test "x$ac_site_file" = xNONE && continue
2110 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2113 sed 's/^/| /' "$ac_site_file" >&5
2114 . "$ac_site_file" \
2115 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117 as_fn_error $? "failed to load site script $ac_site_file
2118 See \`config.log' for more details" "$LINENO" 5; }
2119 fi
2120 done
2121
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special files
2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 $as_echo "$as_me: loading cache $cache_file" >&6;}
2128 case $cache_file in
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2131 esac
2132 fi
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 $as_echo "$as_me: creating cache $cache_file" >&6;}
2136 >$cache_file
2137 fi
2138
2139 # Check that the precious variables saved in the cache have kept the same
2140 # value.
2141 ac_cache_corrupted=false
2142 for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2148 set,)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,set)
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2186 esac
2187 fi
2188 done
2189 if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195 fi
2196 ## -------------------- ##
2197 ## Main body of script. ##
2198 ## -------------------- ##
2199
2200 ac_ext=c
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
2209 am__api_version='1.11'
2210
2211 ac_aux_dir=
2212 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2213 if test -f "$ac_dir/install-sh"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/install-sh -c"
2216 break
2217 elif test -f "$ac_dir/install.sh"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install.sh -c"
2220 break
2221 elif test -f "$ac_dir/shtool"; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/shtool install -c"
2224 break
2225 fi
2226 done
2227 if test -z "$ac_aux_dir"; then
2228 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2229 fi
2230
2231 # These three variables are undocumented and unsupported,
2232 # and are intended to be withdrawn in a future Autoconf release.
2233 # They can cause serious problems if a builder's source tree is in a directory
2234 # whose full name contains unusual characters.
2235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2238
2239
2240 # Find a good install program. We prefer a C program (faster),
2241 # so one script is as good as another. But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2246 # AIX /bin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 # Reject install programs that cannot install multiple files.
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2256 if test -z "$INSTALL"; then
2257 if ${ac_cv_path_install+:} false; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 # Account for people who put trailing slashes in PATH elements.
2266 case $as_dir/ in #((
2267 ./ | .// | /[cC]/* | \
2268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2269 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2270 /usr/ucb/* ) ;;
2271 *)
2272 # OSF1 and SCO ODT 3.0 have their own names for install.
2273 # Don't use installbsd from OSF since it installs stuff as root
2274 # by default.
2275 for ac_prog in ginstall scoinst install; do
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2278 if test $ac_prog = install &&
2279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2280 # AIX install. It has an incompatible calling convention.
2281 :
2282 elif test $ac_prog = install &&
2283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284 # program-specific install script used by HP pwplus--don't use.
2285 :
2286 else
2287 rm -rf conftest.one conftest.two conftest.dir
2288 echo one > conftest.one
2289 echo two > conftest.two
2290 mkdir conftest.dir
2291 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2292 test -s conftest.one && test -s conftest.two &&
2293 test -s conftest.dir/conftest.one &&
2294 test -s conftest.dir/conftest.two
2295 then
2296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2297 break 3
2298 fi
2299 fi
2300 fi
2301 done
2302 done
2303 ;;
2304 esac
2305
2306 done
2307 IFS=$as_save_IFS
2308
2309 rm -rf conftest.one conftest.two conftest.dir
2310
2311 fi
2312 if test "${ac_cv_path_install+set}" = set; then
2313 INSTALL=$ac_cv_path_install
2314 else
2315 # As a last resort, use the slow shell script. Don't cache a
2316 # value for INSTALL within a source directory, because that will
2317 # break other packages using the cache if that directory is
2318 # removed, or if the value is a relative name.
2319 INSTALL=$ac_install_sh
2320 fi
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2323 $as_echo "$INSTALL" >&6; }
2324
2325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2326 # It thinks the first close brace ends the variable substitution.
2327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2328
2329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2330
2331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2332
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2334 $as_echo_n "checking whether build environment is sane... " >&6; }
2335 # Just in case
2336 sleep 1
2337 echo timestamp > conftest.file
2338 # Reject unsafe characters in $srcdir or the absolute working directory
2339 # name. Accept space and tab only in the latter.
2340 am_lf='
2341 '
2342 case `pwd` in
2343 *[\\\"\#\$\&\'\`$am_lf]*)
2344 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2345 esac
2346 case $srcdir in
2347 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2348 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2349 esac
2350
2351 # Do `set' in a subshell so we don't clobber the current shell's
2352 # arguments. Must try -L first in case configure is actually a
2353 # symlink; some systems play weird games with the mod time of symlinks
2354 # (eg FreeBSD returns the mod time of the symlink's containing
2355 # directory).
2356 if (
2357 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2358 if test "$*" = "X"; then
2359 # -L didn't work.
2360 set X `ls -t "$srcdir/configure" conftest.file`
2361 fi
2362 rm -f conftest.file
2363 if test "$*" != "X $srcdir/configure conftest.file" \
2364 && test "$*" != "X conftest.file $srcdir/configure"; then
2365
2366 # If neither matched, then we have a broken ls. This can happen
2367 # if, for instance, CONFIG_SHELL is bash and it inherits a
2368 # broken ls alias from the environment. This has actually
2369 # happened. Such a system could not be considered "sane".
2370 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2371 alias in your environment" "$LINENO" 5
2372 fi
2373
2374 test "$2" = conftest.file
2375 )
2376 then
2377 # Ok.
2378 :
2379 else
2380 as_fn_error $? "newly created file is older than distributed files!
2381 Check your system clock" "$LINENO" 5
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2384 $as_echo "yes" >&6; }
2385 test "$program_prefix" != NONE &&
2386 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2387 # Use a double $ so make ignores it.
2388 test "$program_suffix" != NONE &&
2389 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2390 # Double any \ or $.
2391 # By default was `s,x,x', remove it if useless.
2392 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2393 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2394
2395 # expand $ac_aux_dir to an absolute path
2396 am_aux_dir=`cd $ac_aux_dir && pwd`
2397
2398 if test x"${MISSING+set}" != xset; then
2399 case $am_aux_dir in
2400 *\ * | *\ *)
2401 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2402 *)
2403 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2404 esac
2405 fi
2406 # Use eval to expand $SHELL
2407 if eval "$MISSING --run true"; then
2408 am_missing_run="$MISSING --run "
2409 else
2410 am_missing_run=
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2412 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2413 fi
2414
2415 if test x"${install_sh}" != xset; then
2416 case $am_aux_dir in
2417 *\ * | *\ *)
2418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2419 *)
2420 install_sh="\${SHELL} $am_aux_dir/install-sh"
2421 esac
2422 fi
2423
2424 # Installed binaries are usually stripped using `strip' when the user
2425 # run `make install-strip'. However `strip' might not be the right
2426 # tool to use in cross-compilation environments, therefore Automake
2427 # will honor the `STRIP' environment variable to overrule this program.
2428 if test "$cross_compiling" != no; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_STRIP+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 if test -n "$STRIP"; then
2438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 STRIP=$ac_cv_prog_STRIP
2458 if test -n "$STRIP"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2460 $as_echo "$STRIP" >&6; }
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2464 fi
2465
2466
2467 fi
2468 if test -z "$ac_cv_prog_STRIP"; then
2469 ac_ct_STRIP=$STRIP
2470 # Extract the first word of "strip", so it can be a program name with args.
2471 set dummy strip; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test -n "$ac_ct_STRIP"; then
2478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_ac_ct_STRIP="strip"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2498 if test -n "$ac_ct_STRIP"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2500 $as_echo "$ac_ct_STRIP" >&6; }
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2504 fi
2505
2506 if test "x$ac_ct_STRIP" = x; then
2507 STRIP=":"
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510 yes:)
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513 ac_tool_warned=yes ;;
2514 esac
2515 STRIP=$ac_ct_STRIP
2516 fi
2517 else
2518 STRIP="$ac_cv_prog_STRIP"
2519 fi
2520
2521 fi
2522 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2525 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2526 if test -z "$MKDIR_P"; then
2527 if ${ac_cv_path_mkdir+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_prog in mkdir gmkdir; do
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2538 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2539 'mkdir (GNU coreutils) '* | \
2540 'mkdir (coreutils) '* | \
2541 'mkdir (fileutils) '4.1*)
2542 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2543 break 3;;
2544 esac
2545 done
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551
2552 test -d ./--version && rmdir ./--version
2553 if test "${ac_cv_path_mkdir+set}" = set; then
2554 MKDIR_P="$ac_cv_path_mkdir -p"
2555 else
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for MKDIR_P within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 MKDIR_P="$ac_install_sh -d"
2561 fi
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2564 $as_echo "$MKDIR_P" >&6; }
2565
2566 mkdir_p="$MKDIR_P"
2567 case $mkdir_p in
2568 [\\/$]* | ?:[\\/]*) ;;
2569 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2570 esac
2571
2572 for ac_prog in gawk mawk nawk awk
2573 do
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy $ac_prog; ac_word=$2
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577 $as_echo_n "checking for $ac_word... " >&6; }
2578 if ${ac_cv_prog_AWK+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 if test -n "$AWK"; then
2582 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_AWK="$ac_prog"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 AWK=$ac_cv_prog_AWK
2602 if test -n "$AWK"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2604 $as_echo "$AWK" >&6; }
2605 else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608 fi
2609
2610
2611 test -n "$AWK" && break
2612 done
2613
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2615 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2616 set x ${MAKE-make}
2617 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2618 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 cat >conftest.make <<\_ACEOF
2622 SHELL = /bin/sh
2623 all:
2624 @echo '@@@%%%=$(MAKE)=@@@%%%'
2625 _ACEOF
2626 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2627 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2628 *@@@%%%=?*=@@@%%%*)
2629 eval ac_cv_prog_make_${ac_make}_set=yes;;
2630 *)
2631 eval ac_cv_prog_make_${ac_make}_set=no;;
2632 esac
2633 rm -f conftest.make
2634 fi
2635 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 SET_MAKE=
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 SET_MAKE="MAKE=${MAKE-make}"
2643 fi
2644
2645 rm -rf .tst 2>/dev/null
2646 mkdir .tst 2>/dev/null
2647 if test -d .tst; then
2648 am__leading_dot=.
2649 else
2650 am__leading_dot=_
2651 fi
2652 rmdir .tst 2>/dev/null
2653
2654 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2655 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2656 # is not polluted with repeated "-I."
2657 am__isrc=' -I$(srcdir)'
2658 # test to see if srcdir already configured
2659 if test -f $srcdir/config.status; then
2660 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2661 fi
2662 fi
2663
2664 # test whether we have cygpath
2665 if test -z "$CYGPATH_W"; then
2666 if (cygpath --version) >/dev/null 2>/dev/null; then
2667 CYGPATH_W='cygpath -w'
2668 else
2669 CYGPATH_W=echo
2670 fi
2671 fi
2672
2673
2674 # Define the identity of the package.
2675 PACKAGE=kakasi
2676 VERSION=2.3.6
2677
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE "$PACKAGE"
2681 _ACEOF
2682
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define VERSION "$VERSION"
2686 _ACEOF
2687
2688 # Some tools Automake needs.
2689
2690 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2691
2692
2693 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2694
2695
2696 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2697
2698
2699 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2700
2701
2702 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2703
2704 # We need awk for the "check" target. The system "awk" is bad on
2705 # some platforms.
2706 # Always define AMTAR for backward compatibility. Yes, it's still used
2707 # in the wild :-( We should find a proper way to deprecate it ...
2708 AMTAR='$${TAR-tar}'
2709
2710 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2711
2712
2713
2714
2715
2716
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2719 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2720 # Check whether --enable-maintainer-mode was given.
2721 if test "${enable_maintainer_mode+set}" = set; then :
2722 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2723 else
2724 USE_MAINTAINER_MODE=no
2725 fi
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2728 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2729 if test $USE_MAINTAINER_MODE = yes; then
2730 MAINTAINER_MODE_TRUE=
2731 MAINTAINER_MODE_FALSE='#'
2732 else
2733 MAINTAINER_MODE_TRUE='#'
2734 MAINTAINER_MODE_FALSE=
2735 fi
2736
2737 MAINT=$MAINTAINER_MODE_TRUE
2738
2739
2740
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_CC+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784 fi
2785 if test -z "$ac_cv_prog_CC"; then
2786 ac_ct_CC=$CC
2787 # Extract the first word of "gcc", so it can be a program name with args.
2788 set dummy gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_CC="gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2817 $as_echo "$ac_ct_CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 else
2835 CC="$ac_cv_prog_CC"
2836 fi
2837
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}cc; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if ${ac_cv_prog_CC+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_CC="${ac_tool_prefix}cc"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 fi
2878 fi
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2901 fi
2902 ac_cv_prog_CC="cc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 if test $ac_prog_rejected = yes; then
2911 # We found a bogon in the path, so make sure we never use it.
2912 set dummy $ac_cv_prog_CC
2913 shift
2914 if test $# != 0; then
2915 # We chose a different compiler from the bogus one.
2916 # However, it has the same basename, so the bogon will be chosen
2917 # first if we set CC to just the basename; use the full file name.
2918 shift
2919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2920 fi
2921 fi
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in cl.exe
2938 do
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 test -n "$CC" && break
2977 done
2978 fi
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl.exe
2982 do
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3013 $as_echo "$ac_ct_CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 test -n "$ac_ct_CC" && break
3021 done
3022
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 CC=$ac_ct_CC
3033 fi
3034 fi
3035
3036 fi
3037
3038
3039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error $? "no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details" "$LINENO" 5; }
3043
3044 # Provide some information about the compiler.
3045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3046 set X $ac_compile
3047 ac_compiler=$2
3048 for ac_option in --version -v -V -qversion; do
3049 { { ac_try="$ac_compiler $ac_option >&5"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3057 ac_status=$?
3058 if test -s conftest.err; then
3059 sed '10a\
3060 ... rest of stderr output deleted ...
3061 10q' conftest.err >conftest.er1
3062 cat conftest.er1 >&5
3063 fi
3064 rm -f conftest.er1 conftest.err
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 done
3068
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071
3072 int
3073 main ()
3074 {
3075
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 ac_clean_files_save=$ac_clean_files
3081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3082 # Try to create an executable without -o first, disregard a.out.
3083 # It will help us diagnose broken compilers, and finding out an intuition
3084 # of exeext.
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3086 $as_echo_n "checking whether the C compiler works... " >&6; }
3087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088
3089 # The possible output files:
3090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3091
3092 ac_rmfiles=
3093 for ac_file in $ac_files
3094 do
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3098 esac
3099 done
3100 rm -f $ac_rmfiles
3101
3102 if { { ac_try="$ac_link_default"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_link_default") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3116 # so that the user can short-circuit this test for compilers unknown to
3117 # Autoconf.
3118 for ac_file in $ac_files ''
3119 do
3120 test -f "$ac_file" || continue
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3123 ;;
3124 [ab].out )
3125 # We found the default executable, but exeext='' is most
3126 # certainly right.
3127 break;;
3128 *.* )
3129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130 then :; else
3131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 fi
3133 # We set ac_cv_exeext here because the later test for it is not
3134 # safe: cross compilers may not add the suffix if given an `-o'
3135 # argument, so we may need to know it at that point already.
3136 # Even if this section looks crufty: it has the advantage of
3137 # actually working.
3138 break;;
3139 * )
3140 break;;
3141 esac
3142 done
3143 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144
3145 else
3146 ac_file=''
3147 fi
3148 if test -z "$ac_file"; then :
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error 77 "C compiler cannot create executables
3157 See \`config.log' for more details" "$LINENO" 5; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3163 $as_echo_n "checking for C compiler default output file name... " >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3165 $as_echo "$ac_file" >&6; }
3166 ac_exeext=$ac_cv_exeext
3167
3168 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3169 ac_clean_files=$ac_clean_files_save
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3171 $as_echo_n "checking for suffix of executables... " >&6; }
3172 if { { ac_try="$ac_link"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_link") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3184 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3185 # work properly (i.e., refer to `conftest.exe'), while it won't with
3186 # `rm'.
3187 for ac_file in conftest.exe conftest conftest.*; do
3188 test -f "$ac_file" || continue
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 break;;
3193 * ) break;;
3194 esac
3195 done
3196 else
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3200 See \`config.log' for more details" "$LINENO" 5; }
3201 fi
3202 rm -f conftest conftest$ac_cv_exeext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3204 $as_echo "$ac_cv_exeext" >&6; }
3205
3206 rm -f conftest.$ac_ext
3207 EXEEXT=$ac_cv_exeext
3208 ac_exeext=$EXEEXT
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211 #include <stdio.h>
3212 int
3213 main ()
3214 {
3215 FILE *f = fopen ("conftest.out", "w");
3216 return ferror (f) || fclose (f) != 0;
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 ac_clean_files="$ac_clean_files conftest.out"
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3226 $as_echo_n "checking whether we are cross compiling... " >&6; }
3227 if test "$cross_compiling" != yes; then
3228 { { ac_try="$ac_link"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_link") 2>&5
3236 ac_status=$?
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }
3239 if { ac_try='./conftest$ac_cv_exeext'
3240 { { case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; }; then
3250 cross_compiling=no
3251 else
3252 if test "$cross_compiling" = maybe; then
3253 cross_compiling=yes
3254 else
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "cannot run C compiled programs.
3258 If you meant to cross compile, use \`--host'.
3259 See \`config.log' for more details" "$LINENO" 5; }
3260 fi
3261 fi
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3264 $as_echo "$cross_compiling" >&6; }
3265
3266 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3267 ac_clean_files=$ac_clean_files_save
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3269 $as_echo_n "checking for suffix of object files... " >&6; }
3270 if ${ac_cv_objext+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.o conftest.obj
3285 if { { ac_try="$ac_compile"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_compile") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; then :
3296 for ac_file in conftest.o conftest.obj conftest.*; do
3297 test -f "$ac_file" || continue;
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3301 break;;
3302 esac
3303 done
3304 else
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 fi
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3316 $as_echo "$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3318 ac_objext=$OBJEXT
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3320 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3321 if ${ac_cv_c_compiler_gnu+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326
3327 int
3328 main ()
3329 {
3330 #ifndef __GNUC__
3331 choke me
3332 #endif
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_compiler_gnu=yes
3340 else
3341 ac_compiler_gnu=no
3342 fi
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3345
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3348 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3349 if test $ac_compiler_gnu = yes; then
3350 GCC=yes
3351 else
3352 GCC=
3353 fi
3354 ac_test_CFLAGS=${CFLAGS+set}
3355 ac_save_CFLAGS=$CFLAGS
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3357 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3358 if ${ac_cv_prog_cc_g+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 ac_save_c_werror_flag=$ac_c_werror_flag
3362 ac_c_werror_flag=yes
3363 ac_cv_prog_cc_g=no
3364 CFLAGS="-g"
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_cv_prog_cc_g=yes
3378 else
3379 CFLAGS=""
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392
3393 else
3394 ac_c_werror_flag=$ac_save_c_werror_flag
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409 fi
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 ac_c_werror_flag=$ac_save_c_werror_flag
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3418 $as_echo "$ac_cv_prog_cc_g" >&6; }
3419 if test "$ac_test_CFLAGS" = set; then
3420 CFLAGS=$ac_save_CFLAGS
3421 elif test $ac_cv_prog_cc_g = yes; then
3422 if test "$GCC" = yes; then
3423 CFLAGS="-g -O2"
3424 else
3425 CFLAGS="-g"
3426 fi
3427 else
3428 if test "$GCC" = yes; then
3429 CFLAGS="-O2"
3430 else
3431 CFLAGS=
3432 fi
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3435 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3436 if ${ac_cv_prog_cc_c89+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 ac_cv_prog_cc_c89=no
3440 ac_save_CC=$CC
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443 #include <stdarg.h>
3444 #include <stdio.h>
3445 struct stat;
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3450 char **p;
3451 int i;
3452 {
3453 return p[i];
3454 }
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3456 {
3457 char *s;
3458 va_list v;
3459 va_start (v,p);
3460 s = g (p, va_arg (v,int));
3461 va_end (v);
3462 return s;
3463 }
3464
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
3468 as 'x'. The following induces an error, until -std is added to get
3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
3471 that's true only with -std. */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
3474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475 inside strings and character constants. */
3476 #define FOO(x) 'x'
3477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
3479 int test (int i, double x);
3480 struct s1 {int (*f) (int a);};
3481 struct s2 {int (*f) (double a);};
3482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3483 int argc;
3484 char **argv;
3485 int
3486 main ()
3487 {
3488 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 do
3496 CC="$ac_save_CC $ac_arg"
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_cv_prog_cc_c89=$ac_arg
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext
3501 test "x$ac_cv_prog_cc_c89" != "xno" && break
3502 done
3503 rm -f conftest.$ac_ext
3504 CC=$ac_save_CC
3505
3506 fi
3507 # AC_CACHE_VAL
3508 case "x$ac_cv_prog_cc_c89" in
3509 x)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3511 $as_echo "none needed" >&6; } ;;
3512 xno)
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3514 $as_echo "unsupported" >&6; } ;;
3515 *)
3516 CC="$CC $ac_cv_prog_cc_c89"
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3518 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3519 esac
3520 if test "x$ac_cv_prog_cc_c89" != xno; then :
3521
3522 fi
3523
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 DEPDIR="${am__leading_dot}deps"
3530
3531 ac_config_commands="$ac_config_commands depfiles"
3532
3533
3534 am_make=${MAKE-make}
3535 cat > confinc << 'END'
3536 am__doit:
3537 @echo this is the am__doit target
3538 .PHONY: am__doit
3539 END
3540 # If we don't find an include directive, just comment out the code.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3542 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3543 am__include="#"
3544 am__quote=
3545 _am_result=none
3546 # First try GNU make style include.
3547 echo "include confinc" > confmf
3548 # Ignore all kinds of additional output from `make'.
3549 case `$am_make -s -f confmf 2> /dev/null` in #(
3550 *the\ am__doit\ target*)
3551 am__include=include
3552 am__quote=
3553 _am_result=GNU
3554 ;;
3555 esac
3556 # Now try BSD make style include.
3557 if test "$am__include" = "#"; then
3558 echo '.include "confinc"' > confmf
3559 case `$am_make -s -f confmf 2> /dev/null` in #(
3560 *the\ am__doit\ target*)
3561 am__include=.include
3562 am__quote="\""
3563 _am_result=BSD
3564 ;;
3565 esac
3566 fi
3567
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3570 $as_echo "$_am_result" >&6; }
3571 rm -f confinc confmf
3572
3573 # Check whether --enable-dependency-tracking was given.
3574 if test "${enable_dependency_tracking+set}" = set; then :
3575 enableval=$enable_dependency_tracking;
3576 fi
3577
3578 if test "x$enable_dependency_tracking" != xno; then
3579 am_depcomp="$ac_aux_dir/depcomp"
3580 AMDEPBACKSLASH='\'
3581 am__nodep='_no'
3582 fi
3583 if test "x$enable_dependency_tracking" != xno; then
3584 AMDEP_TRUE=
3585 AMDEP_FALSE='#'
3586 else
3587 AMDEP_TRUE='#'
3588 AMDEP_FALSE=
3589 fi
3590
3591
3592
3593 depcc="$CC" am_compiler_list=
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3596 $as_echo_n "checking dependency style of $depcc... " >&6; }
3597 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3601 # We make a subdir and do the tests there. Otherwise we can end up
3602 # making bogus files that we don't know about and never remove. For
3603 # instance it was reported that on HP-UX the gcc test will end up
3604 # making a dummy file named `D' -- because `-MD' means `put the output
3605 # in D'.
3606 rm -rf conftest.dir
3607 mkdir conftest.dir
3608 # Copy depcomp to subdir because otherwise we won't find it if we're
3609 # using a relative directory.
3610 cp "$am_depcomp" conftest.dir
3611 cd conftest.dir
3612 # We will build objects and dependencies in a subdirectory because
3613 # it helps to detect inapplicable dependency modes. For instance
3614 # both Tru64's cc and ICC support -MD to output dependencies as a
3615 # side effect of compilation, but ICC will put the dependencies in
3616 # the current directory while Tru64 will put them in the object
3617 # directory.
3618 mkdir sub
3619
3620 am_cv_CC_dependencies_compiler_type=none
3621 if test "$am_compiler_list" = ""; then
3622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3623 fi
3624 am__universal=false
3625 case " $depcc " in #(
3626 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3627 esac
3628
3629 for depmode in $am_compiler_list; do
3630 # Setup a source with many dependencies, because some compilers
3631 # like to wrap large dependency lists on column 80 (with \), and
3632 # we should not choose a depcomp mode which is confused by this.
3633 #
3634 # We need to recreate these files for each test, as the compiler may
3635 # overwrite some of them when testing with obscure command lines.
3636 # This happens at least with the AIX C compiler.
3637 : > sub/conftest.c
3638 for i in 1 2 3 4 5 6; do
3639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3641 # Solaris 8's {/usr,}/bin/sh.
3642 touch sub/conftst$i.h
3643 done
3644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3645
3646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3647 # mode. It turns out that the SunPro C++ compiler does not properly
3648 # handle `-M -o', and we need to detect this. Also, some Intel
3649 # versions had trouble with output in subdirs
3650 am__obj=sub/conftest.${OBJEXT-o}
3651 am__minus_obj="-o $am__obj"
3652 case $depmode in
3653 gcc)
3654 # This depmode causes a compiler race in universal mode.
3655 test "$am__universal" = false || continue
3656 ;;
3657 nosideeffect)
3658 # after this tag, mechanisms are not by side-effect, so they'll
3659 # only be used when explicitly requested
3660 if test "x$enable_dependency_tracking" = xyes; then
3661 continue
3662 else
3663 break
3664 fi
3665 ;;
3666 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3667 # This compiler won't grok `-c -o', but also, the minuso test has
3668 # not run yet. These depmodes are late enough in the game, and
3669 # so weak that their functioning should not be impacted.
3670 am__obj=conftest.${OBJEXT-o}
3671 am__minus_obj=
3672 ;;
3673 none) break ;;
3674 esac
3675 if depmode=$depmode \
3676 source=sub/conftest.c object=$am__obj \
3677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3679 >/dev/null 2>conftest.err &&
3680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3684 # icc doesn't choke on unknown options, it will just issue warnings
3685 # or remarks (even with -Werror). So we grep stderr for any message
3686 # that says an option was ignored or not supported.
3687 # When given -MP, icc 7.0 and 7.1 complain thusly:
3688 # icc: Command line warning: ignoring option '-M'; no argument required
3689 # The diagnosis changed in icc 8.0:
3690 # icc: Command line remark: option '-MP' not supported
3691 if (grep 'ignoring option' conftest.err ||
3692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3693 am_cv_CC_dependencies_compiler_type=$depmode
3694 break
3695 fi
3696 fi
3697 done
3698
3699 cd ..
3700 rm -rf conftest.dir
3701 else
3702 am_cv_CC_dependencies_compiler_type=none
3703 fi
3704
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3707 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3708 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3709
3710 if
3711 test "x$enable_dependency_tracking" != xno \
3712 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3713 am__fastdepCC_TRUE=
3714 am__fastdepCC_FALSE='#'
3715 else
3716 am__fastdepCC_TRUE='#'
3717 am__fastdepCC_FALSE=
3718 fi
3719
3720
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3728 # On Suns, sometimes $CPP names a directory.
3729 if test -n "$CPP" && test -d "$CPP"; then
3730 CPP=
3731 fi
3732 if test -z "$CPP"; then
3733 if ${ac_cv_prog_CPP+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 # Double quotes because CPP needs to be expanded
3737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3738 do
3739 ac_preproc_ok=false
3740 for ac_c_preproc_warn_flag in '' yes
3741 do
3742 # Use a header file that comes with gcc, so configuring glibc
3743 # with a fresh cross-compiler works.
3744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3745 # <limits.h> exists even on freestanding compilers.
3746 # On the NeXT, cc -E runs the code through the compiler's parser,
3747 # not just through cpp. "Syntax error" is here to catch this case.
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #ifdef __STDC__
3751 # include <limits.h>
3752 #else
3753 # include <assert.h>
3754 #endif
3755 Syntax error
3756 _ACEOF
3757 if ac_fn_c_try_cpp "$LINENO"; then :
3758
3759 else
3760 # Broken: fails on valid input.
3761 continue
3762 fi
3763 rm -f conftest.err conftest.i conftest.$ac_ext
3764
3765 # OK, works on sane cases. Now check whether nonexistent headers
3766 # can be detected and how.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #include <ac_nonexistent.h>
3770 _ACEOF
3771 if ac_fn_c_try_cpp "$LINENO"; then :
3772 # Broken: success on invalid input.
3773 continue
3774 else
3775 # Passes both tests.
3776 ac_preproc_ok=:
3777 break
3778 fi
3779 rm -f conftest.err conftest.i conftest.$ac_ext
3780
3781 done
3782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3783 rm -f conftest.i conftest.err conftest.$ac_ext
3784 if $ac_preproc_ok; then :
3785 break
3786 fi
3787
3788 done
3789 ac_cv_prog_CPP=$CPP
3790
3791 fi
3792 CPP=$ac_cv_prog_CPP
3793 else
3794 ac_cv_prog_CPP=$CPP
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3797 $as_echo "$CPP" >&6; }
3798 ac_preproc_ok=false
3799 for ac_c_preproc_warn_flag in '' yes
3800 do
3801 # Use a header file that comes with gcc, so configuring glibc
3802 # with a fresh cross-compiler works.
3803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3804 # <limits.h> exists even on freestanding compilers.
3805 # On the NeXT, cc -E runs the code through the compiler's parser,
3806 # not just through cpp. "Syntax error" is here to catch this case.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809 #ifdef __STDC__
3810 # include <limits.h>
3811 #else
3812 # include <assert.h>
3813 #endif
3814 Syntax error
3815 _ACEOF
3816 if ac_fn_c_try_cpp "$LINENO"; then :
3817
3818 else
3819 # Broken: fails on valid input.
3820 continue
3821 fi
3822 rm -f conftest.err conftest.i conftest.$ac_ext
3823
3824 # OK, works on sane cases. Now check whether nonexistent headers
3825 # can be detected and how.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #include <ac_nonexistent.h>
3829 _ACEOF
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3831 # Broken: success on invalid input.
3832 continue
3833 else
3834 # Passes both tests.
3835 ac_preproc_ok=:
3836 break
3837 fi
3838 rm -f conftest.err conftest.i conftest.$ac_ext
3839
3840 done
3841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3842 rm -f conftest.i conftest.err conftest.$ac_ext
3843 if $ac_preproc_ok; then :
3844
3845 else
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3849 See \`config.log' for more details" "$LINENO" 5; }
3850 fi
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3860 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3861 set x ${MAKE-make}
3862 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3863 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 cat >conftest.make <<\_ACEOF
3867 SHELL = /bin/sh
3868 all:
3869 @echo '@@@%%%=$(MAKE)=@@@%%%'
3870 _ACEOF
3871 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3872 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3873 *@@@%%%=?*=@@@%%%*)
3874 eval ac_cv_prog_make_${ac_make}_set=yes;;
3875 *)
3876 eval ac_cv_prog_make_${ac_make}_set=no;;
3877 esac
3878 rm -f conftest.make
3879 fi
3880 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3883 SET_MAKE=
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 SET_MAKE="MAKE=${MAKE-make}"
3888 fi
3889
3890
3891
3892
3893
3894
3895
3896 case `pwd` in
3897 *\ * | *\ *)
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3899 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3900 esac
3901
3902
3903
3904 macro_version='2.4.2'
3905 macro_revision='1.3337'
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919 ltmain="$ac_aux_dir/ltmain.sh"
3920
3921 # Make sure we can run config.sub.
3922 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3923 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3924
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3926 $as_echo_n "checking build system type... " >&6; }
3927 if ${ac_cv_build+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 ac_build_alias=$build_alias
3931 test "x$ac_build_alias" = x &&
3932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3933 test "x$ac_build_alias" = x &&
3934 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3935 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3936 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3937
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3940 $as_echo "$ac_cv_build" >&6; }
3941 case $ac_cv_build in
3942 *-*-*) ;;
3943 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3944 esac
3945 build=$ac_cv_build
3946 ac_save_IFS=$IFS; IFS='-'
3947 set x $ac_cv_build
3948 shift
3949 build_cpu=$1
3950 build_vendor=$2
3951 shift; shift
3952 # Remember, the first character of IFS is used to create $*,
3953 # except with old shells:
3954 build_os=$*
3955 IFS=$ac_save_IFS
3956 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3957
3958
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3960 $as_echo_n "checking host system type... " >&6; }
3961 if ${ac_cv_host+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test "x$host_alias" = x; then
3965 ac_cv_host=$ac_cv_build
3966 else
3967 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3968 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3969 fi
3970
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3973 $as_echo "$ac_cv_host" >&6; }
3974 case $ac_cv_host in
3975 *-*-*) ;;
3976 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3977 esac
3978 host=$ac_cv_host
3979 ac_save_IFS=$IFS; IFS='-'
3980 set x $ac_cv_host
3981 shift
3982 host_cpu=$1
3983 host_vendor=$2
3984 shift; shift
3985 # Remember, the first character of IFS is used to create $*,
3986 # except with old shells:
3987 host_os=$*
3988 IFS=$ac_save_IFS
3989 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3990
3991
3992 # Backslashify metacharacters that are still active within
3993 # double-quoted strings.
3994 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3995
3996 # Same as above, but do not quote variable references.
3997 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3998
3999 # Sed substitution to delay expansion of an escaped shell variable in a
4000 # double_quote_subst'ed string.
4001 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4002
4003 # Sed substitution to delay expansion of an escaped single quote.
4004 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4005
4006 # Sed substitution to avoid accidental globbing in evaled expressions
4007 no_glob_subst='s/\*/\\\*/g'
4008
4009 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4010 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4011 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4014 $as_echo_n "checking how to print strings... " >&6; }
4015 # Test print first, because it will be a builtin if present.
4016 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4017 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4018 ECHO='print -r --'
4019 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4020 ECHO='printf %s\n'
4021 else
4022 # Use this function as a fallback that always works.
4023 func_fallback_echo ()
4024 {
4025 eval 'cat <<_LTECHO_EOF
4026 $1
4027 _LTECHO_EOF'
4028 }
4029 ECHO='func_fallback_echo'
4030 fi
4031
4032 # func_echo_all arg...
4033 # Invoke $ECHO with all args, space-separated.
4034 func_echo_all ()
4035 {
4036 $ECHO ""
4037 }
4038
4039 case "$ECHO" in
4040 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4041 $as_echo "printf" >&6; } ;;
4042 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4043 $as_echo "print -r" >&6; } ;;
4044 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4045 $as_echo "cat" >&6; } ;;
4046 esac
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4062 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4063 if ${ac_cv_path_SED+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4067 for ac_i in 1 2 3 4 5 6 7; do
4068 ac_script="$ac_script$as_nl$ac_script"
4069 done
4070 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4071 { ac_script=; unset ac_script;}
4072 if test -z "$SED"; then
4073 ac_path_SED_found=false
4074 # Loop through the user's path and test for each of PROGNAME-LIST
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_prog in sed gsed; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4083 as_fn_executable_p "$ac_path_SED" || continue
4084 # Check for GNU ac_path_SED and select it if it is found.
4085 # Check for GNU $ac_path_SED
4086 case `"$ac_path_SED" --version 2>&1` in
4087 *GNU*)
4088 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4089 *)
4090 ac_count=0
4091 $as_echo_n 0123456789 >"conftest.in"
4092 while :
4093 do
4094 cat "conftest.in" "conftest.in" >"conftest.tmp"
4095 mv "conftest.tmp" "conftest.in"
4096 cp "conftest.in" "conftest.nl"
4097 $as_echo '' >> "conftest.nl"
4098 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100 as_fn_arith $ac_count + 1 && ac_count=$as_val
4101 if test $ac_count -gt ${ac_path_SED_max-0}; then
4102 # Best one so far, save it but keep looking for a better one
4103 ac_cv_path_SED="$ac_path_SED"
4104 ac_path_SED_max=$ac_count
4105 fi
4106 # 10*(2^10) chars as input seems more than enough
4107 test $ac_count -gt 10 && break
4108 done
4109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 esac
4111
4112 $ac_path_SED_found && break 3
4113 done
4114 done
4115 done
4116 IFS=$as_save_IFS
4117 if test -z "$ac_cv_path_SED"; then
4118 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4119 fi
4120 else
4121 ac_cv_path_SED=$SED
4122 fi
4123
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4126 $as_echo "$ac_cv_path_SED" >&6; }
4127 SED="$ac_cv_path_SED"
4128 rm -f conftest.sed
4129
4130 test -z "$SED" && SED=sed
4131 Xsed="$SED -e 1s/^X//"
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4145 if ${ac_cv_path_GREP+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$GREP"; then
4149 ac_path_GREP_found=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in grep ggrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4159 as_fn_executable_p "$ac_path_GREP" || continue
4160 # Check for GNU ac_path_GREP and select it if it is found.
4161 # Check for GNU $ac_path_GREP
4162 case `"$ac_path_GREP" --version 2>&1` in
4163 *GNU*)
4164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4165 *)
4166 ac_count=0
4167 $as_echo_n 0123456789 >"conftest.in"
4168 while :
4169 do
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 $as_echo 'GREP' >> "conftest.nl"
4174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 as_fn_arith $ac_count + 1 && ac_count=$as_val
4177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_GREP="$ac_path_GREP"
4180 ac_path_GREP_max=$ac_count
4181 fi
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4187
4188 $ac_path_GREP_found && break 3
4189 done
4190 done
4191 done
4192 IFS=$as_save_IFS
4193 if test -z "$ac_cv_path_GREP"; then
4194 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195 fi
4196 else
4197 ac_cv_path_GREP=$GREP
4198 fi
4199
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4202 $as_echo "$ac_cv_path_GREP" >&6; }
4203 GREP="$ac_cv_path_GREP"
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4207 $as_echo_n "checking for egrep... " >&6; }
4208 if ${ac_cv_path_EGREP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212 then ac_cv_path_EGREP="$GREP -E"
4213 else
4214 if test -z "$EGREP"; then
4215 ac_path_EGREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in egrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4225 as_fn_executable_p "$ac_path_EGREP" || continue
4226 # Check for GNU ac_path_EGREP and select it if it is found.
4227 # Check for GNU $ac_path_EGREP
4228 case `"$ac_path_EGREP" --version 2>&1` in
4229 *GNU*)
4230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4231 *)
4232 ac_count=0
4233 $as_echo_n 0123456789 >"conftest.in"
4234 while :
4235 do
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'EGREP' >> "conftest.nl"
4240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_EGREP="$ac_path_EGREP"
4246 ac_path_EGREP_max=$ac_count
4247 fi
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4250 done
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4253
4254 $ac_path_EGREP_found && break 3
4255 done
4256 done
4257 done
4258 IFS=$as_save_IFS
4259 if test -z "$ac_cv_path_EGREP"; then
4260 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261 fi
4262 else
4263 ac_cv_path_EGREP=$EGREP
4264 fi
4265
4266 fi
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4269 $as_echo "$ac_cv_path_EGREP" >&6; }
4270 EGREP="$ac_cv_path_EGREP"
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4274 $as_echo_n "checking for fgrep... " >&6; }
4275 if ${ac_cv_path_FGREP+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4279 then ac_cv_path_FGREP="$GREP -F"
4280 else
4281 if test -z "$FGREP"; then
4282 ac_path_FGREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in fgrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4292 as_fn_executable_p "$ac_path_FGREP" || continue
4293 # Check for GNU ac_path_FGREP and select it if it is found.
4294 # Check for GNU $ac_path_FGREP
4295 case `"$ac_path_FGREP" --version 2>&1` in
4296 *GNU*)
4297 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4298 *)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'FGREP' >> "conftest.nl"
4307 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 as_fn_arith $ac_count + 1 && ac_count=$as_val
4310 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_FGREP="$ac_path_FGREP"
4313 ac_path_FGREP_max=$ac_count
4314 fi
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321 $ac_path_FGREP_found && break 3
4322 done
4323 done
4324 done
4325 IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_FGREP"; then
4327 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4328 fi
4329 else
4330 ac_cv_path_FGREP=$FGREP
4331 fi
4332
4333 fi
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4336 $as_echo "$ac_cv_path_FGREP" >&6; }
4337 FGREP="$ac_cv_path_FGREP"
4338
4339
4340 test -z "$GREP" && GREP=grep
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360 # Check whether --with-gnu-ld was given.
4361 if test "${with_gnu_ld+set}" = set; then :
4362 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4363 else
4364 with_gnu_ld=no
4365 fi
4366
4367 ac_prog=ld
4368 if test "$GCC" = yes; then
4369 # Check if gcc -print-prog-name=ld gives a path.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4371 $as_echo_n "checking for ld used by $CC... " >&6; }
4372 case $host in
4373 *-*-mingw*)
4374 # gcc leaves a trailing carriage return which upsets mingw
4375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4376 *)
4377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4378 esac
4379 case $ac_prog in
4380 # Accept absolute paths.
4381 [\\/]* | ?:[\\/]*)
4382 re_direlt='/[^/][^/]*/\.\./'
4383 # Canonicalize the pathname of ld
4384 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4385 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4386 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4387 done
4388 test -z "$LD" && LD="$ac_prog"
4389 ;;
4390 "")
4391 # If it fails, then pretend we aren't using GCC.
4392 ac_prog=ld
4393 ;;
4394 *)
4395 # If it is relative, then search for the first ld in PATH.
4396 with_gnu_ld=unknown
4397 ;;
4398 esac
4399 elif test "$with_gnu_ld" = yes; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4401 $as_echo_n "checking for GNU ld... " >&6; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4404 $as_echo_n "checking for non-GNU ld... " >&6; }
4405 fi
4406 if ${lt_cv_path_LD+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -z "$LD"; then
4410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4411 for ac_dir in $PATH; do
4412 IFS="$lt_save_ifs"
4413 test -z "$ac_dir" && ac_dir=.
4414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4415 lt_cv_path_LD="$ac_dir/$ac_prog"
4416 # Check to see if the program is GNU ld. I'd rather use --version,
4417 # but apparently some variants of GNU ld only accept -v.
4418 # Break only if it was the GNU/non-GNU ld that we prefer.
4419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4420 *GNU* | *'with BFD'*)
4421 test "$with_gnu_ld" != no && break
4422 ;;
4423 *)
4424 test "$with_gnu_ld" != yes && break
4425 ;;
4426 esac
4427 fi
4428 done
4429 IFS="$lt_save_ifs"
4430 else
4431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4432 fi
4433 fi
4434
4435 LD="$lt_cv_path_LD"
4436 if test -n "$LD"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4438 $as_echo "$LD" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4446 if ${lt_cv_prog_gnu_ld+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4450 case `$LD -v 2>&1 </dev/null` in
4451 *GNU* | *'with BFD'*)
4452 lt_cv_prog_gnu_ld=yes
4453 ;;
4454 *)
4455 lt_cv_prog_gnu_ld=no
4456 ;;
4457 esac
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4460 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4461 with_gnu_ld=$lt_cv_prog_gnu_ld
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4472 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4473 if ${lt_cv_path_NM+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$NM"; then
4477 # Let the user override the test.
4478 lt_cv_path_NM="$NM"
4479 else
4480 lt_nm_to_check="${ac_tool_prefix}nm"
4481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4482 lt_nm_to_check="$lt_nm_to_check nm"
4483 fi
4484 for lt_tmp_nm in $lt_nm_to_check; do
4485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4487 IFS="$lt_save_ifs"
4488 test -z "$ac_dir" && ac_dir=.
4489 tmp_nm="$ac_dir/$lt_tmp_nm"
4490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4491 # Check to see if the nm accepts a BSD-compat flag.
4492 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4493 # nm: unknown option "B" ignored
4494 # Tru64's nm complains that /dev/null is an invalid object file
4495 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4496 */dev/null* | *'Invalid file or object type'*)
4497 lt_cv_path_NM="$tmp_nm -B"
4498 break
4499 ;;
4500 *)
4501 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4502 */dev/null*)
4503 lt_cv_path_NM="$tmp_nm -p"
4504 break
4505 ;;
4506 *)
4507 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4508 continue # so that we can try to find one that supports BSD flags
4509 ;;
4510 esac
4511 ;;
4512 esac
4513 fi
4514 done
4515 IFS="$lt_save_ifs"
4516 done
4517 : ${lt_cv_path_NM=no}
4518 fi
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4521 $as_echo "$lt_cv_path_NM" >&6; }
4522 if test "$lt_cv_path_NM" != "no"; then
4523 NM="$lt_cv_path_NM"
4524 else
4525 # Didn't find any BSD compatible name lister, look for dumpbin.
4526 if test -n "$DUMPBIN"; then :
4527 # Let the user override the test.
4528 else
4529 if test -n "$ac_tool_prefix"; then
4530 for ac_prog in dumpbin "link -dump"
4531 do
4532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_DUMPBIN+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$DUMPBIN"; then
4540 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553 done
4554 done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 DUMPBIN=$ac_cv_prog_DUMPBIN
4560 if test -n "$DUMPBIN"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4562 $as_echo "$DUMPBIN" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567
4568
4569 test -n "$DUMPBIN" && break
4570 done
4571 fi
4572 if test -z "$DUMPBIN"; then
4573 ac_ct_DUMPBIN=$DUMPBIN
4574 for ac_prog in dumpbin "link -dump"
4575 do
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$ac_ct_DUMPBIN"; then
4584 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4604 if test -n "$ac_ct_DUMPBIN"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4606 $as_echo "$ac_ct_DUMPBIN" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612
4613 test -n "$ac_ct_DUMPBIN" && break
4614 done
4615
4616 if test "x$ac_ct_DUMPBIN" = x; then
4617 DUMPBIN=":"
4618 else
4619 case $cross_compiling:$ac_tool_warned in
4620 yes:)
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623 ac_tool_warned=yes ;;
4624 esac
4625 DUMPBIN=$ac_ct_DUMPBIN
4626 fi
4627 fi
4628
4629 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4630 *COFF*)
4631 DUMPBIN="$DUMPBIN -symbols"
4632 ;;
4633 *)
4634 DUMPBIN=:
4635 ;;
4636 esac
4637 fi
4638
4639 if test "$DUMPBIN" != ":"; then
4640 NM="$DUMPBIN"
4641 fi
4642 fi
4643 test -z "$NM" && NM=nm
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4651 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4652 if ${lt_cv_nm_interface+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 lt_cv_nm_interface="BSD nm"
4656 echo "int some_variable = 0;" > conftest.$ac_ext
4657 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4658 (eval "$ac_compile" 2>conftest.err)
4659 cat conftest.err >&5
4660 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4661 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4662 cat conftest.err >&5
4663 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4664 cat conftest.out >&5
4665 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4666 lt_cv_nm_interface="MS dumpbin"
4667 fi
4668 rm -f conftest*
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4671 $as_echo "$lt_cv_nm_interface" >&6; }
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4674 $as_echo_n "checking whether ln -s works... " >&6; }
4675 LN_S=$as_ln_s
4676 if test "$LN_S" = "ln -s"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4678 $as_echo "yes" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4681 $as_echo "no, using $LN_S" >&6; }
4682 fi
4683
4684 # find the maximum length of command line arguments
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4686 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4687 if ${lt_cv_sys_max_cmd_len+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 i=0
4691 teststring="ABCD"
4692
4693 case $build_os in
4694 msdosdjgpp*)
4695 # On DJGPP, this test can blow up pretty badly due to problems in libc
4696 # (any single argument exceeding 2000 bytes causes a buffer overrun
4697 # during glob expansion). Even if it were fixed, the result of this
4698 # check would be larger than it should be.
4699 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4700 ;;
4701
4702 gnu*)
4703 # Under GNU Hurd, this test is not required because there is
4704 # no limit to the length of command line arguments.
4705 # Libtool will interpret -1 as no limit whatsoever
4706 lt_cv_sys_max_cmd_len=-1;
4707 ;;
4708
4709 cygwin* | mingw* | cegcc*)
4710 # On Win9x/ME, this test blows up -- it succeeds, but takes
4711 # about 5 minutes as the teststring grows exponentially.
4712 # Worse, since 9x/ME are not pre-emptively multitasking,
4713 # you end up with a "frozen" computer, even though with patience
4714 # the test eventually succeeds (with a max line length of 256k).
4715 # Instead, let's just punt: use the minimum linelength reported by
4716 # all of the supported platforms: 8192 (on NT/2K/XP).
4717 lt_cv_sys_max_cmd_len=8192;
4718 ;;
4719
4720 mint*)
4721 # On MiNT this can take a long time and run out of memory.
4722 lt_cv_sys_max_cmd_len=8192;
4723 ;;
4724
4725 amigaos*)
4726 # On AmigaOS with pdksh, this test takes hours, literally.
4727 # So we just punt and use a minimum line length of 8192.
4728 lt_cv_sys_max_cmd_len=8192;
4729 ;;
4730
4731 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4732 # This has been around since 386BSD, at least. Likely further.
4733 if test -x /sbin/sysctl; then
4734 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4735 elif test -x /usr/sbin/sysctl; then
4736 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4737 else
4738 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4739 fi
4740 # And add a safety zone
4741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4743 ;;
4744
4745 interix*)
4746 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4747 lt_cv_sys_max_cmd_len=196608
4748 ;;
4749
4750 os2*)
4751 # The test takes a long time on OS/2.
4752 lt_cv_sys_max_cmd_len=8192
4753 ;;
4754
4755 osf*)
4756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4758 # nice to cause kernel panics so lets avoid the loop below.
4759 # First set a reasonable default.
4760 lt_cv_sys_max_cmd_len=16384
4761 #
4762 if test -x /sbin/sysconfig; then
4763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4764 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4765 esac
4766 fi
4767 ;;
4768 sco3.2v5*)
4769 lt_cv_sys_max_cmd_len=102400
4770 ;;
4771 sysv5* | sco5v6* | sysv4.2uw2*)
4772 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4773 if test -n "$kargmax"; then
4774 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4775 else
4776 lt_cv_sys_max_cmd_len=32768
4777 fi
4778 ;;
4779 *)
4780 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4781 if test -n "$lt_cv_sys_max_cmd_len"; then
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4784 else
4785 # Make teststring a little bigger before we do anything with it.
4786 # a 1K string should be a reasonable start.
4787 for i in 1 2 3 4 5 6 7 8 ; do
4788 teststring=$teststring$teststring
4789 done
4790 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4791 # If test is not a shell built-in, we'll probably end up computing a
4792 # maximum length that is only half of the actual maximum length, but
4793 # we can't tell.
4794 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4795 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4796 test $i != 17 # 1/2 MB should be enough
4797 do
4798 i=`expr $i + 1`
4799 teststring=$teststring$teststring
4800 done
4801 # Only check the string length outside the loop.
4802 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4803 teststring=
4804 # Add a significant safety factor because C++ compilers can tack on
4805 # massive amounts of additional arguments before passing them to the
4806 # linker. It appears as though 1/2 is a usable value.
4807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4808 fi
4809 ;;
4810 esac
4811
4812 fi
4813
4814 if test -n $lt_cv_sys_max_cmd_len ; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4816 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4819 $as_echo "none" >&6; }
4820 fi
4821 max_cmd_len=$lt_cv_sys_max_cmd_len
4822
4823
4824
4825
4826
4827
4828 : ${CP="cp -f"}
4829 : ${MV="mv -f"}
4830 : ${RM="rm -f"}
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4833 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4834 # Try some XSI features
4835 xsi_shell=no
4836 ( _lt_dummy="a/b/c"
4837 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4838 = c,a/b,b/c, \
4839 && eval 'test $(( 1 + 1 )) -eq 2 \
4840 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4841 && xsi_shell=yes
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4843 $as_echo "$xsi_shell" >&6; }
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4847 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4848 lt_shell_append=no
4849 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4850 >/dev/null 2>&1 \
4851 && lt_shell_append=yes
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4853 $as_echo "$lt_shell_append" >&6; }
4854
4855
4856 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857 lt_unset=unset
4858 else
4859 lt_unset=false
4860 fi
4861
4862
4863
4864
4865
4866 # test EBCDIC or ASCII
4867 case `echo X|tr X '\101'` in
4868 A) # ASCII based system
4869 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4870 lt_SP2NL='tr \040 \012'
4871 lt_NL2SP='tr \015\012 \040\040'
4872 ;;
4873 *) # EBCDIC based system
4874 lt_SP2NL='tr \100 \n'
4875 lt_NL2SP='tr \r\n \100\100'
4876 ;;
4877 esac
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4888 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4889 if ${lt_cv_to_host_file_cmd+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 case $host in
4893 *-*-mingw* )
4894 case $build in
4895 *-*-mingw* ) # actually msys
4896 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4897 ;;
4898 *-*-cygwin* )
4899 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4900 ;;
4901 * ) # otherwise, assume *nix
4902 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4903 ;;
4904 esac
4905 ;;
4906 *-*-cygwin* )
4907 case $build in
4908 *-*-mingw* ) # actually msys
4909 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4910 ;;
4911 *-*-cygwin* )
4912 lt_cv_to_host_file_cmd=func_convert_file_noop
4913 ;;
4914 * ) # otherwise, assume *nix
4915 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4916 ;;
4917 esac
4918 ;;
4919 * ) # unhandled hosts (and "normal" native builds)
4920 lt_cv_to_host_file_cmd=func_convert_file_noop
4921 ;;
4922 esac
4923
4924 fi
4925
4926 to_host_file_cmd=$lt_cv_to_host_file_cmd
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4928 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4929
4930
4931
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4935 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4936 if ${lt_cv_to_tool_file_cmd+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 #assume ordinary cross tools, or native build.
4940 lt_cv_to_tool_file_cmd=func_convert_file_noop
4941 case $host in
4942 *-*-mingw* )
4943 case $build in
4944 *-*-mingw* ) # actually msys
4945 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4946 ;;
4947 esac
4948 ;;
4949 esac
4950
4951 fi
4952
4953 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4955 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4956
4957
4958
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4962 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4963 if ${lt_cv_ld_reload_flag+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 lt_cv_ld_reload_flag='-r'
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4969 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4970 reload_flag=$lt_cv_ld_reload_flag
4971 case $reload_flag in
4972 "" | " "*) ;;
4973 *) reload_flag=" $reload_flag" ;;
4974 esac
4975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4976 case $host_os in
4977 cygwin* | mingw* | pw32* | cegcc*)
4978 if test "$GCC" != yes; then
4979 reload_cmds=false
4980 fi
4981 ;;
4982 darwin*)
4983 if test "$GCC" = yes; then
4984 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4985 else
4986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4987 fi
4988 ;;
4989 esac
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_OBJDUMP+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$OBJDUMP"; then
5008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 OBJDUMP=$ac_cv_prog_OBJDUMP
5028 if test -n "$OBJDUMP"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5030 $as_echo "$OBJDUMP" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$ac_cv_prog_OBJDUMP"; then
5039 ac_ct_OBJDUMP=$OBJDUMP
5040 # Extract the first word of "objdump", so it can be a program name with args.
5041 set dummy objdump; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_OBJDUMP"; then
5048 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5068 if test -n "$ac_ct_OBJDUMP"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5070 $as_echo "$ac_ct_OBJDUMP" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076 if test "x$ac_ct_OBJDUMP" = x; then
5077 OBJDUMP="false"
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085 OBJDUMP=$ac_ct_OBJDUMP
5086 fi
5087 else
5088 OBJDUMP="$ac_cv_prog_OBJDUMP"
5089 fi
5090
5091 test -z "$OBJDUMP" && OBJDUMP=objdump
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5102 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5103 if ${lt_cv_deplibs_check_method+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 lt_cv_file_magic_cmd='$MAGIC_CMD'
5107 lt_cv_file_magic_test_file=
5108 lt_cv_deplibs_check_method='unknown'
5109 # Need to set the preceding variable on all platforms that support
5110 # interlibrary dependencies.
5111 # 'none' -- dependencies not supported.
5112 # `unknown' -- same as none, but documents that we really don't know.
5113 # 'pass_all' -- all dependencies passed with no checks.
5114 # 'test_compile' -- check by making test program.
5115 # 'file_magic [[regex]]' -- check by looking for files in library path
5116 # which responds to the $file_magic_cmd with a given extended regex.
5117 # If you have `file' or equivalent on your system and you're not sure
5118 # whether `pass_all' will *always* work, you probably want this one.
5119
5120 case $host_os in
5121 aix[4-9]*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125 beos*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129 bsdi[45]*)
5130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5131 lt_cv_file_magic_cmd='/usr/bin/file -L'
5132 lt_cv_file_magic_test_file=/shlib/libc.so
5133 ;;
5134
5135 cygwin*)
5136 # func_win32_libid is a shell function defined in ltmain.sh
5137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5138 lt_cv_file_magic_cmd='func_win32_libid'
5139 ;;
5140
5141 mingw* | pw32*)
5142 # Base MSYS/MinGW do not provide the 'file' command needed by
5143 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5144 # unless we find 'file', for example because we are cross-compiling.
5145 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5146 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5148 lt_cv_file_magic_cmd='func_win32_libid'
5149 else
5150 # Keep this pattern in sync with the one in func_win32_libid.
5151 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5152 lt_cv_file_magic_cmd='$OBJDUMP -f'
5153 fi
5154 ;;
5155
5156 cegcc*)
5157 # use the weaker test based on 'objdump'. See mingw*.
5158 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5159 lt_cv_file_magic_cmd='$OBJDUMP -f'
5160 ;;
5161
5162 darwin* | rhapsody*)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165
5166 freebsd* | dragonfly*)
5167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5168 case $host_cpu in
5169 i*86 )
5170 # Not sure whether the presence of OpenBSD here was a mistake.
5171 # Let's accept both of them until this is cleared up.
5172 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5173 lt_cv_file_magic_cmd=/usr/bin/file
5174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5175 ;;
5176 esac
5177 else
5178 lt_cv_deplibs_check_method=pass_all
5179 fi
5180 ;;
5181
5182 haiku*)
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185
5186 hpux10.20* | hpux11*)
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 case $host_cpu in
5189 ia64*)
5190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5191 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5192 ;;
5193 hppa*64*)
5194 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]'
5195 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5196 ;;
5197 *)
5198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5199 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5200 ;;
5201 esac
5202 ;;
5203
5204 interix[3-9]*)
5205 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5207 ;;
5208
5209 irix5* | irix6* | nonstopux*)
5210 case $LD in
5211 *-32|*"-32 ") libmagic=32-bit;;
5212 *-n32|*"-n32 ") libmagic=N32;;
5213 *-64|*"-64 ") libmagic=64-bit;;
5214 *) libmagic=never-match;;
5215 esac
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 # This must be glibc/ELF.
5220 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 netbsd* | netbsdelf*-gnu)
5225 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5227 else
5228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5229 fi
5230 ;;
5231
5232 newos6*)
5233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5234 lt_cv_file_magic_cmd=/usr/bin/file
5235 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5236 ;;
5237
5238 *nto* | *qnx*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 openbsd*)
5243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5245 else
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5247 fi
5248 ;;
5249
5250 osf3* | osf4* | osf5*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 rdos*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 solaris*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266 sysv4 | sysv4.3*)
5267 case $host_vendor in
5268 motorola)
5269 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]'
5270 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5271 ;;
5272 ncr)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275 sequent)
5276 lt_cv_file_magic_cmd='/bin/file'
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5278 ;;
5279 sni)
5280 lt_cv_file_magic_cmd='/bin/file'
5281 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5282 lt_cv_file_magic_test_file=/lib/libc.so
5283 ;;
5284 siemens)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287 pc)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290 esac
5291 ;;
5292
5293 tpf*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296 esac
5297
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5300 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5301
5302 file_magic_glob=
5303 want_nocaseglob=no
5304 if test "$build" = "$host"; then
5305 case $host_os in
5306 mingw* | pw32*)
5307 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5308 want_nocaseglob=yes
5309 else
5310 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5311 fi
5312 ;;
5313 esac
5314 fi
5315
5316 file_magic_cmd=$lt_cv_file_magic_cmd
5317 deplibs_check_method=$lt_cv_deplibs_check_method
5318 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_DLLTOOL+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -n "$DLLTOOL"; then
5350 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 DLLTOOL=$ac_cv_prog_DLLTOOL
5370 if test -n "$DLLTOOL"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5372 $as_echo "$DLLTOOL" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 fi
5380 if test -z "$ac_cv_prog_DLLTOOL"; then
5381 ac_ct_DLLTOOL=$DLLTOOL
5382 # Extract the first word of "dlltool", so it can be a program name with args.
5383 set dummy dlltool; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 if test -n "$ac_ct_DLLTOOL"; then
5390 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403 done
5404 done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5410 if test -n "$ac_ct_DLLTOOL"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5412 $as_echo "$ac_ct_DLLTOOL" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418 if test "x$ac_ct_DLLTOOL" = x; then
5419 DLLTOOL="false"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 DLLTOOL=$ac_ct_DLLTOOL
5428 fi
5429 else
5430 DLLTOOL="$ac_cv_prog_DLLTOOL"
5431 fi
5432
5433 test -z "$DLLTOOL" && DLLTOOL=dlltool
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5445 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5446 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 lt_cv_sharedlib_from_linklib_cmd='unknown'
5450
5451 case $host_os in
5452 cygwin* | mingw* | pw32* | cegcc*)
5453 # two different shell functions defined in ltmain.sh
5454 # decide which to use based on capabilities of $DLLTOOL
5455 case `$DLLTOOL --help 2>&1` in
5456 *--identify-strict*)
5457 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5458 ;;
5459 *)
5460 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5461 ;;
5462 esac
5463 ;;
5464 *)
5465 # fallback: assume linklib IS sharedlib
5466 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5467 ;;
5468 esac
5469
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5472 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5473 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5474 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5475
5476
5477
5478
5479
5480
5481
5482
5483 if test -n "$ac_tool_prefix"; then
5484 for ac_prog in ar
5485 do
5486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_AR+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$AR"; then
5494 ac_cv_prog_AR="$AR" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 AR=$ac_cv_prog_AR
5514 if test -n "$AR"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5516 $as_echo "$AR" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 test -n "$AR" && break
5524 done
5525 fi
5526 if test -z "$AR"; then
5527 ac_ct_AR=$AR
5528 for ac_prog in ar
5529 do
5530 # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$ac_ct_AR"; then
5538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_ac_ct_AR="$ac_prog"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5558 if test -n "$ac_ct_AR"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5560 $as_echo "$ac_ct_AR" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 test -n "$ac_ct_AR" && break
5568 done
5569
5570 if test "x$ac_ct_AR" = x; then
5571 AR="false"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579 AR=$ac_ct_AR
5580 fi
5581 fi
5582
5583 : ${AR=ar}
5584 : ${AR_FLAGS=cru}
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5597 $as_echo_n "checking for archiver @FILE support... " >&6; }
5598 if ${lt_cv_ar_at_file+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 lt_cv_ar_at_file=no
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604
5605 int
5606 main ()
5607 {
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 echo conftest.$ac_objext > conftest.lst
5615 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5617 (eval $lt_ar_try) 2>&5
5618 ac_status=$?
5619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5620 test $ac_status = 0; }
5621 if test "$ac_status" -eq 0; then
5622 # Ensure the archiver fails upon bogus file names.
5623 rm -f conftest.$ac_objext libconftest.a
5624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5625 (eval $lt_ar_try) 2>&5
5626 ac_status=$?
5627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628 test $ac_status = 0; }
5629 if test "$ac_status" -ne 0; then
5630 lt_cv_ar_at_file=@
5631 fi
5632 fi
5633 rm -f conftest.* libconftest.a
5634
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5640 $as_echo "$lt_cv_ar_at_file" >&6; }
5641
5642 if test "x$lt_cv_ar_at_file" = xno; then
5643 archiver_list_spec=
5644 else
5645 archiver_list_spec=$lt_cv_ar_at_file
5646 fi
5647
5648
5649
5650
5651
5652
5653
5654 if test -n "$ac_tool_prefix"; then
5655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5656 set dummy ${ac_tool_prefix}strip; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_prog_STRIP+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -n "$STRIP"; then
5663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5675 fi
5676 done
5677 done
5678 IFS=$as_save_IFS
5679
5680 fi
5681 fi
5682 STRIP=$ac_cv_prog_STRIP
5683 if test -n "$STRIP"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5685 $as_echo "$STRIP" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5689 fi
5690
5691
5692 fi
5693 if test -z "$ac_cv_prog_STRIP"; then
5694 ac_ct_STRIP=$STRIP
5695 # Extract the first word of "strip", so it can be a program name with args.
5696 set dummy strip; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_STRIP"; then
5703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_STRIP="strip"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5723 if test -n "$ac_ct_STRIP"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5725 $as_echo "$ac_ct_STRIP" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731 if test "x$ac_ct_STRIP" = x; then
5732 STRIP=":"
5733 else
5734 case $cross_compiling:$ac_tool_warned in
5735 yes:)
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738 ac_tool_warned=yes ;;
5739 esac
5740 STRIP=$ac_ct_STRIP
5741 fi
5742 else
5743 STRIP="$ac_cv_prog_STRIP"
5744 fi
5745
5746 test -z "$STRIP" && STRIP=:
5747
5748
5749
5750
5751
5752
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_RANLIB+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -n "$RANLIB"; then
5762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775 done
5776 done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 RANLIB=$ac_cv_prog_RANLIB
5782 if test -n "$RANLIB"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5784 $as_echo "$RANLIB" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 fi
5792 if test -z "$ac_cv_prog_RANLIB"; then
5793 ac_ct_RANLIB=$RANLIB
5794 # Extract the first word of "ranlib", so it can be a program name with args.
5795 set dummy ranlib; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$ac_ct_RANLIB"; then
5802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_RANLIB="ranlib"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5822 if test -n "$ac_ct_RANLIB"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5824 $as_echo "$ac_ct_RANLIB" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830 if test "x$ac_ct_RANLIB" = x; then
5831 RANLIB=":"
5832 else
5833 case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5838 esac
5839 RANLIB=$ac_ct_RANLIB
5840 fi
5841 else
5842 RANLIB="$ac_cv_prog_RANLIB"
5843 fi
5844
5845 test -z "$RANLIB" && RANLIB=:
5846
5847
5848
5849
5850
5851
5852 # Determine commands to create old-style static archives.
5853 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5854 old_postinstall_cmds='chmod 644 $oldlib'
5855 old_postuninstall_cmds=
5856
5857 if test -n "$RANLIB"; then
5858 case $host_os in
5859 openbsd*)
5860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5861 ;;
5862 *)
5863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5864 ;;
5865 esac
5866 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5867 fi
5868
5869 case $host_os in
5870 darwin*)
5871 lock_old_archive_extraction=yes ;;
5872 *)
5873 lock_old_archive_extraction=no ;;
5874 esac
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 # If no C compiler was specified, use CC.
5915 LTCC=${LTCC-"$CC"}
5916
5917 # If no C compiler flags were specified, use CFLAGS.
5918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5919
5920 # Allow CC to be a program name with arguments.
5921 compiler=$CC
5922
5923
5924 # Check for command to grab the raw symbol name followed by C symbol from nm.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5926 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5927 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930
5931 # These are sane defaults that work on at least a few old systems.
5932 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5933
5934 # Character class describing NM global symbol codes.
5935 symcode='[BCDEGRST]'
5936
5937 # Regexp to match symbols that can be accessed directly from C.
5938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5939
5940 # Define system-specific variables.
5941 case $host_os in
5942 aix*)
5943 symcode='[BCDT]'
5944 ;;
5945 cygwin* | mingw* | pw32* | cegcc*)
5946 symcode='[ABCDGISTW]'
5947 ;;
5948 hpux*)
5949 if test "$host_cpu" = ia64; then
5950 symcode='[ABCDEGRST]'
5951 fi
5952 ;;
5953 irix* | nonstopux*)
5954 symcode='[BCDEGRST]'
5955 ;;
5956 osf*)
5957 symcode='[BCDEGQRST]'
5958 ;;
5959 solaris*)
5960 symcode='[BDRT]'
5961 ;;
5962 sco3.2v5*)
5963 symcode='[DT]'
5964 ;;
5965 sysv4.2uw2*)
5966 symcode='[DT]'
5967 ;;
5968 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5969 symcode='[ABDT]'
5970 ;;
5971 sysv4)
5972 symcode='[DFNSTU]'
5973 ;;
5974 esac
5975
5976 # If we're using GNU nm, then use its standard symbol codes.
5977 case `$NM -V 2>&1` in
5978 *GNU* | *'with BFD'*)
5979 symcode='[ABCDGIRSTW]' ;;
5980 esac
5981
5982 # Transform an extracted symbol line into a proper C declaration.
5983 # Some systems (esp. on ia64) link data and code symbols differently,
5984 # so use this general approach.
5985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5986
5987 # Transform an extracted symbol line into symbol name and symbol address
5988 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5989 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'"
5990
5991 # Handle CRLF in mingw tool chain
5992 opt_cr=
5993 case $build_os in
5994 mingw*)
5995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5996 ;;
5997 esac
5998
5999 # Try without a prefix underscore, then with it.
6000 for ac_symprfx in "" "_"; do
6001
6002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6003 symxfrm="\\1 $ac_symprfx\\2 \\2"
6004
6005 # Write the raw and C identifiers.
6006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6007 # Fake it for dumpbin and say T for any non-static function
6008 # and D for any global variable.
6009 # Also find C++ and __fastcall symbols from MSVC++,
6010 # which start with @ or ?.
6011 lt_cv_sys_global_symbol_pipe="$AWK '"\
6012 " {last_section=section; section=\$ 3};"\
6013 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6015 " \$ 0!~/External *\|/{next};"\
6016 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6017 " {if(hide[section]) next};"\
6018 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6019 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6020 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6021 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6022 " ' prfx=^$ac_symprfx"
6023 else
6024 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6025 fi
6026 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6027
6028 # Check to see that the pipe works correctly.
6029 pipe_works=no
6030
6031 rm -f conftest*
6032 cat > conftest.$ac_ext <<_LT_EOF
6033 #ifdef __cplusplus
6034 extern "C" {
6035 #endif
6036 char nm_test_var;
6037 void nm_test_func(void);
6038 void nm_test_func(void){}
6039 #ifdef __cplusplus
6040 }
6041 #endif
6042 int main(){nm_test_var='a';nm_test_func();return(0);}
6043 _LT_EOF
6044
6045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6046 (eval $ac_compile) 2>&5
6047 ac_status=$?
6048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6049 test $ac_status = 0; }; then
6050 # Now try to grab the symbols.
6051 nlist=conftest.nm
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6053 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; } && test -s "$nlist"; then
6057 # Try sorting and uniquifying the output.
6058 if sort "$nlist" | uniq > "$nlist"T; then
6059 mv -f "$nlist"T "$nlist"
6060 else
6061 rm -f "$nlist"T
6062 fi
6063
6064 # Make sure that we snagged all the symbols we need.
6065 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6066 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6067 cat <<_LT_EOF > conftest.$ac_ext
6068 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6069 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6070 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6071 relocations are performed -- see ld's documentation on pseudo-relocs. */
6072 # define LT_DLSYM_CONST
6073 #elif defined(__osf__)
6074 /* This system does not cope well with relocations in const data. */
6075 # define LT_DLSYM_CONST
6076 #else
6077 # define LT_DLSYM_CONST const
6078 #endif
6079
6080 #ifdef __cplusplus
6081 extern "C" {
6082 #endif
6083
6084 _LT_EOF
6085 # Now generate the symbol file.
6086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6087
6088 cat <<_LT_EOF >> conftest.$ac_ext
6089
6090 /* The mapping between symbol names and symbols. */
6091 LT_DLSYM_CONST struct {
6092 const char *name;
6093 void *address;
6094 }
6095 lt__PROGRAM__LTX_preloaded_symbols[] =
6096 {
6097 { "@PROGRAM@", (void *) 0 },
6098 _LT_EOF
6099 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6100 cat <<\_LT_EOF >> conftest.$ac_ext
6101 {0, (void *) 0}
6102 };
6103
6104 /* This works around a problem in FreeBSD linker */
6105 #ifdef FREEBSD_WORKAROUND
6106 static const void *lt_preloaded_setup() {
6107 return lt__PROGRAM__LTX_preloaded_symbols;
6108 }
6109 #endif
6110
6111 #ifdef __cplusplus
6112 }
6113 #endif
6114 _LT_EOF
6115 # Now try linking the two files.
6116 mv conftest.$ac_objext conftstm.$ac_objext
6117 lt_globsym_save_LIBS=$LIBS
6118 lt_globsym_save_CFLAGS=$CFLAGS
6119 LIBS="conftstm.$ac_objext"
6120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6122 (eval $ac_link) 2>&5
6123 ac_status=$?
6124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6125 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6126 pipe_works=yes
6127 fi
6128 LIBS=$lt_globsym_save_LIBS
6129 CFLAGS=$lt_globsym_save_CFLAGS
6130 else
6131 echo "cannot find nm_test_func in $nlist" >&5
6132 fi
6133 else
6134 echo "cannot find nm_test_var in $nlist" >&5
6135 fi
6136 else
6137 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6138 fi
6139 else
6140 echo "$progname: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6142 fi
6143 rm -rf conftest* conftst*
6144
6145 # Do not use the global_symbol_pipe unless it works.
6146 if test "$pipe_works" = yes; then
6147 break
6148 else
6149 lt_cv_sys_global_symbol_pipe=
6150 fi
6151 done
6152
6153 fi
6154
6155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6156 lt_cv_sys_global_symbol_to_cdecl=
6157 fi
6158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6160 $as_echo "failed" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6163 $as_echo "ok" >&6; }
6164 fi
6165
6166 # Response file support.
6167 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6168 nm_file_list_spec='@'
6169 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6170 nm_file_list_spec='@'
6171 fi
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6200 $as_echo_n "checking for sysroot... " >&6; }
6201
6202 # Check whether --with-sysroot was given.
6203 if test "${with_sysroot+set}" = set; then :
6204 withval=$with_sysroot;
6205 else
6206 with_sysroot=no
6207 fi
6208
6209
6210 lt_sysroot=
6211 case ${with_sysroot} in #(
6212 yes)
6213 if test "$GCC" = yes; then
6214 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6215 fi
6216 ;; #(
6217 /*)
6218 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6219 ;; #(
6220 no|'')
6221 ;; #(
6222 *)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6224 $as_echo "${with_sysroot}" >&6; }
6225 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6226 ;;
6227 esac
6228
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6230 $as_echo "${lt_sysroot:-no}" >&6; }
6231
6232
6233
6234
6235
6236 # Check whether --enable-libtool-lock was given.
6237 if test "${enable_libtool_lock+set}" = set; then :
6238 enableval=$enable_libtool_lock;
6239 fi
6240
6241 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6242
6243 # Some flags need to be propagated to the compiler or linker for good
6244 # libtool support.
6245 case $host in
6246 ia64-*-hpux*)
6247 # Find out which ABI we are using.
6248 echo 'int i;' > conftest.$ac_ext
6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250 (eval $ac_compile) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; then
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *ELF-32*)
6256 HPUX_IA64_MODE="32"
6257 ;;
6258 *ELF-64*)
6259 HPUX_IA64_MODE="64"
6260 ;;
6261 esac
6262 fi
6263 rm -rf conftest*
6264 ;;
6265 *-*-irix6*)
6266 # Find out which ABI we are using.
6267 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269 (eval $ac_compile) 2>&5
6270 ac_status=$?
6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 test $ac_status = 0; }; then
6273 if test "$lt_cv_prog_gnu_ld" = yes; then
6274 case `/usr/bin/file conftest.$ac_objext` in
6275 *32-bit*)
6276 LD="${LD-ld} -melf32bsmip"
6277 ;;
6278 *N32*)
6279 LD="${LD-ld} -melf32bmipn32"
6280 ;;
6281 *64-bit*)
6282 LD="${LD-ld} -melf64bmip"
6283 ;;
6284 esac
6285 else
6286 case `/usr/bin/file conftest.$ac_objext` in
6287 *32-bit*)
6288 LD="${LD-ld} -32"
6289 ;;
6290 *N32*)
6291 LD="${LD-ld} -n32"
6292 ;;
6293 *64-bit*)
6294 LD="${LD-ld} -64"
6295 ;;
6296 esac
6297 fi
6298 fi
6299 rm -rf conftest*
6300 ;;
6301
6302 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6303 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6304 # Find out which ABI we are using.
6305 echo 'int i;' > conftest.$ac_ext
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307 (eval $ac_compile) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }; then
6311 case `/usr/bin/file conftest.o` in
6312 *32-bit*)
6313 case $host in
6314 x86_64-*kfreebsd*-gnu)
6315 LD="${LD-ld} -m elf_i386_fbsd"
6316 ;;
6317 x86_64-*linux*)
6318 LD="${LD-ld} -m elf_i386"
6319 ;;
6320 ppc64-*linux*|powerpc64-*linux*)
6321 LD="${LD-ld} -m elf32ppclinux"
6322 ;;
6323 s390x-*linux*)
6324 LD="${LD-ld} -m elf_s390"
6325 ;;
6326 sparc64-*linux*)
6327 LD="${LD-ld} -m elf32_sparc"
6328 ;;
6329 esac
6330 ;;
6331 *64-bit*)
6332 case $host in
6333 x86_64-*kfreebsd*-gnu)
6334 LD="${LD-ld} -m elf_x86_64_fbsd"
6335 ;;
6336 x86_64-*linux*)
6337 LD="${LD-ld} -m elf_x86_64"
6338 ;;
6339 ppc*-*linux*|powerpc*-*linux*)
6340 LD="${LD-ld} -m elf64ppc"
6341 ;;
6342 s390*-*linux*|s390*-*tpf*)
6343 LD="${LD-ld} -m elf64_s390"
6344 ;;
6345 sparc*-*linux*)
6346 LD="${LD-ld} -m elf64_sparc"
6347 ;;
6348 esac
6349 ;;
6350 esac
6351 fi
6352 rm -rf conftest*
6353 ;;
6354
6355 *-*-sco3.2v5*)
6356 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6357 SAVE_CFLAGS="$CFLAGS"
6358 CFLAGS="$CFLAGS -belf"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6360 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6361 if ${lt_cv_cc_needs_belf+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_ext=c
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372
6373 int
6374 main ()
6375 {
6376
6377 ;
6378 return 0;
6379 }
6380 _ACEOF
6381 if ac_fn_c_try_link "$LINENO"; then :
6382 lt_cv_cc_needs_belf=yes
6383 else
6384 lt_cv_cc_needs_belf=no
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6396 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6397 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6398 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6399 CFLAGS="$SAVE_CFLAGS"
6400 fi
6401 ;;
6402 *-*solaris*)
6403 # Find out which ABI we are using.
6404 echo 'int i;' > conftest.$ac_ext
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406 (eval $ac_compile) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }; then
6410 case `/usr/bin/file conftest.o` in
6411 *64-bit*)
6412 case $lt_cv_prog_gnu_ld in
6413 yes*)
6414 case $host in
6415 i?86-*-solaris*)
6416 LD="${LD-ld} -m elf_x86_64"
6417 ;;
6418 sparc*-*-solaris*)
6419 LD="${LD-ld} -m elf64_sparc"
6420 ;;
6421 esac
6422 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6423 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6424 LD="${LD-ld}_sol2"
6425 fi
6426 ;;
6427 *)
6428 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6429 LD="${LD-ld} -64"
6430 fi
6431 ;;
6432 esac
6433 ;;
6434 esac
6435 fi
6436 rm -rf conftest*
6437 ;;
6438 esac
6439
6440 need_locks="$enable_libtool_lock"
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}mt; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$MANIFEST_TOOL"; then
6451 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6471 if test -n "$MANIFEST_TOOL"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6473 $as_echo "$MANIFEST_TOOL" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6482 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6483 # Extract the first word of "mt", so it can be a program name with args.
6484 set dummy mt; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_MANIFEST_TOOL"; then
6491 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6511 if test -n "$ac_ct_MANIFEST_TOOL"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6513 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6520 MANIFEST_TOOL=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6529 fi
6530 else
6531 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6532 fi
6533
6534 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6536 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6537 if ${lt_cv_path_mainfest_tool+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 lt_cv_path_mainfest_tool=no
6541 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6542 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6543 cat conftest.err >&5
6544 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6545 lt_cv_path_mainfest_tool=yes
6546 fi
6547 rm -f conftest*
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6550 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6551 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6552 MANIFEST_TOOL=:
6553 fi
6554
6555
6556
6557
6558
6559
6560 case $host_os in
6561 rhapsody* | darwin*)
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$DSYMUTIL"; then
6571 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6591 if test -n "$DSYMUTIL"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6593 $as_echo "$DSYMUTIL" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_DSYMUTIL"; then
6602 ac_ct_DSYMUTIL=$DSYMUTIL
6603 # Extract the first word of "dsymutil", so it can be a program name with args.
6604 set dummy dsymutil; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ac_ct_DSYMUTIL"; then
6611 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6631 if test -n "$ac_ct_DSYMUTIL"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6633 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639 if test "x$ac_ct_DSYMUTIL" = x; then
6640 DSYMUTIL=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 DSYMUTIL=$ac_ct_DSYMUTIL
6649 fi
6650 else
6651 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6652 fi
6653
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_NMEDIT+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 if test -n "$NMEDIT"; then
6663 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 NMEDIT=$ac_cv_prog_NMEDIT
6683 if test -n "$NMEDIT"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6685 $as_echo "$NMEDIT" >&6; }
6686 else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691
6692 fi
6693 if test -z "$ac_cv_prog_NMEDIT"; then
6694 ac_ct_NMEDIT=$NMEDIT
6695 # Extract the first word of "nmedit", so it can be a program name with args.
6696 set dummy nmedit; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$ac_ct_NMEDIT"; then
6703 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6723 if test -n "$ac_ct_NMEDIT"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6725 $as_echo "$ac_ct_NMEDIT" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731 if test "x$ac_ct_NMEDIT" = x; then
6732 NMEDIT=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740 NMEDIT=$ac_ct_NMEDIT
6741 fi
6742 else
6743 NMEDIT="$ac_cv_prog_NMEDIT"
6744 fi
6745
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_LIPO+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test -n "$LIPO"; then
6755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 LIPO=$ac_cv_prog_LIPO
6775 if test -n "$LIPO"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6777 $as_echo "$LIPO" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_LIPO"; then
6786 ac_ct_LIPO=$LIPO
6787 # Extract the first word of "lipo", so it can be a program name with args.
6788 set dummy lipo; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$ac_ct_LIPO"; then
6795 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_ac_ct_LIPO="lipo"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6815 if test -n "$ac_ct_LIPO"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6817 $as_echo "$ac_ct_LIPO" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823 if test "x$ac_ct_LIPO" = x; then
6824 LIPO=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832 LIPO=$ac_ct_LIPO
6833 fi
6834 else
6835 LIPO="$ac_cv_prog_LIPO"
6836 fi
6837
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}otool; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_OTOOL+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$OTOOL"; then
6847 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 OTOOL=$ac_cv_prog_OTOOL
6867 if test -n "$OTOOL"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6869 $as_echo "$OTOOL" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_OTOOL"; then
6878 ac_ct_OTOOL=$OTOOL
6879 # Extract the first word of "otool", so it can be a program name with args.
6880 set dummy otool; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$ac_ct_OTOOL"; then
6887 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_OTOOL="otool"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6907 if test -n "$ac_ct_OTOOL"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6909 $as_echo "$ac_ct_OTOOL" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915 if test "x$ac_ct_OTOOL" = x; then
6916 OTOOL=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924 OTOOL=$ac_ct_OTOOL
6925 fi
6926 else
6927 OTOOL="$ac_cv_prog_OTOOL"
6928 fi
6929
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6932 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_OTOOL64+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$OTOOL64"; then
6939 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 OTOOL64=$ac_cv_prog_OTOOL64
6959 if test -n "$OTOOL64"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6961 $as_echo "$OTOOL64" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967
6968 fi
6969 if test -z "$ac_cv_prog_OTOOL64"; then
6970 ac_ct_OTOOL64=$OTOOL64
6971 # Extract the first word of "otool64", so it can be a program name with args.
6972 set dummy otool64; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$ac_ct_OTOOL64"; then
6979 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_ac_ct_OTOOL64="otool64"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6999 if test -n "$ac_ct_OTOOL64"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7001 $as_echo "$ac_ct_OTOOL64" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007 if test "x$ac_ct_OTOOL64" = x; then
7008 OTOOL64=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011 yes:)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014 ac_tool_warned=yes ;;
7015 esac
7016 OTOOL64=$ac_ct_OTOOL64
7017 fi
7018 else
7019 OTOOL64="$ac_cv_prog_OTOOL64"
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7049 $as_echo_n "checking for -single_module linker flag... " >&6; }
7050 if ${lt_cv_apple_cc_single_mod+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 lt_cv_apple_cc_single_mod=no
7054 if test -z "${LT_MULTI_MODULE}"; then
7055 # By default we will add the -single_module flag. You can override
7056 # by either setting the environment variable LT_MULTI_MODULE
7057 # non-empty at configure time, or by adding -multi_module to the
7058 # link flags.
7059 rm -rf libconftest.dylib*
7060 echo "int foo(void){return 1;}" > conftest.c
7061 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062 -dynamiclib -Wl,-single_module conftest.c" >&5
7063 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7064 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7065 _lt_result=$?
7066 # If there is a non-empty error log, and "single_module"
7067 # appears in it, assume the flag caused a linker warning
7068 if test -s conftest.err && $GREP single_module conftest.err; then
7069 cat conftest.err >&5
7070 # Otherwise, if the output was created with a 0 exit code from
7071 # the compiler, it worked.
7072 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7073 lt_cv_apple_cc_single_mod=yes
7074 else
7075 cat conftest.err >&5
7076 fi
7077 rm -rf libconftest.dylib*
7078 rm -f conftest.*
7079 fi
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7082 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7086 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 lt_cv_ld_exported_symbols_list=no
7090 save_LDFLAGS=$LDFLAGS
7091 echo "_main" > conftest.sym
7092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095
7096 int
7097 main ()
7098 {
7099
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 lt_cv_ld_exported_symbols_list=yes
7106 else
7107 lt_cv_ld_exported_symbols_list=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 LDFLAGS="$save_LDFLAGS"
7112
7113 fi
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7115 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7118 $as_echo_n "checking for -force_load linker flag... " >&6; }
7119 if ${lt_cv_ld_force_load+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 lt_cv_ld_force_load=no
7123 cat > conftest.c << _LT_EOF
7124 int forced_loaded() { return 2;}
7125 _LT_EOF
7126 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7127 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7128 echo "$AR cru libconftest.a conftest.o" >&5
7129 $AR cru libconftest.a conftest.o 2>&5
7130 echo "$RANLIB libconftest.a" >&5
7131 $RANLIB libconftest.a 2>&5
7132 cat > conftest.c << _LT_EOF
7133 int main() { return 0;}
7134 _LT_EOF
7135 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7136 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7137 _lt_result=$?
7138 if test -s conftest.err && $GREP force_load conftest.err; then
7139 cat conftest.err >&5
7140 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7141 lt_cv_ld_force_load=yes
7142 else
7143 cat conftest.err >&5
7144 fi
7145 rm -f conftest.err libconftest.a conftest conftest.c
7146 rm -rf conftest.dSYM
7147
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7150 $as_echo "$lt_cv_ld_force_load" >&6; }
7151 case $host_os in
7152 rhapsody* | darwin1.[012])
7153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7154 darwin1.*)
7155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7156 darwin*) # darwin 5.x on
7157 # if running on 10.5 or later, the deployment target defaults
7158 # to the OS version, if on x86, and 10.4, the deployment
7159 # target defaults to 10.4. Don't you love it?
7160 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7161 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7163 10.[012]*)
7164 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7165 10.*)
7166 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7167 esac
7168 ;;
7169 esac
7170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7171 _lt_dar_single_mod='$single_module'
7172 fi
7173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7175 else
7176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7177 fi
7178 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7179 _lt_dsymutil='~$DSYMUTIL $lib || :'
7180 else
7181 _lt_dsymutil=
7182 fi
7183 ;;
7184 esac
7185
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7188 $as_echo_n "checking for ANSI C header files... " >&6; }
7189 if ${ac_cv_header_stdc+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #include <stdlib.h>
7195 #include <stdarg.h>
7196 #include <string.h>
7197 #include <float.h>
7198
7199 int
7200 main ()
7201 {
7202
7203 ;
7204 return 0;
7205 }
7206 _ACEOF
7207 if ac_fn_c_try_compile "$LINENO"; then :
7208 ac_cv_header_stdc=yes
7209 else
7210 ac_cv_header_stdc=no
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213
7214 if test $ac_cv_header_stdc = yes; then
7215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <string.h>
7219
7220 _ACEOF
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 $EGREP "memchr" >/dev/null 2>&1; then :
7223
7224 else
7225 ac_cv_header_stdc=no
7226 fi
7227 rm -f conftest*
7228
7229 fi
7230
7231 if test $ac_cv_header_stdc = yes; then
7232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #include <stdlib.h>
7236
7237 _ACEOF
7238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7239 $EGREP "free" >/dev/null 2>&1; then :
7240
7241 else
7242 ac_cv_header_stdc=no
7243 fi
7244 rm -f conftest*
7245
7246 fi
7247
7248 if test $ac_cv_header_stdc = yes; then
7249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7250 if test "$cross_compiling" = yes; then :
7251 :
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 #include <ctype.h>
7256 #include <stdlib.h>
7257 #if ((' ' & 0x0FF) == 0x020)
7258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7260 #else
7261 # define ISLOWER(c) \
7262 (('a' <= (c) && (c) <= 'i') \
7263 || ('j' <= (c) && (c) <= 'r') \
7264 || ('s' <= (c) && (c) <= 'z'))
7265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7266 #endif
7267
7268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7269 int
7270 main ()
7271 {
7272 int i;
7273 for (i = 0; i < 256; i++)
7274 if (XOR (islower (i), ISLOWER (i))
7275 || toupper (i) != TOUPPER (i))
7276 return 2;
7277 return 0;
7278 }
7279 _ACEOF
7280 if ac_fn_c_try_run "$LINENO"; then :
7281
7282 else
7283 ac_cv_header_stdc=no
7284 fi
7285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7286 conftest.$ac_objext conftest.beam conftest.$ac_ext
7287 fi
7288
7289 fi
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7292 $as_echo "$ac_cv_header_stdc" >&6; }
7293 if test $ac_cv_header_stdc = yes; then
7294
7295 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7296
7297 fi
7298
7299 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7300 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7301 inttypes.h stdint.h unistd.h
7302 do :
7303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7304 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7305 "
7306 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7307 cat >>confdefs.h <<_ACEOF
7308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7309 _ACEOF
7310
7311 fi
7312
7313 done
7314
7315
7316 for ac_header in dlfcn.h
7317 do :
7318 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7319 "
7320 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7321 cat >>confdefs.h <<_ACEOF
7322 #define HAVE_DLFCN_H 1
7323 _ACEOF
7324
7325 fi
7326
7327 done
7328
7329
7330
7331
7332
7333 # Set options
7334
7335
7336
7337 enable_dlopen=no
7338
7339
7340 enable_win32_dll=no
7341
7342
7343 # Check whether --enable-shared was given.
7344 if test "${enable_shared+set}" = set; then :
7345 enableval=$enable_shared; p=${PACKAGE-default}
7346 case $enableval in
7347 yes) enable_shared=yes ;;
7348 no) enable_shared=no ;;
7349 *)
7350 enable_shared=no
7351 # Look at the argument we got. We use all the common list separators.
7352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353 for pkg in $enableval; do
7354 IFS="$lt_save_ifs"
7355 if test "X$pkg" = "X$p"; then
7356 enable_shared=yes
7357 fi
7358 done
7359 IFS="$lt_save_ifs"
7360 ;;
7361 esac
7362 else
7363 enable_shared=yes
7364 fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374 # Check whether --enable-static was given.
7375 if test "${enable_static+set}" = set; then :
7376 enableval=$enable_static; p=${PACKAGE-default}
7377 case $enableval in
7378 yes) enable_static=yes ;;
7379 no) enable_static=no ;;
7380 *)
7381 enable_static=no
7382 # Look at the argument we got. We use all the common list separators.
7383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7384 for pkg in $enableval; do
7385 IFS="$lt_save_ifs"
7386 if test "X$pkg" = "X$p"; then
7387 enable_static=yes
7388 fi
7389 done
7390 IFS="$lt_save_ifs"
7391 ;;
7392 esac
7393 else
7394 enable_static=yes
7395 fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406 # Check whether --with-pic was given.
7407 if test "${with_pic+set}" = set; then :
7408 withval=$with_pic; lt_p=${PACKAGE-default}
7409 case $withval in
7410 yes|no) pic_mode=$withval ;;
7411 *)
7412 pic_mode=default
7413 # Look at the argument we got. We use all the common list separators.
7414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7415 for lt_pkg in $withval; do
7416 IFS="$lt_save_ifs"
7417 if test "X$lt_pkg" = "X$lt_p"; then
7418 pic_mode=yes
7419 fi
7420 done
7421 IFS="$lt_save_ifs"
7422 ;;
7423 esac
7424 else
7425 pic_mode=default
7426 fi
7427
7428
7429 test -z "$pic_mode" && pic_mode=default
7430
7431
7432
7433
7434
7435
7436
7437 # Check whether --enable-fast-install was given.
7438 if test "${enable_fast_install+set}" = set; then :
7439 enableval=$enable_fast_install; p=${PACKAGE-default}
7440 case $enableval in
7441 yes) enable_fast_install=yes ;;
7442 no) enable_fast_install=no ;;
7443 *)
7444 enable_fast_install=no
7445 # Look at the argument we got. We use all the common list separators.
7446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7447 for pkg in $enableval; do
7448 IFS="$lt_save_ifs"
7449 if test "X$pkg" = "X$p"; then
7450 enable_fast_install=yes
7451 fi
7452 done
7453 IFS="$lt_save_ifs"
7454 ;;
7455 esac
7456 else
7457 enable_fast_install=yes
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 # This can be used to rebuild libtool when needed
7471 LIBTOOL_DEPS="$ltmain"
7472
7473 # Always use our own libtool.
7474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 test -z "$LN_S" && LN_S="ln -s"
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 if test -n "${ZSH_VERSION+set}" ; then
7521 setopt NO_GLOB_SUBST
7522 fi
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7525 $as_echo_n "checking for objdir... " >&6; }
7526 if ${lt_cv_objdir+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 rm -f .libs 2>/dev/null
7530 mkdir .libs 2>/dev/null
7531 if test -d .libs; then
7532 lt_cv_objdir=.libs
7533 else
7534 # MS-DOS does not allow filenames that begin with a dot.
7535 lt_cv_objdir=_libs
7536 fi
7537 rmdir .libs 2>/dev/null
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7540 $as_echo "$lt_cv_objdir" >&6; }
7541 objdir=$lt_cv_objdir
7542
7543
7544
7545
7546
7547 cat >>confdefs.h <<_ACEOF
7548 #define LT_OBJDIR "$lt_cv_objdir/"
7549 _ACEOF
7550
7551
7552
7553
7554 case $host_os in
7555 aix3*)
7556 # AIX sometimes has problems with the GCC collect2 program. For some
7557 # reason, if we set the COLLECT_NAMES environment variable, the problems
7558 # vanish in a puff of smoke.
7559 if test "X${COLLECT_NAMES+set}" != Xset; then
7560 COLLECT_NAMES=
7561 export COLLECT_NAMES
7562 fi
7563 ;;
7564 esac
7565
7566 # Global variables:
7567 ofile=libtool
7568 can_build_shared=yes
7569
7570 # All known linkers require a `.a' archive for static linking (except MSVC,
7571 # which needs '.lib').
7572 libext=a
7573
7574 with_gnu_ld="$lt_cv_prog_gnu_ld"
7575
7576 old_CC="$CC"
7577 old_CFLAGS="$CFLAGS"
7578
7579 # Set sane defaults for various variables
7580 test -z "$CC" && CC=cc
7581 test -z "$LTCC" && LTCC=$CC
7582 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7583 test -z "$LD" && LD=ld
7584 test -z "$ac_objext" && ac_objext=o
7585
7586 for cc_temp in $compiler""; do
7587 case $cc_temp in
7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7590 \-*) ;;
7591 *) break;;
7592 esac
7593 done
7594 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7595
7596
7597 # Only perform the check for file, if the check method requires it
7598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7599 case $deplibs_check_method in
7600 file_magic*)
7601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7603 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7604 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 case $MAGIC_CMD in
7608 [\\/*] | ?:[\\/]*)
7609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7610 ;;
7611 *)
7612 lt_save_MAGIC_CMD="$MAGIC_CMD"
7613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7615 for ac_dir in $ac_dummy; do
7616 IFS="$lt_save_ifs"
7617 test -z "$ac_dir" && ac_dir=.
7618 if test -f $ac_dir/${ac_tool_prefix}file; then
7619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7620 if test -n "$file_magic_test_file"; then
7621 case $deplibs_check_method in
7622 "file_magic "*)
7623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7626 $EGREP "$file_magic_regex" > /dev/null; then
7627 :
7628 else
7629 cat <<_LT_EOF 1>&2
7630
7631 *** Warning: the command libtool uses to detect shared libraries,
7632 *** $file_magic_cmd, produces output that libtool cannot recognize.
7633 *** The result is that libtool may fail to recognize shared libraries
7634 *** as such. This will affect the creation of libtool libraries that
7635 *** depend on shared libraries, but programs linked with such libtool
7636 *** libraries will work regardless of this problem. Nevertheless, you
7637 *** may want to report the problem to your system manager and/or to
7638 *** [email protected]
7639
7640 _LT_EOF
7641 fi ;;
7642 esac
7643 fi
7644 break
7645 fi
7646 done
7647 IFS="$lt_save_ifs"
7648 MAGIC_CMD="$lt_save_MAGIC_CMD"
7649 ;;
7650 esac
7651 fi
7652
7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654 if test -n "$MAGIC_CMD"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7656 $as_echo "$MAGIC_CMD" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662
7663
7664
7665
7666 if test -z "$lt_cv_path_MAGIC_CMD"; then
7667 if test -n "$ac_tool_prefix"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7669 $as_echo_n "checking for file... " >&6; }
7670 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 case $MAGIC_CMD in
7674 [\\/*] | ?:[\\/]*)
7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676 ;;
7677 *)
7678 lt_save_MAGIC_CMD="$MAGIC_CMD"
7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681 for ac_dir in $ac_dummy; do
7682 IFS="$lt_save_ifs"
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/file; then
7685 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7686 if test -n "$file_magic_test_file"; then
7687 case $deplibs_check_method in
7688 "file_magic "*)
7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692 $EGREP "$file_magic_regex" > /dev/null; then
7693 :
7694 else
7695 cat <<_LT_EOF 1>&2
7696
7697 *** Warning: the command libtool uses to detect shared libraries,
7698 *** $file_magic_cmd, produces output that libtool cannot recognize.
7699 *** The result is that libtool may fail to recognize shared libraries
7700 *** as such. This will affect the creation of libtool libraries that
7701 *** depend on shared libraries, but programs linked with such libtool
7702 *** libraries will work regardless of this problem. Nevertheless, you
7703 *** may want to report the problem to your system manager and/or to
7704 *** [email protected]
7705
7706 _LT_EOF
7707 fi ;;
7708 esac
7709 fi
7710 break
7711 fi
7712 done
7713 IFS="$lt_save_ifs"
7714 MAGIC_CMD="$lt_save_MAGIC_CMD"
7715 ;;
7716 esac
7717 fi
7718
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if test -n "$MAGIC_CMD"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7722 $as_echo "$MAGIC_CMD" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 else
7730 MAGIC_CMD=:
7731 fi
7732 fi
7733
7734 fi
7735 ;;
7736 esac
7737
7738 # Use C for the default configuration in the libtool script
7739
7740 lt_save_CC="$CC"
7741 ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747
7748 # Source file extension for C test sources.
7749 ac_ext=c
7750
7751 # Object file extension for compiled C test sources.
7752 objext=o
7753 objext=$objext
7754
7755 # Code to be used in simple compile tests
7756 lt_simple_compile_test_code="int some_variable = 0;"
7757
7758 # Code to be used in simple link tests
7759 lt_simple_link_test_code='int main(){return(0);}'
7760
7761
7762
7763
7764
7765
7766
7767 # If no C compiler was specified, use CC.
7768 LTCC=${LTCC-"$CC"}
7769
7770 # If no C compiler flags were specified, use CFLAGS.
7771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7772
7773 # Allow CC to be a program name with arguments.
7774 compiler=$CC
7775
7776 # Save the default compiler, since it gets overwritten when the other
7777 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7778 compiler_DEFAULT=$CC
7779
7780 # save warnings/boilerplate of simple test code
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7783 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784 _lt_compiler_boilerplate=`cat conftest.err`
7785 $RM conftest*
7786
7787 ac_outfile=conftest.$ac_objext
7788 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7789 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7790 _lt_linker_boilerplate=`cat conftest.err`
7791 $RM -r conftest*
7792
7793
7794 if test -n "$compiler"; then
7795
7796 lt_prog_compiler_no_builtin_flag=
7797
7798 if test "$GCC" = yes; then
7799 case $cc_basename in
7800 nvcc*)
7801 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7802 *)
7803 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7804 esac
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7808 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_prog_compiler_rtti_exceptions=no
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7814 lt_compiler_flag="-fno-rtti -fno-exceptions"
7815 # Insert the option either (1) after the last *FLAGS variable, or
7816 # (2) before a word containing "conftest.", or (3) at the end.
7817 # Note that $ac_compile itself does not contain backslashes and begins
7818 # with a dollar sign (not a hyphen), so the echo should work correctly.
7819 # The option is referenced via a variable to avoid confusing sed.
7820 lt_compile=`echo "$ac_compile" | $SED \
7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823 -e 's:$: $lt_compiler_flag:'`
7824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7825 (eval "$lt_compile" 2>conftest.err)
7826 ac_status=$?
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 if (exit $ac_status) && test -s "$ac_outfile"; then
7830 # The compiler can only warn and ignore the option if not recognized
7831 # So say no if there are warnings other than the usual output.
7832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7835 lt_cv_prog_compiler_rtti_exceptions=yes
7836 fi
7837 fi
7838 $RM conftest*
7839
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7843
7844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7846 else
7847 :
7848 fi
7849
7850 fi
7851
7852
7853
7854
7855
7856
7857 lt_prog_compiler_wl=
7858 lt_prog_compiler_pic=
7859 lt_prog_compiler_static=
7860
7861
7862 if test "$GCC" = yes; then
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_static='-static'
7865
7866 case $host_os in
7867 aix*)
7868 # All AIX code is PIC.
7869 if test "$host_cpu" = ia64; then
7870 # AIX 5 now supports IA64 processor
7871 lt_prog_compiler_static='-Bstatic'
7872 fi
7873 ;;
7874
7875 amigaos*)
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic='-fPIC'
7880 ;;
7881 m68k)
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7884 # like `-m68040'.
7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7886 ;;
7887 esac
7888 ;;
7889
7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7891 # PIC is the default for these OSes.
7892 ;;
7893
7894 mingw* | cygwin* | pw32* | os2* | cegcc*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
7900 ;;
7901
7902 darwin* | rhapsody*)
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic='-fno-common'
7906 ;;
7907
7908 haiku*)
7909 # PIC is the default for Haiku.
7910 # The "-static" flag exists, but is broken.
7911 lt_prog_compiler_static=
7912 ;;
7913
7914 hpux*)
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7918 case $host_cpu in
7919 hppa*64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 ;;
7927
7928 interix[3-9]*)
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7931 ;;
7932
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared=no
7937 enable_shared=no
7938 ;;
7939
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
7944 ;;
7945
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 lt_prog_compiler_pic=-Kconform_pic
7949 fi
7950 ;;
7951
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
7954 ;;
7955 esac
7956
7957 case $cc_basename in
7958 nvcc*) # Cuda Compiler Driver 2.2
7959 lt_prog_compiler_wl='-Xlinker '
7960 if test -n "$lt_prog_compiler_pic"; then
7961 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7962 fi
7963 ;;
7964 esac
7965 else
7966 # PORTME Check for flag to pass linker flags through the system compiler.
7967 case $host_os in
7968 aix*)
7969 lt_prog_compiler_wl='-Wl,'
7970 if test "$host_cpu" = ia64; then
7971 # AIX 5 now supports IA64 processor
7972 lt_prog_compiler_static='-Bstatic'
7973 else
7974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7975 fi
7976 ;;
7977
7978 mingw* | cygwin* | pw32* | os2* | cegcc*)
7979 # This hack is so that the source file can tell whether it is being
7980 # built for inclusion in a dll (and should export symbols for example).
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7982 ;;
7983
7984 hpux9* | hpux10* | hpux11*)
7985 lt_prog_compiler_wl='-Wl,'
7986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7987 # not for PA HP-UX.
7988 case $host_cpu in
7989 hppa*64*|ia64*)
7990 # +Z the default
7991 ;;
7992 *)
7993 lt_prog_compiler_pic='+Z'
7994 ;;
7995 esac
7996 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7997 lt_prog_compiler_static='${wl}-a ${wl}archive'
7998 ;;
7999
8000 irix5* | irix6* | nonstopux*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC (with -KPIC) is the default.
8003 lt_prog_compiler_static='-non_shared'
8004 ;;
8005
8006 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8007 case $cc_basename in
8008 # old Intel for x86_64 which still supported -KPIC.
8009 ecc*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-KPIC'
8012 lt_prog_compiler_static='-static'
8013 ;;
8014 # icc used to be incompatible with GCC.
8015 # ICC 10 doesn't accept -KPIC any more.
8016 icc* | ifort*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-fPIC'
8019 lt_prog_compiler_static='-static'
8020 ;;
8021 # Lahey Fortran 8.1.
8022 lf95*)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='--shared'
8025 lt_prog_compiler_static='--static'
8026 ;;
8027 nagfor*)
8028 # NAG Fortran compiler
8029 lt_prog_compiler_wl='-Wl,-Wl,,'
8030 lt_prog_compiler_pic='-PIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8034 # Portland Group compilers (*not* the Pentium gcc compiler,
8035 # which looks to be a dead project)
8036 lt_prog_compiler_wl='-Wl,'
8037 lt_prog_compiler_pic='-fpic'
8038 lt_prog_compiler_static='-Bstatic'
8039 ;;
8040 ccc*)
8041 lt_prog_compiler_wl='-Wl,'
8042 # All Alpha code is PIC.
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045 xl* | bgxl* | bgf* | mpixl*)
8046 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8047 lt_prog_compiler_wl='-Wl,'
8048 lt_prog_compiler_pic='-qpic'
8049 lt_prog_compiler_static='-qstaticlink'
8050 ;;
8051 *)
8052 case `$CC -V 2>&1 | sed 5q` in
8053 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 lt_prog_compiler_wl=''
8058 ;;
8059 *Sun\ F* | *Sun*Fortran*)
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8062 lt_prog_compiler_wl='-Qoption ld '
8063 ;;
8064 *Sun\ C*)
8065 # Sun C 5.9
8066 lt_prog_compiler_pic='-KPIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 lt_prog_compiler_wl='-Wl,'
8069 ;;
8070 *Intel*\ [CF]*Compiler*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='-fPIC'
8073 lt_prog_compiler_static='-static'
8074 ;;
8075 *Portland\ Group*)
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-fpic'
8078 lt_prog_compiler_static='-Bstatic'
8079 ;;
8080 esac
8081 ;;
8082 esac
8083 ;;
8084
8085 newsos6)
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8088 ;;
8089
8090 *nto* | *qnx*)
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8092 # it will coredump.
8093 lt_prog_compiler_pic='-fPIC -shared'
8094 ;;
8095
8096 osf3* | osf4* | osf5*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # All OSF/1 code is PIC.
8099 lt_prog_compiler_static='-non_shared'
8100 ;;
8101
8102 rdos*)
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
8105
8106 solaris*)
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 case $cc_basename in
8110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8111 lt_prog_compiler_wl='-Qoption ld ';;
8112 *)
8113 lt_prog_compiler_wl='-Wl,';;
8114 esac
8115 ;;
8116
8117 sunos4*)
8118 lt_prog_compiler_wl='-Qoption ld '
8119 lt_prog_compiler_pic='-PIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122
8123 sysv4 | sysv4.2uw2* | sysv4.3*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 sysv4*MP*)
8130 if test -d /usr/nec ;then
8131 lt_prog_compiler_pic='-Kconform_pic'
8132 lt_prog_compiler_static='-Bstatic'
8133 fi
8134 ;;
8135
8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 ;;
8141
8142 unicos*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_can_build_shared=no
8145 ;;
8146
8147 uts4*)
8148 lt_prog_compiler_pic='-pic'
8149 lt_prog_compiler_static='-Bstatic'
8150 ;;
8151
8152 *)
8153 lt_prog_compiler_can_build_shared=no
8154 ;;
8155 esac
8156 fi
8157
8158 case $host_os in
8159 # For platforms which do not support PIC, -DPIC is meaningless:
8160 *djgpp*)
8161 lt_prog_compiler_pic=
8162 ;;
8163 *)
8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8165 ;;
8166 esac
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8170 if ${lt_cv_prog_compiler_pic+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8176 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8177 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8178
8179 #
8180 # Check to make sure the PIC flag actually works.
8181 #
8182 if test -n "$lt_prog_compiler_pic"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8185 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 lt_cv_prog_compiler_pic_works=no
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8191 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8192 # Insert the option either (1) after the last *FLAGS variable, or
8193 # (2) before a word containing "conftest.", or (3) at the end.
8194 # Note that $ac_compile itself does not contain backslashes and begins
8195 # with a dollar sign (not a hyphen), so the echo should work correctly.
8196 # The option is referenced via a variable to avoid confusing sed.
8197 lt_compile=`echo "$ac_compile" | $SED \
8198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8200 -e 's:$: $lt_compiler_flag:'`
8201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8202 (eval "$lt_compile" 2>conftest.err)
8203 ac_status=$?
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 if (exit $ac_status) && test -s "$ac_outfile"; then
8207 # The compiler can only warn and ignore the option if not recognized
8208 # So say no if there are warnings other than the usual output.
8209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_pic_works=yes
8213 fi
8214 fi
8215 $RM conftest*
8216
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8219 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8220
8221 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8222 case $lt_prog_compiler_pic in
8223 "" | " "*) ;;
8224 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8225 esac
8226 else
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_can_build_shared=no
8229 fi
8230
8231 fi
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 #
8244 # Check to make sure the static flag actually works.
8245 #
8246 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8249 if ${lt_cv_prog_compiler_static_works+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 lt_cv_prog_compiler_static_works=no
8253 save_LDFLAGS="$LDFLAGS"
8254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8257 # The linker can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 if test -s conftest.err; then
8260 # Append any errors to the config.log.
8261 cat conftest.err 1>&5
8262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8264 if diff conftest.exp conftest.er2 >/dev/null; then
8265 lt_cv_prog_compiler_static_works=yes
8266 fi
8267 else
8268 lt_cv_prog_compiler_static_works=yes
8269 fi
8270 fi
8271 $RM -r conftest*
8272 LDFLAGS="$save_LDFLAGS"
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8276 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8277
8278 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8279 :
8280 else
8281 lt_prog_compiler_static=
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8292 if ${lt_cv_prog_compiler_c_o+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 lt_cv_prog_compiler_c_o=no
8296 $RM -r conftest 2>/dev/null
8297 mkdir conftest
8298 cd conftest
8299 mkdir out
8300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8301
8302 lt_compiler_flag="-o out/conftest2.$ac_objext"
8303 # Insert the option either (1) after the last *FLAGS variable, or
8304 # (2) before a word containing "conftest.", or (3) at the end.
8305 # Note that $ac_compile itself does not contain backslashes and begins
8306 # with a dollar sign (not a hyphen), so the echo should work correctly.
8307 lt_compile=`echo "$ac_compile" | $SED \
8308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310 -e 's:$: $lt_compiler_flag:'`
8311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8312 (eval "$lt_compile" 2>out/conftest.err)
8313 ac_status=$?
8314 cat out/conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8317 then
8318 # The compiler can only warn and ignore the option if not recognized
8319 # So say no if there are warnings
8320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8323 lt_cv_prog_compiler_c_o=yes
8324 fi
8325 fi
8326 chmod u+w . 2>&5
8327 $RM conftest*
8328 # SGI C++ compiler will create directory out/ii_files/ for
8329 # template instantiation
8330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8331 $RM out/* && rmdir out
8332 cd ..
8333 $RM -r conftest
8334 $RM conftest*
8335
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8339
8340
8341
8342
8343
8344
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8347 if ${lt_cv_prog_compiler_c_o+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 lt_cv_prog_compiler_c_o=no
8351 $RM -r conftest 2>/dev/null
8352 mkdir conftest
8353 cd conftest
8354 mkdir out
8355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8356
8357 lt_compiler_flag="-o out/conftest2.$ac_objext"
8358 # Insert the option either (1) after the last *FLAGS variable, or
8359 # (2) before a word containing "conftest.", or (3) at the end.
8360 # Note that $ac_compile itself does not contain backslashes and begins
8361 # with a dollar sign (not a hyphen), so the echo should work correctly.
8362 lt_compile=`echo "$ac_compile" | $SED \
8363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8365 -e 's:$: $lt_compiler_flag:'`
8366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8367 (eval "$lt_compile" 2>out/conftest.err)
8368 ac_status=$?
8369 cat out/conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8372 then
8373 # The compiler can only warn and ignore the option if not recognized
8374 # So say no if there are warnings
8375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8378 lt_cv_prog_compiler_c_o=yes
8379 fi
8380 fi
8381 chmod u+w . 2>&5
8382 $RM conftest*
8383 # SGI C++ compiler will create directory out/ii_files/ for
8384 # template instantiation
8385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8386 $RM out/* && rmdir out
8387 cd ..
8388 $RM -r conftest
8389 $RM conftest*
8390
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8393 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8394
8395
8396
8397
8398 hard_links="nottested"
8399 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8400 # do not overwrite the value of need_locks provided by the user
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8402 $as_echo_n "checking if we can lock with hard links... " >&6; }
8403 hard_links=yes
8404 $RM conftest*
8405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8406 touch conftest.a
8407 ln conftest.a conftest.b 2>&5 || hard_links=no
8408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8410 $as_echo "$hard_links" >&6; }
8411 if test "$hard_links" = no; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8413 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8414 need_locks=warn
8415 fi
8416 else
8417 need_locks=no
8418 fi
8419
8420
8421
8422
8423
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8426 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8427
8428 runpath_var=
8429 allow_undefined_flag=
8430 always_export_symbols=no
8431 archive_cmds=
8432 archive_expsym_cmds=
8433 compiler_needs_object=no
8434 enable_shared_with_static_runtimes=no
8435 export_dynamic_flag_spec=
8436 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8437 hardcode_automatic=no
8438 hardcode_direct=no
8439 hardcode_direct_absolute=no
8440 hardcode_libdir_flag_spec=
8441 hardcode_libdir_separator=
8442 hardcode_minus_L=no
8443 hardcode_shlibpath_var=unsupported
8444 inherit_rpath=no
8445 link_all_deplibs=unknown
8446 module_cmds=
8447 module_expsym_cmds=
8448 old_archive_from_new_cmds=
8449 old_archive_from_expsyms_cmds=
8450 thread_safe_flag_spec=
8451 whole_archive_flag_spec=
8452 # include_expsyms should be a list of space-separated symbols to be *always*
8453 # included in the symbol list
8454 include_expsyms=
8455 # exclude_expsyms can be an extended regexp of symbols to exclude
8456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8458 # as well as any symbol that contains `d'.
8459 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8461 # platforms (ab)use it in PIC code, but their linkers get confused if
8462 # the symbol is explicitly referenced. Since portable code cannot
8463 # rely on this symbol name, it's probably fine to never include it in
8464 # preloaded symbol tables.
8465 # Exclude shared library initialization/finalization symbols.
8466 extract_expsyms_cmds=
8467
8468 case $host_os in
8469 cygwin* | mingw* | pw32* | cegcc*)
8470 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8471 # When not using gcc, we currently assume that we are using
8472 # Microsoft Visual C++.
8473 if test "$GCC" != yes; then
8474 with_gnu_ld=no
8475 fi
8476 ;;
8477 interix*)
8478 # we just hope/assume this is gcc and not c89 (= MSVC++)
8479 with_gnu_ld=yes
8480 ;;
8481 openbsd*)
8482 with_gnu_ld=no
8483 ;;
8484 linux* | k*bsd*-gnu | gnu*)
8485 link_all_deplibs=no
8486 ;;
8487 esac
8488
8489 ld_shlibs=yes
8490
8491 # On some targets, GNU ld is compatible enough with the native linker
8492 # that we're better off using the native interface for both.
8493 lt_use_gnu_ld_interface=no
8494 if test "$with_gnu_ld" = yes; then
8495 case $host_os in
8496 aix*)
8497 # The AIX port of GNU ld has always aspired to compatibility
8498 # with the native linker. However, as the warning in the GNU ld
8499 # block says, versions before 2.19.5* couldn't really create working
8500 # shared libraries, regardless of the interface used.
8501 case `$LD -v 2>&1` in
8502 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8503 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8504 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8505 *)
8506 lt_use_gnu_ld_interface=yes
8507 ;;
8508 esac
8509 ;;
8510 *)
8511 lt_use_gnu_ld_interface=yes
8512 ;;
8513 esac
8514 fi
8515
8516 if test "$lt_use_gnu_ld_interface" = yes; then
8517 # If archive_cmds runs LD, not CC, wlarc should be empty
8518 wlarc='${wl}'
8519
8520 # Set some defaults for GNU ld with shared library support. These
8521 # are reset later if shared libraries are not supported. Putting them
8522 # here allows them to be overridden if necessary.
8523 runpath_var=LD_RUN_PATH
8524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8525 export_dynamic_flag_spec='${wl}--export-dynamic'
8526 # ancient GNU ld didn't support --whole-archive et. al.
8527 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8528 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8529 else
8530 whole_archive_flag_spec=
8531 fi
8532 supports_anon_versioning=no
8533 case `$LD -v 2>&1` in
8534 *GNU\ gold*) supports_anon_versioning=yes ;;
8535 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8536 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8537 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8538 *\ 2.11.*) ;; # other 2.11 versions
8539 *) supports_anon_versioning=yes ;;
8540 esac
8541
8542 # See if GNU ld supports shared libraries.
8543 case $host_os in
8544 aix[3-9]*)
8545 # On AIX/PPC, the GNU linker is very broken
8546 if test "$host_cpu" != ia64; then
8547 ld_shlibs=no
8548 cat <<_LT_EOF 1>&2
8549
8550 *** Warning: the GNU linker, at least up to release 2.19, is reported
8551 *** to be unable to reliably create shared libraries on AIX.
8552 *** Therefore, libtool is disabling shared libraries support. If you
8553 *** really care for shared libraries, you may want to install binutils
8554 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8555 *** You will then need to restart the configuration process.
8556
8557 _LT_EOF
8558 fi
8559 ;;
8560
8561 amigaos*)
8562 case $host_cpu in
8563 powerpc)
8564 # see comment about AmigaOS4 .so support
8565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 archive_expsym_cmds=''
8567 ;;
8568 m68k)
8569 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)'
8570 hardcode_libdir_flag_spec='-L$libdir'
8571 hardcode_minus_L=yes
8572 ;;
8573 esac
8574 ;;
8575
8576 beos*)
8577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578 allow_undefined_flag=unsupported
8579 # Joseph Beckenbach <[email protected]> says some releases of gcc
8580 # support --undefined. This deserves some investigation. FIXME
8581 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 else
8583 ld_shlibs=no
8584 fi
8585 ;;
8586
8587 cygwin* | mingw* | pw32* | cegcc*)
8588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8589 # as there is no search path for DLLs.
8590 hardcode_libdir_flag_spec='-L$libdir'
8591 export_dynamic_flag_spec='${wl}--export-all-symbols'
8592 allow_undefined_flag=unsupported
8593 always_export_symbols=no
8594 enable_shared_with_static_runtimes=yes
8595 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'
8596 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8597
8598 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8600 # If the export-symbols file already is a .def file (1st line
8601 # is EXPORTS), use it as is; otherwise, prepend...
8602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8603 cp $export_symbols $output_objdir/$soname.def;
8604 else
8605 echo EXPORTS > $output_objdir/$soname.def;
8606 cat $export_symbols >> $output_objdir/$soname.def;
8607 fi~
8608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8609 else
8610 ld_shlibs=no
8611 fi
8612 ;;
8613
8614 haiku*)
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 link_all_deplibs=yes
8617 ;;
8618
8619 interix[3-9]*)
8620 hardcode_direct=no
8621 hardcode_shlibpath_var=no
8622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623 export_dynamic_flag_spec='${wl}-E'
8624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8625 # Instead, shared libraries are loaded at an image base (0x10000000 by
8626 # default) and relocated if they conflict, which is a slow very memory
8627 # consuming and fragmenting process. To avoid this, we pick a random,
8628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8631 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'
8632 ;;
8633
8634 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8635 tmp_diet=no
8636 if test "$host_os" = linux-dietlibc; then
8637 case $cc_basename in
8638 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8639 esac
8640 fi
8641 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8642 && test "$tmp_diet" = no
8643 then
8644 tmp_addflag=' $pic_flag'
8645 tmp_sharedflag='-shared'
8646 case $cc_basename,$host_cpu in
8647 pgcc*) # Portland Group C compiler
8648 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'
8649 tmp_addflag=' $pic_flag'
8650 ;;
8651 pgf77* | pgf90* | pgf95* | pgfortran*)
8652 # Portland Group f77 and f90 compilers
8653 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'
8654 tmp_addflag=' $pic_flag -Mnomain' ;;
8655 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8656 tmp_addflag=' -i_dynamic' ;;
8657 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8658 tmp_addflag=' -i_dynamic -nofor_main' ;;
8659 ifc* | ifort*) # Intel Fortran compiler
8660 tmp_addflag=' -nofor_main' ;;
8661 lf95*) # Lahey Fortran 8.1
8662 whole_archive_flag_spec=
8663 tmp_sharedflag='--shared' ;;
8664 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8665 tmp_sharedflag='-qmkshrobj'
8666 tmp_addflag= ;;
8667 nvcc*) # Cuda Compiler Driver 2.2
8668 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'
8669 compiler_needs_object=yes
8670 ;;
8671 esac
8672 case `$CC -V 2>&1 | sed 5q` in
8673 *Sun\ C*) # Sun C 5.9
8674 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'
8675 compiler_needs_object=yes
8676 tmp_sharedflag='-G' ;;
8677 *Sun\ F*) # Sun Fortran 8.3
8678 tmp_sharedflag='-G' ;;
8679 esac
8680 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681
8682 if test "x$supports_anon_versioning" = xyes; then
8683 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8685 echo "local: *; };" >> $output_objdir/$libname.ver~
8686 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8687 fi
8688
8689 case $cc_basename in
8690 xlf* | bgf* | bgxlf* | mpixlf*)
8691 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8692 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8695 if test "x$supports_anon_versioning" = xyes; then
8696 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8697 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8698 echo "local: *; };" >> $output_objdir/$libname.ver~
8699 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8700 fi
8701 ;;
8702 esac
8703 else
8704 ld_shlibs=no
8705 fi
8706 ;;
8707
8708 netbsd* | netbsdelf*-gnu)
8709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8710 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8711 wlarc=
8712 else
8713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 fi
8716 ;;
8717
8718 solaris*)
8719 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8720 ld_shlibs=no
8721 cat <<_LT_EOF 1>&2
8722
8723 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8724 *** create shared libraries on Solaris systems. Therefore, libtool
8725 *** is disabling shared libraries support. We urge you to upgrade GNU
8726 *** binutils to release 2.9.1 or newer. Another option is to modify
8727 *** your PATH or compiler configuration so that the native linker is
8728 *** used, and then restart.
8729
8730 _LT_EOF
8731 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8734 else
8735 ld_shlibs=no
8736 fi
8737 ;;
8738
8739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8740 case `$LD -v 2>&1` in
8741 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8742 ld_shlibs=no
8743 cat <<_LT_EOF 1>&2
8744
8745 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8746 *** reliably create shared libraries on SCO systems. Therefore, libtool
8747 *** is disabling shared libraries support. We urge you to upgrade GNU
8748 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8749 *** your PATH or compiler configuration so that the native linker is
8750 *** used, and then restart.
8751
8752 _LT_EOF
8753 ;;
8754 *)
8755 # For security reasons, it is highly recommended that you always
8756 # use absolute paths for naming shared libraries, and exclude the
8757 # DT_RUNPATH tag from executables and libraries. But doing so
8758 # requires that you compile everything twice, which is a pain.
8759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763 else
8764 ld_shlibs=no
8765 fi
8766 ;;
8767 esac
8768 ;;
8769
8770 sunos4*)
8771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772 wlarc=
8773 hardcode_direct=yes
8774 hardcode_shlibpath_var=no
8775 ;;
8776
8777 *)
8778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8781 else
8782 ld_shlibs=no
8783 fi
8784 ;;
8785 esac
8786
8787 if test "$ld_shlibs" = no; then
8788 runpath_var=
8789 hardcode_libdir_flag_spec=
8790 export_dynamic_flag_spec=
8791 whole_archive_flag_spec=
8792 fi
8793 else
8794 # PORTME fill in a description of your system's linker (not GNU ld)
8795 case $host_os in
8796 aix3*)
8797 allow_undefined_flag=unsupported
8798 always_export_symbols=yes
8799 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'
8800 # Note: this linker hardcodes the directories in LIBPATH if there
8801 # are no directories specified by -L.
8802 hardcode_minus_L=yes
8803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8804 # Neither direct hardcoding nor static linking is supported with a
8805 # broken collect2.
8806 hardcode_direct=unsupported
8807 fi
8808 ;;
8809
8810 aix[4-9]*)
8811 if test "$host_cpu" = ia64; then
8812 # On IA64, the linker does run time linking by default, so we don't
8813 # have to do anything special.
8814 aix_use_runtimelinking=no
8815 exp_sym_flag='-Bexport'
8816 no_entry_flag=""
8817 else
8818 # If we're using GNU nm, then we don't want the "-C" option.
8819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8820 # Also, AIX nm treats weak defined symbols like other global
8821 # defined symbols, whereas GNU nm marks them as "W".
8822 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8823 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'
8824 else
8825 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'
8826 fi
8827 aix_use_runtimelinking=no
8828
8829 # Test if we are trying to use run time linking or normal
8830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8831 # need to do runtime linking.
8832 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8833 for ld_flag in $LDFLAGS; do
8834 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8835 aix_use_runtimelinking=yes
8836 break
8837 fi
8838 done
8839 ;;
8840 esac
8841
8842 exp_sym_flag='-bexport'
8843 no_entry_flag='-bnoentry'
8844 fi
8845
8846 # When large executables or shared objects are built, AIX ld can
8847 # have problems creating the table of contents. If linking a library
8848 # or program results in "error TOC overflow" add -mminimal-toc to
8849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8851
8852 archive_cmds=''
8853 hardcode_direct=yes
8854 hardcode_direct_absolute=yes
8855 hardcode_libdir_separator=':'
8856 link_all_deplibs=yes
8857 file_list_spec='${wl}-f,'
8858
8859 if test "$GCC" = yes; then
8860 case $host_os in aix4.[012]|aix4.[012].*)
8861 # We only want to do this on AIX 4.2 and lower, the check
8862 # below for broken collect2 doesn't work under 4.3+
8863 collect2name=`${CC} -print-prog-name=collect2`
8864 if test -f "$collect2name" &&
8865 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8866 then
8867 # We have reworked collect2
8868 :
8869 else
8870 # We have old collect2
8871 hardcode_direct=unsupported
8872 # It fails to find uninstalled libraries when the uninstalled
8873 # path is not listed in the libpath. Setting hardcode_minus_L
8874 # to unsupported forces relinking
8875 hardcode_minus_L=yes
8876 hardcode_libdir_flag_spec='-L$libdir'
8877 hardcode_libdir_separator=
8878 fi
8879 ;;
8880 esac
8881 shared_flag='-shared'
8882 if test "$aix_use_runtimelinking" = yes; then
8883 shared_flag="$shared_flag "'${wl}-G'
8884 fi
8885 link_all_deplibs=no
8886 else
8887 # not using gcc
8888 if test "$host_cpu" = ia64; then
8889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8890 # chokes on -Wl,-G. The following line is correct:
8891 shared_flag='-G'
8892 else
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag='${wl}-G'
8895 else
8896 shared_flag='${wl}-bM:SRE'
8897 fi
8898 fi
8899 fi
8900
8901 export_dynamic_flag_spec='${wl}-bexpall'
8902 # It seems that -bexpall does not export symbols beginning with
8903 # underscore (_), so it is better to generate a list of symbols to export.
8904 always_export_symbols=yes
8905 if test "$aix_use_runtimelinking" = yes; then
8906 # Warning - without using the other runtime loading flags (-brtl),
8907 # -berok will link without error, but may produce a broken library.
8908 allow_undefined_flag='-berok'
8909 # Determine the default libpath from the value encoded in an
8910 # empty executable.
8911 if test "${lt_cv_aix_libpath+set}" = set; then
8912 aix_libpath=$lt_cv_aix_libpath
8913 else
8914 if ${lt_cv_aix_libpath_+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919
8920 int
8921 main ()
8922 {
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929
8930 lt_aix_libpath_sed='
8931 /Import File Strings/,/^$/ {
8932 /^0/ {
8933 s/^0 *\([^ ]*\) *$/\1/
8934 p
8935 }
8936 }'
8937 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 # Check for a 64-bit object if we didn't find anything.
8939 if test -z "$lt_cv_aix_libpath_"; then
8940 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 fi
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 if test -z "$lt_cv_aix_libpath_"; then
8946 lt_cv_aix_libpath_="/usr/lib:/lib"
8947 fi
8948
8949 fi
8950
8951 aix_libpath=$lt_cv_aix_libpath_
8952 fi
8953
8954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8955 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"
8956 else
8957 if test "$host_cpu" = ia64; then
8958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8959 allow_undefined_flag="-z nodefs"
8960 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"
8961 else
8962 # Determine the default libpath from the value encoded in an
8963 # empty executable.
8964 if test "${lt_cv_aix_libpath+set}" = set; then
8965 aix_libpath=$lt_cv_aix_libpath
8966 else
8967 if ${lt_cv_aix_libpath_+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972
8973 int
8974 main ()
8975 {
8976
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_link "$LINENO"; then :
8982
8983 lt_aix_libpath_sed='
8984 /Import File Strings/,/^$/ {
8985 /^0/ {
8986 s/^0 *\([^ ]*\) *$/\1/
8987 p
8988 }
8989 }'
8990 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 # Check for a 64-bit object if we didn't find anything.
8992 if test -z "$lt_cv_aix_libpath_"; then
8993 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994 fi
8995 fi
8996 rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 if test -z "$lt_cv_aix_libpath_"; then
8999 lt_cv_aix_libpath_="/usr/lib:/lib"
9000 fi
9001
9002 fi
9003
9004 aix_libpath=$lt_cv_aix_libpath_
9005 fi
9006
9007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9008 # Warning - without using the other run time loading flags,
9009 # -berok will link without error, but may produce a broken library.
9010 no_undefined_flag=' ${wl}-bernotok'
9011 allow_undefined_flag=' ${wl}-berok'
9012 if test "$with_gnu_ld" = yes; then
9013 # We only use this code for GNU lds that support --whole-archive.
9014 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9015 else
9016 # Exported symbols can be pulled into shared objects from archives
9017 whole_archive_flag_spec='$convenience'
9018 fi
9019 archive_cmds_need_lc=yes
9020 # This is similar to how AIX traditionally builds its shared libraries.
9021 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'
9022 fi
9023 fi
9024 ;;
9025
9026 amigaos*)
9027 case $host_cpu in
9028 powerpc)
9029 # see comment about AmigaOS4 .so support
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds=''
9032 ;;
9033 m68k)
9034 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)'
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_minus_L=yes
9037 ;;
9038 esac
9039 ;;
9040
9041 bsdi[45]*)
9042 export_dynamic_flag_spec=-rdynamic
9043 ;;
9044
9045 cygwin* | mingw* | pw32* | cegcc*)
9046 # When not using gcc, we currently assume that we are using
9047 # Microsoft Visual C++.
9048 # hardcode_libdir_flag_spec is actually meaningless, as there is
9049 # no search path for DLLs.
9050 case $cc_basename in
9051 cl*)
9052 # Native MSVC
9053 hardcode_libdir_flag_spec=' '
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=yes
9056 file_list_spec='@'
9057 # Tell ltmain to make .lib files, not .a files.
9058 libext=lib
9059 # Tell ltmain to make .dll files, not .so files.
9060 shrext_cmds=".dll"
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9064 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9065 else
9066 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9067 fi~
9068 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9069 linknames='
9070 # The linker will not automatically build a static lib if we build a DLL.
9071 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9072 enable_shared_with_static_runtimes=yes
9073 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9075 # Don't use ranlib
9076 old_postinstall_cmds='chmod 644 $oldlib'
9077 postlink_cmds='lt_outputfile="@OUTPUT@"~
9078 lt_tool_outputfile="@TOOL_OUTPUT@"~
9079 case $lt_outputfile in
9080 *.exe|*.EXE) ;;
9081 *)
9082 lt_outputfile="$lt_outputfile.exe"
9083 lt_tool_outputfile="$lt_tool_outputfile.exe"
9084 ;;
9085 esac~
9086 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9087 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9088 $RM "$lt_outputfile.manifest";
9089 fi'
9090 ;;
9091 *)
9092 # Assume MSVC wrapper
9093 hardcode_libdir_flag_spec=' '
9094 allow_undefined_flag=unsupported
9095 # Tell ltmain to make .lib files, not .a files.
9096 libext=lib
9097 # Tell ltmain to make .dll files, not .so files.
9098 shrext_cmds=".dll"
9099 # FIXME: Setting linknames here is a bad hack.
9100 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9101 # The linker will automatically build a .lib file if we build a DLL.
9102 old_archive_from_new_cmds='true'
9103 # FIXME: Should let the user specify the lib program.
9104 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9105 enable_shared_with_static_runtimes=yes
9106 ;;
9107 esac
9108 ;;
9109
9110 darwin* | rhapsody*)
9111
9112
9113 archive_cmds_need_lc=no
9114 hardcode_direct=no
9115 hardcode_automatic=yes
9116 hardcode_shlibpath_var=unsupported
9117 if test "$lt_cv_ld_force_load" = "yes"; then
9118 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\"`'
9119
9120 else
9121 whole_archive_flag_spec=''
9122 fi
9123 link_all_deplibs=yes
9124 allow_undefined_flag="$_lt_dar_allow_undefined"
9125 case $cc_basename in
9126 ifort*) _lt_dar_can_shared=yes ;;
9127 *) _lt_dar_can_shared=$GCC ;;
9128 esac
9129 if test "$_lt_dar_can_shared" = "yes"; then
9130 output_verbose_link_cmd=func_echo_all
9131 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9132 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9133 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}"
9134 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}"
9135
9136 else
9137 ld_shlibs=no
9138 fi
9139
9140 ;;
9141
9142 dgux*)
9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_shlibpath_var=no
9146 ;;
9147
9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149 # support. Future versions do this automatically, but an explicit c++rt0.o
9150 # does not break anything, and helps significantly (at the cost of a little
9151 # extra space).
9152 freebsd2.2*)
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9160 freebsd2.*)
9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_direct=yes
9163 hardcode_minus_L=yes
9164 hardcode_shlibpath_var=no
9165 ;;
9166
9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168 freebsd* | dragonfly*)
9169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 hpux9*)
9176 if test "$GCC" = yes; then
9177 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'
9178 else
9179 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'
9180 fi
9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9182 hardcode_libdir_separator=:
9183 hardcode_direct=yes
9184
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
9188 export_dynamic_flag_spec='${wl}-E'
9189 ;;
9190
9191 hpux10*)
9192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9193 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9194 else
9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 fi
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_separator=:
9200 hardcode_direct=yes
9201 hardcode_direct_absolute=yes
9202 export_dynamic_flag_spec='${wl}-E'
9203 # hardcode_minus_L: Not really in the search PATH,
9204 # but as the default location of the library.
9205 hardcode_minus_L=yes
9206 fi
9207 ;;
9208
9209 hpux11*)
9210 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9211 case $host_cpu in
9212 hppa*64*)
9213 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 ;;
9215 ia64*)
9216 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217 ;;
9218 *)
9219 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 ;;
9221 esac
9222 else
9223 case $host_cpu in
9224 hppa*64*)
9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9226 ;;
9227 ia64*)
9228 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9229 ;;
9230 *)
9231
9232 # Older versions of the 11.00 compiler do not understand -b yet
9233 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9235 $as_echo_n "checking if $CC understands -b... " >&6; }
9236 if ${lt_cv_prog_compiler__b+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 lt_cv_prog_compiler__b=no
9240 save_LDFLAGS="$LDFLAGS"
9241 LDFLAGS="$LDFLAGS -b"
9242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244 # The linker can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 if test -s conftest.err; then
9247 # Append any errors to the config.log.
9248 cat conftest.err 1>&5
9249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251 if diff conftest.exp conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler__b=yes
9253 fi
9254 else
9255 lt_cv_prog_compiler__b=yes
9256 fi
9257 fi
9258 $RM -r conftest*
9259 LDFLAGS="$save_LDFLAGS"
9260
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9263 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9264
9265 if test x"$lt_cv_prog_compiler__b" = xyes; then
9266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267 else
9268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269 fi
9270
9271 ;;
9272 esac
9273 fi
9274 if test "$with_gnu_ld" = no; then
9275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9276 hardcode_libdir_separator=:
9277
9278 case $host_cpu in
9279 hppa*64*|ia64*)
9280 hardcode_direct=no
9281 hardcode_shlibpath_var=no
9282 ;;
9283 *)
9284 hardcode_direct=yes
9285 hardcode_direct_absolute=yes
9286 export_dynamic_flag_spec='${wl}-E'
9287
9288 # hardcode_minus_L: Not really in the search PATH,
9289 # but as the default location of the library.
9290 hardcode_minus_L=yes
9291 ;;
9292 esac
9293 fi
9294 ;;
9295
9296 irix5* | irix6* | nonstopux*)
9297 if test "$GCC" = yes; then
9298 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'
9299 # Try to use the -exported_symbol ld option, if it does not
9300 # work, assume that -exports_file does not work either and
9301 # implicitly export all symbols.
9302 # This should be the same for all languages, so no per-tag cache variable.
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9304 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9305 if ${lt_cv_irix_exported_symbol+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 save_LDFLAGS="$LDFLAGS"
9309 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int foo (void) { return 0; }
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 lt_cv_irix_exported_symbol=yes
9316 else
9317 lt_cv_irix_exported_symbol=no
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LDFLAGS="$save_LDFLAGS"
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9324 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9325 if test "$lt_cv_irix_exported_symbol" = yes; then
9326 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'
9327 fi
9328 else
9329 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'
9330 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'
9331 fi
9332 archive_cmds_need_lc='no'
9333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334 hardcode_libdir_separator=:
9335 inherit_rpath=yes
9336 link_all_deplibs=yes
9337 ;;
9338
9339 netbsd* | netbsdelf*-gnu)
9340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9342 else
9343 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9344 fi
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_direct=yes
9347 hardcode_shlibpath_var=no
9348 ;;
9349
9350 newsos6)
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_direct=yes
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 *nto* | *qnx*)
9359 ;;
9360
9361 openbsd*)
9362 if test -f /usr/libexec/ld.so; then
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9365 hardcode_direct_absolute=yes
9366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9370 export_dynamic_flag_spec='${wl}-E'
9371 else
9372 case $host_os in
9373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_libdir_flag_spec='-R$libdir'
9376 ;;
9377 *)
9378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9380 ;;
9381 esac
9382 fi
9383 else
9384 ld_shlibs=no
9385 fi
9386 ;;
9387
9388 os2*)
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_minus_L=yes
9391 allow_undefined_flag=unsupported
9392 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'
9393 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9394 ;;
9395
9396 osf3*)
9397 if test "$GCC" = yes; then
9398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9399 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'
9400 else
9401 allow_undefined_flag=' -expect_unresolved \*'
9402 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'
9403 fi
9404 archive_cmds_need_lc='no'
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 ;;
9408
9409 osf4* | osf5*) # as osf3* with the addition of -msym flag
9410 if test "$GCC" = yes; then
9411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9412 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'
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 else
9415 allow_undefined_flag=' -expect_unresolved \*'
9416 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'
9417 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~
9418 $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'
9419
9420 # Both c and cxx compiler support -rpath directly
9421 hardcode_libdir_flag_spec='-rpath $libdir'
9422 fi
9423 archive_cmds_need_lc='no'
9424 hardcode_libdir_separator=:
9425 ;;
9426
9427 solaris*)
9428 no_undefined_flag=' -z defs'
9429 if test "$GCC" = yes; then
9430 wlarc='${wl}'
9431 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9433 $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'
9434 else
9435 case `$CC -V 2>&1` in
9436 *"Compilers 5.0"*)
9437 wlarc=''
9438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9441 ;;
9442 *)
9443 wlarc='${wl}'
9444 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9446 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9447 ;;
9448 esac
9449 fi
9450 hardcode_libdir_flag_spec='-R$libdir'
9451 hardcode_shlibpath_var=no
9452 case $host_os in
9453 solaris2.[0-5] | solaris2.[0-5].*) ;;
9454 *)
9455 # The compiler driver will combine and reorder linker options,
9456 # but understands `-z linker_flag'. GCC discards it without `$wl',
9457 # but is careful enough not to reorder.
9458 # Supported since Solaris 2.6 (maybe 2.5.1?)
9459 if test "$GCC" = yes; then
9460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9461 else
9462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9463 fi
9464 ;;
9465 esac
9466 link_all_deplibs=yes
9467 ;;
9468
9469 sunos4*)
9470 if test "x$host_vendor" = xsequent; then
9471 # Use $CC to link under sequent, because it throws in some extra .o
9472 # files that make .init and .fini sections work.
9473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9474 else
9475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9476 fi
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 hardcode_direct=yes
9479 hardcode_minus_L=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 sysv4)
9484 case $host_vendor in
9485 sni)
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_direct=yes # is this really true???
9488 ;;
9489 siemens)
9490 ## LD is ld it makes a PLAMLIB
9491 ## CC just makes a GrossModule.
9492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9493 reload_cmds='$CC -r -o $output$reload_objs'
9494 hardcode_direct=no
9495 ;;
9496 motorola)
9497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9499 ;;
9500 esac
9501 runpath_var='LD_RUN_PATH'
9502 hardcode_shlibpath_var=no
9503 ;;
9504
9505 sysv4.3*)
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_shlibpath_var=no
9508 export_dynamic_flag_spec='-Bexport'
9509 ;;
9510
9511 sysv4*MP*)
9512 if test -d /usr/nec; then
9513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_shlibpath_var=no
9515 runpath_var=LD_RUN_PATH
9516 hardcode_runpath_var=yes
9517 ld_shlibs=yes
9518 fi
9519 ;;
9520
9521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9522 no_undefined_flag='${wl}-z,text'
9523 archive_cmds_need_lc=no
9524 hardcode_shlibpath_var=no
9525 runpath_var='LD_RUN_PATH'
9526
9527 if test "$GCC" = yes; then
9528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 else
9531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 fi
9534 ;;
9535
9536 sysv5* | sco3.2v5* | sco5v6*)
9537 # Note: We can NOT use -z defs as we might desire, because we do not
9538 # link with -lc, and that would cause any symbols used from libc to
9539 # always be unresolved, which means just about no library would
9540 # ever link correctly. If we're not using GNU ld we use -z text
9541 # though, which does catch some bad symbols but isn't as heavy-handed
9542 # as -z defs.
9543 no_undefined_flag='${wl}-z,text'
9544 allow_undefined_flag='${wl}-z,nodefs'
9545 archive_cmds_need_lc=no
9546 hardcode_shlibpath_var=no
9547 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9548 hardcode_libdir_separator=':'
9549 link_all_deplibs=yes
9550 export_dynamic_flag_spec='${wl}-Bexport'
9551 runpath_var='LD_RUN_PATH'
9552
9553 if test "$GCC" = yes; then
9554 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 else
9557 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559 fi
9560 ;;
9561
9562 uts4*)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-L$libdir'
9565 hardcode_shlibpath_var=no
9566 ;;
9567
9568 *)
9569 ld_shlibs=no
9570 ;;
9571 esac
9572
9573 if test x$host_vendor = xsni; then
9574 case $host in
9575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9576 export_dynamic_flag_spec='${wl}-Blargedynsym'
9577 ;;
9578 esac
9579 fi
9580 fi
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9583 $as_echo "$ld_shlibs" >&6; }
9584 test "$ld_shlibs" = no && can_build_shared=no
9585
9586 with_gnu_ld=$with_gnu_ld
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 #
9603 # Do we need to explicitly link libc?
9604 #
9605 case "x$archive_cmds_need_lc" in
9606 x|xyes)
9607 # Assume -lc should be added
9608 archive_cmds_need_lc=yes
9609
9610 if test "$enable_shared" = yes && test "$GCC" = yes; then
9611 case $archive_cmds in
9612 *'~'*)
9613 # FIXME: we may have to deal with multi-command sequences.
9614 ;;
9615 '$CC '*)
9616 # Test whether the compiler implicitly links with -lc since on some
9617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9618 # to ld, don't add -lc before -lgcc.
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9620 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9621 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 $RM conftest*
9625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9626
9627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9628 (eval $ac_compile) 2>&5
9629 ac_status=$?
9630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; } 2>conftest.err; then
9632 soname=conftest
9633 lib=conftest
9634 libobjs=conftest.$ac_objext
9635 deplibs=
9636 wl=$lt_prog_compiler_wl
9637 pic_flag=$lt_prog_compiler_pic
9638 compiler_flags=-v
9639 linker_flags=-v
9640 verstring=
9641 output_objdir=.
9642 libname=conftest
9643 lt_save_allow_undefined_flag=$allow_undefined_flag
9644 allow_undefined_flag=
9645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9646 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9647 ac_status=$?
9648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9649 test $ac_status = 0; }
9650 then
9651 lt_cv_archive_cmds_need_lc=no
9652 else
9653 lt_cv_archive_cmds_need_lc=yes
9654 fi
9655 allow_undefined_flag=$lt_save_allow_undefined_flag
9656 else
9657 cat conftest.err 1>&5
9658 fi
9659 $RM conftest*
9660
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9663 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9664 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9665 ;;
9666 esac
9667 fi
9668 ;;
9669 esac
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9823 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9824
9825 if test "$GCC" = yes; then
9826 case $host_os in
9827 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9828 *) lt_awk_arg="/^libraries:/" ;;
9829 esac
9830 case $host_os in
9831 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9832 *) lt_sed_strip_eq="s,=/,/,g" ;;
9833 esac
9834 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9835 case $lt_search_path_spec in
9836 *\;*)
9837 # if the path contains ";" then we assume it to be the separator
9838 # otherwise default to the standard path separator (i.e. ":") - it is
9839 # assumed that no part of a normal pathname contains ";" but that should
9840 # okay in the real world where ";" in dirpaths is itself problematic.
9841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9842 ;;
9843 *)
9844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9845 ;;
9846 esac
9847 # Ok, now we have the path, separated by spaces, we can step through it
9848 # and add multilib dir if necessary.
9849 lt_tmp_lt_search_path_spec=
9850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9851 for lt_sys_path in $lt_search_path_spec; do
9852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9854 else
9855 test -d "$lt_sys_path" && \
9856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9857 fi
9858 done
9859 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9860 BEGIN {RS=" "; FS="/|\n";} {
9861 lt_foo="";
9862 lt_count=0;
9863 for (lt_i = NF; lt_i > 0; lt_i--) {
9864 if ($lt_i != "" && $lt_i != ".") {
9865 if ($lt_i == "..") {
9866 lt_count++;
9867 } else {
9868 if (lt_count == 0) {
9869 lt_foo="/" $lt_i lt_foo;
9870 } else {
9871 lt_count--;
9872 }
9873 }
9874 }
9875 }
9876 if (lt_foo != "") { lt_freq[lt_foo]++; }
9877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9878 }'`
9879 # AWK program above erroneously prepends '/' to C:/dos/paths
9880 # for these hosts.
9881 case $host_os in
9882 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9883 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9884 esac
9885 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9886 else
9887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9888 fi
9889 library_names_spec=
9890 libname_spec='lib$name'
9891 soname_spec=
9892 shrext_cmds=".so"
9893 postinstall_cmds=
9894 postuninstall_cmds=
9895 finish_cmds=
9896 finish_eval=
9897 shlibpath_var=
9898 shlibpath_overrides_runpath=unknown
9899 version_type=none
9900 dynamic_linker="$host_os ld.so"
9901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9902 need_lib_prefix=unknown
9903 hardcode_into_libs=no
9904
9905 # when you set need_version to no, make sure it does not cause -set_version
9906 # flags to be left without arguments
9907 need_version=unknown
9908
9909 case $host_os in
9910 aix3*)
9911 version_type=linux # correct to gnu/linux during the next big refactor
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913 shlibpath_var=LIBPATH
9914
9915 # AIX 3 has no versioning support, so we append a major version to the name.
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 ;;
9918
9919 aix[4-9]*)
9920 version_type=linux # correct to gnu/linux during the next big refactor
9921 need_lib_prefix=no
9922 need_version=no
9923 hardcode_into_libs=yes
9924 if test "$host_cpu" = ia64; then
9925 # AIX 5 supports IA64
9926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 else
9929 # With GCC up to 2.95.x, collect2 would create an import file
9930 # for dependence libraries. The import file would start with
9931 # the line `#! .'. This would cause the generated library to
9932 # depend on `.', always an invalid library. This was fixed in
9933 # development snapshots of GCC prior to 3.0.
9934 case $host_os in
9935 aix4 | aix4.[01] | aix4.[01].*)
9936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9937 echo ' yes '
9938 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9939 :
9940 else
9941 can_build_shared=no
9942 fi
9943 ;;
9944 esac
9945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946 # soname into executable. Probably we can add versioning support to
9947 # collect2, so additional links can be useful in future.
9948 if test "$aix_use_runtimelinking" = yes; then
9949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950 # instead of lib<name>.a to let people know that these are not
9951 # typical AIX shared libraries.
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 else
9954 # We preserve .a as extension for shared libraries through AIX4.2
9955 # and later when we are not doing run time linking.
9956 library_names_spec='${libname}${release}.a $libname.a'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 fi
9959 shlibpath_var=LIBPATH
9960 fi
9961 ;;
9962
9963 amigaos*)
9964 case $host_cpu in
9965 powerpc)
9966 # Since July 2007 AmigaOS4 officially supports .so libraries.
9967 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 ;;
9970 m68k)
9971 library_names_spec='$libname.ixlibrary $libname.a'
9972 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9973 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'
9974 ;;
9975 esac
9976 ;;
9977
9978 beos*)
9979 library_names_spec='${libname}${shared_ext}'
9980 dynamic_linker="$host_os ld.so"
9981 shlibpath_var=LIBRARY_PATH
9982 ;;
9983
9984 bsdi[45]*)
9985 version_type=linux # correct to gnu/linux during the next big refactor
9986 need_version=no
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9993 # the default ld.so.conf also contains /usr/contrib/lib and
9994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9995 # libtool to hard-code these into programs
9996 ;;
9997
9998 cygwin* | mingw* | pw32* | cegcc*)
9999 version_type=windows
10000 shrext_cmds=".dll"
10001 need_version=no
10002 need_lib_prefix=no
10003
10004 case $GCC,$cc_basename in
10005 yes,*)
10006 # gcc
10007 library_names_spec='$libname.dll.a'
10008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10009 postinstall_cmds='base_file=`basename \${file}`~
10010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10011 dldir=$destdir/`dirname \$dlpath`~
10012 test -d \$dldir || mkdir -p \$dldir~
10013 $install_prog $dir/$dlname \$dldir/$dlname~
10014 chmod a+x \$dldir/$dlname~
10015 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10016 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10017 fi'
10018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10019 dlpath=$dir/\$dldll~
10020 $RM \$dlpath'
10021 shlibpath_overrides_runpath=yes
10022
10023 case $host_os in
10024 cygwin*)
10025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10027
10028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10029 ;;
10030 mingw* | cegcc*)
10031 # MinGW DLLs use traditional 'lib' prefix
10032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10033 ;;
10034 pw32*)
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037 ;;
10038 esac
10039 dynamic_linker='Win32 ld.exe'
10040 ;;
10041
10042 *,cl*)
10043 # Native MSVC
10044 libname_spec='$name'
10045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10046 library_names_spec='${libname}.dll.lib'
10047
10048 case $build_os in
10049 mingw*)
10050 sys_lib_search_path_spec=
10051 lt_save_ifs=$IFS
10052 IFS=';'
10053 for lt_path in $LIB
10054 do
10055 IFS=$lt_save_ifs
10056 # Let DOS variable expansion print the short 8.3 style file name.
10057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10059 done
10060 IFS=$lt_save_ifs
10061 # Convert to MSYS style.
10062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10063 ;;
10064 cygwin*)
10065 # Convert to unix form, then to dos form, then back to unix form
10066 # but this time dos style (no spaces!) so that the unix form looks
10067 # like /cygdrive/c/PROGRA~1:/cygdr...
10068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10071 ;;
10072 *)
10073 sys_lib_search_path_spec="$LIB"
10074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10075 # It is most probably a Windows format PATH.
10076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10077 else
10078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10079 fi
10080 # FIXME: find the short name or the path components, as spaces are
10081 # common. (e.g. "Program Files" -> "PROGRA~1")
10082 ;;
10083 esac
10084
10085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10086 postinstall_cmds='base_file=`basename \${file}`~
10087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10088 dldir=$destdir/`dirname \$dlpath`~
10089 test -d \$dldir || mkdir -p \$dldir~
10090 $install_prog $dir/$dlname \$dldir/$dlname'
10091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10092 dlpath=$dir/\$dldll~
10093 $RM \$dlpath'
10094 shlibpath_overrides_runpath=yes
10095 dynamic_linker='Win32 link.exe'
10096 ;;
10097
10098 *)
10099 # Assume MSVC wrapper
10100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10101 dynamic_linker='Win32 ld.exe'
10102 ;;
10103 esac
10104 # FIXME: first we should search . and the directory the executable is in
10105 shlibpath_var=PATH
10106 ;;
10107
10108 darwin* | rhapsody*)
10109 dynamic_linker="$host_os dyld"
10110 version_type=darwin
10111 need_lib_prefix=no
10112 need_version=no
10113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10114 soname_spec='${libname}${release}${major}$shared_ext'
10115 shlibpath_overrides_runpath=yes
10116 shlibpath_var=DYLD_LIBRARY_PATH
10117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10118
10119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10121 ;;
10122
10123 dgux*)
10124 version_type=linux # correct to gnu/linux during the next big refactor
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 ;;
10131
10132 freebsd* | dragonfly*)
10133 # DragonFly does not have aout. When/if they implement a new
10134 # versioning mechanism, adjust this.
10135 if test -x /usr/bin/objformat; then
10136 objformat=`/usr/bin/objformat`
10137 else
10138 case $host_os in
10139 freebsd[23].*) objformat=aout ;;
10140 *) objformat=elf ;;
10141 esac
10142 fi
10143 version_type=freebsd-$objformat
10144 case $version_type in
10145 freebsd-elf*)
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10147 need_version=no
10148 need_lib_prefix=no
10149 ;;
10150 freebsd-*)
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10152 need_version=yes
10153 ;;
10154 esac
10155 shlibpath_var=LD_LIBRARY_PATH
10156 case $host_os in
10157 freebsd2.*)
10158 shlibpath_overrides_runpath=yes
10159 ;;
10160 freebsd3.[01]* | freebsdelf3.[01]*)
10161 shlibpath_overrides_runpath=yes
10162 hardcode_into_libs=yes
10163 ;;
10164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10166 shlibpath_overrides_runpath=no
10167 hardcode_into_libs=yes
10168 ;;
10169 *) # from 4.6 on, and DragonFly
10170 shlibpath_overrides_runpath=yes
10171 hardcode_into_libs=yes
10172 ;;
10173 esac
10174 ;;
10175
10176 haiku*)
10177 version_type=linux # correct to gnu/linux during the next big refactor
10178 need_lib_prefix=no
10179 need_version=no
10180 dynamic_linker="$host_os runtime_loader"
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LIBRARY_PATH
10184 shlibpath_overrides_runpath=yes
10185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10186 hardcode_into_libs=yes
10187 ;;
10188
10189 hpux9* | hpux10* | hpux11*)
10190 # Give a soname corresponding to the major version so that dld.sl refuses to
10191 # link against other versions.
10192 version_type=sunos
10193 need_lib_prefix=no
10194 need_version=no
10195 case $host_cpu in
10196 ia64*)
10197 shrext_cmds='.so'
10198 hardcode_into_libs=yes
10199 dynamic_linker="$host_os dld.so"
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 if test "X$HPUX_IA64_MODE" = X32; then
10205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206 else
10207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208 fi
10209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210 ;;
10211 hppa*64*)
10212 shrext_cmds='.sl'
10213 hardcode_into_libs=yes
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 ;;
10222 *)
10223 shrext_cmds='.sl'
10224 dynamic_linker="$host_os dld.sl"
10225 shlibpath_var=SHLIB_PATH
10226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 ;;
10230 esac
10231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10232 postinstall_cmds='chmod 555 $lib'
10233 # or fails outright, so override atomically:
10234 install_override_mode=555
10235 ;;
10236
10237 interix[3-9]*)
10238 version_type=linux # correct to gnu/linux during the next big refactor
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 ;;
10248
10249 irix5* | irix6* | nonstopux*)
10250 case $host_os in
10251 nonstopux*) version_type=nonstopux ;;
10252 *)
10253 if test "$lt_cv_prog_gnu_ld" = yes; then
10254 version_type=linux # correct to gnu/linux during the next big refactor
10255 else
10256 version_type=irix
10257 fi ;;
10258 esac
10259 need_lib_prefix=no
10260 need_version=no
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 case $host_os in
10264 irix5* | nonstopux*)
10265 libsuff= shlibsuff=
10266 ;;
10267 *)
10268 case $LD in # libtool.m4 will add one of these switches to LD
10269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270 libsuff= shlibsuff= libmagic=32-bit;;
10271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272 libsuff=32 shlibsuff=N32 libmagic=N32;;
10273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275 *) libsuff= shlibsuff= libmagic=never-match;;
10276 esac
10277 ;;
10278 esac
10279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283 hardcode_into_libs=yes
10284 ;;
10285
10286 # No shared lib support for Linux oldld, aout, or coff.
10287 linux*oldld* | linux*aout* | linux*coff*)
10288 dynamic_linker=no
10289 ;;
10290
10291 # This must be glibc/ELF.
10292 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10293 version_type=linux # correct to gnu/linux during the next big refactor
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10301
10302 # Some binutils ld are patched to set DT_RUNPATH
10303 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 lt_cv_shlibpath_overrides_runpath=no
10307 save_LDFLAGS=$LDFLAGS
10308 save_libdir=$libdir
10309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313
10314 int
10315 main ()
10316 {
10317
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10324 lt_cv_shlibpath_overrides_runpath=yes
10325 fi
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LDFLAGS=$save_LDFLAGS
10330 libdir=$save_libdir
10331
10332 fi
10333
10334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10335
10336 # This implies no fast_install, which is unacceptable.
10337 # Some rework will be needed to allow for fast_install
10338 # before this can be enabled.
10339 hardcode_into_libs=yes
10340
10341 # Append ld.so.conf contents to the search path
10342 if test -f /etc/ld.so.conf; then
10343 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' ' '`
10344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10345 fi
10346
10347 # We used to test for /lib/ld.so.1 and disable shared libraries on
10348 # powerpc, because MkLinux only supported shared libraries with the
10349 # GNU dynamic linker. Since this was broken with cross compilers,
10350 # most powerpc-linux boxes support dynamic linking these days and
10351 # people can always --disable-shared, the test was removed, and we
10352 # assume the GNU/Linux dynamic linker is in use.
10353 dynamic_linker='GNU/Linux ld.so'
10354 ;;
10355
10356 netbsdelf*-gnu)
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=no
10364 hardcode_into_libs=yes
10365 dynamic_linker='NetBSD ld.elf_so'
10366 ;;
10367
10368 netbsd*)
10369 version_type=sunos
10370 need_lib_prefix=no
10371 need_version=no
10372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10375 dynamic_linker='NetBSD (a.out) ld.so'
10376 else
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 dynamic_linker='NetBSD ld.elf_so'
10380 fi
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=yes
10383 hardcode_into_libs=yes
10384 ;;
10385
10386 newsos6)
10387 version_type=linux # correct to gnu/linux during the next big refactor
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes
10391 ;;
10392
10393 *nto* | *qnx*)
10394 version_type=qnx
10395 need_lib_prefix=no
10396 need_version=no
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=no
10401 hardcode_into_libs=yes
10402 dynamic_linker='ldqnx.so'
10403 ;;
10404
10405 openbsd*)
10406 version_type=sunos
10407 sys_lib_dlsearch_path_spec="/usr/lib"
10408 need_lib_prefix=no
10409 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10410 case $host_os in
10411 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10412 *) need_version=no ;;
10413 esac
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10418 case $host_os in
10419 openbsd2.[89] | openbsd2.[89].*)
10420 shlibpath_overrides_runpath=no
10421 ;;
10422 *)
10423 shlibpath_overrides_runpath=yes
10424 ;;
10425 esac
10426 else
10427 shlibpath_overrides_runpath=yes
10428 fi
10429 ;;
10430
10431 os2*)
10432 libname_spec='$name'
10433 shrext_cmds=".dll"
10434 need_lib_prefix=no
10435 library_names_spec='$libname${shared_ext} $libname.a'
10436 dynamic_linker='OS/2 ld.exe'
10437 shlibpath_var=LIBPATH
10438 ;;
10439
10440 osf3* | osf4* | osf5*)
10441 version_type=osf
10442 need_lib_prefix=no
10443 need_version=no
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10449 ;;
10450
10451 rdos*)
10452 dynamic_linker=no
10453 ;;
10454
10455 solaris*)
10456 version_type=linux # correct to gnu/linux during the next big refactor
10457 need_lib_prefix=no
10458 need_version=no
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes
10463 hardcode_into_libs=yes
10464 # ldd complains unless libraries are executable
10465 postinstall_cmds='chmod +x $lib'
10466 ;;
10467
10468 sunos4*)
10469 version_type=sunos
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes
10474 if test "$with_gnu_ld" = yes; then
10475 need_lib_prefix=no
10476 fi
10477 need_version=yes
10478 ;;
10479
10480 sysv4 | sysv4.3*)
10481 version_type=linux # correct to gnu/linux during the next big refactor
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 case $host_vendor in
10486 sni)
10487 shlibpath_overrides_runpath=no
10488 need_lib_prefix=no
10489 runpath_var=LD_RUN_PATH
10490 ;;
10491 siemens)
10492 need_lib_prefix=no
10493 ;;
10494 motorola)
10495 need_lib_prefix=no
10496 need_version=no
10497 shlibpath_overrides_runpath=no
10498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10499 ;;
10500 esac
10501 ;;
10502
10503 sysv4*MP*)
10504 if test -d /usr/nec ;then
10505 version_type=linux # correct to gnu/linux during the next big refactor
10506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10507 soname_spec='$libname${shared_ext}.$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 fi
10510 ;;
10511
10512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10513 version_type=freebsd-elf
10514 need_lib_prefix=no
10515 need_version=no
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10521 if test "$with_gnu_ld" = yes; then
10522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10523 else
10524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10525 case $host_os in
10526 sco3.2v5*)
10527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10528 ;;
10529 esac
10530 fi
10531 sys_lib_dlsearch_path_spec='/usr/lib'
10532 ;;
10533
10534 tpf*)
10535 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10536 version_type=linux # correct to gnu/linux during the next big refactor
10537 need_lib_prefix=no
10538 need_version=no
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=no
10542 hardcode_into_libs=yes
10543 ;;
10544
10545 uts4*)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 ;;
10551
10552 *)
10553 dynamic_linker=no
10554 ;;
10555 esac
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10557 $as_echo "$dynamic_linker" >&6; }
10558 test "$dynamic_linker" = no && can_build_shared=no
10559
10560 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10561 if test "$GCC" = yes; then
10562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10563 fi
10564
10565 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10566 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10567 fi
10568 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10569 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10570 fi
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
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10665 hardcode_action=
10666 if test -n "$hardcode_libdir_flag_spec" ||
10667 test -n "$runpath_var" ||
10668 test "X$hardcode_automatic" = "Xyes" ; then
10669
10670 # We can hardcode non-existent directories.
10671 if test "$hardcode_direct" != no &&
10672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10673 # have to relink, otherwise we might link with an installed library
10674 # when we should be linking with a yet-to-be-installed one
10675 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10676 test "$hardcode_minus_L" != no; then
10677 # Linking always hardcodes the temporary library directory.
10678 hardcode_action=relink
10679 else
10680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10681 hardcode_action=immediate
10682 fi
10683 else
10684 # We cannot hardcode anything, or else we can only hardcode existing
10685 # directories.
10686 hardcode_action=unsupported
10687 fi
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10689 $as_echo "$hardcode_action" >&6; }
10690
10691 if test "$hardcode_action" = relink ||
10692 test "$inherit_rpath" = yes; then
10693 # Fast installation is not supported
10694 enable_fast_install=no
10695 elif test "$shlibpath_overrides_runpath" = yes ||
10696 test "$enable_shared" = no; then
10697 # Fast installation is not necessary
10698 enable_fast_install=needless
10699 fi
10700
10701
10702
10703
10704
10705
10706 if test "x$enable_dlopen" != xyes; then
10707 enable_dlopen=unknown
10708 enable_dlopen_self=unknown
10709 enable_dlopen_self_static=unknown
10710 else
10711 lt_cv_dlopen=no
10712 lt_cv_dlopen_libs=
10713
10714 case $host_os in
10715 beos*)
10716 lt_cv_dlopen="load_add_on"
10717 lt_cv_dlopen_libs=
10718 lt_cv_dlopen_self=yes
10719 ;;
10720
10721 mingw* | pw32* | cegcc*)
10722 lt_cv_dlopen="LoadLibrary"
10723 lt_cv_dlopen_libs=
10724 ;;
10725
10726 cygwin*)
10727 lt_cv_dlopen="dlopen"
10728 lt_cv_dlopen_libs=
10729 ;;
10730
10731 darwin*)
10732 # if libdl is installed we need to link against it
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10735 if ${ac_cv_lib_dl_dlopen+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 ac_check_lib_save_LIBS=$LIBS
10739 LIBS="-ldl $LIBS"
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char dlopen ();
10750 int
10751 main ()
10752 {
10753 return dlopen ();
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_link "$LINENO"; then :
10759 ac_cv_lib_dl_dlopen=yes
10760 else
10761 ac_cv_lib_dl_dlopen=no
10762 fi
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10769 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 else
10772
10773 lt_cv_dlopen="dyld"
10774 lt_cv_dlopen_libs=
10775 lt_cv_dlopen_self=yes
10776
10777 fi
10778
10779 ;;
10780
10781 *)
10782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10783 if test "x$ac_cv_func_shl_load" = xyes; then :
10784 lt_cv_dlopen="shl_load"
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10788 if ${ac_cv_lib_dld_shl_load+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldld $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char shl_load ();
10803 int
10804 main ()
10805 {
10806 return shl_load ();
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_dld_shl_load=yes
10813 else
10814 ac_cv_lib_dld_shl_load=no
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10822 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10824 else
10825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10826 if test "x$ac_cv_func_dlopen" = xyes; then :
10827 lt_cv_dlopen="dlopen"
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10831 if ${ac_cv_lib_dl_dlopen+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-ldl $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dlopen ();
10846 int
10847 main ()
10848 {
10849 return dlopen ();
10850 ;
10851 return 0;
10852 }
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_dl_dlopen=yes
10856 else
10857 ac_cv_lib_dl_dlopen=no
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10865 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10870 if ${ac_cv_lib_svld_dlopen+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10885 int
10886 main ()
10887 {
10888 return dlopen ();
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 ac_cv_lib_svld_dlopen=yes
10895 else
10896 ac_cv_lib_svld_dlopen=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10904 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10909 if ${ac_cv_lib_dld_dld_link+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char dld_link ();
10924 int
10925 main ()
10926 {
10927 return dld_link ();
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_dld_link=yes
10934 else
10935 ac_cv_lib_dld_dld_link=no
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10943 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10945 fi
10946
10947
10948 fi
10949
10950
10951 fi
10952
10953
10954 fi
10955
10956
10957 fi
10958
10959
10960 fi
10961
10962 ;;
10963 esac
10964
10965 if test "x$lt_cv_dlopen" != xno; then
10966 enable_dlopen=yes
10967 else
10968 enable_dlopen=no
10969 fi
10970
10971 case $lt_cv_dlopen in
10972 dlopen)
10973 save_CPPFLAGS="$CPPFLAGS"
10974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10975
10976 save_LDFLAGS="$LDFLAGS"
10977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10978
10979 save_LIBS="$LIBS"
10980 LIBS="$lt_cv_dlopen_libs $LIBS"
10981
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10983 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10984 if ${lt_cv_dlopen_self+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test "$cross_compiling" = yes; then :
10988 lt_cv_dlopen_self=cross
10989 else
10990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10991 lt_status=$lt_dlunknown
10992 cat > conftest.$ac_ext <<_LT_EOF
10993 #line $LINENO "configure"
10994 #include "confdefs.h"
10995
10996 #if HAVE_DLFCN_H
10997 #include <dlfcn.h>
10998 #endif
10999
11000 #include <stdio.h>
11001
11002 #ifdef RTLD_GLOBAL
11003 # define LT_DLGLOBAL RTLD_GLOBAL
11004 #else
11005 # ifdef DL_GLOBAL
11006 # define LT_DLGLOBAL DL_GLOBAL
11007 # else
11008 # define LT_DLGLOBAL 0
11009 # endif
11010 #endif
11011
11012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11013 find out it does not work in some platform. */
11014 #ifndef LT_DLLAZY_OR_NOW
11015 # ifdef RTLD_LAZY
11016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # else
11018 # ifdef DL_LAZY
11019 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # else
11021 # ifdef RTLD_NOW
11022 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # else
11024 # ifdef DL_NOW
11025 # define LT_DLLAZY_OR_NOW DL_NOW
11026 # else
11027 # define LT_DLLAZY_OR_NOW 0
11028 # endif
11029 # endif
11030 # endif
11031 # endif
11032 #endif
11033
11034 /* When -fvisbility=hidden is used, assume the code has been annotated
11035 correspondingly for the symbols needed. */
11036 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11037 int fnord () __attribute__((visibility("default")));
11038 #endif
11039
11040 int fnord () { return 42; }
11041 int main ()
11042 {
11043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11044 int status = $lt_dlunknown;
11045
11046 if (self)
11047 {
11048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11049 else
11050 {
11051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 else puts (dlerror ());
11053 }
11054 /* dlclose (self); */
11055 }
11056 else
11057 puts (dlerror ());
11058
11059 return status;
11060 }
11061 _LT_EOF
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11063 (eval $ac_link) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11067 (./conftest; exit; ) >&5 2>/dev/null
11068 lt_status=$?
11069 case x$lt_status in
11070 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11071 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11072 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11073 esac
11074 else :
11075 # compilation failed
11076 lt_cv_dlopen_self=no
11077 fi
11078 fi
11079 rm -fr conftest*
11080
11081
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11084 $as_echo "$lt_cv_dlopen_self" >&6; }
11085
11086 if test "x$lt_cv_dlopen_self" = xyes; then
11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11089 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11090 if ${lt_cv_dlopen_self_static+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 if test "$cross_compiling" = yes; then :
11094 lt_cv_dlopen_self_static=cross
11095 else
11096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11097 lt_status=$lt_dlunknown
11098 cat > conftest.$ac_ext <<_LT_EOF
11099 #line $LINENO "configure"
11100 #include "confdefs.h"
11101
11102 #if HAVE_DLFCN_H
11103 #include <dlfcn.h>
11104 #endif
11105
11106 #include <stdio.h>
11107
11108 #ifdef RTLD_GLOBAL
11109 # define LT_DLGLOBAL RTLD_GLOBAL
11110 #else
11111 # ifdef DL_GLOBAL
11112 # define LT_DLGLOBAL DL_GLOBAL
11113 # else
11114 # define LT_DLGLOBAL 0
11115 # endif
11116 #endif
11117
11118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11119 find out it does not work in some platform. */
11120 #ifndef LT_DLLAZY_OR_NOW
11121 # ifdef RTLD_LAZY
11122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11123 # else
11124 # ifdef DL_LAZY
11125 # define LT_DLLAZY_OR_NOW DL_LAZY
11126 # else
11127 # ifdef RTLD_NOW
11128 # define LT_DLLAZY_OR_NOW RTLD_NOW
11129 # else
11130 # ifdef DL_NOW
11131 # define LT_DLLAZY_OR_NOW DL_NOW
11132 # else
11133 # define LT_DLLAZY_OR_NOW 0
11134 # endif
11135 # endif
11136 # endif
11137 # endif
11138 #endif
11139
11140 /* When -fvisbility=hidden is used, assume the code has been annotated
11141 correspondingly for the symbols needed. */
11142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11143 int fnord () __attribute__((visibility("default")));
11144 #endif
11145
11146 int fnord () { return 42; }
11147 int main ()
11148 {
11149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11150 int status = $lt_dlunknown;
11151
11152 if (self)
11153 {
11154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11155 else
11156 {
11157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11158 else puts (dlerror ());
11159 }
11160 /* dlclose (self); */
11161 }
11162 else
11163 puts (dlerror ());
11164
11165 return status;
11166 }
11167 _LT_EOF
11168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11169 (eval $ac_link) 2>&5
11170 ac_status=$?
11171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11172 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11173 (./conftest; exit; ) >&5 2>/dev/null
11174 lt_status=$?
11175 case x$lt_status in
11176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11178 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11179 esac
11180 else :
11181 # compilation failed
11182 lt_cv_dlopen_self_static=no
11183 fi
11184 fi
11185 rm -fr conftest*
11186
11187
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11190 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11191 fi
11192
11193 CPPFLAGS="$save_CPPFLAGS"
11194 LDFLAGS="$save_LDFLAGS"
11195 LIBS="$save_LIBS"
11196 ;;
11197 esac
11198
11199 case $lt_cv_dlopen_self in
11200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11201 *) enable_dlopen_self=unknown ;;
11202 esac
11203
11204 case $lt_cv_dlopen_self_static in
11205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11206 *) enable_dlopen_self_static=unknown ;;
11207 esac
11208 fi
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226 striplib=
11227 old_striplib=
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11229 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11230 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11231 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11232 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 $as_echo "yes" >&6; }
11235 else
11236 # FIXME - insert some real tests, host_os isn't really good enough
11237 case $host_os in
11238 darwin*)
11239 if test -n "$STRIP" ; then
11240 striplib="$STRIP -x"
11241 old_striplib="$STRIP -S"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248 ;;
11249 *)
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11252 ;;
11253 esac
11254 fi
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267 # Report which library types will actually be built
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11269 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11271 $as_echo "$can_build_shared" >&6; }
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11274 $as_echo_n "checking whether to build shared libraries... " >&6; }
11275 test "$can_build_shared" = "no" && enable_shared=no
11276
11277 # On AIX, shared libraries and static libraries use the same namespace, and
11278 # are all built from PIC.
11279 case $host_os in
11280 aix3*)
11281 test "$enable_shared" = yes && enable_static=no
11282 if test -n "$RANLIB"; then
11283 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11284 postinstall_cmds='$RANLIB $lib'
11285 fi
11286 ;;
11287
11288 aix[4-9]*)
11289 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11290 test "$enable_shared" = yes && enable_static=no
11291 fi
11292 ;;
11293 esac
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11295 $as_echo "$enable_shared" >&6; }
11296
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11298 $as_echo_n "checking whether to build static libraries... " >&6; }
11299 # Make sure either enable_shared or enable_static is yes.
11300 test "$enable_shared" = yes || enable_static=yes
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11302 $as_echo "$enable_static" >&6; }
11303
11304
11305
11306
11307 fi
11308 ac_ext=c
11309 ac_cpp='$CPP $CPPFLAGS'
11310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11313
11314 CC="$lt_save_CC"
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 ac_config_commands="$ac_config_commands libtool"
11331
11332
11333
11334
11335 # Only expand once:
11336
11337
11338
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -le" >&5
11340 $as_echo_n "checking for main in -le... " >&6; }
11341 if ${ac_cv_lib_e_main+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-le $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11348
11349
11350 int
11351 main ()
11352 {
11353 return main ();
11354 ;
11355 return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_lib_e_main=yes
11360 else
11361 ac_cv_lib_e_main=no
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_e_main" >&5
11368 $as_echo "$ac_cv_lib_e_main" >&6; }
11369 if test "x$ac_cv_lib_e_main" = xyes; then :
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_LIBE 1
11372 _ACEOF
11373
11374 LIBS="-le $LIBS"
11375
11376 fi
11377
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11380 $as_echo_n "checking for ANSI C header files... " >&6; }
11381 if ${ac_cv_header_stdc+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386 #include <stdlib.h>
11387 #include <stdarg.h>
11388 #include <string.h>
11389 #include <float.h>
11390
11391 int
11392 main ()
11393 {
11394
11395 ;
11396 return 0;
11397 }
11398 _ACEOF
11399 if ac_fn_c_try_compile "$LINENO"; then :
11400 ac_cv_header_stdc=yes
11401 else
11402 ac_cv_header_stdc=no
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405
11406 if test $ac_cv_header_stdc = yes; then
11407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410 #include <string.h>
11411
11412 _ACEOF
11413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11414 $EGREP "memchr" >/dev/null 2>&1; then :
11415
11416 else
11417 ac_cv_header_stdc=no
11418 fi
11419 rm -f conftest*
11420
11421 fi
11422
11423 if test $ac_cv_header_stdc = yes; then
11424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include <stdlib.h>
11428
11429 _ACEOF
11430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11431 $EGREP "free" >/dev/null 2>&1; then :
11432
11433 else
11434 ac_cv_header_stdc=no
11435 fi
11436 rm -f conftest*
11437
11438 fi
11439
11440 if test $ac_cv_header_stdc = yes; then
11441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11442 if test "$cross_compiling" = yes; then :
11443 :
11444 else
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 #include <ctype.h>
11448 #include <stdlib.h>
11449 #if ((' ' & 0x0FF) == 0x020)
11450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11452 #else
11453 # define ISLOWER(c) \
11454 (('a' <= (c) && (c) <= 'i') \
11455 || ('j' <= (c) && (c) <= 'r') \
11456 || ('s' <= (c) && (c) <= 'z'))
11457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11458 #endif
11459
11460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11461 int
11462 main ()
11463 {
11464 int i;
11465 for (i = 0; i < 256; i++)
11466 if (XOR (islower (i), ISLOWER (i))
11467 || toupper (i) != TOUPPER (i))
11468 return 2;
11469 return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_run "$LINENO"; then :
11473
11474 else
11475 ac_cv_header_stdc=no
11476 fi
11477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11478 conftest.$ac_objext conftest.beam conftest.$ac_ext
11479 fi
11480
11481 fi
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11484 $as_echo "$ac_cv_header_stdc" >&6; }
11485 if test $ac_cv_header_stdc = yes; then
11486
11487 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11488
11489 fi
11490
11491 for ac_header in malloc.h string.h strings.h
11492 do :
11493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11496 cat >>confdefs.h <<_ACEOF
11497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11498 _ACEOF
11499
11500 fi
11501
11502 done
11503
11504
11505
11506 for ac_func in memmove
11507 do :
11508 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11509 if test "x$ac_cv_func_memmove" = xyes; then :
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_MEMMOVE 1
11512 _ACEOF
11513
11514 fi
11515 done
11516
11517
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wakatigaki" >&5
11519 $as_echo_n "checking for wakatigaki... " >&6; }
11520 # Check whether --enable-wakatigaki was given.
11521 if test "${enable_wakatigaki+set}" = set; then :
11522 enableval=$enable_wakatigaki;
11523 fi
11524
11525 if test "${enable_wakatigaki+set}" != set; then
11526 wakatigaki=yes
11527 else
11528 case "${enable_wakatigaki}" in
11529 yes) wakatigaki=yes ;;
11530 no) wakatigaki=no ;;
11531 esac
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wakatigaki" >&5
11534 $as_echo "$wakatigaki" >&6; }
11535 test "${wakatigaki}" = yes &&
11536 $as_echo "#define WAKATIGAKI 1" >>confdefs.h
11537
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eachyomi" >&5
11540 $as_echo_n "checking for eachyomi... " >&6; }
11541 # Check whether --enable-eachyomi was given.
11542 if test "${enable_eachyomi+set}" = set; then :
11543 enableval=$enable_eachyomi;
11544 fi
11545
11546 if test "${enable_eachyomi+set}" != set; then
11547 eachyomi=yes
11548 else
11549 case "${enable_eachyomi}" in
11550 yes) eachyomi=yes ;;
11551 no) eachyomi=no ;;
11552 esac
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $eachyomi" >&5
11555 $as_echo "$eachyomi" >&6; }
11556 test "${eachyomi}" = yes &&
11557 $as_echo "#define EACH_YOMI 1" >>confdefs.h
11558
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 conversion" >&5
11561 $as_echo_n "checking for utf8 conversion... " >&6; }
11562 # Check whether --enable-utf8 was given.
11563 if test "${enable_utf8+set}" = set; then :
11564 enableval=$enable_utf8;
11565 fi
11566
11567 if test "${enable_utf8+set}" != set; then
11568 utf8=yes
11569 else
11570 case "${enable_utf8}" in
11571 yes) utf8=yes ;;
11572 no) utf8=no ;;
11573 esac
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $utf8" >&5
11576 $as_echo "$utf8" >&6; }
11577
11578 if test "X$prefix" = "XNONE"; then
11579 acl_final_prefix="$ac_default_prefix"
11580 else
11581 acl_final_prefix="$prefix"
11582 fi
11583 if test "X$exec_prefix" = "XNONE"; then
11584 acl_final_exec_prefix='${prefix}'
11585 else
11586 acl_final_exec_prefix="$exec_prefix"
11587 fi
11588 acl_save_prefix="$prefix"
11589 prefix="$acl_final_prefix"
11590 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11591 prefix="$acl_save_prefix"
11592
11593
11594 # Check whether --with-gnu-ld was given.
11595 if test "${with_gnu_ld+set}" = set; then :
11596 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11597 else
11598 with_gnu_ld=no
11599 fi
11600
11601 # Prepare PATH_SEPARATOR.
11602 # The user is always right.
11603 if test "${PATH_SEPARATOR+set}" != set; then
11604 echo "#! /bin/sh" >conf$$.sh
11605 echo "exit 0" >>conf$$.sh
11606 chmod +x conf$$.sh
11607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11608 PATH_SEPARATOR=';'
11609 else
11610 PATH_SEPARATOR=:
11611 fi
11612 rm -f conf$$.sh
11613 fi
11614 ac_prog=ld
11615 if test "$GCC" = yes; then
11616 # Check if gcc -print-prog-name=ld gives a path.
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11618 $as_echo_n "checking for ld used by GCC... " >&6; }
11619 case $host in
11620 *-*-mingw*)
11621 # gcc leaves a trailing carriage return which upsets mingw
11622 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11623 *)
11624 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11625 esac
11626 case $ac_prog in
11627 # Accept absolute paths.
11628 [\\/]* | [A-Za-z]:[\\/]*)
11629 re_direlt='/[^/][^/]*/\.\./'
11630 # Canonicalize the path of ld
11631 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11632 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11633 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11634 done
11635 test -z "$LD" && LD="$ac_prog"
11636 ;;
11637 "")
11638 # If it fails, then pretend we aren't using GCC.
11639 ac_prog=ld
11640 ;;
11641 *)
11642 # If it is relative, then search for the first ld in PATH.
11643 with_gnu_ld=unknown
11644 ;;
11645 esac
11646 elif test "$with_gnu_ld" = yes; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11648 $as_echo_n "checking for GNU ld... " >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11651 $as_echo_n "checking for non-GNU ld... " >&6; }
11652 fi
11653 if ${acl_cv_path_LD+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test -z "$LD"; then
11657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11658 for ac_dir in $PATH; do
11659 test -z "$ac_dir" && ac_dir=.
11660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11661 acl_cv_path_LD="$ac_dir/$ac_prog"
11662 # Check to see if the program is GNU ld. I'd rather use --version,
11663 # but apparently some GNU ld's only accept -v.
11664 # Break only if it was the GNU/non-GNU ld that we prefer.
11665 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11666 *GNU* | *'with BFD'*)
11667 test "$with_gnu_ld" != no && break ;;
11668 *)
11669 test "$with_gnu_ld" != yes && break ;;
11670 esac
11671 fi
11672 done
11673 IFS="$ac_save_ifs"
11674 else
11675 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11676 fi
11677 fi
11678
11679 LD="$acl_cv_path_LD"
11680 if test -n "$LD"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11682 $as_echo "$LD" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11690 if ${acl_cv_prog_gnu_ld+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11694 case `$LD -v 2>&1 </dev/null` in
11695 *GNU* | *'with BFD'*)
11696 acl_cv_prog_gnu_ld=yes ;;
11697 *)
11698 acl_cv_prog_gnu_ld=no ;;
11699 esac
11700 fi
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11702 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11703 with_gnu_ld=$acl_cv_prog_gnu_ld
11704
11705
11706
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11709 $as_echo_n "checking for shared library run path origin... " >&6; }
11710 if ${acl_cv_rpath+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713
11714 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11715 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11716 . ./conftest.sh
11717 rm -f ./conftest.sh
11718 acl_cv_rpath=done
11719
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11722 $as_echo "$acl_cv_rpath" >&6; }
11723 wl="$acl_cv_wl"
11724 acl_libext="$acl_cv_libext"
11725 acl_shlibext="$acl_cv_shlibext"
11726 acl_libname_spec="$acl_cv_libname_spec"
11727 acl_library_names_spec="$acl_cv_library_names_spec"
11728 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11729 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11730 acl_hardcode_direct="$acl_cv_hardcode_direct"
11731 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11732 # Check whether --enable-rpath was given.
11733 if test "${enable_rpath+set}" = set; then :
11734 enableval=$enable_rpath; :
11735 else
11736 enable_rpath=yes
11737 fi
11738
11739
11740
11741
11742 acl_libdirstem=lib
11743 acl_libdirstem2=
11744 case "$host_os" in
11745 solaris*)
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11747 $as_echo_n "checking for 64-bit host... " >&6; }
11748 if ${gl_cv_solaris_64bit+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753
11754 #ifdef _LP64
11755 sixtyfour bits
11756 #endif
11757
11758 _ACEOF
11759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11760 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
11761 gl_cv_solaris_64bit=yes
11762 else
11763 gl_cv_solaris_64bit=no
11764 fi
11765 rm -f conftest*
11766
11767
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
11770 $as_echo "$gl_cv_solaris_64bit" >&6; }
11771 if test $gl_cv_solaris_64bit = yes; then
11772 acl_libdirstem=lib/64
11773 case "$host_cpu" in
11774 sparc*) acl_libdirstem2=lib/sparcv9 ;;
11775 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
11776 esac
11777 fi
11778 ;;
11779 *)
11780 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11781 if test -n "$searchpath"; then
11782 acl_save_IFS="${IFS= }"; IFS=":"
11783 for searchdir in $searchpath; do
11784 if test -d "$searchdir"; then
11785 case "$searchdir" in
11786 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11787 */../ | */.. )
11788 # Better ignore directories of this form. They are misleading.
11789 ;;
11790 *) searchdir=`cd "$searchdir" && pwd`
11791 case "$searchdir" in
11792 */lib64 ) acl_libdirstem=lib64 ;;
11793 esac ;;
11794 esac
11795 fi
11796 done
11797 IFS="$acl_save_IFS"
11798 fi
11799 ;;
11800 esac
11801 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814 use_additional=yes
11815
11816 acl_save_prefix="$prefix"
11817 prefix="$acl_final_prefix"
11818 acl_save_exec_prefix="$exec_prefix"
11819 exec_prefix="$acl_final_exec_prefix"
11820
11821 eval additional_includedir=\"$includedir\"
11822 eval additional_libdir=\"$libdir\"
11823
11824 exec_prefix="$acl_save_exec_prefix"
11825 prefix="$acl_save_prefix"
11826
11827
11828 # Check whether --with-libiconv-prefix was given.
11829 if test "${with_libiconv_prefix+set}" = set; then :
11830 withval=$with_libiconv_prefix;
11831 if test "X$withval" = "Xno"; then
11832 use_additional=no
11833 else
11834 if test "X$withval" = "X"; then
11835
11836 acl_save_prefix="$prefix"
11837 prefix="$acl_final_prefix"
11838 acl_save_exec_prefix="$exec_prefix"
11839 exec_prefix="$acl_final_exec_prefix"
11840
11841 eval additional_includedir=\"$includedir\"
11842 eval additional_libdir=\"$libdir\"
11843
11844 exec_prefix="$acl_save_exec_prefix"
11845 prefix="$acl_save_prefix"
11846
11847 else
11848 additional_includedir="$withval/include"
11849 additional_libdir="$withval/$acl_libdirstem"
11850 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11851 && ! test -d "$withval/$acl_libdirstem"; then
11852 additional_libdir="$withval/$acl_libdirstem2"
11853 fi
11854 fi
11855 fi
11856
11857 fi
11858
11859 LIBICONV=
11860 LTLIBICONV=
11861 INCICONV=
11862 LIBICONV_PREFIX=
11863 HAVE_LIBICONV=
11864 rpathdirs=
11865 ltrpathdirs=
11866 names_already_handled=
11867 names_next_round='iconv '
11868 while test -n "$names_next_round"; do
11869 names_this_round="$names_next_round"
11870 names_next_round=
11871 for name in $names_this_round; do
11872 already_handled=
11873 for n in $names_already_handled; do
11874 if test "$n" = "$name"; then
11875 already_handled=yes
11876 break
11877 fi
11878 done
11879 if test -z "$already_handled"; then
11880 names_already_handled="$names_already_handled $name"
11881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11882 eval value=\"\$HAVE_LIB$uppername\"
11883 if test -n "$value"; then
11884 if test "$value" = yes; then
11885 eval value=\"\$LIB$uppername\"
11886 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11887 eval value=\"\$LTLIB$uppername\"
11888 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11889 else
11890 :
11891 fi
11892 else
11893 found_dir=
11894 found_la=
11895 found_so=
11896 found_a=
11897 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11898 if test -n "$acl_shlibext"; then
11899 shrext=".$acl_shlibext" # typically: shrext=.so
11900 else
11901 shrext=
11902 fi
11903 if test $use_additional = yes; then
11904 dir="$additional_libdir"
11905 if test -n "$acl_shlibext"; then
11906 if test -f "$dir/$libname$shrext"; then
11907 found_dir="$dir"
11908 found_so="$dir/$libname$shrext"
11909 else
11910 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11911 ver=`(cd "$dir" && \
11912 for f in "$libname$shrext".*; do echo "$f"; done \
11913 | sed -e "s,^$libname$shrext\\\\.,," \
11914 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11915 | sed 1q ) 2>/dev/null`
11916 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11917 found_dir="$dir"
11918 found_so="$dir/$libname$shrext.$ver"
11919 fi
11920 else
11921 eval library_names=\"$acl_library_names_spec\"
11922 for f in $library_names; do
11923 if test -f "$dir/$f"; then
11924 found_dir="$dir"
11925 found_so="$dir/$f"
11926 break
11927 fi
11928 done
11929 fi
11930 fi
11931 fi
11932 if test "X$found_dir" = "X"; then
11933 if test -f "$dir/$libname.$acl_libext"; then
11934 found_dir="$dir"
11935 found_a="$dir/$libname.$acl_libext"
11936 fi
11937 fi
11938 if test "X$found_dir" != "X"; then
11939 if test -f "$dir/$libname.la"; then
11940 found_la="$dir/$libname.la"
11941 fi
11942 fi
11943 fi
11944 if test "X$found_dir" = "X"; then
11945 for x in $LDFLAGS $LTLIBICONV; do
11946
11947 acl_save_prefix="$prefix"
11948 prefix="$acl_final_prefix"
11949 acl_save_exec_prefix="$exec_prefix"
11950 exec_prefix="$acl_final_exec_prefix"
11951 eval x=\"$x\"
11952 exec_prefix="$acl_save_exec_prefix"
11953 prefix="$acl_save_prefix"
11954
11955 case "$x" in
11956 -L*)
11957 dir=`echo "X$x" | sed -e 's/^X-L//'`
11958 if test -n "$acl_shlibext"; then
11959 if test -f "$dir/$libname$shrext"; then
11960 found_dir="$dir"
11961 found_so="$dir/$libname$shrext"
11962 else
11963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11964 ver=`(cd "$dir" && \
11965 for f in "$libname$shrext".*; do echo "$f"; done \
11966 | sed -e "s,^$libname$shrext\\\\.,," \
11967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11968 | sed 1q ) 2>/dev/null`
11969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11970 found_dir="$dir"
11971 found_so="$dir/$libname$shrext.$ver"
11972 fi
11973 else
11974 eval library_names=\"$acl_library_names_spec\"
11975 for f in $library_names; do
11976 if test -f "$dir/$f"; then
11977 found_dir="$dir"
11978 found_so="$dir/$f"
11979 break
11980 fi
11981 done
11982 fi
11983 fi
11984 fi
11985 if test "X$found_dir" = "X"; then
11986 if test -f "$dir/$libname.$acl_libext"; then
11987 found_dir="$dir"
11988 found_a="$dir/$libname.$acl_libext"
11989 fi
11990 fi
11991 if test "X$found_dir" != "X"; then
11992 if test -f "$dir/$libname.la"; then
11993 found_la="$dir/$libname.la"
11994 fi
11995 fi
11996 ;;
11997 esac
11998 if test "X$found_dir" != "X"; then
11999 break
12000 fi
12001 done
12002 fi
12003 if test "X$found_dir" != "X"; then
12004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12005 if test "X$found_so" != "X"; then
12006 if test "$enable_rpath" = no \
12007 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12008 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12009 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12010 else
12011 haveit=
12012 for x in $ltrpathdirs; do
12013 if test "X$x" = "X$found_dir"; then
12014 haveit=yes
12015 break
12016 fi
12017 done
12018 if test -z "$haveit"; then
12019 ltrpathdirs="$ltrpathdirs $found_dir"
12020 fi
12021 if test "$acl_hardcode_direct" = yes; then
12022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12023 else
12024 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12026 haveit=
12027 for x in $rpathdirs; do
12028 if test "X$x" = "X$found_dir"; then
12029 haveit=yes
12030 break
12031 fi
12032 done
12033 if test -z "$haveit"; then
12034 rpathdirs="$rpathdirs $found_dir"
12035 fi
12036 else
12037 haveit=
12038 for x in $LDFLAGS $LIBICONV; do
12039
12040 acl_save_prefix="$prefix"
12041 prefix="$acl_final_prefix"
12042 acl_save_exec_prefix="$exec_prefix"
12043 exec_prefix="$acl_final_exec_prefix"
12044 eval x=\"$x\"
12045 exec_prefix="$acl_save_exec_prefix"
12046 prefix="$acl_save_prefix"
12047
12048 if test "X$x" = "X-L$found_dir"; then
12049 haveit=yes
12050 break
12051 fi
12052 done
12053 if test -z "$haveit"; then
12054 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12055 fi
12056 if test "$acl_hardcode_minus_L" != no; then
12057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12058 else
12059 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12060 fi
12061 fi
12062 fi
12063 fi
12064 else
12065 if test "X$found_a" != "X"; then
12066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12067 else
12068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12069 fi
12070 fi
12071 additional_includedir=
12072 case "$found_dir" in
12073 */$acl_libdirstem | */$acl_libdirstem/)
12074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12075 if test "$name" = 'iconv'; then
12076 LIBICONV_PREFIX="$basedir"
12077 fi
12078 additional_includedir="$basedir/include"
12079 ;;
12080 */$acl_libdirstem2 | */$acl_libdirstem2/)
12081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12082 if test "$name" = 'iconv'; then
12083 LIBICONV_PREFIX="$basedir"
12084 fi
12085 additional_includedir="$basedir/include"
12086 ;;
12087 esac
12088 if test "X$additional_includedir" != "X"; then
12089 if test "X$additional_includedir" != "X/usr/include"; then
12090 haveit=
12091 if test "X$additional_includedir" = "X/usr/local/include"; then
12092 if test -n "$GCC"; then
12093 case $host_os in
12094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12095 esac
12096 fi
12097 fi
12098 if test -z "$haveit"; then
12099 for x in $CPPFLAGS $INCICONV; do
12100
12101 acl_save_prefix="$prefix"
12102 prefix="$acl_final_prefix"
12103 acl_save_exec_prefix="$exec_prefix"
12104 exec_prefix="$acl_final_exec_prefix"
12105 eval x=\"$x\"
12106 exec_prefix="$acl_save_exec_prefix"
12107 prefix="$acl_save_prefix"
12108
12109 if test "X$x" = "X-I$additional_includedir"; then
12110 haveit=yes
12111 break
12112 fi
12113 done
12114 if test -z "$haveit"; then
12115 if test -d "$additional_includedir"; then
12116 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12117 fi
12118 fi
12119 fi
12120 fi
12121 fi
12122 if test -n "$found_la"; then
12123 save_libdir="$libdir"
12124 case "$found_la" in
12125 */* | *\\*) . "$found_la" ;;
12126 *) . "./$found_la" ;;
12127 esac
12128 libdir="$save_libdir"
12129 for dep in $dependency_libs; do
12130 case "$dep" in
12131 -L*)
12132 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12133 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12134 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12135 haveit=
12136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12137 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12138 if test -n "$GCC"; then
12139 case $host_os in
12140 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12141 esac
12142 fi
12143 fi
12144 if test -z "$haveit"; then
12145 haveit=
12146 for x in $LDFLAGS $LIBICONV; do
12147
12148 acl_save_prefix="$prefix"
12149 prefix="$acl_final_prefix"
12150 acl_save_exec_prefix="$exec_prefix"
12151 exec_prefix="$acl_final_exec_prefix"
12152 eval x=\"$x\"
12153 exec_prefix="$acl_save_exec_prefix"
12154 prefix="$acl_save_prefix"
12155
12156 if test "X$x" = "X-L$additional_libdir"; then
12157 haveit=yes
12158 break
12159 fi
12160 done
12161 if test -z "$haveit"; then
12162 if test -d "$additional_libdir"; then
12163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12164 fi
12165 fi
12166 haveit=
12167 for x in $LDFLAGS $LTLIBICONV; do
12168
12169 acl_save_prefix="$prefix"
12170 prefix="$acl_final_prefix"
12171 acl_save_exec_prefix="$exec_prefix"
12172 exec_prefix="$acl_final_exec_prefix"
12173 eval x=\"$x\"
12174 exec_prefix="$acl_save_exec_prefix"
12175 prefix="$acl_save_prefix"
12176
12177 if test "X$x" = "X-L$additional_libdir"; then
12178 haveit=yes
12179 break
12180 fi
12181 done
12182 if test -z "$haveit"; then
12183 if test -d "$additional_libdir"; then
12184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12185 fi
12186 fi
12187 fi
12188 fi
12189 ;;
12190 -R*)
12191 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12192 if test "$enable_rpath" != no; then
12193 haveit=
12194 for x in $rpathdirs; do
12195 if test "X$x" = "X$dir"; then
12196 haveit=yes
12197 break
12198 fi
12199 done
12200 if test -z "$haveit"; then
12201 rpathdirs="$rpathdirs $dir"
12202 fi
12203 haveit=
12204 for x in $ltrpathdirs; do
12205 if test "X$x" = "X$dir"; then
12206 haveit=yes
12207 break
12208 fi
12209 done
12210 if test -z "$haveit"; then
12211 ltrpathdirs="$ltrpathdirs $dir"
12212 fi
12213 fi
12214 ;;
12215 -l*)
12216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12217 ;;
12218 *.la)
12219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12220 ;;
12221 *)
12222 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12224 ;;
12225 esac
12226 done
12227 fi
12228 else
12229 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12231 fi
12232 fi
12233 fi
12234 done
12235 done
12236 if test "X$rpathdirs" != "X"; then
12237 if test -n "$acl_hardcode_libdir_separator"; then
12238 alldirs=
12239 for found_dir in $rpathdirs; do
12240 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12241 done
12242 acl_save_libdir="$libdir"
12243 libdir="$alldirs"
12244 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12245 libdir="$acl_save_libdir"
12246 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12247 else
12248 for found_dir in $rpathdirs; do
12249 acl_save_libdir="$libdir"
12250 libdir="$found_dir"
12251 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12252 libdir="$acl_save_libdir"
12253 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12254 done
12255 fi
12256 fi
12257 if test "X$ltrpathdirs" != "X"; then
12258 for found_dir in $ltrpathdirs; do
12259 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12260 done
12261 fi
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274 am_save_CPPFLAGS="$CPPFLAGS"
12275
12276 for element in $INCICONV; do
12277 haveit=
12278 for x in $CPPFLAGS; do
12279
12280 acl_save_prefix="$prefix"
12281 prefix="$acl_final_prefix"
12282 acl_save_exec_prefix="$exec_prefix"
12283 exec_prefix="$acl_final_exec_prefix"
12284 eval x=\"$x\"
12285 exec_prefix="$acl_save_exec_prefix"
12286 prefix="$acl_save_prefix"
12287
12288 if test "X$x" = "X$element"; then
12289 haveit=yes
12290 break
12291 fi
12292 done
12293 if test -z "$haveit"; then
12294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12295 fi
12296 done
12297
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12300 $as_echo_n "checking for iconv... " >&6; }
12301 if ${am_cv_func_iconv+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304
12305 am_cv_func_iconv="no, consider installing GNU libiconv"
12306 am_cv_lib_iconv=no
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 #include <stdlib.h>
12310 #include <iconv.h>
12311 int
12312 main ()
12313 {
12314 iconv_t cd = iconv_open("","");
12315 iconv(cd,NULL,NULL,NULL,NULL);
12316 iconv_close(cd);
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322 am_cv_func_iconv=yes
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 if test "$am_cv_func_iconv" != yes; then
12327 am_save_LIBS="$LIBS"
12328 LIBS="$LIBS $LIBICONV"
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331 #include <stdlib.h>
12332 #include <iconv.h>
12333 int
12334 main ()
12335 {
12336 iconv_t cd = iconv_open("","");
12337 iconv(cd,NULL,NULL,NULL,NULL);
12338 iconv_close(cd);
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 am_cv_lib_iconv=yes
12345 am_cv_func_iconv=yes
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LIBS="$am_save_LIBS"
12350 fi
12351
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12354 $as_echo "$am_cv_func_iconv" >&6; }
12355 if test "$am_cv_func_iconv" = yes; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12357 $as_echo_n "checking for working iconv... " >&6; }
12358 if ${am_cv_func_iconv_works+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361
12362 am_save_LIBS="$LIBS"
12363 if test $am_cv_lib_iconv = yes; then
12364 LIBS="$LIBS $LIBICONV"
12365 fi
12366 if test "$cross_compiling" = yes; then :
12367 case "$host_os" in
12368 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12369 *) am_cv_func_iconv_works="guessing yes" ;;
12370 esac
12371 else
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374
12375 #include <iconv.h>
12376 #include <string.h>
12377 int main ()
12378 {
12379 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12380 returns. */
12381 {
12382 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12383 if (cd_utf8_to_88591 != (iconv_t)(-1))
12384 {
12385 static const char input[] = "\342\202\254"; /* EURO SIGN */
12386 char buf[10];
12387 const char *inptr = input;
12388 size_t inbytesleft = strlen (input);
12389 char *outptr = buf;
12390 size_t outbytesleft = sizeof (buf);
12391 size_t res = iconv (cd_utf8_to_88591,
12392 (char **) &inptr, &inbytesleft,
12393 &outptr, &outbytesleft);
12394 if (res == 0)
12395 return 1;
12396 }
12397 }
12398 /* Test against Solaris 10 bug: Failures are not distinguishable from
12399 successful returns. */
12400 {
12401 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12402 if (cd_ascii_to_88591 != (iconv_t)(-1))
12403 {
12404 static const char input[] = "\263";
12405 char buf[10];
12406 const char *inptr = input;
12407 size_t inbytesleft = strlen (input);
12408 char *outptr = buf;
12409 size_t outbytesleft = sizeof (buf);
12410 size_t res = iconv (cd_ascii_to_88591,
12411 (char **) &inptr, &inbytesleft,
12412 &outptr, &outbytesleft);
12413 if (res == 0)
12414 return 1;
12415 }
12416 }
12417 #if 0 /* This bug could be worked around by the caller. */
12418 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12419 {
12420 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12421 if (cd_88591_to_utf8 != (iconv_t)(-1))
12422 {
12423 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12424 char buf[50];
12425 const char *inptr = input;
12426 size_t inbytesleft = strlen (input);
12427 char *outptr = buf;
12428 size_t outbytesleft = sizeof (buf);
12429 size_t res = iconv (cd_88591_to_utf8,
12430 (char **) &inptr, &inbytesleft,
12431 &outptr, &outbytesleft);
12432 if ((int)res > 0)
12433 return 1;
12434 }
12435 }
12436 #endif
12437 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12438 provided. */
12439 if (/* Try standardized names. */
12440 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12441 /* Try IRIX, OSF/1 names. */
12442 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12443 /* Try AIX names. */
12444 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12445 /* Try HP-UX names. */
12446 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12447 return 1;
12448 return 0;
12449 }
12450 _ACEOF
12451 if ac_fn_c_try_run "$LINENO"; then :
12452 am_cv_func_iconv_works=yes
12453 else
12454 am_cv_func_iconv_works=no
12455 fi
12456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12457 conftest.$ac_objext conftest.beam conftest.$ac_ext
12458 fi
12459
12460 LIBS="$am_save_LIBS"
12461
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12464 $as_echo "$am_cv_func_iconv_works" >&6; }
12465 case "$am_cv_func_iconv_works" in
12466 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12467 *) am_func_iconv=yes ;;
12468 esac
12469 else
12470 am_func_iconv=no am_cv_lib_iconv=no
12471 fi
12472 if test "$am_func_iconv" = yes; then
12473
12474 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12475
12476 fi
12477 if test "$am_cv_lib_iconv" = yes; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12479 $as_echo_n "checking how to link with libiconv... " >&6; }
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12481 $as_echo "$LIBICONV" >&6; }
12482 else
12483 CPPFLAGS="$am_save_CPPFLAGS"
12484 LIBICONV=
12485 LTLIBICONV=
12486 fi
12487
12488
12489
12490 if test "$am_cv_func_iconv" = yes; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12492 $as_echo_n "checking for iconv declaration... " >&6; }
12493 if ${am_cv_proto_iconv+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499
12500 #include <stdlib.h>
12501 #include <iconv.h>
12502 extern
12503 #ifdef __cplusplus
12504 "C"
12505 #endif
12506 #if defined(__STDC__) || defined(__cplusplus)
12507 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12508 #else
12509 size_t iconv();
12510 #endif
12511
12512 int
12513 main ()
12514 {
12515
12516 ;
12517 return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_compile "$LINENO"; then :
12521 am_cv_proto_iconv_arg1=""
12522 else
12523 am_cv_proto_iconv_arg1="const"
12524 fi
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12527 fi
12528
12529 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12531 $am_cv_proto_iconv" >&5
12532 $as_echo "
12533 $am_cv_proto_iconv" >&6; }
12534
12535 cat >>confdefs.h <<_ACEOF
12536 #define ICONV_CONST $am_cv_proto_iconv_arg1
12537 _ACEOF
12538
12539 fi
12540
12541 if test "x$utf8" = x"yes"; then :
12542
12543
12544 LIBS="$LIBICONV $LIBS"
12545
12546 $as_echo "#define KAKASI_SUPPORT_UTF8 1" >>confdefs.h
12547
12548 if test "$cross_compiling" = yes; then :
12549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12551 as_fn_error $? "cannot run test program while cross compiling
12552 See \`config.log' for more details" "$LINENO" 5; }
12553 else
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12556 #include <iconv.h>
12557 int
12558 main ()
12559 {
12560 if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1);
12561 ;
12562 return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_c_try_run "$LINENO"; then :
12566
12567 else
12568 as_fn_error $? "can not use EUC-JP or UTF-8 encoding on iconv" "$LINENO" 5
12569 fi
12570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12571 conftest.$ac_objext conftest.beam conftest.$ac_ext
12572 fi
12573
12574
12575 fi
12576
12577 if { ac_try='${CC-cc} -Wall -xc /dev/null -S -o /dev/null'
12578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582 test $ac_status = 0; }; }; then :
12583 CFLAGS="$CFLAGS -Wall"
12584 fi
12585 if { ac_try='${CC-cc} -Wunused -xc /dev/null -S -o /dev/null'
12586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }; }; then :
12591 CFLAGS="$CFLAGS -Wunused"
12592 fi
12593 if { ac_try='${CC-cc} -Wuninitialized -xc /dev/null -S -o /dev/null'
12594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12598 test $ac_status = 0; }; }; then :
12599 CFLAGS="$CFLAGS -Wuninitialized"
12600 fi
12601 if { ac_try='${CC-cc} -Wmissing-declarations -xc /dev/null -S -o /dev/null'
12602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12606 test $ac_status = 0; }; }; then :
12607 CFLAGS="$CFLAGS -Wmissing-declarations"
12608 fi
12609 if { ac_try='${CC-cc} -Wmissing-prototypes -xc /dev/null -S -o /dev/null'
12610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12614 test $ac_status = 0; }; }; then :
12615 CFLAGS="$CFLAGS -Wmissing-prototypes"
12616 fi
12617 if { ac_try='${CC-cc} -pedantic -xc /dev/null -S -o /dev/null'
12618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622 test $ac_status = 0; }; }; then :
12623 CFLAGS="$CFLAGS -pedantic"
12624 fi
12625 if { ac_try='${CC-cc} -Wno-unused-result -xc /dev/null -S -o /dev/null'
12626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12630 test $ac_status = 0; }; }; then :
12631 CFLAGS="$CFLAGS -Wno-unused-result"
12632 fi
12633
12634 ac_config_headers="$ac_config_headers config.h"
12635
12636 ac_config_files="$ac_config_files src/Makefile lib/Makefile lib/makefile.msc man/Makefile tests/Makefile tests/data/Makefile Makefile kakasi-config kakasi.spec"
12637
12638 ac_config_commands="$ac_config_commands default"
12639
12640 cat >confcache <<\_ACEOF
12641 # This file is a shell script that caches the results of configure
12642 # tests run on this system so they can be shared between configure
12643 # scripts and configure runs, see configure's option --config-cache.
12644 # It is not useful on other systems. If it contains results you don't
12645 # want to keep, you may remove or edit it.
12646 #
12647 # config.status only pays attention to the cache file if you give it
12648 # the --recheck option to rerun configure.
12649 #
12650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12652 # following values.
12653
12654 _ACEOF
12655
12656 # The following way of writing the cache mishandles newlines in values,
12657 # but we know of no workaround that is simple, portable, and efficient.
12658 # So, we kill variables containing newlines.
12659 # Ultrix sh set writes to stderr and can't be redirected directly,
12660 # and sets the high bit in the cache file unless we assign to the vars.
12661 (
12662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12663 eval ac_val=\$$ac_var
12664 case $ac_val in #(
12665 *${as_nl}*)
12666 case $ac_var in #(
12667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12668 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12669 esac
12670 case $ac_var in #(
12671 _ | IFS | as_nl) ;; #(
12672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12673 *) { eval $ac_var=; unset $ac_var;} ;;
12674 esac ;;
12675 esac
12676 done
12677
12678 (set) 2>&1 |
12679 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12680 *${as_nl}ac_space=\ *)
12681 # `set' does not quote correctly, so add quotes: double-quote
12682 # substitution turns \\\\ into \\, and sed turns \\ into \.
12683 sed -n \
12684 "s/'/'\\\\''/g;
12685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12686 ;; #(
12687 *)
12688 # `set' quotes correctly as required by POSIX, so do not add quotes.
12689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12690 ;;
12691 esac |
12692 sort
12693 ) |
12694 sed '
12695 /^ac_cv_env_/b end
12696 t clear
12697 :clear
12698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12699 t end
12700 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12701 :end' >>confcache
12702 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12703 if test -w "$cache_file"; then
12704 if test "x$cache_file" != "x/dev/null"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12706 $as_echo "$as_me: updating cache $cache_file" >&6;}
12707 if test ! -f "$cache_file" || test -h "$cache_file"; then
12708 cat confcache >"$cache_file"
12709 else
12710 case $cache_file in #(
12711 */* | ?:*)
12712 mv -f confcache "$cache_file"$$ &&
12713 mv -f "$cache_file"$$ "$cache_file" ;; #(
12714 *)
12715 mv -f confcache "$cache_file" ;;
12716 esac
12717 fi
12718 fi
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12721 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12722 fi
12723 fi
12724 rm -f confcache
12725
12726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12727 # Let make expand exec_prefix.
12728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12729
12730 DEFS=-DHAVE_CONFIG_H
12731
12732 ac_libobjs=
12733 ac_ltlibobjs=
12734 U=
12735 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12736 # 1. Remove the extension, and $U if already installed.
12737 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12738 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12739 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12740 # will be set to the directory where LIBOBJS objects are built.
12741 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12742 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12743 done
12744 LIBOBJS=$ac_libobjs
12745
12746 LTLIBOBJS=$ac_ltlibobjs
12747
12748
12749 if test -n "$EXEEXT"; then
12750 am__EXEEXT_TRUE=
12751 am__EXEEXT_FALSE='#'
12752 else
12753 am__EXEEXT_TRUE='#'
12754 am__EXEEXT_FALSE=
12755 fi
12756
12757 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12758 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760 fi
12761 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12762 as_fn_error $? "conditional \"AMDEP\" was never defined.
12763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764 fi
12765 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12766 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12768 fi
12769
12770 : "${CONFIG_STATUS=./config.status}"
12771 ac_write_fail=0
12772 ac_clean_files_save=$ac_clean_files
12773 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12775 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12776 as_write_fail=0
12777 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12778 #! $SHELL
12779 # Generated by $as_me.
12780 # Run this file to recreate the current configuration.
12781 # Compiler output produced by configure, useful for debugging
12782 # configure, is in config.log if it exists.
12783
12784 debug=false
12785 ac_cs_recheck=false
12786 ac_cs_silent=false
12787
12788 SHELL=\${CONFIG_SHELL-$SHELL}
12789 export SHELL
12790 _ASEOF
12791 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12792 ## -------------------- ##
12793 ## M4sh Initialization. ##
12794 ## -------------------- ##
12795
12796 # Be more Bourne compatible
12797 DUALCASE=1; export DUALCASE # for MKS sh
12798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12799 emulate sh
12800 NULLCMD=:
12801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12802 # is contrary to our usage. Disable this feature.
12803 alias -g '${1+"$@"}'='"$@"'
12804 setopt NO_GLOB_SUBST
12805 else
12806 case `(set -o) 2>/dev/null` in #(
12807 *posix*) :
12808 set -o posix ;; #(
12809 *) :
12810 ;;
12811 esac
12812 fi
12813
12814
12815 as_nl='
12816 '
12817 export as_nl
12818 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12819 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12822 # Prefer a ksh shell builtin over an external printf program on Solaris,
12823 # but without wasting forks for bash or zsh.
12824 if test -z "$BASH_VERSION$ZSH_VERSION" \
12825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12826 as_echo='print -r --'
12827 as_echo_n='print -rn --'
12828 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12829 as_echo='printf %s\n'
12830 as_echo_n='printf %s'
12831 else
12832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12834 as_echo_n='/usr/ucb/echo -n'
12835 else
12836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12837 as_echo_n_body='eval
12838 arg=$1;
12839 case $arg in #(
12840 *"$as_nl"*)
12841 expr "X$arg" : "X\\(.*\\)$as_nl";
12842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12843 esac;
12844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12845 '
12846 export as_echo_n_body
12847 as_echo_n='sh -c $as_echo_n_body as_echo'
12848 fi
12849 export as_echo_body
12850 as_echo='sh -c $as_echo_body as_echo'
12851 fi
12852
12853 # The user is always right.
12854 if test "${PATH_SEPARATOR+set}" != set; then
12855 PATH_SEPARATOR=:
12856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12858 PATH_SEPARATOR=';'
12859 }
12860 fi
12861
12862
12863 # IFS
12864 # We need space, tab and new line, in precisely that order. Quoting is
12865 # there to prevent editors from complaining about space-tab.
12866 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12867 # splitting by setting IFS to empty value.)
12868 IFS=" "" $as_nl"
12869
12870 # Find who we are. Look in the path if we contain no directory separator.
12871 as_myself=
12872 case $0 in #((
12873 *[\\/]* ) as_myself=$0 ;;
12874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
12879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12880 done
12881 IFS=$as_save_IFS
12882
12883 ;;
12884 esac
12885 # We did not find ourselves, most probably we were run as `sh COMMAND'
12886 # in which case we are not to be found in the path.
12887 if test "x$as_myself" = x; then
12888 as_myself=$0
12889 fi
12890 if test ! -f "$as_myself"; then
12891 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12892 exit 1
12893 fi
12894
12895 # Unset variables that we do not need and which cause bugs (e.g. in
12896 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12897 # suppresses any "Segmentation fault" message there. '((' could
12898 # trigger a bug in pdksh 5.2.14.
12899 for as_var in BASH_ENV ENV MAIL MAILPATH
12900 do eval test x\${$as_var+set} = xset \
12901 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12902 done
12903 PS1='$ '
12904 PS2='> '
12905 PS4='+ '
12906
12907 # NLS nuisances.
12908 LC_ALL=C
12909 export LC_ALL
12910 LANGUAGE=C
12911 export LANGUAGE
12912
12913 # CDPATH.
12914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12915
12916
12917 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12918 # ----------------------------------------
12919 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12920 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12921 # script with STATUS, using 1 if that was 0.
12922 as_fn_error ()
12923 {
12924 as_status=$1; test $as_status -eq 0 && as_status=1
12925 if test "$4"; then
12926 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12927 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12928 fi
12929 $as_echo "$as_me: error: $2" >&2
12930 as_fn_exit $as_status
12931 } # as_fn_error
12932
12933
12934 # as_fn_set_status STATUS
12935 # -----------------------
12936 # Set $? to STATUS, without forking.
12937 as_fn_set_status ()
12938 {
12939 return $1
12940 } # as_fn_set_status
12941
12942 # as_fn_exit STATUS
12943 # -----------------
12944 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12945 as_fn_exit ()
12946 {
12947 set +e
12948 as_fn_set_status $1
12949 exit $1
12950 } # as_fn_exit
12951
12952 # as_fn_unset VAR
12953 # ---------------
12954 # Portably unset VAR.
12955 as_fn_unset ()
12956 {
12957 { eval $1=; unset $1;}
12958 }
12959 as_unset=as_fn_unset
12960 # as_fn_append VAR VALUE
12961 # ----------------------
12962 # Append the text in VALUE to the end of the definition contained in VAR. Take
12963 # advantage of any shell optimizations that allow amortized linear growth over
12964 # repeated appends, instead of the typical quadratic growth present in naive
12965 # implementations.
12966 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12967 eval 'as_fn_append ()
12968 {
12969 eval $1+=\$2
12970 }'
12971 else
12972 as_fn_append ()
12973 {
12974 eval $1=\$$1\$2
12975 }
12976 fi # as_fn_append
12977
12978 # as_fn_arith ARG...
12979 # ------------------
12980 # Perform arithmetic evaluation on the ARGs, and store the result in the
12981 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12982 # must be portable across $(()) and expr.
12983 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12984 eval 'as_fn_arith ()
12985 {
12986 as_val=$(( $* ))
12987 }'
12988 else
12989 as_fn_arith ()
12990 {
12991 as_val=`expr "$@" || test $? -eq 1`
12992 }
12993 fi # as_fn_arith
12994
12995
12996 if expr a : '\(a\)' >/dev/null 2>&1 &&
12997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12998 as_expr=expr
12999 else
13000 as_expr=false
13001 fi
13002
13003 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13004 as_basename=basename
13005 else
13006 as_basename=false
13007 fi
13008
13009 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13010 as_dirname=dirname
13011 else
13012 as_dirname=false
13013 fi
13014
13015 as_me=`$as_basename -- "$0" ||
13016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13017 X"$0" : 'X\(//\)$' \| \
13018 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13019 $as_echo X/"$0" |
13020 sed '/^.*\/\([^/][^/]*\)\/*$/{
13021 s//\1/
13022 q
13023 }
13024 /^X\/\(\/\/\)$/{
13025 s//\1/
13026 q
13027 }
13028 /^X\/\(\/\).*/{
13029 s//\1/
13030 q
13031 }
13032 s/.*/./; q'`
13033
13034 # Avoid depending upon Character Ranges.
13035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13038 as_cr_digits='0123456789'
13039 as_cr_alnum=$as_cr_Letters$as_cr_digits
13040
13041 ECHO_C= ECHO_N= ECHO_T=
13042 case `echo -n x` in #(((((
13043 -n*)
13044 case `echo 'xy\c'` in
13045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13046 xy) ECHO_C='\c';;
13047 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13048 ECHO_T=' ';;
13049 esac;;
13050 *)
13051 ECHO_N='-n';;
13052 esac
13053
13054 rm -f conf$$ conf$$.exe conf$$.file
13055 if test -d conf$$.dir; then
13056 rm -f conf$$.dir/conf$$.file
13057 else
13058 rm -f conf$$.dir
13059 mkdir conf$$.dir 2>/dev/null
13060 fi
13061 if (echo >conf$$.file) 2>/dev/null; then
13062 if ln -s conf$$.file conf$$ 2>/dev/null; then
13063 as_ln_s='ln -s'
13064 # ... but there are two gotchas:
13065 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13066 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13067 # In both cases, we have to default to `cp -pR'.
13068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13069 as_ln_s='cp -pR'
13070 elif ln conf$$.file conf$$ 2>/dev/null; then
13071 as_ln_s=ln
13072 else
13073 as_ln_s='cp -pR'
13074 fi
13075 else
13076 as_ln_s='cp -pR'
13077 fi
13078 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13079 rmdir conf$$.dir 2>/dev/null
13080
13081
13082 # as_fn_mkdir_p
13083 # -------------
13084 # Create "$as_dir" as a directory, including parents if necessary.
13085 as_fn_mkdir_p ()
13086 {
13087
13088 case $as_dir in #(
13089 -*) as_dir=./$as_dir;;
13090 esac
13091 test -d "$as_dir" || eval $as_mkdir_p || {
13092 as_dirs=
13093 while :; do
13094 case $as_dir in #(
13095 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13096 *) as_qdir=$as_dir;;
13097 esac
13098 as_dirs="'$as_qdir' $as_dirs"
13099 as_dir=`$as_dirname -- "$as_dir" ||
13100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13101 X"$as_dir" : 'X\(//\)[^/]' \| \
13102 X"$as_dir" : 'X\(//\)$' \| \
13103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13104 $as_echo X"$as_dir" |
13105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13106 s//\1/
13107 q
13108 }
13109 /^X\(\/\/\)[^/].*/{
13110 s//\1/
13111 q
13112 }
13113 /^X\(\/\/\)$/{
13114 s//\1/
13115 q
13116 }
13117 /^X\(\/\).*/{
13118 s//\1/
13119 q
13120 }
13121 s/.*/./; q'`
13122 test -d "$as_dir" && break
13123 done
13124 test -z "$as_dirs" || eval "mkdir $as_dirs"
13125 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13126
13127
13128 } # as_fn_mkdir_p
13129 if mkdir -p . 2>/dev/null; then
13130 as_mkdir_p='mkdir -p "$as_dir"'
13131 else
13132 test -d ./-p && rmdir ./-p
13133 as_mkdir_p=false
13134 fi
13135
13136
13137 # as_fn_executable_p FILE
13138 # -----------------------
13139 # Test if FILE is an executable regular file.
13140 as_fn_executable_p ()
13141 {
13142 test -f "$1" && test -x "$1"
13143 } # as_fn_executable_p
13144 as_test_x='test -x'
13145 as_executable_p=as_fn_executable_p
13146
13147 # Sed expression to map a string onto a valid CPP name.
13148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13149
13150 # Sed expression to map a string onto a valid variable name.
13151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13152
13153
13154 exec 6>&1
13155 ## ----------------------------------- ##
13156 ## Main body of $CONFIG_STATUS script. ##
13157 ## ----------------------------------- ##
13158 _ASEOF
13159 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13160
13161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13162 # Save the log message, to keep $0 and so on meaningful, and to
13163 # report actual input values of CONFIG_FILES etc. instead of their
13164 # values after options handling.
13165 ac_log="
13166 This file was extended by $as_me, which was
13167 generated by GNU Autoconf 2.69. Invocation command line was
13168
13169 CONFIG_FILES = $CONFIG_FILES
13170 CONFIG_HEADERS = $CONFIG_HEADERS
13171 CONFIG_LINKS = $CONFIG_LINKS
13172 CONFIG_COMMANDS = $CONFIG_COMMANDS
13173 $ $0 $@
13174
13175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13176 "
13177
13178 _ACEOF
13179
13180 case $ac_config_files in *"
13181 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13182 esac
13183
13184 case $ac_config_headers in *"
13185 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13186 esac
13187
13188
13189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 # Files that config.status was made for.
13191 config_files="$ac_config_files"
13192 config_headers="$ac_config_headers"
13193 config_commands="$ac_config_commands"
13194
13195 _ACEOF
13196
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 ac_cs_usage="\
13199 \`$as_me' instantiates files and other configuration actions
13200 from templates according to the current configuration. Unless the files
13201 and actions are specified as TAGs, all are instantiated by default.
13202
13203 Usage: $0 [OPTION]... [TAG]...
13204
13205 -h, --help print this help, then exit
13206 -V, --version print version number and configuration settings, then exit
13207 --config print configuration, then exit
13208 -q, --quiet, --silent
13209 do not print progress messages
13210 -d, --debug don't remove temporary files
13211 --recheck update $as_me by reconfiguring in the same conditions
13212 --file=FILE[:TEMPLATE]
13213 instantiate the configuration file FILE
13214 --header=FILE[:TEMPLATE]
13215 instantiate the configuration header FILE
13216
13217 Configuration files:
13218 $config_files
13219
13220 Configuration headers:
13221 $config_headers
13222
13223 Configuration commands:
13224 $config_commands
13225
13226 Report bugs to the package provider."
13227
13228 _ACEOF
13229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13230 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13231 ac_cs_version="\\
13232 config.status
13233 configured by $0, generated by GNU Autoconf 2.69,
13234 with options \\"\$ac_cs_config\\"
13235
13236 Copyright (C) 2012 Free Software Foundation, Inc.
13237 This config.status script is free software; the Free Software Foundation
13238 gives unlimited permission to copy, distribute and modify it."
13239
13240 ac_pwd='$ac_pwd'
13241 srcdir='$srcdir'
13242 INSTALL='$INSTALL'
13243 MKDIR_P='$MKDIR_P'
13244 AWK='$AWK'
13245 test -n "\$AWK" || AWK=awk
13246 _ACEOF
13247
13248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13249 # The default lists apply if the user does not specify any file.
13250 ac_need_defaults=:
13251 while test $# != 0
13252 do
13253 case $1 in
13254 --*=?*)
13255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13256 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13257 ac_shift=:
13258 ;;
13259 --*=)
13260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13261 ac_optarg=
13262 ac_shift=:
13263 ;;
13264 *)
13265 ac_option=$1
13266 ac_optarg=$2
13267 ac_shift=shift
13268 ;;
13269 esac
13270
13271 case $ac_option in
13272 # Handling of the options.
13273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13274 ac_cs_recheck=: ;;
13275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13276 $as_echo "$ac_cs_version"; exit ;;
13277 --config | --confi | --conf | --con | --co | --c )
13278 $as_echo "$ac_cs_config"; exit ;;
13279 --debug | --debu | --deb | --de | --d | -d )
13280 debug=: ;;
13281 --file | --fil | --fi | --f )
13282 $ac_shift
13283 case $ac_optarg in
13284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13285 '') as_fn_error $? "missing file argument" ;;
13286 esac
13287 as_fn_append CONFIG_FILES " '$ac_optarg'"
13288 ac_need_defaults=false;;
13289 --header | --heade | --head | --hea )
13290 $ac_shift
13291 case $ac_optarg in
13292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13293 esac
13294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13295 ac_need_defaults=false;;
13296 --he | --h)
13297 # Conflict between --help and --header
13298 as_fn_error $? "ambiguous option: \`$1'
13299 Try \`$0 --help' for more information.";;
13300 --help | --hel | -h )
13301 $as_echo "$ac_cs_usage"; exit ;;
13302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13304 ac_cs_silent=: ;;
13305
13306 # This is an error.
13307 -*) as_fn_error $? "unrecognized option: \`$1'
13308 Try \`$0 --help' for more information." ;;
13309
13310 *) as_fn_append ac_config_targets " $1"
13311 ac_need_defaults=false ;;
13312
13313 esac
13314 shift
13315 done
13316
13317 ac_configure_extra_args=
13318
13319 if $ac_cs_silent; then
13320 exec 6>/dev/null
13321 ac_configure_extra_args="$ac_configure_extra_args --silent"
13322 fi
13323
13324 _ACEOF
13325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13326 if \$ac_cs_recheck; then
13327 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13328 shift
13329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13330 CONFIG_SHELL='$SHELL'
13331 export CONFIG_SHELL
13332 exec "\$@"
13333 fi
13334
13335 _ACEOF
13336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13337 exec 5>>config.log
13338 {
13339 echo
13340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13341 ## Running $as_me. ##
13342 _ASBOX
13343 $as_echo "$ac_log"
13344 } >&5
13345
13346 _ACEOF
13347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13348 #
13349 # INIT-COMMANDS
13350 #
13351 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13352
13353
13354 # The HP-UX ksh and POSIX shell print the target directory to stdout
13355 # if CDPATH is set.
13356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13357
13358 sed_quote_subst='$sed_quote_subst'
13359 double_quote_subst='$double_quote_subst'
13360 delay_variable_subst='$delay_variable_subst'
13361 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13362 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13363 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13364 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13365 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13366 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13367 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13368 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13369 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13370 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13371 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13372 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13373 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13374 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13375 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13376 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13377 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13378 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13379 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13380 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13381 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13382 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13383 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13384 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13385 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13386 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13387 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13388 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13389 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13390 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13391 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13392 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13393 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13394 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13395 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13396 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13397 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13398 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13399 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13400 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13401 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13402 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13403 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13404 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13405 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13406 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13407 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13408 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13409 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13410 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13411 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13412 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13413 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13414 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13415 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13416 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13417 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"`'
13418 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13419 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13423 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13424 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13428 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13429 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13430 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13431 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13432 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13433 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13434 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13435 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13436 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13437 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13438 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13439 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13440 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13441 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13442 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13443 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13444 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13445 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13446 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13447 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13448 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13449 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13450 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13451 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13460 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13461 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13462 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13463 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13464 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13465 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13484 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13491
13492 LTCC='$LTCC'
13493 LTCFLAGS='$LTCFLAGS'
13494 compiler='$compiler_DEFAULT'
13495
13496 # A function that is used when there is no print builtin or printf.
13497 func_fallback_echo ()
13498 {
13499 eval 'cat <<_LTECHO_EOF
13500 \$1
13501 _LTECHO_EOF'
13502 }
13503
13504 # Quote evaled strings.
13505 for var in SHELL \
13506 ECHO \
13507 PATH_SEPARATOR \
13508 SED \
13509 GREP \
13510 EGREP \
13511 FGREP \
13512 LD \
13513 NM \
13514 LN_S \
13515 lt_SP2NL \
13516 lt_NL2SP \
13517 reload_flag \
13518 OBJDUMP \
13519 deplibs_check_method \
13520 file_magic_cmd \
13521 file_magic_glob \
13522 want_nocaseglob \
13523 DLLTOOL \
13524 sharedlib_from_linklib_cmd \
13525 AR \
13526 AR_FLAGS \
13527 archiver_list_spec \
13528 STRIP \
13529 RANLIB \
13530 CC \
13531 CFLAGS \
13532 compiler \
13533 lt_cv_sys_global_symbol_pipe \
13534 lt_cv_sys_global_symbol_to_cdecl \
13535 lt_cv_sys_global_symbol_to_c_name_address \
13536 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13537 nm_file_list_spec \
13538 lt_prog_compiler_no_builtin_flag \
13539 lt_prog_compiler_pic \
13540 lt_prog_compiler_wl \
13541 lt_prog_compiler_static \
13542 lt_cv_prog_compiler_c_o \
13543 need_locks \
13544 MANIFEST_TOOL \
13545 DSYMUTIL \
13546 NMEDIT \
13547 LIPO \
13548 OTOOL \
13549 OTOOL64 \
13550 shrext_cmds \
13551 export_dynamic_flag_spec \
13552 whole_archive_flag_spec \
13553 compiler_needs_object \
13554 with_gnu_ld \
13555 allow_undefined_flag \
13556 no_undefined_flag \
13557 hardcode_libdir_flag_spec \
13558 hardcode_libdir_separator \
13559 exclude_expsyms \
13560 include_expsyms \
13561 file_list_spec \
13562 variables_saved_for_relink \
13563 libname_spec \
13564 library_names_spec \
13565 soname_spec \
13566 install_override_mode \
13567 finish_eval \
13568 old_striplib \
13569 striplib; do
13570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13571 *[\\\\\\\`\\"\\\$]*)
13572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13573 ;;
13574 *)
13575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13576 ;;
13577 esac
13578 done
13579
13580 # Double-quote double-evaled strings.
13581 for var in reload_cmds \
13582 old_postinstall_cmds \
13583 old_postuninstall_cmds \
13584 old_archive_cmds \
13585 extract_expsyms_cmds \
13586 old_archive_from_new_cmds \
13587 old_archive_from_expsyms_cmds \
13588 archive_cmds \
13589 archive_expsym_cmds \
13590 module_cmds \
13591 module_expsym_cmds \
13592 export_symbols_cmds \
13593 prelink_cmds \
13594 postlink_cmds \
13595 postinstall_cmds \
13596 postuninstall_cmds \
13597 finish_cmds \
13598 sys_lib_search_path_spec \
13599 sys_lib_dlsearch_path_spec; do
13600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13601 *[\\\\\\\`\\"\\\$]*)
13602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13603 ;;
13604 *)
13605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13606 ;;
13607 esac
13608 done
13609
13610 ac_aux_dir='$ac_aux_dir'
13611 xsi_shell='$xsi_shell'
13612 lt_shell_append='$lt_shell_append'
13613
13614 # See if we are running on zsh, and set the options which allow our
13615 # commands through without removal of \ escapes INIT.
13616 if test -n "\${ZSH_VERSION+set}" ; then
13617 setopt NO_GLOB_SUBST
13618 fi
13619
13620
13621 PACKAGE='$PACKAGE'
13622 VERSION='$VERSION'
13623 TIMESTAMP='$TIMESTAMP'
13624 RM='$RM'
13625 ofile='$ofile'
13626
13627
13628
13629
13630 _ACEOF
13631
13632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13633
13634 # Handling of arguments.
13635 for ac_config_target in $ac_config_targets
13636 do
13637 case $ac_config_target in
13638 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13639 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13641 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13642 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13643 "lib/makefile.msc") CONFIG_FILES="$CONFIG_FILES lib/makefile.msc" ;;
13644 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13645 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13646 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
13647 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13648 "kakasi-config") CONFIG_FILES="$CONFIG_FILES kakasi-config" ;;
13649 "kakasi.spec") CONFIG_FILES="$CONFIG_FILES kakasi.spec" ;;
13650 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13651
13652 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13653 esac
13654 done
13655
13656
13657 # If the user did not use the arguments to specify the items to instantiate,
13658 # then the envvar interface is used. Set only those that are not.
13659 # We use the long form for the default assignment because of an extremely
13660 # bizarre bug on SunOS 4.1.3.
13661 if $ac_need_defaults; then
13662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13665 fi
13666
13667 # Have a temporary directory for convenience. Make it in the build tree
13668 # simply because there is no reason against having it here, and in addition,
13669 # creating and moving files from /tmp can sometimes cause problems.
13670 # Hook for its removal unless debugging.
13671 # Note that there is a small window in which the directory will not be cleaned:
13672 # after its creation but before its name has been assigned to `$tmp'.
13673 $debug ||
13674 {
13675 tmp= ac_tmp=
13676 trap 'exit_status=$?
13677 : "${ac_tmp:=$tmp}"
13678 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13679 ' 0
13680 trap 'as_fn_exit 1' 1 2 13 15
13681 }
13682 # Create a (secure) tmp directory for tmp files.
13683
13684 {
13685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13686 test -d "$tmp"
13687 } ||
13688 {
13689 tmp=./conf$$-$RANDOM
13690 (umask 077 && mkdir "$tmp")
13691 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13692 ac_tmp=$tmp
13693
13694 # Set up the scripts for CONFIG_FILES section.
13695 # No need to generate them if there are no CONFIG_FILES.
13696 # This happens for instance with `./config.status config.h'.
13697 if test -n "$CONFIG_FILES"; then
13698
13699
13700 ac_cr=`echo X | tr X '\015'`
13701 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13702 # But we know of no other shell where ac_cr would be empty at this
13703 # point, so we can use a bashism as a fallback.
13704 if test "x$ac_cr" = x; then
13705 eval ac_cr=\$\'\\r\'
13706 fi
13707 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13708 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13709 ac_cs_awk_cr='\\r'
13710 else
13711 ac_cs_awk_cr=$ac_cr
13712 fi
13713
13714 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13715 _ACEOF
13716
13717
13718 {
13719 echo "cat >conf$$subs.awk <<_ACEOF" &&
13720 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13721 echo "_ACEOF"
13722 } >conf$$subs.sh ||
13723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13725 ac_delim='%!_!# '
13726 for ac_last_try in false false false false false :; do
13727 . ./conf$$subs.sh ||
13728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13729
13730 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13731 if test $ac_delim_n = $ac_delim_num; then
13732 break
13733 elif $ac_last_try; then
13734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13735 else
13736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13737 fi
13738 done
13739 rm -f conf$$subs.sh
13740
13741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13743 _ACEOF
13744 sed -n '
13745 h
13746 s/^/S["/; s/!.*/"]=/
13747 p
13748 g
13749 s/^[^!]*!//
13750 :repl
13751 t repl
13752 s/'"$ac_delim"'$//
13753 t delim
13754 :nl
13755 h
13756 s/\(.\{148\}\)..*/\1/
13757 t more1
13758 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13759 p
13760 n
13761 b repl
13762 :more1
13763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13764 p
13765 g
13766 s/.\{148\}//
13767 t nl
13768 :delim
13769 h
13770 s/\(.\{148\}\)..*/\1/
13771 t more2
13772 s/["\\]/\\&/g; s/^/"/; s/$/"/
13773 p
13774 b
13775 :more2
13776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13777 p
13778 g
13779 s/.\{148\}//
13780 t delim
13781 ' <conf$$subs.awk | sed '
13782 /^[^""]/{
13783 N
13784 s/\n//
13785 }
13786 ' >>$CONFIG_STATUS || ac_write_fail=1
13787 rm -f conf$$subs.awk
13788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13789 _ACAWK
13790 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13791 for (key in S) S_is_set[key] = 1
13792 FS = ""
13793
13794 }
13795 {
13796 line = $ 0
13797 nfields = split(line, field, "@")
13798 substed = 0
13799 len = length(field[1])
13800 for (i = 2; i < nfields; i++) {
13801 key = field[i]
13802 keylen = length(key)
13803 if (S_is_set[key]) {
13804 value = S[key]
13805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13806 len += length(value) + length(field[++i])
13807 substed = 1
13808 } else
13809 len += 1 + keylen
13810 }
13811
13812 print line
13813 }
13814
13815 _ACAWK
13816 _ACEOF
13817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13820 else
13821 cat
13822 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13823 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13824 _ACEOF
13825
13826 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13827 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13828 # trailing colons and then remove the whole line if VPATH becomes empty
13829 # (actually we leave an empty line to preserve line numbers).
13830 if test "x$srcdir" = x.; then
13831 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13832 h
13833 s///
13834 s/^/:/
13835 s/[ ]*$/:/
13836 s/:\$(srcdir):/:/g
13837 s/:\${srcdir}:/:/g
13838 s/:@srcdir@:/:/g
13839 s/^:*//
13840 s/:*$//
13841 x
13842 s/\(=[ ]*\).*/\1/
13843 G
13844 s/\n//
13845 s/^[^=]*=[ ]*$//
13846 }'
13847 fi
13848
13849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850 fi # test -n "$CONFIG_FILES"
13851
13852 # Set up the scripts for CONFIG_HEADERS section.
13853 # No need to generate them if there are no CONFIG_HEADERS.
13854 # This happens for instance with `./config.status Makefile'.
13855 if test -n "$CONFIG_HEADERS"; then
13856 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13857 BEGIN {
13858 _ACEOF
13859
13860 # Transform confdefs.h into an awk script `defines.awk', embedded as
13861 # here-document in config.status, that substitutes the proper values into
13862 # config.h.in to produce config.h.
13863
13864 # Create a delimiter string that does not exist in confdefs.h, to ease
13865 # handling of long lines.
13866 ac_delim='%!_!# '
13867 for ac_last_try in false false :; do
13868 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13869 if test -z "$ac_tt"; then
13870 break
13871 elif $ac_last_try; then
13872 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13873 else
13874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13875 fi
13876 done
13877
13878 # For the awk script, D is an array of macro values keyed by name,
13879 # likewise P contains macro parameters if any. Preserve backslash
13880 # newline sequences.
13881
13882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13883 sed -n '
13884 s/.\{148\}/&'"$ac_delim"'/g
13885 t rset
13886 :rset
13887 s/^[ ]*#[ ]*define[ ][ ]*/ /
13888 t def
13889 d
13890 :def
13891 s/\\$//
13892 t bsnl
13893 s/["\\]/\\&/g
13894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13895 D["\1"]=" \3"/p
13896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13897 d
13898 :bsnl
13899 s/["\\]/\\&/g
13900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13901 D["\1"]=" \3\\\\\\n"\\/p
13902 t cont
13903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13904 t cont
13905 d
13906 :cont
13907 n
13908 s/.\{148\}/&'"$ac_delim"'/g
13909 t clear
13910 :clear
13911 s/\\$//
13912 t bsnlc
13913 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13914 d
13915 :bsnlc
13916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13917 b cont
13918 ' <confdefs.h | sed '
13919 s/'"$ac_delim"'/"\\\
13920 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13921
13922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13923 for (key in D) D_is_set[key] = 1
13924 FS = ""
13925 }
13926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13927 line = \$ 0
13928 split(line, arg, " ")
13929 if (arg[1] == "#") {
13930 defundef = arg[2]
13931 mac1 = arg[3]
13932 } else {
13933 defundef = substr(arg[1], 2)
13934 mac1 = arg[2]
13935 }
13936 split(mac1, mac2, "(") #)
13937 macro = mac2[1]
13938 prefix = substr(line, 1, index(line, defundef) - 1)
13939 if (D_is_set[macro]) {
13940 # Preserve the white space surrounding the "#".
13941 print prefix "define", macro P[macro] D[macro]
13942 next
13943 } else {
13944 # Replace #undef with comments. This is necessary, for example,
13945 # in the case of _POSIX_SOURCE, which is predefined and required
13946 # on some systems where configure will not decide to define it.
13947 if (defundef == "undef") {
13948 print "/*", prefix defundef, macro, "*/"
13949 next
13950 }
13951 }
13952 }
13953 { print }
13954 _ACAWK
13955 _ACEOF
13956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13957 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13958 fi # test -n "$CONFIG_HEADERS"
13959
13960
13961 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13962 shift
13963 for ac_tag
13964 do
13965 case $ac_tag in
13966 :[FHLC]) ac_mode=$ac_tag; continue;;
13967 esac
13968 case $ac_mode$ac_tag in
13969 :[FHL]*:*);;
13970 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13971 :[FH]-) ac_tag=-:-;;
13972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13973 esac
13974 ac_save_IFS=$IFS
13975 IFS=:
13976 set x $ac_tag
13977 IFS=$ac_save_IFS
13978 shift
13979 ac_file=$1
13980 shift
13981
13982 case $ac_mode in
13983 :L) ac_source=$1;;
13984 :[FH])
13985 ac_file_inputs=
13986 for ac_f
13987 do
13988 case $ac_f in
13989 -) ac_f="$ac_tmp/stdin";;
13990 *) # Look for the file first in the build tree, then in the source tree
13991 # (if the path is not absolute). The absolute path cannot be DOS-style,
13992 # because $ac_f cannot contain `:'.
13993 test -f "$ac_f" ||
13994 case $ac_f in
13995 [\\/$]*) false;;
13996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13997 esac ||
13998 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13999 esac
14000 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14001 as_fn_append ac_file_inputs " '$ac_f'"
14002 done
14003
14004 # Let's still pretend it is `configure' which instantiates (i.e., don't
14005 # use $as_me), people would be surprised to read:
14006 # /* config.h. Generated by config.status. */
14007 configure_input='Generated from '`
14008 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14009 `' by configure.'
14010 if test x"$ac_file" != x-; then
14011 configure_input="$ac_file. $configure_input"
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14013 $as_echo "$as_me: creating $ac_file" >&6;}
14014 fi
14015 # Neutralize special characters interpreted by sed in replacement strings.
14016 case $configure_input in #(
14017 *\&* | *\|* | *\\* )
14018 ac_sed_conf_input=`$as_echo "$configure_input" |
14019 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14020 *) ac_sed_conf_input=$configure_input;;
14021 esac
14022
14023 case $ac_tag in
14024 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14026 esac
14027 ;;
14028 esac
14029
14030 ac_dir=`$as_dirname -- "$ac_file" ||
14031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$ac_file" : 'X\(//\)[^/]' \| \
14033 X"$ac_file" : 'X\(//\)$' \| \
14034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14035 $as_echo X"$ac_file" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14037 s//\1/
14038 q
14039 }
14040 /^X\(\/\/\)[^/].*/{
14041 s//\1/
14042 q
14043 }
14044 /^X\(\/\/\)$/{
14045 s//\1/
14046 q
14047 }
14048 /^X\(\/\).*/{
14049 s//\1/
14050 q
14051 }
14052 s/.*/./; q'`
14053 as_dir="$ac_dir"; as_fn_mkdir_p
14054 ac_builddir=.
14055
14056 case "$ac_dir" in
14057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14058 *)
14059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14060 # A ".." for each directory in $ac_dir_suffix.
14061 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14062 case $ac_top_builddir_sub in
14063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14065 esac ;;
14066 esac
14067 ac_abs_top_builddir=$ac_pwd
14068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14069 # for backward compatibility:
14070 ac_top_builddir=$ac_top_build_prefix
14071
14072 case $srcdir in
14073 .) # We are building in place.
14074 ac_srcdir=.
14075 ac_top_srcdir=$ac_top_builddir_sub
14076 ac_abs_top_srcdir=$ac_pwd ;;
14077 [\\/]* | ?:[\\/]* ) # Absolute name.
14078 ac_srcdir=$srcdir$ac_dir_suffix;
14079 ac_top_srcdir=$srcdir
14080 ac_abs_top_srcdir=$srcdir ;;
14081 *) # Relative name.
14082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14083 ac_top_srcdir=$ac_top_build_prefix$srcdir
14084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14085 esac
14086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14087
14088
14089 case $ac_mode in
14090 :F)
14091 #
14092 # CONFIG_FILE
14093 #
14094
14095 case $INSTALL in
14096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14098 esac
14099 ac_MKDIR_P=$MKDIR_P
14100 case $MKDIR_P in
14101 [\\/$]* | ?:[\\/]* ) ;;
14102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14103 esac
14104 _ACEOF
14105
14106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107 # If the template does not know about datarootdir, expand it.
14108 # FIXME: This hack should be removed a few years after 2.60.
14109 ac_datarootdir_hack=; ac_datarootdir_seen=
14110 ac_sed_dataroot='
14111 /datarootdir/ {
14112 p
14113 q
14114 }
14115 /@datadir@/p
14116 /@docdir@/p
14117 /@infodir@/p
14118 /@localedir@/p
14119 /@mandir@/p'
14120 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14121 *datarootdir*) ac_datarootdir_seen=yes;;
14122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14124 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14125 _ACEOF
14126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14127 ac_datarootdir_hack='
14128 s&@datadir@&$datadir&g
14129 s&@docdir@&$docdir&g
14130 s&@infodir@&$infodir&g
14131 s&@localedir@&$localedir&g
14132 s&@mandir@&$mandir&g
14133 s&\\\${datarootdir}&$datarootdir&g' ;;
14134 esac
14135 _ACEOF
14136
14137 # Neutralize VPATH when `$srcdir' = `.'.
14138 # Shell code in configure.ac might set extrasub.
14139 # FIXME: do we really want to maintain this feature?
14140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14141 ac_sed_extra="$ac_vpsub
14142 $extrasub
14143 _ACEOF
14144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145 :t
14146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14147 s|@configure_input@|$ac_sed_conf_input|;t t
14148 s&@top_builddir@&$ac_top_builddir_sub&;t t
14149 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14150 s&@srcdir@&$ac_srcdir&;t t
14151 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14152 s&@top_srcdir@&$ac_top_srcdir&;t t
14153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14154 s&@builddir@&$ac_builddir&;t t
14155 s&@abs_builddir@&$ac_abs_builddir&;t t
14156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14157 s&@INSTALL@&$ac_INSTALL&;t t
14158 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14159 $ac_datarootdir_hack
14160 "
14161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14162 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14163
14164 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14165 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14167 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14169 which seems to be undefined. Please make sure it is defined" >&5
14170 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14171 which seems to be undefined. Please make sure it is defined" >&2;}
14172
14173 rm -f "$ac_tmp/stdin"
14174 case $ac_file in
14175 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14176 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14177 esac \
14178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14179 ;;
14180 :H)
14181 #
14182 # CONFIG_HEADER
14183 #
14184 if test x"$ac_file" != x-; then
14185 {
14186 $as_echo "/* $configure_input */" \
14187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14188 } >"$ac_tmp/config.h" \
14189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14190 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14192 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14193 else
14194 rm -f "$ac_file"
14195 mv "$ac_tmp/config.h" "$ac_file" \
14196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14197 fi
14198 else
14199 $as_echo "/* $configure_input */" \
14200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14201 || as_fn_error $? "could not create -" "$LINENO" 5
14202 fi
14203 # Compute "$ac_file"'s index in $config_headers.
14204 _am_arg="$ac_file"
14205 _am_stamp_count=1
14206 for _am_header in $config_headers :; do
14207 case $_am_header in
14208 $_am_arg | $_am_arg:* )
14209 break ;;
14210 * )
14211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14212 esac
14213 done
14214 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14215 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14216 X"$_am_arg" : 'X\(//\)[^/]' \| \
14217 X"$_am_arg" : 'X\(//\)$' \| \
14218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14219 $as_echo X"$_am_arg" |
14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14221 s//\1/
14222 q
14223 }
14224 /^X\(\/\/\)[^/].*/{
14225 s//\1/
14226 q
14227 }
14228 /^X\(\/\/\)$/{
14229 s//\1/
14230 q
14231 }
14232 /^X\(\/\).*/{
14233 s//\1/
14234 q
14235 }
14236 s/.*/./; q'`/stamp-h$_am_stamp_count
14237 ;;
14238
14239 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14240 $as_echo "$as_me: executing $ac_file commands" >&6;}
14241 ;;
14242 esac
14243
14244
14245 case $ac_file$ac_mode in
14246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14247 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14248 # are listed without --file. Let's play safe and only enable the eval
14249 # if we detect the quoting.
14250 case $CONFIG_FILES in
14251 *\'*) eval set x "$CONFIG_FILES" ;;
14252 *) set x $CONFIG_FILES ;;
14253 esac
14254 shift
14255 for mf
14256 do
14257 # Strip MF so we end up with the name of the file.
14258 mf=`echo "$mf" | sed -e 's/:.*$//'`
14259 # Check whether this is an Automake generated Makefile or not.
14260 # We used to match only the files named `Makefile.in', but
14261 # some people rename them; so instead we look at the file content.
14262 # Grep'ing the first line is not enough: some people post-process
14263 # each Makefile.in and add a new line on top of each file to say so.
14264 # Grep'ing the whole file is not good either: AIX grep has a line
14265 # limit of 2048, but all sed's we know have understand at least 4000.
14266 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14267 dirpart=`$as_dirname -- "$mf" ||
14268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14269 X"$mf" : 'X\(//\)[^/]' \| \
14270 X"$mf" : 'X\(//\)$' \| \
14271 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14272 $as_echo X"$mf" |
14273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14274 s//\1/
14275 q
14276 }
14277 /^X\(\/\/\)[^/].*/{
14278 s//\1/
14279 q
14280 }
14281 /^X\(\/\/\)$/{
14282 s//\1/
14283 q
14284 }
14285 /^X\(\/\).*/{
14286 s//\1/
14287 q
14288 }
14289 s/.*/./; q'`
14290 else
14291 continue
14292 fi
14293 # Extract the definition of DEPDIR, am__include, and am__quote
14294 # from the Makefile without running `make'.
14295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14296 test -z "$DEPDIR" && continue
14297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14298 test -z "am__include" && continue
14299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14300 # When using ansi2knr, U may be empty or an underscore; expand it
14301 U=`sed -n 's/^U = //p' < "$mf"`
14302 # Find all dependency output files, they are included files with
14303 # $(DEPDIR) in their names. We invoke sed twice because it is the
14304 # simplest approach to changing $(DEPDIR) to its actual value in the
14305 # expansion.
14306 for file in `sed -n "
14307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14309 # Make sure the directory exists.
14310 test -f "$dirpart/$file" && continue
14311 fdir=`$as_dirname -- "$file" ||
14312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14313 X"$file" : 'X\(//\)[^/]' \| \
14314 X"$file" : 'X\(//\)$' \| \
14315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14316 $as_echo X"$file" |
14317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14318 s//\1/
14319 q
14320 }
14321 /^X\(\/\/\)[^/].*/{
14322 s//\1/
14323 q
14324 }
14325 /^X\(\/\/\)$/{
14326 s//\1/
14327 q
14328 }
14329 /^X\(\/\).*/{
14330 s//\1/
14331 q
14332 }
14333 s/.*/./; q'`
14334 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14335 # echo "creating $dirpart/$file"
14336 echo '# dummy' > "$dirpart/$file"
14337 done
14338 done
14339 }
14340 ;;
14341 "libtool":C)
14342
14343 # See if we are running on zsh, and set the options which allow our
14344 # commands through without removal of \ escapes.
14345 if test -n "${ZSH_VERSION+set}" ; then
14346 setopt NO_GLOB_SUBST
14347 fi
14348
14349 cfgfile="${ofile}T"
14350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14351 $RM "$cfgfile"
14352
14353 cat <<_LT_EOF >> "$cfgfile"
14354 #! $SHELL
14355
14356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14360 #
14361 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14362 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14363 # Foundation, Inc.
14364 # Written by Gordon Matzigkeit, 1996
14365 #
14366 # This file is part of GNU Libtool.
14367 #
14368 # GNU Libtool is free software; you can redistribute it and/or
14369 # modify it under the terms of the GNU General Public License as
14370 # published by the Free Software Foundation; either version 2 of
14371 # the License, or (at your option) any later version.
14372 #
14373 # As a special exception to the GNU General Public License,
14374 # if you distribute this file as part of a program or library that
14375 # is built using GNU Libtool, you may include this file under the
14376 # same distribution terms that you use for the rest of that program.
14377 #
14378 # GNU Libtool is distributed in the hope that it will be useful,
14379 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14380 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14381 # GNU General Public License for more details.
14382 #
14383 # You should have received a copy of the GNU General Public License
14384 # along with GNU Libtool; see the file COPYING. If not, a copy
14385 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14386 # obtained by writing to the Free Software Foundation, Inc.,
14387 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14388
14389
14390 # The names of the tagged configurations supported by this script.
14391 available_tags=""
14392
14393 # ### BEGIN LIBTOOL CONFIG
14394
14395 # Which release of libtool.m4 was used?
14396 macro_version=$macro_version
14397 macro_revision=$macro_revision
14398
14399 # Whether or not to build shared libraries.
14400 build_libtool_libs=$enable_shared
14401
14402 # Whether or not to build static libraries.
14403 build_old_libs=$enable_static
14404
14405 # What type of objects to build.
14406 pic_mode=$pic_mode
14407
14408 # Whether or not to optimize for fast installation.
14409 fast_install=$enable_fast_install
14410
14411 # Shell to use when invoking shell scripts.
14412 SHELL=$lt_SHELL
14413
14414 # An echo program that protects backslashes.
14415 ECHO=$lt_ECHO
14416
14417 # The PATH separator for the build system.
14418 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14419
14420 # The host system.
14421 host_alias=$host_alias
14422 host=$host
14423 host_os=$host_os
14424
14425 # The build system.
14426 build_alias=$build_alias
14427 build=$build
14428 build_os=$build_os
14429
14430 # A sed program that does not truncate output.
14431 SED=$lt_SED
14432
14433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14434 Xsed="\$SED -e 1s/^X//"
14435
14436 # A grep program that handles long lines.
14437 GREP=$lt_GREP
14438
14439 # An ERE matcher.
14440 EGREP=$lt_EGREP
14441
14442 # A literal string matcher.
14443 FGREP=$lt_FGREP
14444
14445 # A BSD- or MS-compatible name lister.
14446 NM=$lt_NM
14447
14448 # Whether we need soft or hard links.
14449 LN_S=$lt_LN_S
14450
14451 # What is the maximum length of a command?
14452 max_cmd_len=$max_cmd_len
14453
14454 # Object file suffix (normally "o").
14455 objext=$ac_objext
14456
14457 # Executable file suffix (normally "").
14458 exeext=$exeext
14459
14460 # whether the shell understands "unset".
14461 lt_unset=$lt_unset
14462
14463 # turn spaces into newlines.
14464 SP2NL=$lt_lt_SP2NL
14465
14466 # turn newlines into spaces.
14467 NL2SP=$lt_lt_NL2SP
14468
14469 # convert \$build file names to \$host format.
14470 to_host_file_cmd=$lt_cv_to_host_file_cmd
14471
14472 # convert \$build files to toolchain format.
14473 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14474
14475 # An object symbol dumper.
14476 OBJDUMP=$lt_OBJDUMP
14477
14478 # Method to check whether dependent libraries are shared objects.
14479 deplibs_check_method=$lt_deplibs_check_method
14480
14481 # Command to use when deplibs_check_method = "file_magic".
14482 file_magic_cmd=$lt_file_magic_cmd
14483
14484 # How to find potential files when deplibs_check_method = "file_magic".
14485 file_magic_glob=$lt_file_magic_glob
14486
14487 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14488 want_nocaseglob=$lt_want_nocaseglob
14489
14490 # DLL creation program.
14491 DLLTOOL=$lt_DLLTOOL
14492
14493 # Command to associate shared and link libraries.
14494 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14495
14496 # The archiver.
14497 AR=$lt_AR
14498
14499 # Flags to create an archive.
14500 AR_FLAGS=$lt_AR_FLAGS
14501
14502 # How to feed a file listing to the archiver.
14503 archiver_list_spec=$lt_archiver_list_spec
14504
14505 # A symbol stripping program.
14506 STRIP=$lt_STRIP
14507
14508 # Commands used to install an old-style archive.
14509 RANLIB=$lt_RANLIB
14510 old_postinstall_cmds=$lt_old_postinstall_cmds
14511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14512
14513 # Whether to use a lock for old archive extraction.
14514 lock_old_archive_extraction=$lock_old_archive_extraction
14515
14516 # A C compiler.
14517 LTCC=$lt_CC
14518
14519 # LTCC compiler flags.
14520 LTCFLAGS=$lt_CFLAGS
14521
14522 # Take the output of nm and produce a listing of raw symbols and C names.
14523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14524
14525 # Transform the output of nm in a proper C declaration.
14526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14527
14528 # Transform the output of nm in a C name address pair.
14529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14530
14531 # Transform the output of nm in a C name address pair when lib prefix is needed.
14532 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14533
14534 # Specify filename containing input files for \$NM.
14535 nm_file_list_spec=$lt_nm_file_list_spec
14536
14537 # The root where to search for dependent libraries,and in which our libraries should be installed.
14538 lt_sysroot=$lt_sysroot
14539
14540 # The name of the directory that contains temporary libtool files.
14541 objdir=$objdir
14542
14543 # Used to examine libraries when file_magic_cmd begins with "file".
14544 MAGIC_CMD=$MAGIC_CMD
14545
14546 # Must we lock files when doing compilation?
14547 need_locks=$lt_need_locks
14548
14549 # Manifest tool.
14550 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14551
14552 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14553 DSYMUTIL=$lt_DSYMUTIL
14554
14555 # Tool to change global to local symbols on Mac OS X.
14556 NMEDIT=$lt_NMEDIT
14557
14558 # Tool to manipulate fat objects and archives on Mac OS X.
14559 LIPO=$lt_LIPO
14560
14561 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14562 OTOOL=$lt_OTOOL
14563
14564 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14565 OTOOL64=$lt_OTOOL64
14566
14567 # Old archive suffix (normally "a").
14568 libext=$libext
14569
14570 # Shared library suffix (normally ".so").
14571 shrext_cmds=$lt_shrext_cmds
14572
14573 # The commands to extract the exported symbol list from a shared archive.
14574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575
14576 # Variables whose values should be saved in libtool wrapper scripts and
14577 # restored at link time.
14578 variables_saved_for_relink=$lt_variables_saved_for_relink
14579
14580 # Do we need the "lib" prefix for modules?
14581 need_lib_prefix=$need_lib_prefix
14582
14583 # Do we need a version for libraries?
14584 need_version=$need_version
14585
14586 # Library versioning type.
14587 version_type=$version_type
14588
14589 # Shared library runtime path variable.
14590 runpath_var=$runpath_var
14591
14592 # Shared library path variable.
14593 shlibpath_var=$shlibpath_var
14594
14595 # Is shlibpath searched before the hard-coded library search path?
14596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14597
14598 # Format of library name prefix.
14599 libname_spec=$lt_libname_spec
14600
14601 # List of archive names. First name is the real one, the rest are links.
14602 # The last name is the one that the linker finds with -lNAME
14603 library_names_spec=$lt_library_names_spec
14604
14605 # The coded name of the library, if different from the real name.
14606 soname_spec=$lt_soname_spec
14607
14608 # Permission mode override for installation of shared libraries.
14609 install_override_mode=$lt_install_override_mode
14610
14611 # Command to use after installation of a shared archive.
14612 postinstall_cmds=$lt_postinstall_cmds
14613
14614 # Command to use after uninstallation of a shared archive.
14615 postuninstall_cmds=$lt_postuninstall_cmds
14616
14617 # Commands used to finish a libtool library installation in a directory.
14618 finish_cmds=$lt_finish_cmds
14619
14620 # As "finish_cmds", except a single script fragment to be evaled but
14621 # not shown.
14622 finish_eval=$lt_finish_eval
14623
14624 # Whether we should hardcode library paths into libraries.
14625 hardcode_into_libs=$hardcode_into_libs
14626
14627 # Compile-time system search path for libraries.
14628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14629
14630 # Run-time system search path for libraries.
14631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14632
14633 # Whether dlopen is supported.
14634 dlopen_support=$enable_dlopen
14635
14636 # Whether dlopen of programs is supported.
14637 dlopen_self=$enable_dlopen_self
14638
14639 # Whether dlopen of statically linked programs is supported.
14640 dlopen_self_static=$enable_dlopen_self_static
14641
14642 # Commands to strip libraries.
14643 old_striplib=$lt_old_striplib
14644 striplib=$lt_striplib
14645
14646
14647 # The linker used to build libraries.
14648 LD=$lt_LD
14649
14650 # How to create reloadable object files.
14651 reload_flag=$lt_reload_flag
14652 reload_cmds=$lt_reload_cmds
14653
14654 # Commands used to build an old-style archive.
14655 old_archive_cmds=$lt_old_archive_cmds
14656
14657 # A language specific compiler.
14658 CC=$lt_compiler
14659
14660 # Is the compiler the GNU compiler?
14661 with_gcc=$GCC
14662
14663 # Compiler flag to turn off builtin functions.
14664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14665
14666 # Additional compiler flags for building library objects.
14667 pic_flag=$lt_lt_prog_compiler_pic
14668
14669 # How to pass a linker flag through the compiler.
14670 wl=$lt_lt_prog_compiler_wl
14671
14672 # Compiler flag to prevent dynamic linking.
14673 link_static_flag=$lt_lt_prog_compiler_static
14674
14675 # Does compiler simultaneously support -c and -o options?
14676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14677
14678 # Whether or not to add -lc for building shared libraries.
14679 build_libtool_need_lc=$archive_cmds_need_lc
14680
14681 # Whether or not to disallow shared libs when runtime libs are static.
14682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14683
14684 # Compiler flag to allow reflexive dlopens.
14685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14686
14687 # Compiler flag to generate shared objects directly from archives.
14688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14689
14690 # Whether the compiler copes with passing no objects directly.
14691 compiler_needs_object=$lt_compiler_needs_object
14692
14693 # Create an old-style archive from a shared archive.
14694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14695
14696 # Create a temporary old-style archive to link instead of a shared archive.
14697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14698
14699 # Commands used to build a shared archive.
14700 archive_cmds=$lt_archive_cmds
14701 archive_expsym_cmds=$lt_archive_expsym_cmds
14702
14703 # Commands used to build a loadable module if different from building
14704 # a shared archive.
14705 module_cmds=$lt_module_cmds
14706 module_expsym_cmds=$lt_module_expsym_cmds
14707
14708 # Whether we are building with GNU ld or not.
14709 with_gnu_ld=$lt_with_gnu_ld
14710
14711 # Flag that allows shared libraries with undefined symbols to be built.
14712 allow_undefined_flag=$lt_allow_undefined_flag
14713
14714 # Flag that enforces no undefined symbols.
14715 no_undefined_flag=$lt_no_undefined_flag
14716
14717 # Flag to hardcode \$libdir into a binary during linking.
14718 # This must work even if \$libdir does not exist
14719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14720
14721 # Whether we need a single "-rpath" flag with a separated argument.
14722 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14723
14724 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14725 # DIR into the resulting binary.
14726 hardcode_direct=$hardcode_direct
14727
14728 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14729 # DIR into the resulting binary and the resulting library dependency is
14730 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14731 # library is relocated.
14732 hardcode_direct_absolute=$hardcode_direct_absolute
14733
14734 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14735 # into the resulting binary.
14736 hardcode_minus_L=$hardcode_minus_L
14737
14738 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14739 # into the resulting binary.
14740 hardcode_shlibpath_var=$hardcode_shlibpath_var
14741
14742 # Set to "yes" if building a shared library automatically hardcodes DIR
14743 # into the library and all subsequent libraries and executables linked
14744 # against it.
14745 hardcode_automatic=$hardcode_automatic
14746
14747 # Set to yes if linker adds runtime paths of dependent libraries
14748 # to runtime path list.
14749 inherit_rpath=$inherit_rpath
14750
14751 # Whether libtool must link a program against all its dependency libraries.
14752 link_all_deplibs=$link_all_deplibs
14753
14754 # Set to "yes" if exported symbols are required.
14755 always_export_symbols=$always_export_symbols
14756
14757 # The commands to list exported symbols.
14758 export_symbols_cmds=$lt_export_symbols_cmds
14759
14760 # Symbols that should not be listed in the preloaded symbols.
14761 exclude_expsyms=$lt_exclude_expsyms
14762
14763 # Symbols that must always be exported.
14764 include_expsyms=$lt_include_expsyms
14765
14766 # Commands necessary for linking programs (against libraries) with templates.
14767 prelink_cmds=$lt_prelink_cmds
14768
14769 # Commands necessary for finishing linking programs.
14770 postlink_cmds=$lt_postlink_cmds
14771
14772 # Specify filename containing input files.
14773 file_list_spec=$lt_file_list_spec
14774
14775 # How to hardcode a shared library path into an executable.
14776 hardcode_action=$hardcode_action
14777
14778 # ### END LIBTOOL CONFIG
14779
14780 _LT_EOF
14781
14782 case $host_os in
14783 aix3*)
14784 cat <<\_LT_EOF >> "$cfgfile"
14785 # AIX sometimes has problems with the GCC collect2 program. For some
14786 # reason, if we set the COLLECT_NAMES environment variable, the problems
14787 # vanish in a puff of smoke.
14788 if test "X${COLLECT_NAMES+set}" != Xset; then
14789 COLLECT_NAMES=
14790 export COLLECT_NAMES
14791 fi
14792 _LT_EOF
14793 ;;
14794 esac
14795
14796
14797 ltmain="$ac_aux_dir/ltmain.sh"
14798
14799
14800 # We use sed instead of cat because bash on DJGPP gets confused if
14801 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14802 # text mode, it properly converts lines to CR/LF. This bash problem
14803 # is reportedly fixed, but why not run on old versions too?
14804 sed '$q' "$ltmain" >> "$cfgfile" \
14805 || (rm -f "$cfgfile"; exit 1)
14806
14807 if test x"$xsi_shell" = xyes; then
14808 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14809 func_dirname ()\
14810 {\
14811 \ case ${1} in\
14812 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14813 \ * ) func_dirname_result="${3}" ;;\
14814 \ esac\
14815 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14816 && mv -f "$cfgfile.tmp" "$cfgfile" \
14817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818 test 0 -eq $? || _lt_function_replace_fail=:
14819
14820
14821 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14822 func_basename ()\
14823 {\
14824 \ func_basename_result="${1##*/}"\
14825 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14826 && mv -f "$cfgfile.tmp" "$cfgfile" \
14827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14828 test 0 -eq $? || _lt_function_replace_fail=:
14829
14830
14831 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14832 func_dirname_and_basename ()\
14833 {\
14834 \ case ${1} in\
14835 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14836 \ * ) func_dirname_result="${3}" ;;\
14837 \ esac\
14838 \ func_basename_result="${1##*/}"\
14839 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14840 && mv -f "$cfgfile.tmp" "$cfgfile" \
14841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14842 test 0 -eq $? || _lt_function_replace_fail=:
14843
14844
14845 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14846 func_stripname ()\
14847 {\
14848 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14849 \ # positional parameters, so assign one to ordinary parameter first.\
14850 \ func_stripname_result=${3}\
14851 \ func_stripname_result=${func_stripname_result#"${1}"}\
14852 \ func_stripname_result=${func_stripname_result%"${2}"}\
14853 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14854 && mv -f "$cfgfile.tmp" "$cfgfile" \
14855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14856 test 0 -eq $? || _lt_function_replace_fail=:
14857
14858
14859 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14860 func_split_long_opt ()\
14861 {\
14862 \ func_split_long_opt_name=${1%%=*}\
14863 \ func_split_long_opt_arg=${1#*=}\
14864 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14865 && mv -f "$cfgfile.tmp" "$cfgfile" \
14866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14867 test 0 -eq $? || _lt_function_replace_fail=:
14868
14869
14870 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14871 func_split_short_opt ()\
14872 {\
14873 \ func_split_short_opt_arg=${1#??}\
14874 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14875 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14876 && mv -f "$cfgfile.tmp" "$cfgfile" \
14877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14878 test 0 -eq $? || _lt_function_replace_fail=:
14879
14880
14881 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14882 func_lo2o ()\
14883 {\
14884 \ case ${1} in\
14885 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14886 \ *) func_lo2o_result=${1} ;;\
14887 \ esac\
14888 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14889 && mv -f "$cfgfile.tmp" "$cfgfile" \
14890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14891 test 0 -eq $? || _lt_function_replace_fail=:
14892
14893
14894 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14895 func_xform ()\
14896 {\
14897 func_xform_result=${1%.*}.lo\
14898 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14899 && mv -f "$cfgfile.tmp" "$cfgfile" \
14900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14901 test 0 -eq $? || _lt_function_replace_fail=:
14902
14903
14904 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14905 func_arith ()\
14906 {\
14907 func_arith_result=$(( $* ))\
14908 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14909 && mv -f "$cfgfile.tmp" "$cfgfile" \
14910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14911 test 0 -eq $? || _lt_function_replace_fail=:
14912
14913
14914 sed -e '/^func_len ()$/,/^} # func_len /c\
14915 func_len ()\
14916 {\
14917 func_len_result=${#1}\
14918 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14919 && mv -f "$cfgfile.tmp" "$cfgfile" \
14920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14921 test 0 -eq $? || _lt_function_replace_fail=:
14922
14923 fi
14924
14925 if test x"$lt_shell_append" = xyes; then
14926 sed -e '/^func_append ()$/,/^} # func_append /c\
14927 func_append ()\
14928 {\
14929 eval "${1}+=\\${2}"\
14930 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14931 && mv -f "$cfgfile.tmp" "$cfgfile" \
14932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14933 test 0 -eq $? || _lt_function_replace_fail=:
14934
14935
14936 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14937 func_append_quoted ()\
14938 {\
14939 \ func_quote_for_eval "${2}"\
14940 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14941 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14942 && mv -f "$cfgfile.tmp" "$cfgfile" \
14943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14944 test 0 -eq $? || _lt_function_replace_fail=:
14945
14946
14947 # Save a `func_append' function call where possible by direct use of '+='
14948 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14949 && mv -f "$cfgfile.tmp" "$cfgfile" \
14950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14951 test 0 -eq $? || _lt_function_replace_fail=:
14952 else
14953 # Save a `func_append' function call even when '+=' is not available
14954 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14955 && mv -f "$cfgfile.tmp" "$cfgfile" \
14956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14957 test 0 -eq $? || _lt_function_replace_fail=:
14958 fi
14959
14960 if test x"$_lt_function_replace_fail" = x":"; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14962 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14963 fi
14964
14965
14966 mv -f "$cfgfile" "$ofile" ||
14967 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14968 chmod +x "$ofile"
14969
14970 ;;
14971 "default":C) chmod +x kakasi-config ;;
14972
14973 esac
14974 done # for ac_tag
14975
14976
14977 as_fn_exit 0
14978 _ACEOF
14979 ac_clean_files=$ac_clean_files_save
14980
14981 test $ac_write_fail = 0 ||
14982 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14983
14984
14985 # configure is writing to config.log, and then calls config.status.
14986 # config.status does its own redirection, appending to config.log.
14987 # Unfortunately, on DOS this fails, as config.log is still kept open
14988 # by configure, so config.status won't be able to write to it; its
14989 # output is simply discarded. So we exec the FD to /dev/null,
14990 # effectively closing config.log, so it can be properly (re)opened and
14991 # appended to by config.status. When coming back to configure, we
14992 # need to make the FD available again.
14993 if test "$no_create" != yes; then
14994 ac_cs_success=:
14995 ac_config_status_args=
14996 test "$silent" = yes &&
14997 ac_config_status_args="$ac_config_status_args --quiet"
14998 exec 5>/dev/null
14999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15000 exec 5>>config.log
15001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15002 # would make configure fail if this is the last instruction.
15003 $ac_cs_success || as_fn_exit 1
15004 fi
15005 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15007 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15008 fi
15009
15010
15011 # Local Variables:
15012 # mode:shell-script
15013 # sh-indentation:2
15014 # End: