grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / jpeg / configure
blobc7b13875e476aa6e9e40dfb933b404ccbeff6682
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libjpeg 9.0.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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
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
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
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 bug-autoconf@gnu.org 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."
280 exit 1
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
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
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 ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
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/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
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"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
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 ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
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 ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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 ()
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
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
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
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
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
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/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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
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 '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
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; }
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
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;;
518 ECHO_N='-n';;
519 esac
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
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'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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'"
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'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
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`
576 # Initializations.
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=
587 # Identity of this package.
588 PACKAGE_NAME='libjpeg'
589 PACKAGE_TARNAME='libjpeg'
590 PACKAGE_VERSION='9.0.0'
591 PACKAGE_STRING='libjpeg 9.0.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 JPEG_LIB_VERSION
636 MEMORYMGR
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 MANIFEST_TOOL
643 RANLIB
645 ac_ct_DUMPBIN
646 DUMPBIN
648 FGREP
650 LIBTOOL
651 OBJDUMP
652 DLLTOOL
654 EGREP
655 GREP
656 HAVE_LD_VERSION_SCRIPT_FALSE
657 HAVE_LD_VERSION_SCRIPT_TRUE
658 ac_ct_AR
660 LN_S
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
679 MAINT
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 AM_BACKSLASH
683 AM_DEFAULT_VERBOSITY
684 AM_DEFAULT_V
685 AM_V
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_maintainer_mode
764 enable_dependency_tracking
765 enable_ld_version_script
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_maxmem
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
834 ac_prev=
835 ac_dashdash=
836 for ac_option
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
855 ac_dashdash=yes ;;
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
874 --config-cache | -C)
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 esac
1192 done
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247 test "$silent" = yes && exec 6>/dev/null
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1276 /^X\(\/\/\)$/{
1277 s//\1/
1280 /^X\(\/\).*/{
1281 s//\1/
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1289 else
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures libjpeg 9.0.0 to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1379 cat <<\_ACEOF
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390 _ACEOF
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of libjpeg 9.0.0:";;
1396 esac
1397 cat <<\_ACEOF
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-silent-rules less verbose build output (undo: "make V=1")
1404 --disable-silent-rules verbose build output (undo: "make V=0")
1405 --enable-maintainer-mode
1406 enable make rules and dependencies not useful (and
1407 sometimes confusing) to the casual installer
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --enable-ld-version-script
1413 enable linker version script (default is enabled
1414 when possible)
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --enable-maxmem=N enable use of temp files, set max mem usage to N MB
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 libjpeg configure 9.0.0
1508 generated by GNU Autoconf 2.69
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=1
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_c_try_compile
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_cpp ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 }; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_cpp
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 test -x conftest$ac_exeext
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_link
1642 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645 # the include files in INCLUDES and setting the cache variable VAR
1646 # accordingly.
1647 ac_fn_c_check_header_mongrel ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if eval \${$3+:} false; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 else
1660 # Is the header compilable?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662 $as_echo_n "checking $2 usability... " >&6; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670 else
1671 ac_header_compiler=no
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675 $as_echo "$ac_header_compiler" >&6; }
1677 # Is the header present?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679 $as_echo_n "checking $2 presence... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686 else
1687 ac_header_preproc=no
1689 rm -f conftest.err conftest.i conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691 $as_echo "$ac_header_preproc" >&6; }
1693 # So? What about this header?
1694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 yes:no: )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 no:yes:* )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713 esac
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 eval "$3=\$ac_header_compiler"
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_header_mongrel
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_run
1771 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists and can be compiled using the include files in
1774 # INCLUDES, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_header_compile
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817 #define $2 innocuous_$2
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1824 #ifdef __STDC__
1825 # include <limits.h>
1826 #else
1827 # include <assert.h>
1828 #endif
1830 #undef $2
1832 /* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1835 #ifdef __cplusplus
1836 extern "C"
1837 #endif
1838 char $2 ();
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined __stub_$2 || defined __stub___$2
1843 choke me
1844 #endif
1847 main ()
1849 return $2 ();
1851 return 0;
1853 _ACEOF
1854 if ac_fn_c_try_link "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1859 rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 } # ac_fn_c_check_func
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1872 It was created by libjpeg $as_me 9.0.0, which was
1873 generated by GNU Autoconf 2.69. Invocation command line was
1875 $ $0 $@
1877 _ACEOF
1878 exec 5>>config.log
1880 cat <<_ASUNAME
1881 ## --------- ##
1882 ## Platform. ##
1883 ## --------- ##
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1902 _ASUNAME
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 $as_echo "PATH: $as_dir"
1910 done
1911 IFS=$as_save_IFS
1913 } >&5
1915 cat >&5 <<_ACEOF
1918 ## ----------- ##
1919 ## Core tests. ##
1920 ## ----------- ##
1922 _ACEOF
1925 # Keep a trace of the command line.
1926 # Strip out --no-create and --no-recursion so they do not pile up.
1927 # Strip out --silent because we don't want to record it for future runs.
1928 # Also quote any args containing shell meta-characters.
1929 # Make two passes to allow for proper duplicate-argument suppression.
1930 ac_configure_args=
1931 ac_configure_args0=
1932 ac_configure_args1=
1933 ac_must_keep_next=false
1934 for ac_pass in 1 2
1936 for ac_arg
1938 case $ac_arg in
1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941 | -silent | --silent | --silen | --sile | --sil)
1942 continue ;;
1943 *\'*)
1944 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945 esac
1946 case $ac_pass in
1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949 as_fn_append ac_configure_args1 " '$ac_arg'"
1950 if test $ac_must_keep_next = true; then
1951 ac_must_keep_next=false # Got value, back to normal.
1952 else
1953 case $ac_arg in
1954 *=* | --config-cache | -C | -disable-* | --disable-* \
1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957 | -with-* | --with-* | -without-* | --without-* | --x)
1958 case "$ac_configure_args0 " in
1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960 esac
1962 -* ) ac_must_keep_next=true ;;
1963 esac
1965 as_fn_append ac_configure_args " '$ac_arg'"
1967 esac
1968 done
1969 done
1970 { ac_configure_args0=; unset ac_configure_args0;}
1971 { ac_configure_args1=; unset ac_configure_args1;}
1973 # When interrupted or exit'd, cleanup temporary files, and complete
1974 # config.log. We remove comments because anyway the quotes in there
1975 # would cause problems or look ugly.
1976 # WARNING: Use '\'' to represent an apostrophe within the trap.
1977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978 trap 'exit_status=$?
1979 # Save into config.log some information that might help in debugging.
1981 echo
1983 $as_echo "## ---------------- ##
1984 ## Cache variables. ##
1985 ## ---------------- ##"
1986 echo
1987 # The following way of writing the cache mishandles newlines in values,
1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990 eval ac_val=\$$ac_var
1991 case $ac_val in #(
1992 *${as_nl}*)
1993 case $ac_var in #(
1994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1996 esac
1997 case $ac_var in #(
1998 _ | IFS | as_nl) ;; #(
1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000 *) { eval $ac_var=; unset $ac_var;} ;;
2001 esac ;;
2002 esac
2003 done
2004 (set) 2>&1 |
2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006 *${as_nl}ac_space=\ *)
2007 sed -n \
2008 "s/'\''/'\''\\\\'\'''\''/g;
2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2010 ;; #(
2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014 esac |
2015 sort
2017 echo
2019 $as_echo "## ----------------- ##
2020 ## Output variables. ##
2021 ## ----------------- ##"
2022 echo
2023 for ac_var in $ac_subst_vars
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 $as_echo "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2033 if test -n "$ac_subst_files"; then
2034 $as_echo "## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##"
2037 echo
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2049 if test -s confdefs.h; then
2050 $as_echo "## ----------- ##
2051 ## confdefs.h. ##
2052 ## ----------- ##"
2053 echo
2054 cat confdefs.h
2055 echo
2057 test "$ac_signal" != 0 &&
2058 $as_echo "$as_me: caught signal $ac_signal"
2059 $as_echo "$as_me: exit $exit_status"
2060 } >&5
2061 rm -f core *.core core.conftest.* &&
2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2063 exit $exit_status
2065 for ac_signal in 1 2 13 15; do
2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2067 done
2068 ac_signal=0
2070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2071 rm -f -r conftest* confdefs.h
2073 $as_echo "/* confdefs.h */" > confdefs.h
2075 # Predefined preprocessor variables.
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_NAME "$PACKAGE_NAME"
2079 _ACEOF
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2083 _ACEOF
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2087 _ACEOF
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2091 _ACEOF
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2095 _ACEOF
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_URL "$PACKAGE_URL"
2099 _ACEOF
2102 # Let the site file select an alternate cache file if it wants to.
2103 # Prefer an explicitly selected file to automatically selected ones.
2104 ac_site_file1=NONE
2105 ac_site_file2=NONE
2106 if test -n "$CONFIG_SITE"; then
2107 # We do not want a PATH search for config.site.
2108 case $CONFIG_SITE in #((
2109 -*) ac_site_file1=./$CONFIG_SITE;;
2110 */*) ac_site_file1=$CONFIG_SITE;;
2111 *) ac_site_file1=./$CONFIG_SITE;;
2112 esac
2113 elif test "x$prefix" != xNONE; then
2114 ac_site_file1=$prefix/share/config.site
2115 ac_site_file2=$prefix/etc/config.site
2116 else
2117 ac_site_file1=$ac_default_prefix/share/config.site
2118 ac_site_file2=$ac_default_prefix/etc/config.site
2120 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122 test "x$ac_site_file" = xNONE && continue
2123 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2126 sed 's/^/| /' "$ac_site_file" >&5
2127 . "$ac_site_file" \
2128 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 as_fn_error $? "failed to load site script $ac_site_file
2131 See \`config.log' for more details" "$LINENO" 5; }
2133 done
2135 if test -r "$cache_file"; then
2136 # Some versions of bash will fail to source /dev/null (special files
2137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2140 $as_echo "$as_me: loading cache $cache_file" >&6;}
2141 case $cache_file in
2142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143 *) . "./$cache_file";;
2144 esac
2146 else
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2148 $as_echo "$as_me: creating cache $cache_file" >&6;}
2149 >$cache_file
2152 # Check that the precious variables saved in the cache have kept the same
2153 # value.
2154 ac_cache_corrupted=false
2155 for ac_var in $ac_precious_vars; do
2156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2157 eval ac_new_set=\$ac_env_${ac_var}_set
2158 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2159 eval ac_new_val=\$ac_env_${ac_var}_value
2160 case $ac_old_set,$ac_new_set in
2161 set,)
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2165 ,set)
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2168 ac_cache_corrupted=: ;;
2169 ,);;
2171 if test "x$ac_old_val" != "x$ac_new_val"; then
2172 # differences in whitespace do not lead to failure.
2173 ac_old_val_w=`echo x $ac_old_val`
2174 ac_new_val_w=`echo x $ac_new_val`
2175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2178 ac_cache_corrupted=:
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2182 eval $ac_var=\$ac_old_val
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2188 fi;;
2189 esac
2190 # Pass precious variables to config.status.
2191 if test "$ac_new_set" = set; then
2192 case $ac_new_val in
2193 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 *) ac_arg=$ac_var=$ac_new_val ;;
2195 esac
2196 case " $ac_configure_args " in
2197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2198 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2199 esac
2201 done
2202 if $ac_cache_corrupted; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2207 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209 ## -------------------- ##
2210 ## Main body of script. ##
2211 ## -------------------- ##
2213 ac_ext=c
2214 ac_cpp='$CPP $CPPFLAGS'
2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221 # Directory where autotools helper scripts lives.
2222 ac_aux_dir=
2223 for ac_dir in . "$srcdir"/.; do
2224 if test -f "$ac_dir/install-sh"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2227 break
2228 elif test -f "$ac_dir/install.sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2231 break
2232 elif test -f "$ac_dir/shtool"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2235 break
2237 done
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2252 # Generate configuration headers.
2253 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2256 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2257 AUTOHEADER="echo autoheader ignored"
2259 # Check system type
2260 # Make sure we can run config.sub.
2261 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2262 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2265 $as_echo_n "checking build system type... " >&6; }
2266 if ${ac_cv_build+:} false; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 ac_build_alias=$build_alias
2270 test "x$ac_build_alias" = x &&
2271 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2272 test "x$ac_build_alias" = x &&
2273 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2274 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2275 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2279 $as_echo "$ac_cv_build" >&6; }
2280 case $ac_cv_build in
2281 *-*-*) ;;
2282 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2283 esac
2284 build=$ac_cv_build
2285 ac_save_IFS=$IFS; IFS='-'
2286 set x $ac_cv_build
2287 shift
2288 build_cpu=$1
2289 build_vendor=$2
2290 shift; shift
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2293 build_os=$*
2294 IFS=$ac_save_IFS
2295 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299 $as_echo_n "checking host system type... " >&6; }
2300 if ${ac_cv_host+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$host_alias" = x; then
2304 ac_cv_host=$ac_cv_build
2305 else
2306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312 $as_echo "$ac_cv_host" >&6; }
2313 case $ac_cv_host in
2314 *-*-*) ;;
2315 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332 $as_echo_n "checking target system type... " >&6; }
2333 if ${ac_cv_target+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test "x$target_alias" = x; then
2337 ac_cv_target=$ac_cv_host
2338 else
2339 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345 $as_echo "$ac_cv_target" >&6; }
2346 case $ac_cv_target in
2347 *-*-*) ;;
2348 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2349 esac
2350 target=$ac_cv_target
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_target
2353 shift
2354 target_cpu=$1
2355 target_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 target_os=$*
2360 IFS=$ac_save_IFS
2361 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2364 # The aliases save the names the user supplied, while $host etc.
2365 # will get canonicalized.
2366 test -n "$target_alias" &&
2367 test "$program_prefix$program_suffix$program_transform_name" = \
2368 NONENONEs,x,x, &&
2369 program_prefix=${target_alias}-
2371 # Initialize Automake
2372 # Don't require all the GNU mandated files
2373 am__api_version='1.13'
2375 # Find a good install program. We prefer a C program (faster),
2376 # so one script is as good as another. But avoid the broken or
2377 # incompatible versions:
2378 # SysV /etc/install, /usr/sbin/install
2379 # SunOS /usr/etc/install
2380 # IRIX /sbin/install
2381 # AIX /bin/install
2382 # AmigaOS /C/install, which installs bootblocks on floppy discs
2383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386 # OS/2's system install, which has a completely different semantic
2387 # ./install, which can be erroneously created by make from ./install.sh.
2388 # Reject install programs that cannot install multiple files.
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2391 if test -z "$INSTALL"; then
2392 if ${ac_cv_path_install+:} false; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 # Account for people who put trailing slashes in PATH elements.
2401 case $as_dir/ in #((
2402 ./ | .// | /[cC]/* | \
2403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2404 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2405 /usr/ucb/* ) ;;
2407 # OSF1 and SCO ODT 3.0 have their own names for install.
2408 # Don't use installbsd from OSF since it installs stuff as root
2409 # by default.
2410 for ac_prog in ginstall scoinst install; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2413 if test $ac_prog = install &&
2414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # AIX install. It has an incompatible calling convention.
2417 elif test $ac_prog = install &&
2418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # program-specific install script used by HP pwplus--don't use.
2421 else
2422 rm -rf conftest.one conftest.two conftest.dir
2423 echo one > conftest.one
2424 echo two > conftest.two
2425 mkdir conftest.dir
2426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427 test -s conftest.one && test -s conftest.two &&
2428 test -s conftest.dir/conftest.one &&
2429 test -s conftest.dir/conftest.two
2430 then
2431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2432 break 3
2436 done
2437 done
2439 esac
2441 done
2442 IFS=$as_save_IFS
2444 rm -rf conftest.one conftest.two conftest.dir
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL=$ac_install_sh
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458 $as_echo "$INSTALL" >&6; }
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469 $as_echo_n "checking whether build environment is sane... " >&6; }
2470 # Reject unsafe characters in $srcdir or the absolute working directory
2471 # name. Accept space and tab only in the latter.
2472 am_lf='
2474 case `pwd` in
2475 *[\\\"\#\$\&\'\`$am_lf]*)
2476 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2477 esac
2478 case $srcdir in
2479 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2480 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2481 esac
2483 # Do 'set' in a subshell so we don't clobber the current shell's
2484 # arguments. Must try -L first in case configure is actually a
2485 # symlink; some systems play weird games with the mod time of symlinks
2486 # (eg FreeBSD returns the mod time of the symlink's containing
2487 # directory).
2488 if (
2489 am_has_slept=no
2490 for am_try in 1 2; do
2491 echo "timestamp, slept: $am_has_slept" > conftest.file
2492 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2493 if test "$*" = "X"; then
2494 # -L didn't work.
2495 set X `ls -t "$srcdir/configure" conftest.file`
2497 if test "$*" != "X $srcdir/configure conftest.file" \
2498 && test "$*" != "X conftest.file $srcdir/configure"; then
2500 # If neither matched, then we have a broken ls. This can happen
2501 # if, for instance, CONFIG_SHELL is bash and it inherits a
2502 # broken ls alias from the environment. This has actually
2503 # happened. Such a system could not be considered "sane".
2504 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2505 alias in your environment" "$LINENO" 5
2507 if test "$2" = conftest.file || test $am_try -eq 2; then
2508 break
2510 # Just in case.
2511 sleep 1
2512 am_has_slept=yes
2513 done
2514 test "$2" = conftest.file
2516 then
2517 # Ok.
2519 else
2520 as_fn_error $? "newly created file is older than distributed files!
2521 Check your system clock" "$LINENO" 5
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2524 $as_echo "yes" >&6; }
2525 # If we didn't sleep, we still need to ensure time stamps of config.status and
2526 # generated files are strictly newer.
2527 am_sleep_pid=
2528 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2529 ( sleep 1 ) &
2530 am_sleep_pid=$!
2533 rm -f conftest.file
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2545 # expand $ac_aux_dir to an absolute path
2546 am_aux_dir=`cd $ac_aux_dir && pwd`
2548 if test x"${MISSING+set}" != xset; then
2549 case $am_aux_dir in
2550 *\ * | *\ *)
2551 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2553 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2554 esac
2556 # Use eval to expand $SHELL
2557 if eval "$MISSING --is-lightweight"; then
2558 am_missing_run="$MISSING "
2559 else
2560 am_missing_run=
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2562 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2565 if test x"${install_sh}" != xset; then
2566 case $am_aux_dir in
2567 *\ * | *\ *)
2568 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2570 install_sh="\${SHELL} $am_aux_dir/install-sh"
2571 esac
2574 # Installed binaries are usually stripped using 'strip' when the user
2575 # run "make install-strip". However 'strip' might not be the right
2576 # tool to use in cross-compilation environments, therefore Automake
2577 # will honor the 'STRIP' environment variable to overrule this program.
2578 if test "$cross_compiling" != no; then
2579 if test -n "$ac_tool_prefix"; then
2580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581 set dummy ${ac_tool_prefix}strip; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_STRIP+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test -n "$STRIP"; then
2588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2607 STRIP=$ac_cv_prog_STRIP
2608 if test -n "$STRIP"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2610 $as_echo "$STRIP" >&6; }
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2618 if test -z "$ac_cv_prog_STRIP"; then
2619 ac_ct_STRIP=$STRIP
2620 # Extract the first word of "strip", so it can be a program name with args.
2621 set dummy strip; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$ac_ct_STRIP"; then
2628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_ac_ct_STRIP="strip"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648 if test -n "$ac_ct_STRIP"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2650 $as_echo "$ac_ct_STRIP" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2656 if test "x$ac_ct_STRIP" = x; then
2657 STRIP=":"
2658 else
2659 case $cross_compiling:$ac_tool_warned in
2660 yes:)
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2663 ac_tool_warned=yes ;;
2664 esac
2665 STRIP=$ac_ct_STRIP
2667 else
2668 STRIP="$ac_cv_prog_STRIP"
2672 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2675 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2676 if test -z "$MKDIR_P"; then
2677 if ${ac_cv_path_mkdir+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_prog in mkdir gmkdir; do
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2688 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2689 'mkdir (GNU coreutils) '* | \
2690 'mkdir (coreutils) '* | \
2691 'mkdir (fileutils) '4.1*)
2692 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2693 break 3;;
2694 esac
2695 done
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 test -d ./--version && rmdir ./--version
2703 if test "${ac_cv_path_mkdir+set}" = set; then
2704 MKDIR_P="$ac_cv_path_mkdir -p"
2705 else
2706 # As a last resort, use the slow shell script. Don't cache a
2707 # value for MKDIR_P within a source directory, because that will
2708 # break other packages using the cache if that directory is
2709 # removed, or if the value is a relative name.
2710 MKDIR_P="$ac_install_sh -d"
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2714 $as_echo "$MKDIR_P" >&6; }
2716 for ac_prog in gawk mawk nawk awk
2718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2719 set dummy $ac_prog; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_AWK+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$AWK"; then
2726 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_AWK="$ac_prog"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2739 done
2740 done
2741 IFS=$as_save_IFS
2745 AWK=$ac_cv_prog_AWK
2746 if test -n "$AWK"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2748 $as_echo "$AWK" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2755 test -n "$AWK" && break
2756 done
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2759 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2760 set x ${MAKE-make}
2761 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2762 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 cat >conftest.make <<\_ACEOF
2766 SHELL = /bin/sh
2767 all:
2768 @echo '@@@%%%=$(MAKE)=@@@%%%'
2769 _ACEOF
2770 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2771 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2772 *@@@%%%=?*=@@@%%%*)
2773 eval ac_cv_prog_make_${ac_make}_set=yes;;
2775 eval ac_cv_prog_make_${ac_make}_set=no;;
2776 esac
2777 rm -f conftest.make
2779 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781 $as_echo "yes" >&6; }
2782 SET_MAKE=
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2786 SET_MAKE="MAKE=${MAKE-make}"
2789 rm -rf .tst 2>/dev/null
2790 mkdir .tst 2>/dev/null
2791 if test -d .tst; then
2792 am__leading_dot=.
2793 else
2794 am__leading_dot=_
2796 rmdir .tst 2>/dev/null
2798 # Check whether --enable-silent-rules was given.
2799 if test "${enable_silent_rules+set}" = set; then :
2800 enableval=$enable_silent_rules;
2803 case $enable_silent_rules in # (((
2804 yes) AM_DEFAULT_VERBOSITY=0;;
2805 no) AM_DEFAULT_VERBOSITY=1;;
2806 *) AM_DEFAULT_VERBOSITY=1;;
2807 esac
2808 am_make=${MAKE-make}
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2810 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2811 if ${am_cv_make_support_nested_variables+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if $as_echo 'TRUE=$(BAR$(V))
2815 BAR0=false
2816 BAR1=true
2818 am__doit:
2819 @$(TRUE)
2820 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2821 am_cv_make_support_nested_variables=yes
2822 else
2823 am_cv_make_support_nested_variables=no
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2827 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2828 if test $am_cv_make_support_nested_variables = yes; then
2829 AM_V='$(V)'
2830 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2831 else
2832 AM_V=$AM_DEFAULT_VERBOSITY
2833 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2835 AM_BACKSLASH='\'
2837 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2838 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2839 # is not polluted with repeated "-I."
2840 am__isrc=' -I$(srcdir)'
2841 # test to see if srcdir already configured
2842 if test -f $srcdir/config.status; then
2843 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2847 # test whether we have cygpath
2848 if test -z "$CYGPATH_W"; then
2849 if (cygpath --version) >/dev/null 2>/dev/null; then
2850 CYGPATH_W='cygpath -w'
2851 else
2852 CYGPATH_W=echo
2857 # Define the identity of the package.
2858 PACKAGE='libjpeg'
2859 VERSION='9.0.0'
2862 cat >>confdefs.h <<_ACEOF
2863 #define PACKAGE "$PACKAGE"
2864 _ACEOF
2867 cat >>confdefs.h <<_ACEOF
2868 #define VERSION "$VERSION"
2869 _ACEOF
2871 # Some tools Automake needs.
2873 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2876 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2879 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2882 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2885 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2887 # For better backward compatibility. To be removed once Automake 1.9.x
2888 # dies out for good. For more background, see:
2889 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2890 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2891 mkdir_p='$(MKDIR_P)'
2893 # We need awk for the "check" target. The system "awk" is bad on
2894 # some platforms.
2895 # Always define AMTAR for backward compatibility. Yes, it's still used
2896 # in the wild :-( We should find a proper way to deprecate it ...
2897 AMTAR='$${TAR-tar}'
2899 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2906 # Make --enable-silent-rules the default.
2907 # To get verbose build output you may configure
2908 # with --disable-silent-rules or use "make V=1".
2909 # Check whether --enable-silent-rules was given.
2910 if test "${enable_silent_rules+set}" = set; then :
2911 enableval=$enable_silent_rules;
2914 case $enable_silent_rules in # (((
2915 yes) AM_DEFAULT_VERBOSITY=0;;
2916 no) AM_DEFAULT_VERBOSITY=1;;
2917 *) AM_DEFAULT_VERBOSITY=0;;
2918 esac
2919 am_make=${MAKE-make}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922 if ${am_cv_make_support_nested_variables+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if $as_echo 'TRUE=$(BAR$(V))
2926 BAR0=false
2927 BAR1=true
2929 am__doit:
2930 @$(TRUE)
2931 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932 am_cv_make_support_nested_variables=yes
2933 else
2934 am_cv_make_support_nested_variables=no
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2939 if test $am_cv_make_support_nested_variables = yes; then
2940 AM_V='$(V)'
2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942 else
2943 AM_V=$AM_DEFAULT_VERBOSITY
2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2946 AM_BACKSLASH='\'
2949 # Add configure option --enable-maintainer-mode which enables
2950 # dependency checking and generation useful to package maintainers.
2951 # This is made an option to avoid confusing end users.
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2954 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2955 # Check whether --enable-maintainer-mode was given.
2956 if test "${enable_maintainer_mode+set}" = set; then :
2957 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2958 else
2959 USE_MAINTAINER_MODE=no
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2963 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2964 if test $USE_MAINTAINER_MODE = yes; then
2965 MAINTAINER_MODE_TRUE=
2966 MAINTAINER_MODE_FALSE='#'
2967 else
2968 MAINTAINER_MODE_TRUE='#'
2969 MAINTAINER_MODE_FALSE=
2972 MAINT=$MAINTAINER_MODE_TRUE
2976 # Check for programs
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}gcc; 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_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
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_CC="${ac_tool_prefix}gcc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3004 done
3005 done
3006 IFS=$as_save_IFS
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3021 if test -z "$ac_cv_prog_CC"; then
3022 ac_ct_CC=$CC
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024 set dummy gcc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3059 if test "x$ac_ct_CC" = x; then
3060 CC=""
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 CC=$ac_ct_CC
3070 else
3071 CC="$ac_cv_prog_CC"
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3077 set dummy ${ac_tool_prefix}cc; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="${ac_tool_prefix}cc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3097 done
3098 done
3099 IFS=$as_save_IFS
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3115 if test -z "$CC"; then
3116 # Extract the first word of "cc", so it can be a program name with args.
3117 set dummy cc; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 ac_prog_rejected=no
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135 ac_prog_rejected=yes
3136 continue
3138 ac_cv_prog_CC="cc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3142 done
3143 done
3144 IFS=$as_save_IFS
3146 if test $ac_prog_rejected = yes; then
3147 # We found a bogon in the path, so make sure we never use it.
3148 set dummy $ac_cv_prog_CC
3149 shift
3150 if test $# != 0; then
3151 # We chose a different compiler from the bogus one.
3152 # However, it has the same basename, so the bogon will be chosen
3153 # first if we set CC to just the basename; use the full file name.
3154 shift
3155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3171 if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 for ac_prog in cl.exe
3175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3212 test -n "$CC" && break
3213 done
3215 if test -z "$CC"; then
3216 ac_ct_CC=$CC
3217 for ac_prog in cl.exe
3219 # Extract the first word of "$ac_prog", so it can be a program name with args.
3220 set dummy $ac_prog; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_ac_ct_CC="$ac_prog"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3240 done
3241 done
3242 IFS=$as_save_IFS
3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247 if test -n "$ac_ct_CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249 $as_echo "$ac_ct_CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3256 test -n "$ac_ct_CC" && break
3257 done
3259 if test "x$ac_ct_CC" = x; then
3260 CC=""
3261 else
3262 case $cross_compiling:$ac_tool_warned in
3263 yes:)
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3267 esac
3268 CC=$ac_ct_CC
3275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "no acceptable C compiler found in \$PATH
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 # Provide some information about the compiler.
3281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3282 set X $ac_compile
3283 ac_compiler=$2
3284 for ac_option in --version -v -V -qversion; do
3285 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3293 ac_status=$?
3294 if test -s conftest.err; then
3295 sed '10a\
3296 ... rest of stderr output deleted ...
3297 10q' conftest.err >conftest.er1
3298 cat conftest.er1 >&5
3300 rm -f conftest.er1 conftest.err
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }
3303 done
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 ac_clean_files_save=$ac_clean_files
3317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3318 # Try to create an executable without -o first, disregard a.out.
3319 # It will help us diagnose broken compilers, and finding out an intuition
3320 # of exeext.
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3322 $as_echo_n "checking whether the C compiler works... " >&6; }
3323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325 # The possible output files:
3326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328 ac_rmfiles=
3329 for ac_file in $ac_files
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334 esac
3335 done
3336 rm -f $ac_rmfiles
3338 if { { ac_try="$ac_link_default"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_link_default") 2>&5
3346 ac_status=$?
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; then :
3349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3352 # so that the user can short-circuit this test for compilers unknown to
3353 # Autoconf.
3354 for ac_file in $ac_files ''
3356 test -f "$ac_file" || continue
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 [ab].out )
3361 # We found the default executable, but exeext='' is most
3362 # certainly right.
3363 break;;
3364 *.* )
3365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366 then :; else
3367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 # We set ac_cv_exeext here because the later test for it is not
3370 # safe: cross compilers may not add the suffix if given an `-o'
3371 # argument, so we may need to know it at that point already.
3372 # Even if this section looks crufty: it has the advantage of
3373 # actually working.
3374 break;;
3376 break;;
3377 esac
3378 done
3379 test "$ac_cv_exeext" = no && ac_cv_exeext=
3381 else
3382 ac_file=''
3384 if test -z "$ac_file"; then :
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error 77 "C compiler cannot create executables
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396 $as_echo "yes" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3399 $as_echo_n "checking for C compiler default output file name... " >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3401 $as_echo "$ac_file" >&6; }
3402 ac_exeext=$ac_cv_exeext
3404 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3405 ac_clean_files=$ac_clean_files_save
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407 $as_echo_n "checking for suffix of executables... " >&6; }
3408 if { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3421 # work properly (i.e., refer to `conftest.exe'), while it won't with
3422 # `rm'.
3423 for ac_file in conftest.exe conftest conftest.*; do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 break;;
3429 * ) break;;
3430 esac
3431 done
3432 else
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3436 See \`config.log' for more details" "$LINENO" 5; }
3438 rm -f conftest conftest$ac_cv_exeext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440 $as_echo "$ac_cv_exeext" >&6; }
3442 rm -f conftest.$ac_ext
3443 EXEEXT=$ac_cv_exeext
3444 ac_exeext=$EXEEXT
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447 #include <stdio.h>
3449 main ()
3451 FILE *f = fopen ("conftest.out", "w");
3452 return ferror (f) || fclose (f) != 0;
3455 return 0;
3457 _ACEOF
3458 ac_clean_files="$ac_clean_files conftest.out"
3459 # Check that the compiler produces executables we can run. If not, either
3460 # the compiler is broken, or we cross compile.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462 $as_echo_n "checking whether we are cross compiling... " >&6; }
3463 if test "$cross_compiling" != yes; then
3464 { { ac_try="$ac_link"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_link") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 if { ac_try='./conftest$ac_cv_exeext'
3476 { { case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_try") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; }; then
3486 cross_compiling=no
3487 else
3488 if test "$cross_compiling" = maybe; then
3489 cross_compiling=yes
3490 else
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $? "cannot run C compiled programs.
3494 If you meant to cross compile, use \`--host'.
3495 See \`config.log' for more details" "$LINENO" 5; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3500 $as_echo "$cross_compiling" >&6; }
3502 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3503 ac_clean_files=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3505 $as_echo_n "checking for suffix of object files... " >&6; }
3506 if ${ac_cv_objext+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3513 main ()
3517 return 0;
3519 _ACEOF
3520 rm -f conftest.o conftest.obj
3521 if { { ac_try="$ac_compile"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compile") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 for ac_file in conftest.o conftest.obj conftest.*; do
3533 test -f "$ac_file" || continue;
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537 break;;
3538 esac
3539 done
3540 else
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $? "cannot compute suffix of object files: cannot compile
3547 See \`config.log' for more details" "$LINENO" 5; }
3549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552 $as_echo "$ac_cv_objext" >&6; }
3553 OBJEXT=$ac_cv_objext
3554 ac_objext=$OBJEXT
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557 if ${ac_cv_c_compiler_gnu+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3564 main ()
3566 #ifndef __GNUC__
3567 choke me
3568 #endif
3571 return 0;
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_compiler_gnu=yes
3576 else
3577 ac_compiler_gnu=no
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585 if test $ac_compiler_gnu = yes; then
3586 GCC=yes
3587 else
3588 GCC=
3590 ac_test_CFLAGS=${CFLAGS+set}
3591 ac_save_CFLAGS=$CFLAGS
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3594 if ${ac_cv_prog_cc_g+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 ac_save_c_werror_flag=$ac_c_werror_flag
3598 ac_c_werror_flag=yes
3599 ac_cv_prog_cc_g=no
3600 CFLAGS="-g"
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3605 main ()
3609 return 0;
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_g=yes
3614 else
3615 CFLAGS=""
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 main ()
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3629 else
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3636 main ()
3640 return 0;
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654 $as_echo "$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3659 CFLAGS="-g -O2"
3660 else
3661 CFLAGS="-g"
3663 else
3664 if test "$GCC" = yes; then
3665 CFLAGS="-O2"
3666 else
3667 CFLAGS=
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672 if ${ac_cv_prog_cc_c89+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_cv_prog_cc_c89=no
3676 ac_save_CC=$CC
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdarg.h>
3680 #include <stdio.h>
3681 struct stat;
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3686 char **p;
3687 int i;
3689 return p[i];
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3693 char *s;
3694 va_list v;
3695 va_start (v,p);
3696 s = g (p, va_arg (v,int));
3697 va_end (v);
3698 return s;
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3712 #define FOO(x) 'x'
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 int argc;
3720 char **argv;
3722 main ()
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3726 return 0;
3728 _ACEOF
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 CC="$ac_save_CC $ac_arg"
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv_prog_cc_c89=$ac_arg
3736 rm -f core conftest.err conftest.$ac_objext
3737 test "x$ac_cv_prog_cc_c89" != "xno" && break
3738 done
3739 rm -f conftest.$ac_ext
3740 CC=$ac_save_CC
3743 # AC_CACHE_VAL
3744 case "x$ac_cv_prog_cc_c89" in
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747 $as_echo "none needed" >&6; } ;;
3748 xno)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;;
3752 CC="$CC $ac_cv_prog_cc_c89"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3755 esac
3756 if test "x$ac_cv_prog_cc_c89" != xno; then :
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 DEPDIR="${am__leading_dot}deps"
3767 ac_config_commands="$ac_config_commands depfiles"
3770 am_make=${MAKE-make}
3771 cat > confinc << 'END'
3772 am__doit:
3773 @echo this is the am__doit target
3774 .PHONY: am__doit
3776 # If we don't find an include directive, just comment out the code.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3778 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3779 am__include="#"
3780 am__quote=
3781 _am_result=none
3782 # First try GNU make style include.
3783 echo "include confinc" > confmf
3784 # Ignore all kinds of additional output from 'make'.
3785 case `$am_make -s -f confmf 2> /dev/null` in #(
3786 *the\ am__doit\ target*)
3787 am__include=include
3788 am__quote=
3789 _am_result=GNU
3791 esac
3792 # Now try BSD make style include.
3793 if test "$am__include" = "#"; then
3794 echo '.include "confinc"' > confmf
3795 case `$am_make -s -f confmf 2> /dev/null` in #(
3796 *the\ am__doit\ target*)
3797 am__include=.include
3798 am__quote="\""
3799 _am_result=BSD
3801 esac
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3806 $as_echo "$_am_result" >&6; }
3807 rm -f confinc confmf
3809 # Check whether --enable-dependency-tracking was given.
3810 if test "${enable_dependency_tracking+set}" = set; then :
3811 enableval=$enable_dependency_tracking;
3814 if test "x$enable_dependency_tracking" != xno; then
3815 am_depcomp="$ac_aux_dir/depcomp"
3816 AMDEPBACKSLASH='\'
3817 am__nodep='_no'
3819 if test "x$enable_dependency_tracking" != xno; then
3820 AMDEP_TRUE=
3821 AMDEP_FALSE='#'
3822 else
3823 AMDEP_TRUE='#'
3824 AMDEP_FALSE=
3829 depcc="$CC" am_compiler_list=
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named 'D' -- because '-MD' means "put the output
3841 # in D".
3842 rm -rf conftest.dir
3843 mkdir conftest.dir
3844 # Copy depcomp to subdir because otherwise we won't find it if we're
3845 # using a relative directory.
3846 cp "$am_depcomp" conftest.dir
3847 cd conftest.dir
3848 # We will build objects and dependencies in a subdirectory because
3849 # it helps to detect inapplicable dependency modes. For instance
3850 # both Tru64's cc and ICC support -MD to output dependencies as a
3851 # side effect of compilation, but ICC will put the dependencies in
3852 # the current directory while Tru64 will put them in the object
3853 # directory.
3854 mkdir sub
3856 am_cv_CC_dependencies_compiler_type=none
3857 if test "$am_compiler_list" = ""; then
3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3860 am__universal=false
3861 case " $depcc " in #(
3862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863 esac
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3877 # Solaris 10 /bin/sh.
3878 echo '/* dummy */' > sub/conftst$i.h
3879 done
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3883 # mode. It turns out that the SunPro C++ compiler does not properly
3884 # handle '-M -o', and we need to detect this. Also, some Intel
3885 # versions had trouble with output in subdirs.
3886 am__obj=sub/conftest.${OBJEXT-o}
3887 am__minus_obj="-o $am__obj"
3888 case $depmode in
3889 gcc)
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
3893 nosideeffect)
3894 # After this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested.
3896 if test "x$enable_dependency_tracking" = xyes; then
3897 continue
3898 else
3899 break
3902 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3903 # This compiler won't grok '-c -o', but also, the minuso test has
3904 # not run yet. These depmodes are late enough in the game, and
3905 # so weak that their functioning should not be impacted.
3906 am__obj=conftest.${OBJEXT-o}
3907 am__minus_obj=
3909 none) break ;;
3910 esac
3911 if depmode=$depmode \
3912 source=sub/conftest.c object=$am__obj \
3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915 >/dev/null 2>conftest.err &&
3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3930 break
3933 done
3935 cd ..
3936 rm -rf conftest.dir
3937 else
3938 am_cv_CC_dependencies_compiler_type=none
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCC_TRUE=
3950 am__fastdepCC_FALSE='#'
3951 else
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
3957 case $ac_cv_prog_cc_stdc in #(
3958 no) :
3959 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3960 *) :
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3962 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3963 if ${ac_cv_prog_cc_c99+:} false; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 ac_cv_prog_cc_c99=no
3967 ac_save_CC=$CC
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <stdarg.h>
3971 #include <stdbool.h>
3972 #include <stdlib.h>
3973 #include <wchar.h>
3974 #include <stdio.h>
3976 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3977 #define debug(...) fprintf (stderr, __VA_ARGS__)
3978 #define showlist(...) puts (#__VA_ARGS__)
3979 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3980 static void
3981 test_varargs_macros (void)
3983 int x = 1234;
3984 int y = 5678;
3985 debug ("Flag");
3986 debug ("X = %d\n", x);
3987 showlist (The first, second, and third items.);
3988 report (x>y, "x is %d but y is %d", x, y);
3991 // Check long long types.
3992 #define BIG64 18446744073709551615ull
3993 #define BIG32 4294967295ul
3994 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3995 #if !BIG_OK
3996 your preprocessor is broken;
3997 #endif
3998 #if BIG_OK
3999 #else
4000 your preprocessor is broken;
4001 #endif
4002 static long long int bignum = -9223372036854775807LL;
4003 static unsigned long long int ubignum = BIG64;
4005 struct incomplete_array
4007 int datasize;
4008 double data[];
4011 struct named_init {
4012 int number;
4013 const wchar_t *name;
4014 double average;
4017 typedef const char *ccp;
4019 static inline int
4020 test_restrict (ccp restrict text)
4022 // See if C++-style comments work.
4023 // Iterate through items via the restricted pointer.
4024 // Also check for declarations in for loops.
4025 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4026 continue;
4027 return 0;
4030 // Check varargs and va_copy.
4031 static void
4032 test_varargs (const char *format, ...)
4034 va_list args;
4035 va_start (args, format);
4036 va_list args_copy;
4037 va_copy (args_copy, args);
4039 const char *str;
4040 int number;
4041 float fnumber;
4043 while (*format)
4045 switch (*format++)
4047 case 's': // string
4048 str = va_arg (args_copy, const char *);
4049 break;
4050 case 'd': // int
4051 number = va_arg (args_copy, int);
4052 break;
4053 case 'f': // float
4054 fnumber = va_arg (args_copy, double);
4055 break;
4056 default:
4057 break;
4060 va_end (args_copy);
4061 va_end (args);
4065 main ()
4068 // Check bool.
4069 _Bool success = false;
4071 // Check restrict.
4072 if (test_restrict ("String literal") == 0)
4073 success = true;
4074 char *restrict newvar = "Another string";
4076 // Check varargs.
4077 test_varargs ("s, d' f .", "string", 65, 34.234);
4078 test_varargs_macros ();
4080 // Check flexible array members.
4081 struct incomplete_array *ia =
4082 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4083 ia->datasize = 10;
4084 for (int i = 0; i < ia->datasize; ++i)
4085 ia->data[i] = i * 1.234;
4087 // Check named initializers.
4088 struct named_init ni = {
4089 .number = 34,
4090 .name = L"Test wide string",
4091 .average = 543.34343,
4094 ni.number = 58;
4096 int dynamic_array[ni.number];
4097 dynamic_array[ni.number - 1] = 543;
4099 // work around unused variable warnings
4100 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4101 || dynamic_array[ni.number - 1] != 543);
4104 return 0;
4106 _ACEOF
4107 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4109 CC="$ac_save_CC $ac_arg"
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_c99=$ac_arg
4113 rm -f core conftest.err conftest.$ac_objext
4114 test "x$ac_cv_prog_cc_c99" != "xno" && break
4115 done
4116 rm -f conftest.$ac_ext
4117 CC=$ac_save_CC
4120 # AC_CACHE_VAL
4121 case "x$ac_cv_prog_cc_c99" in
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124 $as_echo "none needed" >&6; } ;;
4125 xno)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4127 $as_echo "unsupported" >&6; } ;;
4129 CC="$CC $ac_cv_prog_cc_c99"
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4131 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4132 esac
4133 if test "x$ac_cv_prog_cc_c99" != xno; then :
4134 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4137 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4138 if ${ac_cv_prog_cc_c89+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 ac_cv_prog_cc_c89=no
4142 ac_save_CC=$CC
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <stdarg.h>
4146 #include <stdio.h>
4147 struct stat;
4148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4149 struct buf { int x; };
4150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4151 static char *e (p, i)
4152 char **p;
4153 int i;
4155 return p[i];
4157 static char *f (char * (*g) (char **, int), char **p, ...)
4159 char *s;
4160 va_list v;
4161 va_start (v,p);
4162 s = g (p, va_arg (v,int));
4163 va_end (v);
4164 return s;
4167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4168 function prototypes and stuff, but not '\xHH' hex character constants.
4169 These don't provoke an error unfortunately, instead are silently treated
4170 as 'x'. The following induces an error, until -std is added to get
4171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4172 array size at least. It's necessary to write '\x00'==0 to get something
4173 that's true only with -std. */
4174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4177 inside strings and character constants. */
4178 #define FOO(x) 'x'
4179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4181 int test (int i, double x);
4182 struct s1 {int (*f) (int a);};
4183 struct s2 {int (*f) (double a);};
4184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4185 int argc;
4186 char **argv;
4188 main ()
4190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4192 return 0;
4194 _ACEOF
4195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4198 CC="$ac_save_CC $ac_arg"
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_cv_prog_cc_c89=$ac_arg
4202 rm -f core conftest.err conftest.$ac_objext
4203 test "x$ac_cv_prog_cc_c89" != "xno" && break
4204 done
4205 rm -f conftest.$ac_ext
4206 CC=$ac_save_CC
4209 # AC_CACHE_VAL
4210 case "x$ac_cv_prog_cc_c89" in
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213 $as_echo "none needed" >&6; } ;;
4214 xno)
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4216 $as_echo "unsupported" >&6; } ;;
4218 CC="$CC $ac_cv_prog_cc_c89"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4220 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4221 esac
4222 if test "x$ac_cv_prog_cc_c89" != xno; then :
4223 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4224 else
4225 ac_cv_prog_cc_stdc=no
4230 esac
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4232 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4233 if ${ac_cv_prog_cc_stdc+:} false; then :
4234 $as_echo_n "(cached) " >&6
4237 case $ac_cv_prog_cc_stdc in #(
4238 no) :
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;; #(
4241 '') :
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;; #(
4244 *) :
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4246 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4247 esac
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4255 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4256 # On Suns, sometimes $CPP names a directory.
4257 if test -n "$CPP" && test -d "$CPP"; then
4258 CPP=
4260 if test -z "$CPP"; then
4261 if ${ac_cv_prog_CPP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 # Double quotes because CPP needs to be expanded
4265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4267 ac_preproc_ok=false
4268 for ac_c_preproc_warn_flag in '' yes
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #ifdef __STDC__
4279 # include <limits.h>
4280 #else
4281 # include <assert.h>
4282 #endif
4283 Syntax error
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4287 else
4288 # Broken: fails on valid input.
4289 continue
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4298 _ACEOF
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 # Passes both tests.
4304 ac_preproc_ok=:
4305 break
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.i conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then :
4313 break
4316 done
4317 ac_cv_prog_CPP=$CPP
4320 CPP=$ac_cv_prog_CPP
4321 else
4322 ac_cv_prog_CPP=$CPP
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4325 $as_echo "$CPP" >&6; }
4326 ac_preproc_ok=false
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 Syntax error
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4346 else
4347 # Broken: fails on valid input.
4348 continue
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4357 _ACEOF
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4360 continue
4361 else
4362 # Passes both tests.
4363 ac_preproc_ok=:
4364 break
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4368 done
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.i conftest.err conftest.$ac_ext
4371 if $ac_preproc_ok; then :
4373 else
4374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details" "$LINENO" 5; }
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4388 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4389 set x ${MAKE-make}
4390 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4391 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat >conftest.make <<\_ACEOF
4395 SHELL = /bin/sh
4396 all:
4397 @echo '@@@%%%=$(MAKE)=@@@%%%'
4398 _ACEOF
4399 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4401 *@@@%%%=?*=@@@%%%*)
4402 eval ac_cv_prog_make_${ac_make}_set=yes;;
4404 eval ac_cv_prog_make_${ac_make}_set=no;;
4405 esac
4406 rm -f conftest.make
4408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410 $as_echo "yes" >&6; }
4411 SET_MAKE=
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 SET_MAKE="MAKE=${MAKE-make}"
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4419 $as_echo_n "checking whether ln -s works... " >&6; }
4420 LN_S=$as_ln_s
4421 if test "$LN_S" = "ln -s"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4423 $as_echo "yes" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4426 $as_echo "no, using $LN_S" >&6; }
4430 if test -n "$ac_tool_prefix"; then
4431 for ac_prog in ar lib "link -lib"
4433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_prog_AR+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$AR"; then
4441 ac_cv_prog_AR="$AR" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4460 AR=$ac_cv_prog_AR
4461 if test -n "$AR"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4463 $as_echo "$AR" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4470 test -n "$AR" && break
4471 done
4473 if test -z "$AR"; then
4474 ac_ct_AR=$AR
4475 for ac_prog in ar lib "link -lib"
4477 # Extract the first word of "$ac_prog", so it can be a program name with args.
4478 set dummy $ac_prog; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$ac_ct_AR"; then
4485 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_ac_ct_AR="$ac_prog"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4498 done
4499 done
4500 IFS=$as_save_IFS
4504 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4505 if test -n "$ac_ct_AR"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4507 $as_echo "$ac_ct_AR" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4514 test -n "$ac_ct_AR" && break
4515 done
4517 if test "x$ac_ct_AR" = x; then
4518 AR="false"
4519 else
4520 case $cross_compiling:$ac_tool_warned in
4521 yes:)
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4524 ac_tool_warned=yes ;;
4525 esac
4526 AR=$ac_ct_AR
4530 : ${AR=ar}
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4533 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4534 if ${am_cv_ar_interface+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 am_cv_ar_interface=ar
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 int some_variable = 0;
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4545 (eval $am_ar_try) 2>&5
4546 ac_status=$?
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4549 if test "$ac_status" -eq 0; then
4550 am_cv_ar_interface=ar
4551 else
4552 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4554 (eval $am_ar_try) 2>&5
4555 ac_status=$?
4556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }
4558 if test "$ac_status" -eq 0; then
4559 am_cv_ar_interface=lib
4560 else
4561 am_cv_ar_interface=unknown
4564 rm -f conftest.lib libconftest.a
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4571 $as_echo "$am_cv_ar_interface" >&6; }
4573 case $am_cv_ar_interface in
4576 lib)
4577 # Microsoft lib, so override with the ar-lib wrapper script.
4578 # FIXME: It is wrong to rewrite AR.
4579 # But if we don't then we get into trouble of one sort or another.
4580 # A longer-term fix would be to have automake use am__AR in this case,
4581 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4582 # similar.
4583 AR="$am_aux_dir/ar-lib $AR"
4585 unknown)
4586 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4588 esac
4591 # Check if LD supports linker scripts,
4592 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
4593 # Check whether --enable-ld-version-script was given.
4594 if test "${enable_ld_version_script+set}" = set; then :
4595 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4598 if test -z "$have_ld_version_script"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4600 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4601 save_LDFLAGS="$LDFLAGS"
4602 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4603 cat > conftest.map <<EOF
4604 VERS_1 {
4605 global: sym;
4608 VERS_2 {
4609 global: sym;
4610 } VERS_1;
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 main ()
4620 return 0;
4622 _ACEOF
4623 if ac_fn_c_try_link "$LINENO"; then :
4624 have_ld_version_script=yes
4625 else
4626 have_ld_version_script=no
4628 rm -f core conftest.err conftest.$ac_objext \
4629 conftest$ac_exeext conftest.$ac_ext
4630 rm -f conftest.map
4631 LDFLAGS="$save_LDFLAGS"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4633 $as_echo "$have_ld_version_script" >&6; }
4635 if test "$have_ld_version_script" = "yes"; then
4636 HAVE_LD_VERSION_SCRIPT_TRUE=
4637 HAVE_LD_VERSION_SCRIPT_FALSE='#'
4638 else
4639 HAVE_LD_VERSION_SCRIPT_TRUE='#'
4640 HAVE_LD_VERSION_SCRIPT_FALSE=
4644 # See if compiler supports prototypes.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4646 $as_echo_n "checking for function prototypes... " >&6; }
4647 if ${ijg_cv_have_prototypes+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4653 int testfunction (int arg1, int * arg2); /* check prototypes */
4654 struct methods_struct { /* check method-pointer declarations */
4655 int (*error_exit) (char *msgtext);
4656 int (*trace_message) (char *msgtext);
4657 int (*another_method) (void);
4659 int testfunction (int arg1, int * arg2) /* check definitions */
4660 { return arg2[arg1]; }
4661 int test2function (void) /* check void arg list */
4662 { return 0; }
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ijg_cv_have_prototypes=yes
4667 else
4668 ijg_cv_have_prototypes=no
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
4674 $as_echo "$ijg_cv_have_prototypes" >&6; }
4675 if test $ijg_cv_have_prototypes = yes; then
4677 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
4681 Perhaps it needs a special switch to enable ANSI C mode.
4682 If so, we recommend running configure like this:
4683 ./configure CC='cc -switch'
4684 where -switch is the proper switch." >&5
4685 $as_echo "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
4686 Perhaps it needs a special switch to enable ANSI C mode.
4687 If so, we recommend running configure like this:
4688 ./configure CC='cc -switch'
4689 where -switch is the proper switch." >&2;}
4692 # Check header files
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4695 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4696 if ${ac_cv_path_GREP+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -z "$GREP"; then
4700 ac_path_GREP_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in grep ggrep; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_GREP" || continue
4711 # Check for GNU ac_path_GREP and select it if it is found.
4712 # Check for GNU $ac_path_GREP
4713 case `"$ac_path_GREP" --version 2>&1` in
4714 *GNU*)
4715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4717 ac_count=0
4718 $as_echo_n 0123456789 >"conftest.in"
4719 while :
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo 'GREP' >> "conftest.nl"
4725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_GREP="$ac_path_GREP"
4731 ac_path_GREP_max=$ac_count
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4735 done
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4739 $ac_path_GREP_found && break 3
4740 done
4741 done
4742 done
4743 IFS=$as_save_IFS
4744 if test -z "$ac_cv_path_GREP"; then
4745 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4747 else
4748 ac_cv_path_GREP=$GREP
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4753 $as_echo "$ac_cv_path_GREP" >&6; }
4754 GREP="$ac_cv_path_GREP"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4758 $as_echo_n "checking for egrep... " >&6; }
4759 if ${ac_cv_path_EGREP+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4763 then ac_cv_path_EGREP="$GREP -E"
4764 else
4765 if test -z "$EGREP"; then
4766 ac_path_EGREP_found=false
4767 # Loop through the user's path and test for each of PROGNAME-LIST
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_prog in egrep; do
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4776 as_fn_executable_p "$ac_path_EGREP" || continue
4777 # Check for GNU ac_path_EGREP and select it if it is found.
4778 # Check for GNU $ac_path_EGREP
4779 case `"$ac_path_EGREP" --version 2>&1` in
4780 *GNU*)
4781 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4783 ac_count=0
4784 $as_echo_n 0123456789 >"conftest.in"
4785 while :
4787 cat "conftest.in" "conftest.in" >"conftest.tmp"
4788 mv "conftest.tmp" "conftest.in"
4789 cp "conftest.in" "conftest.nl"
4790 $as_echo 'EGREP' >> "conftest.nl"
4791 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4793 as_fn_arith $ac_count + 1 && ac_count=$as_val
4794 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4795 # Best one so far, save it but keep looking for a better one
4796 ac_cv_path_EGREP="$ac_path_EGREP"
4797 ac_path_EGREP_max=$ac_count
4799 # 10*(2^10) chars as input seems more than enough
4800 test $ac_count -gt 10 && break
4801 done
4802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803 esac
4805 $ac_path_EGREP_found && break 3
4806 done
4807 done
4808 done
4809 IFS=$as_save_IFS
4810 if test -z "$ac_cv_path_EGREP"; then
4811 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813 else
4814 ac_cv_path_EGREP=$EGREP
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4820 $as_echo "$ac_cv_path_EGREP" >&6; }
4821 EGREP="$ac_cv_path_EGREP"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4825 $as_echo_n "checking for ANSI C header files... " >&6; }
4826 if ${ac_cv_header_stdc+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <stdlib.h>
4832 #include <stdarg.h>
4833 #include <string.h>
4834 #include <float.h>
4837 main ()
4841 return 0;
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_header_stdc=yes
4846 else
4847 ac_cv_header_stdc=no
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 if test $ac_cv_header_stdc = yes; then
4852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855 #include <string.h>
4857 _ACEOF
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859 $EGREP "memchr" >/dev/null 2>&1; then :
4861 else
4862 ac_cv_header_stdc=no
4864 rm -f conftest*
4868 if test $ac_cv_header_stdc = yes; then
4869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 #include <stdlib.h>
4874 _ACEOF
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "free" >/dev/null 2>&1; then :
4878 else
4879 ac_cv_header_stdc=no
4881 rm -f conftest*
4885 if test $ac_cv_header_stdc = yes; then
4886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4887 if test "$cross_compiling" = yes; then :
4889 else
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ctype.h>
4893 #include <stdlib.h>
4894 #if ((' ' & 0x0FF) == 0x020)
4895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4897 #else
4898 # define ISLOWER(c) \
4899 (('a' <= (c) && (c) <= 'i') \
4900 || ('j' <= (c) && (c) <= 'r') \
4901 || ('s' <= (c) && (c) <= 'z'))
4902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4903 #endif
4905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4907 main ()
4909 int i;
4910 for (i = 0; i < 256; i++)
4911 if (XOR (islower (i), ISLOWER (i))
4912 || toupper (i) != TOUPPER (i))
4913 return 2;
4914 return 0;
4916 _ACEOF
4917 if ac_fn_c_try_run "$LINENO"; then :
4919 else
4920 ac_cv_header_stdc=no
4922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4923 conftest.$ac_objext conftest.beam conftest.$ac_ext
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4929 $as_echo "$ac_cv_header_stdc" >&6; }
4930 if test $ac_cv_header_stdc = yes; then
4932 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4937 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4938 inttypes.h stdint.h unistd.h
4939 do :
4940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4941 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4944 cat >>confdefs.h <<_ACEOF
4945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946 _ACEOF
4950 done
4953 for ac_header in stddef.h stdlib.h locale.h
4954 do :
4955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4958 cat >>confdefs.h <<_ACEOF
4959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4960 _ACEOF
4964 done
4966 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4967 if test "x$ac_cv_header_string_h" = xyes; then :
4969 else
4971 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
4977 # See whether type size_t is defined in any ANSI-standard places;
4978 # if not, perhaps it is defined in <sys/types.h>.
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
4980 $as_echo_n "checking for size_t... " >&6; }
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4984 #ifdef HAVE_STDDEF_H
4985 #include <stddef.h>
4986 #endif
4987 #ifdef HAVE_STDLIB_H
4988 #include <stdlib.h>
4989 #endif
4990 #include <stdio.h>
4991 #ifdef NEED_BSD_STRINGS
4992 #include <strings.h>
4993 #else
4994 #include <string.h>
4995 #endif
4996 typedef size_t my_size_t;
4999 main ()
5001 my_size_t foovar;
5003 return 0;
5005 _ACEOF
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007 ijg_size_t_ok=yes
5008 else
5009 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5013 $as_echo "$ijg_size_t_ok" >&6; }
5014 if test "$ijg_size_t_ok" != yes; then
5015 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5016 if test "x$ac_cv_header_sys_types_h" = xyes; then :
5018 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 #include <sys/types.h>
5023 _ACEOF
5024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5025 $EGREP "size_t" >/dev/null 2>&1; then :
5026 ijg_size_t_ok="size_t is in sys/types.h"
5027 else
5028 ijg_size_t_ok=no
5030 rm -f conftest*
5032 else
5033 ijg_size_t_ok=no
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5038 $as_echo "$ijg_size_t_ok" >&6; }
5039 if test "$ijg_size_t_ok" = no; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
5041 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
5042 $as_echo "$as_me: WARNING: Type size_t is not defined in any of the usual places.
5043 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
5047 # Check compiler characteristics
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5049 $as_echo_n "checking for type unsigned char... " >&6; }
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 main ()
5056 unsigned char un_char;
5058 return 0;
5060 _ACEOF
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063 $as_echo "yes" >&6; }
5065 $as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5074 $as_echo_n "checking for type unsigned short... " >&6; }
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5079 main ()
5081 unsigned short un_short;
5083 return 0;
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5090 $as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5099 $as_echo_n "checking for type void... " >&6; }
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5103 /* Caution: a C++ compiler will insist on valid prototypes */
5104 typedef void * void_ptr; /* check void * */
5105 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5106 typedef void (*void_func) (int a, int b);
5107 #else
5108 typedef void (*void_func) ();
5109 #endif
5111 #ifdef HAVE_PROTOTYPES /* check void function result */
5112 void test3function (void_ptr arg1, void_func arg2)
5113 #else
5114 void test3function (arg1, arg2)
5115 void_ptr arg1;
5116 void_func arg2;
5117 #endif
5119 char * locptr = (char *) arg1; /* check casting to and from void * */
5120 arg1 = (void *) locptr;
5121 (*arg2) (1, 2); /* check call of fcn returning void */
5125 main ()
5129 return 0;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134 $as_echo "yes" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5139 $as_echo "#define void char" >>confdefs.h
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5144 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5145 if ${ac_cv_c_const+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5152 main ()
5155 #ifndef __cplusplus
5156 /* Ultrix mips cc rejects this sort of thing. */
5157 typedef int charset[2];
5158 const charset cs = { 0, 0 };
5159 /* SunOS 4.1.1 cc rejects this. */
5160 char const *const *pcpcc;
5161 char **ppc;
5162 /* NEC SVR4.0.2 mips cc rejects this. */
5163 struct point {int x, y;};
5164 static struct point const zero = {0,0};
5165 /* AIX XL C 1.02.0.0 rejects this.
5166 It does not let you subtract one const X* pointer from another in
5167 an arm of an if-expression whose if-part is not a constant
5168 expression */
5169 const char *g = "string";
5170 pcpcc = &g + (g ? g-g : 0);
5171 /* HPUX 7.0 cc rejects these. */
5172 ++pcpcc;
5173 ppc = (char**) pcpcc;
5174 pcpcc = (char const *const *) ppc;
5175 { /* SCO 3.2v4 cc rejects this sort of thing. */
5176 char tx;
5177 char *t = &tx;
5178 char const *s = 0 ? (char *) 0 : (char const *) 0;
5180 *t++ = 0;
5181 if (s) return 0;
5183 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5184 int x[] = {25, 17};
5185 const int *foo = &x[0];
5186 ++foo;
5188 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5189 typedef const int *iptr;
5190 iptr p = 0;
5191 ++p;
5193 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5194 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5195 struct s { int j; const int *ap[3]; } bx;
5196 struct s *b = &bx; b->j = 5;
5198 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5199 const int foo = 10;
5200 if (!foo) return 0;
5202 return !cs[0] && !zero.x;
5203 #endif
5206 return 0;
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 ac_cv_c_const=yes
5211 else
5212 ac_cv_c_const=no
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5217 $as_echo "$ac_cv_c_const" >&6; }
5218 if test $ac_cv_c_const = no; then
5220 $as_echo "#define const /**/" >>confdefs.h
5225 # Check for non-broken inline under various spellings
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5227 $as_echo_n "checking for inline... " >&6; }
5228 ijg_cv_inline=""
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5233 main ()
5235 } __inline__ int foo() { return 0; }
5236 int bar() { return foo();
5238 return 0;
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 ijg_cv_inline="__inline__"
5243 else
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5248 main ()
5250 } __inline int foo() { return 0; }
5251 int bar() { return foo();
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ijg_cv_inline="__inline"
5258 else
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5263 main ()
5265 } inline int foo() { return 0; }
5266 int bar() { return foo();
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ijg_cv_inline="inline"
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5280 $as_echo "$ijg_cv_inline" >&6; }
5282 cat >>confdefs.h <<_ACEOF
5283 #define INLINE $ijg_cv_inline
5284 _ACEOF
5287 # We cannot check for bogus warnings, but at least we can check for errors
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5289 $as_echo_n "checking for broken incomplete types... " >&6; }
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 typedef struct undefined_structure * undef_struct_ptr;
5294 main ()
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5303 $as_echo "ok" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5306 $as_echo "broken" >&6; }
5308 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 # Test whether global names are unique to at least 15 chars
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5315 $as_echo_n "checking for short external names... " >&6; }
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5319 int possibly_duplicate_function () { return 0; }
5320 int possibly_dupli_function () { return 1; }
5323 main ()
5327 return 0;
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"; then :
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5332 $as_echo "ok" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
5335 $as_echo "short" >&6; }
5337 $as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5340 rm -f core conftest.err conftest.$ac_objext \
5341 conftest$ac_exeext conftest.$ac_ext
5343 # Run-time checks
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5345 $as_echo_n "checking to see if char is signed... " >&6; }
5346 if test "$cross_compiling" = yes; then :
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
5348 If it is unsigned, this will be a little bit inefficient." >&5
5349 $as_echo "$as_me: WARNING: Assuming that char is signed on target machine.
5350 If it is unsigned, this will be a little bit inefficient." >&2;}
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5356 #ifdef HAVE_STDLIB_H
5357 #include <stdlib.h>
5358 #endif
5359 #include <stdio.h>
5360 #ifdef HAVE_PROTOTYPES
5361 int is_char_signed (int arg)
5362 #else
5363 int is_char_signed (arg)
5364 int arg;
5365 #endif
5367 if (arg == 189) { /* expected result for unsigned char */
5368 return 0; /* type char is unsigned */
5370 else if (arg != -67) { /* expected result for signed char */
5371 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5372 printf("I fear the JPEG software will not work at all.\n\n");
5374 return 1; /* assume char is signed otherwise */
5376 char signed_char_check = (char) (-67);
5377 int main() {
5378 exit(is_char_signed((int) signed_char_check));
5380 _ACEOF
5381 if ac_fn_c_try_run "$LINENO"; then :
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5385 $as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }
5391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5392 conftest.$ac_objext conftest.beam conftest.$ac_ext
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
5397 $as_echo_n "checking to see if right shift is signed... " >&6; }
5398 if test "$cross_compiling" = yes; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
5400 $as_echo "Assuming that right shift is signed on target machine." >&6; }
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 #ifdef HAVE_STDLIB_H
5406 #include <stdlib.h>
5407 #endif
5408 #include <stdio.h>
5409 #ifdef HAVE_PROTOTYPES
5410 int is_shifting_signed (long arg)
5411 #else
5412 int is_shifting_signed (arg)
5413 long arg;
5414 #endif
5415 /* See whether right-shift on a long is signed or not. */
5417 long res = arg >> 4;
5419 if (res == -0x7F7E80CL) { /* expected result for signed shift */
5420 return 1; /* right shift is signed */
5422 /* see if unsigned-shift hack will fix it. */
5423 /* we can't just test exact value since it depends on width of long... */
5424 res |= (~0L) << (32-4);
5425 if (res == -0x7F7E80CL) { /* expected result now? */
5426 return 0; /* right shift is unsigned */
5428 printf("Right shift isn't acting as I expect it to.\n");
5429 printf("I fear the JPEG software will not work at all.\n\n");
5430 return 0; /* try it with unsigned anyway */
5432 int main() {
5433 exit(is_shifting_signed(-0x7F7E80B1L));
5435 _ACEOF
5436 if ac_fn_c_try_run "$LINENO"; then :
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5444 $as_echo "yes" >&6; }
5446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5447 conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
5452 $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
5453 if test "$cross_compiling" = yes; then :
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
5455 $as_echo "Assuming that it does." >&6; }
5456 else
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5460 #ifdef HAVE_STDLIB_H
5461 #include <stdlib.h>
5462 #endif
5463 #include <stdio.h>
5464 int main() {
5465 if (fopen("conftestdata", "wb") != NULL)
5466 exit(0);
5467 exit(1);
5469 _ACEOF
5470 if ac_fn_c_try_run "$LINENO"; then :
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472 $as_echo "yes" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5477 $as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
5480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5481 conftest.$ac_objext conftest.beam conftest.$ac_ext
5485 # Configure libtool
5486 enable_win32_dll=yes
5488 case $host in
5489 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}as; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_AS+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$AS"; then
5499 ac_cv_prog_AS="$AS" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_AS="${ac_tool_prefix}as"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5518 AS=$ac_cv_prog_AS
5519 if test -n "$AS"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5521 $as_echo "$AS" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5529 if test -z "$ac_cv_prog_AS"; then
5530 ac_ct_AS=$AS
5531 # Extract the first word of "as", so it can be a program name with args.
5532 set dummy as; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_AS"; then
5539 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_AS="as"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5559 if test -n "$ac_ct_AS"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5561 $as_echo "$ac_ct_AS" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5567 if test "x$ac_ct_AS" = x; then
5568 AS="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 AS=$ac_ct_AS
5578 else
5579 AS="$ac_cv_prog_AS"
5582 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_DLLTOOL+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$DLLTOOL"; then
5591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 DLLTOOL=$ac_cv_prog_DLLTOOL
5611 if test -n "$DLLTOOL"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5613 $as_echo "$DLLTOOL" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5621 if test -z "$ac_cv_prog_DLLTOOL"; then
5622 ac_ct_DLLTOOL=$DLLTOOL
5623 # Extract the first word of "dlltool", so it can be a program name with args.
5624 set dummy dlltool; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$ac_ct_DLLTOOL"; then
5631 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5651 if test -n "$ac_ct_DLLTOOL"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5653 $as_echo "$ac_ct_DLLTOOL" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5659 if test "x$ac_ct_DLLTOOL" = x; then
5660 DLLTOOL="false"
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668 DLLTOOL=$ac_ct_DLLTOOL
5670 else
5671 DLLTOOL="$ac_cv_prog_DLLTOOL"
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_OBJDUMP+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$OBJDUMP"; then
5683 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5702 OBJDUMP=$ac_cv_prog_OBJDUMP
5703 if test -n "$OBJDUMP"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5705 $as_echo "$OBJDUMP" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$ac_cv_prog_OBJDUMP"; then
5714 ac_ct_OBJDUMP=$OBJDUMP
5715 # Extract the first word of "objdump", so it can be a program name with args.
5716 set dummy objdump; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ac_ct_OBJDUMP"; then
5723 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5743 if test -n "$ac_ct_OBJDUMP"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5745 $as_echo "$ac_ct_OBJDUMP" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5751 if test "x$ac_ct_OBJDUMP" = x; then
5752 OBJDUMP="false"
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760 OBJDUMP=$ac_ct_OBJDUMP
5762 else
5763 OBJDUMP="$ac_cv_prog_OBJDUMP"
5767 esac
5769 test -z "$AS" && AS=as
5775 test -z "$DLLTOOL" && DLLTOOL=dlltool
5781 test -z "$OBJDUMP" && OBJDUMP=objdump
5789 case `pwd` in
5790 *\ * | *\ *)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5792 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5793 esac
5797 macro_version='2.4.2'
5798 macro_revision='1.3337'
5812 ltmain="$ac_aux_dir/ltmain.sh"
5814 # Backslashify metacharacters that are still active within
5815 # double-quoted strings.
5816 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5818 # Same as above, but do not quote variable references.
5819 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5821 # Sed substitution to delay expansion of an escaped shell variable in a
5822 # double_quote_subst'ed string.
5823 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5825 # Sed substitution to delay expansion of an escaped single quote.
5826 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5828 # Sed substitution to avoid accidental globbing in evaled expressions
5829 no_glob_subst='s/\*/\\\*/g'
5831 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5833 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5836 $as_echo_n "checking how to print strings... " >&6; }
5837 # Test print first, because it will be a builtin if present.
5838 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5839 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5840 ECHO='print -r --'
5841 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5842 ECHO='printf %s\n'
5843 else
5844 # Use this function as a fallback that always works.
5845 func_fallback_echo ()
5847 eval 'cat <<_LTECHO_EOF
5849 _LTECHO_EOF'
5851 ECHO='func_fallback_echo'
5854 # func_echo_all arg...
5855 # Invoke $ECHO with all args, space-separated.
5856 func_echo_all ()
5858 $ECHO ""
5861 case "$ECHO" in
5862 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5863 $as_echo "printf" >&6; } ;;
5864 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5865 $as_echo "print -r" >&6; } ;;
5866 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5867 $as_echo "cat" >&6; } ;;
5868 esac
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5885 if ${ac_cv_path_SED+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5889 for ac_i in 1 2 3 4 5 6 7; do
5890 ac_script="$ac_script$as_nl$ac_script"
5891 done
5892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5893 { ac_script=; unset ac_script;}
5894 if test -z "$SED"; then
5895 ac_path_SED_found=false
5896 # Loop through the user's path and test for each of PROGNAME-LIST
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_prog in sed gsed; do
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5905 as_fn_executable_p "$ac_path_SED" || continue
5906 # Check for GNU ac_path_SED and select it if it is found.
5907 # Check for GNU $ac_path_SED
5908 case `"$ac_path_SED" --version 2>&1` in
5909 *GNU*)
5910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5912 ac_count=0
5913 $as_echo_n 0123456789 >"conftest.in"
5914 while :
5916 cat "conftest.in" "conftest.in" >"conftest.tmp"
5917 mv "conftest.tmp" "conftest.in"
5918 cp "conftest.in" "conftest.nl"
5919 $as_echo '' >> "conftest.nl"
5920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5922 as_fn_arith $ac_count + 1 && ac_count=$as_val
5923 if test $ac_count -gt ${ac_path_SED_max-0}; then
5924 # Best one so far, save it but keep looking for a better one
5925 ac_cv_path_SED="$ac_path_SED"
5926 ac_path_SED_max=$ac_count
5928 # 10*(2^10) chars as input seems more than enough
5929 test $ac_count -gt 10 && break
5930 done
5931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5932 esac
5934 $ac_path_SED_found && break 3
5935 done
5936 done
5937 done
5938 IFS=$as_save_IFS
5939 if test -z "$ac_cv_path_SED"; then
5940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5942 else
5943 ac_cv_path_SED=$SED
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5948 $as_echo "$ac_cv_path_SED" >&6; }
5949 SED="$ac_cv_path_SED"
5950 rm -f conftest.sed
5952 test -z "$SED" && SED=sed
5953 Xsed="$SED -e 1s/^X//"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5966 $as_echo_n "checking for fgrep... " >&6; }
5967 if ${ac_cv_path_FGREP+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5971 then ac_cv_path_FGREP="$GREP -F"
5972 else
5973 if test -z "$FGREP"; then
5974 ac_path_FGREP_found=false
5975 # Loop through the user's path and test for each of PROGNAME-LIST
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_prog in fgrep; do
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5984 as_fn_executable_p "$ac_path_FGREP" || continue
5985 # Check for GNU ac_path_FGREP and select it if it is found.
5986 # Check for GNU $ac_path_FGREP
5987 case `"$ac_path_FGREP" --version 2>&1` in
5988 *GNU*)
5989 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5991 ac_count=0
5992 $as_echo_n 0123456789 >"conftest.in"
5993 while :
5995 cat "conftest.in" "conftest.in" >"conftest.tmp"
5996 mv "conftest.tmp" "conftest.in"
5997 cp "conftest.in" "conftest.nl"
5998 $as_echo 'FGREP' >> "conftest.nl"
5999 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6001 as_fn_arith $ac_count + 1 && ac_count=$as_val
6002 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6003 # Best one so far, save it but keep looking for a better one
6004 ac_cv_path_FGREP="$ac_path_FGREP"
6005 ac_path_FGREP_max=$ac_count
6007 # 10*(2^10) chars as input seems more than enough
6008 test $ac_count -gt 10 && break
6009 done
6010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6011 esac
6013 $ac_path_FGREP_found && break 3
6014 done
6015 done
6016 done
6017 IFS=$as_save_IFS
6018 if test -z "$ac_cv_path_FGREP"; then
6019 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6021 else
6022 ac_cv_path_FGREP=$FGREP
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6028 $as_echo "$ac_cv_path_FGREP" >&6; }
6029 FGREP="$ac_cv_path_FGREP"
6032 test -z "$GREP" && GREP=grep
6052 # Check whether --with-gnu-ld was given.
6053 if test "${with_gnu_ld+set}" = set; then :
6054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6055 else
6056 with_gnu_ld=no
6059 ac_prog=ld
6060 if test "$GCC" = yes; then
6061 # Check if gcc -print-prog-name=ld gives a path.
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6063 $as_echo_n "checking for ld used by $CC... " >&6; }
6064 case $host in
6065 *-*-mingw*)
6066 # gcc leaves a trailing carriage return which upsets mingw
6067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6070 esac
6071 case $ac_prog in
6072 # Accept absolute paths.
6073 [\\/]* | ?:[\\/]*)
6074 re_direlt='/[^/][^/]*/\.\./'
6075 # Canonicalize the pathname of ld
6076 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6077 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6078 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6079 done
6080 test -z "$LD" && LD="$ac_prog"
6083 # If it fails, then pretend we aren't using GCC.
6084 ac_prog=ld
6087 # If it is relative, then search for the first ld in PATH.
6088 with_gnu_ld=unknown
6090 esac
6091 elif test "$with_gnu_ld" = yes; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6093 $as_echo_n "checking for GNU ld... " >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6096 $as_echo_n "checking for non-GNU ld... " >&6; }
6098 if ${lt_cv_path_LD+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 if test -z "$LD"; then
6102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6103 for ac_dir in $PATH; do
6104 IFS="$lt_save_ifs"
6105 test -z "$ac_dir" && ac_dir=.
6106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6107 lt_cv_path_LD="$ac_dir/$ac_prog"
6108 # Check to see if the program is GNU ld. I'd rather use --version,
6109 # but apparently some variants of GNU ld only accept -v.
6110 # Break only if it was the GNU/non-GNU ld that we prefer.
6111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6112 *GNU* | *'with BFD'*)
6113 test "$with_gnu_ld" != no && break
6116 test "$with_gnu_ld" != yes && break
6118 esac
6120 done
6121 IFS="$lt_save_ifs"
6122 else
6123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6127 LD="$lt_cv_path_LD"
6128 if test -n "$LD"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6130 $as_echo "$LD" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6135 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6138 if ${lt_cv_prog_gnu_ld+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6142 case `$LD -v 2>&1 </dev/null` in
6143 *GNU* | *'with BFD'*)
6144 lt_cv_prog_gnu_ld=yes
6147 lt_cv_prog_gnu_ld=no
6149 esac
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6153 with_gnu_ld=$lt_cv_prog_gnu_ld
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6164 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6165 if ${lt_cv_path_NM+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$NM"; then
6169 # Let the user override the test.
6170 lt_cv_path_NM="$NM"
6171 else
6172 lt_nm_to_check="${ac_tool_prefix}nm"
6173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6174 lt_nm_to_check="$lt_nm_to_check nm"
6176 for lt_tmp_nm in $lt_nm_to_check; do
6177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6178 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6179 IFS="$lt_save_ifs"
6180 test -z "$ac_dir" && ac_dir=.
6181 tmp_nm="$ac_dir/$lt_tmp_nm"
6182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6183 # Check to see if the nm accepts a BSD-compat flag.
6184 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6185 # nm: unknown option "B" ignored
6186 # Tru64's nm complains that /dev/null is an invalid object file
6187 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6188 */dev/null* | *'Invalid file or object type'*)
6189 lt_cv_path_NM="$tmp_nm -B"
6190 break
6193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6194 */dev/null*)
6195 lt_cv_path_NM="$tmp_nm -p"
6196 break
6199 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6200 continue # so that we can try to find one that supports BSD flags
6202 esac
6204 esac
6206 done
6207 IFS="$lt_save_ifs"
6208 done
6209 : ${lt_cv_path_NM=no}
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6213 $as_echo "$lt_cv_path_NM" >&6; }
6214 if test "$lt_cv_path_NM" != "no"; then
6215 NM="$lt_cv_path_NM"
6216 else
6217 # Didn't find any BSD compatible name lister, look for dumpbin.
6218 if test -n "$DUMPBIN"; then :
6219 # Let the user override the test.
6220 else
6221 if test -n "$ac_tool_prefix"; then
6222 for ac_prog in dumpbin "link -dump"
6224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_DUMPBIN+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$DUMPBIN"; then
6232 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 DUMPBIN=$ac_cv_prog_DUMPBIN
6252 if test -n "$DUMPBIN"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6254 $as_echo "$DUMPBIN" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6261 test -n "$DUMPBIN" && break
6262 done
6264 if test -z "$DUMPBIN"; then
6265 ac_ct_DUMPBIN=$DUMPBIN
6266 for ac_prog in dumpbin "link -dump"
6268 # Extract the first word of "$ac_prog", so it can be a program name with args.
6269 set dummy $ac_prog; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$ac_ct_DUMPBIN"; then
6276 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6289 done
6290 done
6291 IFS=$as_save_IFS
6295 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6296 if test -n "$ac_ct_DUMPBIN"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6298 $as_echo "$ac_ct_DUMPBIN" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6305 test -n "$ac_ct_DUMPBIN" && break
6306 done
6308 if test "x$ac_ct_DUMPBIN" = x; then
6309 DUMPBIN=":"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 DUMPBIN=$ac_ct_DUMPBIN
6321 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6322 *COFF*)
6323 DUMPBIN="$DUMPBIN -symbols"
6326 DUMPBIN=:
6328 esac
6331 if test "$DUMPBIN" != ":"; then
6332 NM="$DUMPBIN"
6335 test -z "$NM" && NM=nm
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6344 if ${lt_cv_nm_interface+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 lt_cv_nm_interface="BSD nm"
6348 echo "int some_variable = 0;" > conftest.$ac_ext
6349 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6350 (eval "$ac_compile" 2>conftest.err)
6351 cat conftest.err >&5
6352 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6354 cat conftest.err >&5
6355 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6356 cat conftest.out >&5
6357 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6358 lt_cv_nm_interface="MS dumpbin"
6360 rm -f conftest*
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6363 $as_echo "$lt_cv_nm_interface" >&6; }
6365 # find the maximum length of command line arguments
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6368 if ${lt_cv_sys_max_cmd_len+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6372 teststring="ABCD"
6374 case $build_os in
6375 msdosdjgpp*)
6376 # On DJGPP, this test can blow up pretty badly due to problems in libc
6377 # (any single argument exceeding 2000 bytes causes a buffer overrun
6378 # during glob expansion). Even if it were fixed, the result of this
6379 # check would be larger than it should be.
6380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6383 gnu*)
6384 # Under GNU Hurd, this test is not required because there is
6385 # no limit to the length of command line arguments.
6386 # Libtool will interpret -1 as no limit whatsoever
6387 lt_cv_sys_max_cmd_len=-1;
6390 cygwin* | mingw* | cegcc*)
6391 # On Win9x/ME, this test blows up -- it succeeds, but takes
6392 # about 5 minutes as the teststring grows exponentially.
6393 # Worse, since 9x/ME are not pre-emptively multitasking,
6394 # you end up with a "frozen" computer, even though with patience
6395 # the test eventually succeeds (with a max line length of 256k).
6396 # Instead, let's just punt: use the minimum linelength reported by
6397 # all of the supported platforms: 8192 (on NT/2K/XP).
6398 lt_cv_sys_max_cmd_len=8192;
6401 mint*)
6402 # On MiNT this can take a long time and run out of memory.
6403 lt_cv_sys_max_cmd_len=8192;
6406 amigaos*)
6407 # On AmigaOS with pdksh, this test takes hours, literally.
6408 # So we just punt and use a minimum line length of 8192.
6409 lt_cv_sys_max_cmd_len=8192;
6412 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6413 # This has been around since 386BSD, at least. Likely further.
6414 if test -x /sbin/sysctl; then
6415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6416 elif test -x /usr/sbin/sysctl; then
6417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6418 else
6419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6421 # And add a safety zone
6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6426 interix*)
6427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6428 lt_cv_sys_max_cmd_len=196608
6431 os2*)
6432 # The test takes a long time on OS/2.
6433 lt_cv_sys_max_cmd_len=8192
6436 osf*)
6437 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6438 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6439 # nice to cause kernel panics so lets avoid the loop below.
6440 # First set a reasonable default.
6441 lt_cv_sys_max_cmd_len=16384
6443 if test -x /sbin/sysconfig; then
6444 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6445 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6446 esac
6449 sco3.2v5*)
6450 lt_cv_sys_max_cmd_len=102400
6452 sysv5* | sco5v6* | sysv4.2uw2*)
6453 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6454 if test -n "$kargmax"; then
6455 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6456 else
6457 lt_cv_sys_max_cmd_len=32768
6461 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6462 if test -n "$lt_cv_sys_max_cmd_len"; then
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6465 else
6466 # Make teststring a little bigger before we do anything with it.
6467 # a 1K string should be a reasonable start.
6468 for i in 1 2 3 4 5 6 7 8 ; do
6469 teststring=$teststring$teststring
6470 done
6471 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6472 # If test is not a shell built-in, we'll probably end up computing a
6473 # maximum length that is only half of the actual maximum length, but
6474 # we can't tell.
6475 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6476 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6477 test $i != 17 # 1/2 MB should be enough
6479 i=`expr $i + 1`
6480 teststring=$teststring$teststring
6481 done
6482 # Only check the string length outside the loop.
6483 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6484 teststring=
6485 # Add a significant safety factor because C++ compilers can tack on
6486 # massive amounts of additional arguments before passing them to the
6487 # linker. It appears as though 1/2 is a usable value.
6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6491 esac
6495 if test -n $lt_cv_sys_max_cmd_len ; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6497 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6500 $as_echo "none" >&6; }
6502 max_cmd_len=$lt_cv_sys_max_cmd_len
6509 : ${CP="cp -f"}
6510 : ${MV="mv -f"}
6511 : ${RM="rm -f"}
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6514 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6515 # Try some XSI features
6516 xsi_shell=no
6517 ( _lt_dummy="a/b/c"
6518 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6519 = c,a/b,b/c, \
6520 && eval 'test $(( 1 + 1 )) -eq 2 \
6521 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6522 && xsi_shell=yes
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6524 $as_echo "$xsi_shell" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6528 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6529 lt_shell_append=no
6530 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6531 >/dev/null 2>&1 \
6532 && lt_shell_append=yes
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6534 $as_echo "$lt_shell_append" >&6; }
6537 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6538 lt_unset=unset
6539 else
6540 lt_unset=false
6547 # test EBCDIC or ASCII
6548 case `echo X|tr X '\101'` in
6549 A) # ASCII based system
6550 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6551 lt_SP2NL='tr \040 \012'
6552 lt_NL2SP='tr \015\012 \040\040'
6554 *) # EBCDIC based system
6555 lt_SP2NL='tr \100 \n'
6556 lt_NL2SP='tr \r\n \100\100'
6558 esac
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6569 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6570 if ${lt_cv_to_host_file_cmd+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 case $host in
6574 *-*-mingw* )
6575 case $build in
6576 *-*-mingw* ) # actually msys
6577 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6579 *-*-cygwin* )
6580 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6582 * ) # otherwise, assume *nix
6583 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6585 esac
6587 *-*-cygwin* )
6588 case $build in
6589 *-*-mingw* ) # actually msys
6590 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6592 *-*-cygwin* )
6593 lt_cv_to_host_file_cmd=func_convert_file_noop
6595 * ) # otherwise, assume *nix
6596 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6598 esac
6600 * ) # unhandled hosts (and "normal" native builds)
6601 lt_cv_to_host_file_cmd=func_convert_file_noop
6603 esac
6607 to_host_file_cmd=$lt_cv_to_host_file_cmd
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6609 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6616 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6617 if ${lt_cv_to_tool_file_cmd+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 #assume ordinary cross tools, or native build.
6621 lt_cv_to_tool_file_cmd=func_convert_file_noop
6622 case $host in
6623 *-*-mingw* )
6624 case $build in
6625 *-*-mingw* ) # actually msys
6626 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6628 esac
6630 esac
6634 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6636 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6643 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6644 if ${lt_cv_ld_reload_flag+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 lt_cv_ld_reload_flag='-r'
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6650 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6651 reload_flag=$lt_cv_ld_reload_flag
6652 case $reload_flag in
6653 "" | " "*) ;;
6654 *) reload_flag=" $reload_flag" ;;
6655 esac
6656 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6657 case $host_os in
6658 cygwin* | mingw* | pw32* | cegcc*)
6659 if test "$GCC" != yes; then
6660 reload_cmds=false
6663 darwin*)
6664 if test "$GCC" = yes; then
6665 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6666 else
6667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6670 esac
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_OBJDUMP+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 if test -n "$OBJDUMP"; then
6689 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6702 done
6703 done
6704 IFS=$as_save_IFS
6708 OBJDUMP=$ac_cv_prog_OBJDUMP
6709 if test -n "$OBJDUMP"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6711 $as_echo "$OBJDUMP" >&6; }
6712 else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6719 if test -z "$ac_cv_prog_OBJDUMP"; then
6720 ac_ct_OBJDUMP=$OBJDUMP
6721 # Extract the first word of "objdump", so it can be a program name with args.
6722 set dummy objdump; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$ac_ct_OBJDUMP"; then
6729 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6742 done
6743 done
6744 IFS=$as_save_IFS
6748 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6749 if test -n "$ac_ct_OBJDUMP"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6751 $as_echo "$ac_ct_OBJDUMP" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6757 if test "x$ac_ct_OBJDUMP" = x; then
6758 OBJDUMP="false"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 OBJDUMP=$ac_ct_OBJDUMP
6768 else
6769 OBJDUMP="$ac_cv_prog_OBJDUMP"
6772 test -z "$OBJDUMP" && OBJDUMP=objdump
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6780 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6781 if ${lt_cv_deplibs_check_method+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 lt_cv_file_magic_cmd='$MAGIC_CMD'
6785 lt_cv_file_magic_test_file=
6786 lt_cv_deplibs_check_method='unknown'
6787 # Need to set the preceding variable on all platforms that support
6788 # interlibrary dependencies.
6789 # 'none' -- dependencies not supported.
6790 # `unknown' -- same as none, but documents that we really don't know.
6791 # 'pass_all' -- all dependencies passed with no checks.
6792 # 'test_compile' -- check by making test program.
6793 # 'file_magic [[regex]]' -- check by looking for files in library path
6794 # which responds to the $file_magic_cmd with a given extended regex.
6795 # If you have `file' or equivalent on your system and you're not sure
6796 # whether `pass_all' will *always* work, you probably want this one.
6798 case $host_os in
6799 aix[4-9]*)
6800 lt_cv_deplibs_check_method=pass_all
6803 beos*)
6804 lt_cv_deplibs_check_method=pass_all
6807 bsdi[45]*)
6808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6809 lt_cv_file_magic_cmd='/usr/bin/file -L'
6810 lt_cv_file_magic_test_file=/shlib/libc.so
6813 cygwin*)
6814 # func_win32_libid is a shell function defined in ltmain.sh
6815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6816 lt_cv_file_magic_cmd='func_win32_libid'
6819 mingw* | pw32*)
6820 # Base MSYS/MinGW do not provide the 'file' command needed by
6821 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6822 # unless we find 'file', for example because we are cross-compiling.
6823 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6824 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6826 lt_cv_file_magic_cmd='func_win32_libid'
6827 else
6828 # Keep this pattern in sync with the one in func_win32_libid.
6829 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6830 lt_cv_file_magic_cmd='$OBJDUMP -f'
6834 cegcc*)
6835 # use the weaker test based on 'objdump'. See mingw*.
6836 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6837 lt_cv_file_magic_cmd='$OBJDUMP -f'
6840 darwin* | rhapsody*)
6841 lt_cv_deplibs_check_method=pass_all
6844 freebsd* | dragonfly*)
6845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6846 case $host_cpu in
6847 i*86 )
6848 # Not sure whether the presence of OpenBSD here was a mistake.
6849 # Let's accept both of them until this is cleared up.
6850 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6851 lt_cv_file_magic_cmd=/usr/bin/file
6852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6854 esac
6855 else
6856 lt_cv_deplibs_check_method=pass_all
6860 gnu*)
6861 lt_cv_deplibs_check_method=pass_all
6864 haiku*)
6865 lt_cv_deplibs_check_method=pass_all
6868 hpux10.20* | hpux11*)
6869 lt_cv_file_magic_cmd=/usr/bin/file
6870 case $host_cpu in
6871 ia64*)
6872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6875 hppa*64*)
6876 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]'
6877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6883 esac
6886 interix[3-9]*)
6887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6891 irix5* | irix6* | nonstopux*)
6892 case $LD in
6893 *-32|*"-32 ") libmagic=32-bit;;
6894 *-n32|*"-n32 ") libmagic=N32;;
6895 *-64|*"-64 ") libmagic=64-bit;;
6896 *) libmagic=never-match;;
6897 esac
6898 lt_cv_deplibs_check_method=pass_all
6901 # This must be glibc/ELF.
6902 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6903 lt_cv_deplibs_check_method=pass_all
6906 netbsd*)
6907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6909 else
6910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6914 newos6*)
6915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6916 lt_cv_file_magic_cmd=/usr/bin/file
6917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6920 *nto* | *qnx*)
6921 lt_cv_deplibs_check_method=pass_all
6924 openbsd*)
6925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6927 else
6928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6932 osf3* | osf4* | osf5*)
6933 lt_cv_deplibs_check_method=pass_all
6936 rdos*)
6937 lt_cv_deplibs_check_method=pass_all
6940 solaris*)
6941 lt_cv_deplibs_check_method=pass_all
6944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6945 lt_cv_deplibs_check_method=pass_all
6948 sysv4 | sysv4.3*)
6949 case $host_vendor in
6950 motorola)
6951 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]'
6952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6954 ncr)
6955 lt_cv_deplibs_check_method=pass_all
6957 sequent)
6958 lt_cv_file_magic_cmd='/bin/file'
6959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6961 sni)
6962 lt_cv_file_magic_cmd='/bin/file'
6963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6964 lt_cv_file_magic_test_file=/lib/libc.so
6966 siemens)
6967 lt_cv_deplibs_check_method=pass_all
6970 lt_cv_deplibs_check_method=pass_all
6972 esac
6975 tpf*)
6976 lt_cv_deplibs_check_method=pass_all
6978 esac
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6982 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6984 file_magic_glob=
6985 want_nocaseglob=no
6986 if test "$build" = "$host"; then
6987 case $host_os in
6988 mingw* | pw32*)
6989 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6990 want_nocaseglob=yes
6991 else
6992 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6995 esac
6998 file_magic_cmd=$lt_cv_file_magic_cmd
6999 deplibs_check_method=$lt_cv_deplibs_check_method
7000 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_DLLTOOL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$DLLTOOL"; then
7032 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 DLLTOOL=$ac_cv_prog_DLLTOOL
7052 if test -n "$DLLTOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7054 $as_echo "$DLLTOOL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7062 if test -z "$ac_cv_prog_DLLTOOL"; then
7063 ac_ct_DLLTOOL=$DLLTOOL
7064 # Extract the first word of "dlltool", so it can be a program name with args.
7065 set dummy dlltool; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$ac_ct_DLLTOOL"; then
7072 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7092 if test -n "$ac_ct_DLLTOOL"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7094 $as_echo "$ac_ct_DLLTOOL" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7100 if test "x$ac_ct_DLLTOOL" = x; then
7101 DLLTOOL="false"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 DLLTOOL=$ac_ct_DLLTOOL
7111 else
7112 DLLTOOL="$ac_cv_prog_DLLTOOL"
7115 test -z "$DLLTOOL" && DLLTOOL=dlltool
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7124 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7125 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 lt_cv_sharedlib_from_linklib_cmd='unknown'
7130 case $host_os in
7131 cygwin* | mingw* | pw32* | cegcc*)
7132 # two different shell functions defined in ltmain.sh
7133 # decide which to use based on capabilities of $DLLTOOL
7134 case `$DLLTOOL --help 2>&1` in
7135 *--identify-strict*)
7136 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7139 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7141 esac
7144 # fallback: assume linklib IS sharedlib
7145 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7147 esac
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7151 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7152 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7153 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7161 if test -n "$ac_tool_prefix"; then
7162 for ac_prog in ar
7164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_AR+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 if test -n "$AR"; then
7172 ac_cv_prog_AR="$AR" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7187 IFS=$as_save_IFS
7191 AR=$ac_cv_prog_AR
7192 if test -n "$AR"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7194 $as_echo "$AR" >&6; }
7195 else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7201 test -n "$AR" && break
7202 done
7204 if test -z "$AR"; then
7205 ac_ct_AR=$AR
7206 for ac_prog in ar
7208 # Extract the first word of "$ac_prog", so it can be a program name with args.
7209 set dummy $ac_prog; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$ac_ct_AR"; then
7216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_AR="$ac_prog"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7235 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7236 if test -n "$ac_ct_AR"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7238 $as_echo "$ac_ct_AR" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7245 test -n "$ac_ct_AR" && break
7246 done
7248 if test "x$ac_ct_AR" = x; then
7249 AR="false"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252 yes:)
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255 ac_tool_warned=yes ;;
7256 esac
7257 AR=$ac_ct_AR
7261 : ${AR=ar}
7262 : ${AR_FLAGS=cru}
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7275 $as_echo_n "checking for archiver @FILE support... " >&6; }
7276 if ${lt_cv_ar_at_file+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 lt_cv_ar_at_file=no
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7284 main ()
7288 return 0;
7290 _ACEOF
7291 if ac_fn_c_try_compile "$LINENO"; then :
7292 echo conftest.$ac_objext > conftest.lst
7293 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7295 (eval $lt_ar_try) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; }
7299 if test "$ac_status" -eq 0; then
7300 # Ensure the archiver fails upon bogus file names.
7301 rm -f conftest.$ac_objext libconftest.a
7302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7303 (eval $lt_ar_try) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }
7307 if test "$ac_status" -ne 0; then
7308 lt_cv_ar_at_file=@
7311 rm -f conftest.* libconftest.a
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7318 $as_echo "$lt_cv_ar_at_file" >&6; }
7320 if test "x$lt_cv_ar_at_file" = xno; then
7321 archiver_list_spec=
7322 else
7323 archiver_list_spec=$lt_cv_ar_at_file
7332 if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7334 set dummy ${ac_tool_prefix}strip; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_STRIP+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$STRIP"; then
7341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7354 done
7355 done
7356 IFS=$as_save_IFS
7360 STRIP=$ac_cv_prog_STRIP
7361 if test -n "$STRIP"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7363 $as_echo "$STRIP" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7371 if test -z "$ac_cv_prog_STRIP"; then
7372 ac_ct_STRIP=$STRIP
7373 # Extract the first word of "strip", so it can be a program name with args.
7374 set dummy strip; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$ac_ct_STRIP"; then
7381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_ac_ct_STRIP="strip"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7401 if test -n "$ac_ct_STRIP"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7403 $as_echo "$ac_ct_STRIP" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7409 if test "x$ac_ct_STRIP" = x; then
7410 STRIP=":"
7411 else
7412 case $cross_compiling:$ac_tool_warned in
7413 yes:)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418 STRIP=$ac_ct_STRIP
7420 else
7421 STRIP="$ac_cv_prog_STRIP"
7424 test -z "$STRIP" && STRIP=:
7431 if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_RANLIB+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 if test -n "$RANLIB"; then
7440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7453 done
7454 done
7455 IFS=$as_save_IFS
7459 RANLIB=$ac_cv_prog_RANLIB
7460 if test -n "$RANLIB"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7462 $as_echo "$RANLIB" >&6; }
7463 else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7470 if test -z "$ac_cv_prog_RANLIB"; then
7471 ac_ct_RANLIB=$RANLIB
7472 # Extract the first word of "ranlib", so it can be a program name with args.
7473 set dummy ranlib; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 if test -n "$ac_ct_RANLIB"; then
7480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_prog_ac_ct_RANLIB="ranlib"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 break 2
7493 done
7494 done
7495 IFS=$as_save_IFS
7499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7500 if test -n "$ac_ct_RANLIB"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7502 $as_echo "$ac_ct_RANLIB" >&6; }
7503 else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7508 if test "x$ac_ct_RANLIB" = x; then
7509 RANLIB=":"
7510 else
7511 case $cross_compiling:$ac_tool_warned in
7512 yes:)
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515 ac_tool_warned=yes ;;
7516 esac
7517 RANLIB=$ac_ct_RANLIB
7519 else
7520 RANLIB="$ac_cv_prog_RANLIB"
7523 test -z "$RANLIB" && RANLIB=:
7530 # Determine commands to create old-style static archives.
7531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7532 old_postinstall_cmds='chmod 644 $oldlib'
7533 old_postuninstall_cmds=
7535 if test -n "$RANLIB"; then
7536 case $host_os in
7537 openbsd*)
7538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7543 esac
7544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7547 case $host_os in
7548 darwin*)
7549 lock_old_archive_extraction=yes ;;
7551 lock_old_archive_extraction=no ;;
7552 esac
7592 # If no C compiler was specified, use CC.
7593 LTCC=${LTCC-"$CC"}
7595 # If no C compiler flags were specified, use CFLAGS.
7596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7598 # Allow CC to be a program name with arguments.
7599 compiler=$CC
7602 # Check for command to grab the raw symbol name followed by C symbol from nm.
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7604 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7605 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7609 # These are sane defaults that work on at least a few old systems.
7610 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7612 # Character class describing NM global symbol codes.
7613 symcode='[BCDEGRST]'
7615 # Regexp to match symbols that can be accessed directly from C.
7616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7618 # Define system-specific variables.
7619 case $host_os in
7620 aix*)
7621 symcode='[BCDT]'
7623 cygwin* | mingw* | pw32* | cegcc*)
7624 symcode='[ABCDGISTW]'
7626 hpux*)
7627 if test "$host_cpu" = ia64; then
7628 symcode='[ABCDEGRST]'
7631 irix* | nonstopux*)
7632 symcode='[BCDEGRST]'
7634 osf*)
7635 symcode='[BCDEGQRST]'
7637 solaris*)
7638 symcode='[BDRT]'
7640 sco3.2v5*)
7641 symcode='[DT]'
7643 sysv4.2uw2*)
7644 symcode='[DT]'
7646 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7647 symcode='[ABDT]'
7649 sysv4)
7650 symcode='[DFNSTU]'
7652 esac
7654 # If we're using GNU nm, then use its standard symbol codes.
7655 case `$NM -V 2>&1` in
7656 *GNU* | *'with BFD'*)
7657 symcode='[ABCDGIRSTW]' ;;
7658 esac
7660 # Transform an extracted symbol line into a proper C declaration.
7661 # Some systems (esp. on ia64) link data and code symbols differently,
7662 # so use this general approach.
7663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7665 # Transform an extracted symbol line into symbol name and symbol address
7666 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7667 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'"
7669 # Handle CRLF in mingw tool chain
7670 opt_cr=
7671 case $build_os in
7672 mingw*)
7673 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7675 esac
7677 # Try without a prefix underscore, then with it.
7678 for ac_symprfx in "" "_"; do
7680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7681 symxfrm="\\1 $ac_symprfx\\2 \\2"
7683 # Write the raw and C identifiers.
7684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7685 # Fake it for dumpbin and say T for any non-static function
7686 # and D for any global variable.
7687 # Also find C++ and __fastcall symbols from MSVC++,
7688 # which start with @ or ?.
7689 lt_cv_sys_global_symbol_pipe="$AWK '"\
7690 " {last_section=section; section=\$ 3};"\
7691 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7692 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7693 " \$ 0!~/External *\|/{next};"\
7694 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7695 " {if(hide[section]) next};"\
7696 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7697 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7698 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7699 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7700 " ' prfx=^$ac_symprfx"
7701 else
7702 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7704 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7706 # Check to see that the pipe works correctly.
7707 pipe_works=no
7709 rm -f conftest*
7710 cat > conftest.$ac_ext <<_LT_EOF
7711 #ifdef __cplusplus
7712 extern "C" {
7713 #endif
7714 char nm_test_var;
7715 void nm_test_func(void);
7716 void nm_test_func(void){}
7717 #ifdef __cplusplus
7719 #endif
7720 int main(){nm_test_var='a';nm_test_func();return(0);}
7721 _LT_EOF
7723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724 (eval $ac_compile) 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 # Now try to grab the symbols.
7729 nlist=conftest.nm
7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7731 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7732 ac_status=$?
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; } && test -s "$nlist"; then
7735 # Try sorting and uniquifying the output.
7736 if sort "$nlist" | uniq > "$nlist"T; then
7737 mv -f "$nlist"T "$nlist"
7738 else
7739 rm -f "$nlist"T
7742 # Make sure that we snagged all the symbols we need.
7743 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7744 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7745 cat <<_LT_EOF > conftest.$ac_ext
7746 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7747 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7748 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7749 relocations are performed -- see ld's documentation on pseudo-relocs. */
7750 # define LT_DLSYM_CONST
7751 #elif defined(__osf__)
7752 /* This system does not cope well with relocations in const data. */
7753 # define LT_DLSYM_CONST
7754 #else
7755 # define LT_DLSYM_CONST const
7756 #endif
7758 #ifdef __cplusplus
7759 extern "C" {
7760 #endif
7762 _LT_EOF
7763 # Now generate the symbol file.
7764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7766 cat <<_LT_EOF >> conftest.$ac_ext
7768 /* The mapping between symbol names and symbols. */
7769 LT_DLSYM_CONST struct {
7770 const char *name;
7771 void *address;
7773 lt__PROGRAM__LTX_preloaded_symbols[] =
7775 { "@PROGRAM@", (void *) 0 },
7776 _LT_EOF
7777 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7778 cat <<\_LT_EOF >> conftest.$ac_ext
7779 {0, (void *) 0}
7782 /* This works around a problem in FreeBSD linker */
7783 #ifdef FREEBSD_WORKAROUND
7784 static const void *lt_preloaded_setup() {
7785 return lt__PROGRAM__LTX_preloaded_symbols;
7787 #endif
7789 #ifdef __cplusplus
7791 #endif
7792 _LT_EOF
7793 # Now try linking the two files.
7794 mv conftest.$ac_objext conftstm.$ac_objext
7795 lt_globsym_save_LIBS=$LIBS
7796 lt_globsym_save_CFLAGS=$CFLAGS
7797 LIBS="conftstm.$ac_objext"
7798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7800 (eval $ac_link) 2>&5
7801 ac_status=$?
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7804 pipe_works=yes
7806 LIBS=$lt_globsym_save_LIBS
7807 CFLAGS=$lt_globsym_save_CFLAGS
7808 else
7809 echo "cannot find nm_test_func in $nlist" >&5
7811 else
7812 echo "cannot find nm_test_var in $nlist" >&5
7814 else
7815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817 else
7818 echo "$progname: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 rm -rf conftest* conftst*
7823 # Do not use the global_symbol_pipe unless it works.
7824 if test "$pipe_works" = yes; then
7825 break
7826 else
7827 lt_cv_sys_global_symbol_pipe=
7829 done
7833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7834 lt_cv_sys_global_symbol_to_cdecl=
7836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7838 $as_echo "failed" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7841 $as_echo "ok" >&6; }
7844 # Response file support.
7845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7846 nm_file_list_spec='@'
7847 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7848 nm_file_list_spec='@'
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7878 $as_echo_n "checking for sysroot... " >&6; }
7880 # Check whether --with-sysroot was given.
7881 if test "${with_sysroot+set}" = set; then :
7882 withval=$with_sysroot;
7883 else
7884 with_sysroot=no
7888 lt_sysroot=
7889 case ${with_sysroot} in #(
7890 yes)
7891 if test "$GCC" = yes; then
7892 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7894 ;; #(
7896 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7897 ;; #(
7898 no|'')
7899 ;; #(
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7902 $as_echo "${with_sysroot}" >&6; }
7903 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7905 esac
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7908 $as_echo "${lt_sysroot:-no}" >&6; }
7914 # Check whether --enable-libtool-lock was given.
7915 if test "${enable_libtool_lock+set}" = set; then :
7916 enableval=$enable_libtool_lock;
7919 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7921 # Some flags need to be propagated to the compiler or linker for good
7922 # libtool support.
7923 case $host in
7924 ia64-*-hpux*)
7925 # Find out which ABI we are using.
7926 echo 'int i;' > conftest.$ac_ext
7927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7928 (eval $ac_compile) 2>&5
7929 ac_status=$?
7930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7931 test $ac_status = 0; }; then
7932 case `/usr/bin/file conftest.$ac_objext` in
7933 *ELF-32*)
7934 HPUX_IA64_MODE="32"
7936 *ELF-64*)
7937 HPUX_IA64_MODE="64"
7939 esac
7941 rm -rf conftest*
7943 *-*-irix6*)
7944 # Find out which ABI we are using.
7945 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947 (eval $ac_compile) 2>&5
7948 ac_status=$?
7949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950 test $ac_status = 0; }; then
7951 if test "$lt_cv_prog_gnu_ld" = yes; then
7952 case `/usr/bin/file conftest.$ac_objext` in
7953 *32-bit*)
7954 LD="${LD-ld} -melf32bsmip"
7956 *N32*)
7957 LD="${LD-ld} -melf32bmipn32"
7959 *64-bit*)
7960 LD="${LD-ld} -melf64bmip"
7962 esac
7963 else
7964 case `/usr/bin/file conftest.$ac_objext` in
7965 *32-bit*)
7966 LD="${LD-ld} -32"
7968 *N32*)
7969 LD="${LD-ld} -n32"
7971 *64-bit*)
7972 LD="${LD-ld} -64"
7974 esac
7977 rm -rf conftest*
7980 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7981 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7982 # Find out which ABI we are using.
7983 echo 'int i;' > conftest.$ac_ext
7984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7985 (eval $ac_compile) 2>&5
7986 ac_status=$?
7987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7988 test $ac_status = 0; }; then
7989 case `/usr/bin/file conftest.o` in
7990 *32-bit*)
7991 case $host in
7992 x86_64-*kfreebsd*-gnu)
7993 LD="${LD-ld} -m elf_i386_fbsd"
7995 x86_64-*linux*)
7996 LD="${LD-ld} -m elf_i386"
7998 ppc64-*linux*|powerpc64-*linux*)
7999 LD="${LD-ld} -m elf32ppclinux"
8001 s390x-*linux*)
8002 LD="${LD-ld} -m elf_s390"
8004 sparc64-*linux*)
8005 LD="${LD-ld} -m elf32_sparc"
8007 esac
8009 *64-bit*)
8010 case $host in
8011 x86_64-*kfreebsd*-gnu)
8012 LD="${LD-ld} -m elf_x86_64_fbsd"
8014 x86_64-*linux*)
8015 LD="${LD-ld} -m elf_x86_64"
8017 ppc*-*linux*|powerpc*-*linux*)
8018 LD="${LD-ld} -m elf64ppc"
8020 s390*-*linux*|s390*-*tpf*)
8021 LD="${LD-ld} -m elf64_s390"
8023 sparc*-*linux*)
8024 LD="${LD-ld} -m elf64_sparc"
8026 esac
8028 esac
8030 rm -rf conftest*
8033 *-*-sco3.2v5*)
8034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8035 SAVE_CFLAGS="$CFLAGS"
8036 CFLAGS="$CFLAGS -belf"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8038 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8039 if ${lt_cv_cc_needs_belf+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 ac_ext=c
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8052 main ()
8056 return 0;
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 lt_cv_cc_needs_belf=yes
8061 else
8062 lt_cv_cc_needs_belf=no
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 ac_ext=c
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8074 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8075 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8076 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8077 CFLAGS="$SAVE_CFLAGS"
8080 *-*solaris*)
8081 # Find out which ABI we are using.
8082 echo 'int i;' > conftest.$ac_ext
8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8084 (eval $ac_compile) 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }; then
8088 case `/usr/bin/file conftest.o` in
8089 *64-bit*)
8090 case $lt_cv_prog_gnu_ld in
8091 yes*)
8092 case $host in
8093 i?86-*-solaris*)
8094 LD="${LD-ld} -m elf_x86_64"
8096 sparc*-*-solaris*)
8097 LD="${LD-ld} -m elf64_sparc"
8099 esac
8100 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8101 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8102 LD="${LD-ld}_sol2"
8106 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8107 LD="${LD-ld} -64"
8110 esac
8112 esac
8114 rm -rf conftest*
8116 esac
8118 need_locks="$enable_libtool_lock"
8120 if test -n "$ac_tool_prefix"; then
8121 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}mt; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$MANIFEST_TOOL"; then
8129 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8149 if test -n "$MANIFEST_TOOL"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8151 $as_echo "$MANIFEST_TOOL" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8159 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8160 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8161 # Extract the first word of "mt", so it can be a program name with args.
8162 set dummy mt; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$ac_ct_MANIFEST_TOOL"; then
8169 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8182 done
8183 done
8184 IFS=$as_save_IFS
8188 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8189 if test -n "$ac_ct_MANIFEST_TOOL"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8191 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8197 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8198 MANIFEST_TOOL=":"
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204 ac_tool_warned=yes ;;
8205 esac
8206 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8208 else
8209 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8212 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8214 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8215 if ${lt_cv_path_mainfest_tool+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 lt_cv_path_mainfest_tool=no
8219 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8220 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8221 cat conftest.err >&5
8222 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8223 lt_cv_path_mainfest_tool=yes
8225 rm -f conftest*
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8228 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8229 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8230 MANIFEST_TOOL=:
8238 case $host_os in
8239 rhapsody* | darwin*)
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 if test -n "$DSYMUTIL"; then
8249 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8262 done
8263 done
8264 IFS=$as_save_IFS
8268 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8269 if test -n "$DSYMUTIL"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8271 $as_echo "$DSYMUTIL" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8279 if test -z "$ac_cv_prog_DSYMUTIL"; then
8280 ac_ct_DSYMUTIL=$DSYMUTIL
8281 # Extract the first word of "dsymutil", so it can be a program name with args.
8282 set dummy dsymutil; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 if test -n "$ac_ct_DSYMUTIL"; then
8289 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8302 done
8303 done
8304 IFS=$as_save_IFS
8308 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8309 if test -n "$ac_ct_DSYMUTIL"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8311 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8317 if test "x$ac_ct_DSYMUTIL" = x; then
8318 DSYMUTIL=":"
8319 else
8320 case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8325 esac
8326 DSYMUTIL=$ac_ct_DSYMUTIL
8328 else
8329 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_NMEDIT+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 if test -n "$NMEDIT"; then
8341 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8354 done
8355 done
8356 IFS=$as_save_IFS
8360 NMEDIT=$ac_cv_prog_NMEDIT
8361 if test -n "$NMEDIT"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8363 $as_echo "$NMEDIT" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test -z "$ac_cv_prog_NMEDIT"; then
8372 ac_ct_NMEDIT=$NMEDIT
8373 # Extract the first word of "nmedit", so it can be a program name with args.
8374 set dummy nmedit; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$ac_ct_NMEDIT"; then
8381 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8394 done
8395 done
8396 IFS=$as_save_IFS
8400 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8401 if test -n "$ac_ct_NMEDIT"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8403 $as_echo "$ac_ct_NMEDIT" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8409 if test "x$ac_ct_NMEDIT" = x; then
8410 NMEDIT=":"
8411 else
8412 case $cross_compiling:$ac_tool_warned in
8413 yes:)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8417 esac
8418 NMEDIT=$ac_ct_NMEDIT
8420 else
8421 NMEDIT="$ac_cv_prog_NMEDIT"
8424 if test -n "$ac_tool_prefix"; then
8425 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_LIPO+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 if test -n "$LIPO"; then
8433 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8446 done
8447 done
8448 IFS=$as_save_IFS
8452 LIPO=$ac_cv_prog_LIPO
8453 if test -n "$LIPO"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8455 $as_echo "$LIPO" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8463 if test -z "$ac_cv_prog_LIPO"; then
8464 ac_ct_LIPO=$LIPO
8465 # Extract the first word of "lipo", so it can be a program name with args.
8466 set dummy lipo; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 if test -n "$ac_ct_LIPO"; then
8473 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_ac_ct_LIPO="lipo"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8486 done
8487 done
8488 IFS=$as_save_IFS
8492 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8493 if test -n "$ac_ct_LIPO"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8495 $as_echo "$ac_ct_LIPO" >&6; }
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8501 if test "x$ac_ct_LIPO" = x; then
8502 LIPO=":"
8503 else
8504 case $cross_compiling:$ac_tool_warned in
8505 yes:)
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508 ac_tool_warned=yes ;;
8509 esac
8510 LIPO=$ac_ct_LIPO
8512 else
8513 LIPO="$ac_cv_prog_LIPO"
8516 if test -n "$ac_tool_prefix"; then
8517 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8518 set dummy ${ac_tool_prefix}otool; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_OTOOL+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 if test -n "$OTOOL"; then
8525 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8538 done
8539 done
8540 IFS=$as_save_IFS
8544 OTOOL=$ac_cv_prog_OTOOL
8545 if test -n "$OTOOL"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8547 $as_echo "$OTOOL" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8555 if test -z "$ac_cv_prog_OTOOL"; then
8556 ac_ct_OTOOL=$OTOOL
8557 # Extract the first word of "otool", so it can be a program name with args.
8558 set dummy otool; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$ac_ct_OTOOL"; then
8565 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_ac_ct_OTOOL="otool"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8584 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8585 if test -n "$ac_ct_OTOOL"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8587 $as_echo "$ac_ct_OTOOL" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8593 if test "x$ac_ct_OTOOL" = x; then
8594 OTOOL=":"
8595 else
8596 case $cross_compiling:$ac_tool_warned in
8597 yes:)
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8600 ac_tool_warned=yes ;;
8601 esac
8602 OTOOL=$ac_ct_OTOOL
8604 else
8605 OTOOL="$ac_cv_prog_OTOOL"
8608 if test -n "$ac_tool_prefix"; then
8609 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_OTOOL64+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 if test -n "$OTOOL64"; then
8617 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 break 2
8630 done
8631 done
8632 IFS=$as_save_IFS
8636 OTOOL64=$ac_cv_prog_OTOOL64
8637 if test -n "$OTOOL64"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8639 $as_echo "$OTOOL64" >&6; }
8640 else
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8647 if test -z "$ac_cv_prog_OTOOL64"; then
8648 ac_ct_OTOOL64=$OTOOL64
8649 # Extract the first word of "otool64", so it can be a program name with args.
8650 set dummy otool64; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 if test -n "$ac_ct_OTOOL64"; then
8657 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_ac_ct_OTOOL64="otool64"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8676 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8677 if test -n "$ac_ct_OTOOL64"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8679 $as_echo "$ac_ct_OTOOL64" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8685 if test "x$ac_ct_OTOOL64" = x; then
8686 OTOOL64=":"
8687 else
8688 case $cross_compiling:$ac_tool_warned in
8689 yes:)
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8692 ac_tool_warned=yes ;;
8693 esac
8694 OTOOL64=$ac_ct_OTOOL64
8696 else
8697 OTOOL64="$ac_cv_prog_OTOOL64"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8727 $as_echo_n "checking for -single_module linker flag... " >&6; }
8728 if ${lt_cv_apple_cc_single_mod+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 lt_cv_apple_cc_single_mod=no
8732 if test -z "${LT_MULTI_MODULE}"; then
8733 # By default we will add the -single_module flag. You can override
8734 # by either setting the environment variable LT_MULTI_MODULE
8735 # non-empty at configure time, or by adding -multi_module to the
8736 # link flags.
8737 rm -rf libconftest.dylib*
8738 echo "int foo(void){return 1;}" > conftest.c
8739 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8740 -dynamiclib -Wl,-single_module conftest.c" >&5
8741 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8742 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8743 _lt_result=$?
8744 # If there is a non-empty error log, and "single_module"
8745 # appears in it, assume the flag caused a linker warning
8746 if test -s conftest.err && $GREP single_module conftest.err; then
8747 cat conftest.err >&5
8748 # Otherwise, if the output was created with a 0 exit code from
8749 # the compiler, it worked.
8750 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8751 lt_cv_apple_cc_single_mod=yes
8752 else
8753 cat conftest.err >&5
8755 rm -rf libconftest.dylib*
8756 rm -f conftest.*
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8760 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8763 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8764 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 lt_cv_ld_exported_symbols_list=no
8768 save_LDFLAGS=$LDFLAGS
8769 echo "_main" > conftest.sym
8770 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8775 main ()
8779 return 0;
8781 _ACEOF
8782 if ac_fn_c_try_link "$LINENO"; then :
8783 lt_cv_ld_exported_symbols_list=yes
8784 else
8785 lt_cv_ld_exported_symbols_list=no
8787 rm -f core conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 LDFLAGS="$save_LDFLAGS"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8793 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8796 $as_echo_n "checking for -force_load linker flag... " >&6; }
8797 if ${lt_cv_ld_force_load+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 lt_cv_ld_force_load=no
8801 cat > conftest.c << _LT_EOF
8802 int forced_loaded() { return 2;}
8803 _LT_EOF
8804 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8805 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8806 echo "$AR cru libconftest.a conftest.o" >&5
8807 $AR cru libconftest.a conftest.o 2>&5
8808 echo "$RANLIB libconftest.a" >&5
8809 $RANLIB libconftest.a 2>&5
8810 cat > conftest.c << _LT_EOF
8811 int main() { return 0;}
8812 _LT_EOF
8813 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8814 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8815 _lt_result=$?
8816 if test -s conftest.err && $GREP force_load conftest.err; then
8817 cat conftest.err >&5
8818 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8819 lt_cv_ld_force_load=yes
8820 else
8821 cat conftest.err >&5
8823 rm -f conftest.err libconftest.a conftest conftest.c
8824 rm -rf conftest.dSYM
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8828 $as_echo "$lt_cv_ld_force_load" >&6; }
8829 case $host_os in
8830 rhapsody* | darwin1.[012])
8831 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8832 darwin1.*)
8833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8834 darwin*) # darwin 5.x on
8835 # if running on 10.5 or later, the deployment target defaults
8836 # to the OS version, if on x86, and 10.4, the deployment
8837 # target defaults to 10.4. Don't you love it?
8838 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8839 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8840 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8841 10.[012]*)
8842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8843 10.*)
8844 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8845 esac
8847 esac
8848 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8849 _lt_dar_single_mod='$single_module'
8851 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8852 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8853 else
8854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8856 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8857 _lt_dsymutil='~$DSYMUTIL $lib || :'
8858 else
8859 _lt_dsymutil=
8862 esac
8864 for ac_header in dlfcn.h
8865 do :
8866 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8868 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_DLFCN_H 1
8871 _ACEOF
8875 done
8881 # Set options
8885 enable_dlopen=no
8889 # Check whether --enable-shared was given.
8890 if test "${enable_shared+set}" = set; then :
8891 enableval=$enable_shared; p=${PACKAGE-default}
8892 case $enableval in
8893 yes) enable_shared=yes ;;
8894 no) enable_shared=no ;;
8896 enable_shared=no
8897 # Look at the argument we got. We use all the common list separators.
8898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8899 for pkg in $enableval; do
8900 IFS="$lt_save_ifs"
8901 if test "X$pkg" = "X$p"; then
8902 enable_shared=yes
8904 done
8905 IFS="$lt_save_ifs"
8907 esac
8908 else
8909 enable_shared=yes
8920 # Check whether --enable-static was given.
8921 if test "${enable_static+set}" = set; then :
8922 enableval=$enable_static; p=${PACKAGE-default}
8923 case $enableval in
8924 yes) enable_static=yes ;;
8925 no) enable_static=no ;;
8927 enable_static=no
8928 # Look at the argument we got. We use all the common list separators.
8929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8930 for pkg in $enableval; do
8931 IFS="$lt_save_ifs"
8932 if test "X$pkg" = "X$p"; then
8933 enable_static=yes
8935 done
8936 IFS="$lt_save_ifs"
8938 esac
8939 else
8940 enable_static=yes
8952 # Check whether --with-pic was given.
8953 if test "${with_pic+set}" = set; then :
8954 withval=$with_pic; lt_p=${PACKAGE-default}
8955 case $withval in
8956 yes|no) pic_mode=$withval ;;
8958 pic_mode=default
8959 # Look at the argument we got. We use all the common list separators.
8960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8961 for lt_pkg in $withval; do
8962 IFS="$lt_save_ifs"
8963 if test "X$lt_pkg" = "X$lt_p"; then
8964 pic_mode=yes
8966 done
8967 IFS="$lt_save_ifs"
8969 esac
8970 else
8971 pic_mode=default
8975 test -z "$pic_mode" && pic_mode=default
8983 # Check whether --enable-fast-install was given.
8984 if test "${enable_fast_install+set}" = set; then :
8985 enableval=$enable_fast_install; p=${PACKAGE-default}
8986 case $enableval in
8987 yes) enable_fast_install=yes ;;
8988 no) enable_fast_install=no ;;
8990 enable_fast_install=no
8991 # Look at the argument we got. We use all the common list separators.
8992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8993 for pkg in $enableval; do
8994 IFS="$lt_save_ifs"
8995 if test "X$pkg" = "X$p"; then
8996 enable_fast_install=yes
8998 done
8999 IFS="$lt_save_ifs"
9001 esac
9002 else
9003 enable_fast_install=yes
9016 # This can be used to rebuild libtool when needed
9017 LIBTOOL_DEPS="$ltmain"
9019 # Always use our own libtool.
9020 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9051 test -z "$LN_S" && LN_S="ln -s"
9066 if test -n "${ZSH_VERSION+set}" ; then
9067 setopt NO_GLOB_SUBST
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9071 $as_echo_n "checking for objdir... " >&6; }
9072 if ${lt_cv_objdir+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 rm -f .libs 2>/dev/null
9076 mkdir .libs 2>/dev/null
9077 if test -d .libs; then
9078 lt_cv_objdir=.libs
9079 else
9080 # MS-DOS does not allow filenames that begin with a dot.
9081 lt_cv_objdir=_libs
9083 rmdir .libs 2>/dev/null
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9086 $as_echo "$lt_cv_objdir" >&6; }
9087 objdir=$lt_cv_objdir
9093 cat >>confdefs.h <<_ACEOF
9094 #define LT_OBJDIR "$lt_cv_objdir/"
9095 _ACEOF
9100 case $host_os in
9101 aix3*)
9102 # AIX sometimes has problems with the GCC collect2 program. For some
9103 # reason, if we set the COLLECT_NAMES environment variable, the problems
9104 # vanish in a puff of smoke.
9105 if test "X${COLLECT_NAMES+set}" != Xset; then
9106 COLLECT_NAMES=
9107 export COLLECT_NAMES
9110 esac
9112 # Global variables:
9113 ofile=libtool
9114 can_build_shared=yes
9116 # All known linkers require a `.a' archive for static linking (except MSVC,
9117 # which needs '.lib').
9118 libext=a
9120 with_gnu_ld="$lt_cv_prog_gnu_ld"
9122 old_CC="$CC"
9123 old_CFLAGS="$CFLAGS"
9125 # Set sane defaults for various variables
9126 test -z "$CC" && CC=cc
9127 test -z "$LTCC" && LTCC=$CC
9128 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9129 test -z "$LD" && LD=ld
9130 test -z "$ac_objext" && ac_objext=o
9132 for cc_temp in $compiler""; do
9133 case $cc_temp in
9134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9136 \-*) ;;
9137 *) break;;
9138 esac
9139 done
9140 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9143 # Only perform the check for file, if the check method requires it
9144 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9145 case $deplibs_check_method in
9146 file_magic*)
9147 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9149 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9150 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 case $MAGIC_CMD in
9154 [\\/*] | ?:[\\/]*)
9155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9158 lt_save_MAGIC_CMD="$MAGIC_CMD"
9159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9161 for ac_dir in $ac_dummy; do
9162 IFS="$lt_save_ifs"
9163 test -z "$ac_dir" && ac_dir=.
9164 if test -f $ac_dir/${ac_tool_prefix}file; then
9165 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9166 if test -n "$file_magic_test_file"; then
9167 case $deplibs_check_method in
9168 "file_magic "*)
9169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9172 $EGREP "$file_magic_regex" > /dev/null; then
9174 else
9175 cat <<_LT_EOF 1>&2
9177 *** Warning: the command libtool uses to detect shared libraries,
9178 *** $file_magic_cmd, produces output that libtool cannot recognize.
9179 *** The result is that libtool may fail to recognize shared libraries
9180 *** as such. This will affect the creation of libtool libraries that
9181 *** depend on shared libraries, but programs linked with such libtool
9182 *** libraries will work regardless of this problem. Nevertheless, you
9183 *** may want to report the problem to your system manager and/or to
9184 *** bug-libtool@gnu.org
9186 _LT_EOF
9187 fi ;;
9188 esac
9190 break
9192 done
9193 IFS="$lt_save_ifs"
9194 MAGIC_CMD="$lt_save_MAGIC_CMD"
9196 esac
9199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9200 if test -n "$MAGIC_CMD"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9202 $as_echo "$MAGIC_CMD" >&6; }
9203 else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9212 if test -z "$lt_cv_path_MAGIC_CMD"; then
9213 if test -n "$ac_tool_prefix"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9215 $as_echo_n "checking for file... " >&6; }
9216 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 case $MAGIC_CMD in
9220 [\\/*] | ?:[\\/]*)
9221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224 lt_save_MAGIC_CMD="$MAGIC_CMD"
9225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9227 for ac_dir in $ac_dummy; do
9228 IFS="$lt_save_ifs"
9229 test -z "$ac_dir" && ac_dir=.
9230 if test -f $ac_dir/file; then
9231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9232 if test -n "$file_magic_test_file"; then
9233 case $deplibs_check_method in
9234 "file_magic "*)
9235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9238 $EGREP "$file_magic_regex" > /dev/null; then
9240 else
9241 cat <<_LT_EOF 1>&2
9243 *** Warning: the command libtool uses to detect shared libraries,
9244 *** $file_magic_cmd, produces output that libtool cannot recognize.
9245 *** The result is that libtool may fail to recognize shared libraries
9246 *** as such. This will affect the creation of libtool libraries that
9247 *** depend on shared libraries, but programs linked with such libtool
9248 *** libraries will work regardless of this problem. Nevertheless, you
9249 *** may want to report the problem to your system manager and/or to
9250 *** bug-libtool@gnu.org
9252 _LT_EOF
9253 fi ;;
9254 esac
9256 break
9258 done
9259 IFS="$lt_save_ifs"
9260 MAGIC_CMD="$lt_save_MAGIC_CMD"
9262 esac
9265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9266 if test -n "$MAGIC_CMD"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9268 $as_echo "$MAGIC_CMD" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9275 else
9276 MAGIC_CMD=:
9282 esac
9284 # Use C for the default configuration in the libtool script
9286 lt_save_CC="$CC"
9287 ac_ext=c
9288 ac_cpp='$CPP $CPPFLAGS'
9289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294 # Source file extension for C test sources.
9295 ac_ext=c
9297 # Object file extension for compiled C test sources.
9298 objext=o
9299 objext=$objext
9301 # Code to be used in simple compile tests
9302 lt_simple_compile_test_code="int some_variable = 0;"
9304 # Code to be used in simple link tests
9305 lt_simple_link_test_code='int main(){return(0);}'
9313 # If no C compiler was specified, use CC.
9314 LTCC=${LTCC-"$CC"}
9316 # If no C compiler flags were specified, use CFLAGS.
9317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9319 # Allow CC to be a program name with arguments.
9320 compiler=$CC
9322 # Save the default compiler, since it gets overwritten when the other
9323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9324 compiler_DEFAULT=$CC
9326 # save warnings/boilerplate of simple test code
9327 ac_outfile=conftest.$ac_objext
9328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330 _lt_compiler_boilerplate=`cat conftest.err`
9331 $RM conftest*
9333 ac_outfile=conftest.$ac_objext
9334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9336 _lt_linker_boilerplate=`cat conftest.err`
9337 $RM -r conftest*
9340 if test -n "$compiler"; then
9342 lt_prog_compiler_no_builtin_flag=
9344 if test "$GCC" = yes; then
9345 case $cc_basename in
9346 nvcc*)
9347 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9349 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9350 esac
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9353 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9354 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 lt_cv_prog_compiler_rtti_exceptions=no
9358 ac_outfile=conftest.$ac_objext
9359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9360 lt_compiler_flag="-fno-rtti -fno-exceptions"
9361 # Insert the option either (1) after the last *FLAGS variable, or
9362 # (2) before a word containing "conftest.", or (3) at the end.
9363 # Note that $ac_compile itself does not contain backslashes and begins
9364 # with a dollar sign (not a hyphen), so the echo should work correctly.
9365 # The option is referenced via a variable to avoid confusing sed.
9366 lt_compile=`echo "$ac_compile" | $SED \
9367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9369 -e 's:$: $lt_compiler_flag:'`
9370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9371 (eval "$lt_compile" 2>conftest.err)
9372 ac_status=$?
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 if (exit $ac_status) && test -s "$ac_outfile"; then
9376 # The compiler can only warn and ignore the option if not recognized
9377 # So say no if there are warnings other than the usual output.
9378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9381 lt_cv_prog_compiler_rtti_exceptions=yes
9384 $RM conftest*
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9388 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9390 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9391 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9392 else
9403 lt_prog_compiler_wl=
9404 lt_prog_compiler_pic=
9405 lt_prog_compiler_static=
9408 if test "$GCC" = yes; then
9409 lt_prog_compiler_wl='-Wl,'
9410 lt_prog_compiler_static='-static'
9412 case $host_os in
9413 aix*)
9414 # All AIX code is PIC.
9415 if test "$host_cpu" = ia64; then
9416 # AIX 5 now supports IA64 processor
9417 lt_prog_compiler_static='-Bstatic'
9421 amigaos*)
9422 case $host_cpu in
9423 powerpc)
9424 # see comment about AmigaOS4 .so support
9425 lt_prog_compiler_pic='-fPIC'
9427 m68k)
9428 # FIXME: we need at least 68020 code to build shared libraries, but
9429 # adding the `-m68020' flag to GCC prevents building anything better,
9430 # like `-m68040'.
9431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9433 esac
9436 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9437 # PIC is the default for these OSes.
9440 mingw* | cygwin* | pw32* | os2* | cegcc*)
9441 # This hack is so that the source file can tell whether it is being
9442 # built for inclusion in a dll (and should export symbols for example).
9443 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9444 # (--disable-auto-import) libraries
9445 lt_prog_compiler_pic='-DDLL_EXPORT'
9448 darwin* | rhapsody*)
9449 # PIC is the default on this platform
9450 # Common symbols not allowed in MH_DYLIB files
9451 lt_prog_compiler_pic='-fno-common'
9454 haiku*)
9455 # PIC is the default for Haiku.
9456 # The "-static" flag exists, but is broken.
9457 lt_prog_compiler_static=
9460 hpux*)
9461 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9462 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9463 # sets the default TLS model and affects inlining.
9464 case $host_cpu in
9465 hppa*64*)
9466 # +Z the default
9469 lt_prog_compiler_pic='-fPIC'
9471 esac
9474 interix[3-9]*)
9475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9476 # Instead, we relocate shared libraries at runtime.
9479 msdosdjgpp*)
9480 # Just because we use GCC doesn't mean we suddenly get shared libraries
9481 # on systems that don't support them.
9482 lt_prog_compiler_can_build_shared=no
9483 enable_shared=no
9486 *nto* | *qnx*)
9487 # QNX uses GNU C++, but need to define -shared option too, otherwise
9488 # it will coredump.
9489 lt_prog_compiler_pic='-fPIC -shared'
9492 sysv4*MP*)
9493 if test -d /usr/nec; then
9494 lt_prog_compiler_pic=-Kconform_pic
9499 lt_prog_compiler_pic='-fPIC'
9501 esac
9503 case $cc_basename in
9504 nvcc*) # Cuda Compiler Driver 2.2
9505 lt_prog_compiler_wl='-Xlinker '
9506 if test -n "$lt_prog_compiler_pic"; then
9507 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9510 esac
9511 else
9512 # PORTME Check for flag to pass linker flags through the system compiler.
9513 case $host_os in
9514 aix*)
9515 lt_prog_compiler_wl='-Wl,'
9516 if test "$host_cpu" = ia64; then
9517 # AIX 5 now supports IA64 processor
9518 lt_prog_compiler_static='-Bstatic'
9519 else
9520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9524 mingw* | cygwin* | pw32* | os2* | cegcc*)
9525 # This hack is so that the source file can tell whether it is being
9526 # built for inclusion in a dll (and should export symbols for example).
9527 lt_prog_compiler_pic='-DDLL_EXPORT'
9530 hpux9* | hpux10* | hpux11*)
9531 lt_prog_compiler_wl='-Wl,'
9532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9533 # not for PA HP-UX.
9534 case $host_cpu in
9535 hppa*64*|ia64*)
9536 # +Z the default
9539 lt_prog_compiler_pic='+Z'
9541 esac
9542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9543 lt_prog_compiler_static='${wl}-a ${wl}archive'
9546 irix5* | irix6* | nonstopux*)
9547 lt_prog_compiler_wl='-Wl,'
9548 # PIC (with -KPIC) is the default.
9549 lt_prog_compiler_static='-non_shared'
9552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9553 case $cc_basename in
9554 # old Intel for x86_64 which still supported -KPIC.
9555 ecc*)
9556 lt_prog_compiler_wl='-Wl,'
9557 lt_prog_compiler_pic='-KPIC'
9558 lt_prog_compiler_static='-static'
9560 # icc used to be incompatible with GCC.
9561 # ICC 10 doesn't accept -KPIC any more.
9562 icc* | ifort*)
9563 lt_prog_compiler_wl='-Wl,'
9564 lt_prog_compiler_pic='-fPIC'
9565 lt_prog_compiler_static='-static'
9567 # Lahey Fortran 8.1.
9568 lf95*)
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='--shared'
9571 lt_prog_compiler_static='--static'
9573 nagfor*)
9574 # NAG Fortran compiler
9575 lt_prog_compiler_wl='-Wl,-Wl,,'
9576 lt_prog_compiler_pic='-PIC'
9577 lt_prog_compiler_static='-Bstatic'
9579 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9580 # Portland Group compilers (*not* the Pentium gcc compiler,
9581 # which looks to be a dead project)
9582 lt_prog_compiler_wl='-Wl,'
9583 lt_prog_compiler_pic='-fpic'
9584 lt_prog_compiler_static='-Bstatic'
9586 ccc*)
9587 lt_prog_compiler_wl='-Wl,'
9588 # All Alpha code is PIC.
9589 lt_prog_compiler_static='-non_shared'
9591 xl* | bgxl* | bgf* | mpixl*)
9592 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-qpic'
9595 lt_prog_compiler_static='-qstaticlink'
9598 case `$CC -V 2>&1 | sed 5q` in
9599 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9600 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9601 lt_prog_compiler_pic='-KPIC'
9602 lt_prog_compiler_static='-Bstatic'
9603 lt_prog_compiler_wl=''
9605 *Sun\ F* | *Sun*Fortran*)
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9608 lt_prog_compiler_wl='-Qoption ld '
9610 *Sun\ C*)
9611 # Sun C 5.9
9612 lt_prog_compiler_pic='-KPIC'
9613 lt_prog_compiler_static='-Bstatic'
9614 lt_prog_compiler_wl='-Wl,'
9616 *Intel*\ [CF]*Compiler*)
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-fPIC'
9619 lt_prog_compiler_static='-static'
9621 *Portland\ Group*)
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='-fpic'
9624 lt_prog_compiler_static='-Bstatic'
9626 esac
9628 esac
9631 newsos6)
9632 lt_prog_compiler_pic='-KPIC'
9633 lt_prog_compiler_static='-Bstatic'
9636 *nto* | *qnx*)
9637 # QNX uses GNU C++, but need to define -shared option too, otherwise
9638 # it will coredump.
9639 lt_prog_compiler_pic='-fPIC -shared'
9642 osf3* | osf4* | osf5*)
9643 lt_prog_compiler_wl='-Wl,'
9644 # All OSF/1 code is PIC.
9645 lt_prog_compiler_static='-non_shared'
9648 rdos*)
9649 lt_prog_compiler_static='-non_shared'
9652 solaris*)
9653 lt_prog_compiler_pic='-KPIC'
9654 lt_prog_compiler_static='-Bstatic'
9655 case $cc_basename in
9656 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9657 lt_prog_compiler_wl='-Qoption ld ';;
9659 lt_prog_compiler_wl='-Wl,';;
9660 esac
9663 sunos4*)
9664 lt_prog_compiler_wl='-Qoption ld '
9665 lt_prog_compiler_pic='-PIC'
9666 lt_prog_compiler_static='-Bstatic'
9669 sysv4 | sysv4.2uw2* | sysv4.3*)
9670 lt_prog_compiler_wl='-Wl,'
9671 lt_prog_compiler_pic='-KPIC'
9672 lt_prog_compiler_static='-Bstatic'
9675 sysv4*MP*)
9676 if test -d /usr/nec ;then
9677 lt_prog_compiler_pic='-Kconform_pic'
9678 lt_prog_compiler_static='-Bstatic'
9682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_pic='-KPIC'
9685 lt_prog_compiler_static='-Bstatic'
9688 unicos*)
9689 lt_prog_compiler_wl='-Wl,'
9690 lt_prog_compiler_can_build_shared=no
9693 uts4*)
9694 lt_prog_compiler_pic='-pic'
9695 lt_prog_compiler_static='-Bstatic'
9699 lt_prog_compiler_can_build_shared=no
9701 esac
9704 case $host_os in
9705 # For platforms which do not support PIC, -DPIC is meaningless:
9706 *djgpp*)
9707 lt_prog_compiler_pic=
9710 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9712 esac
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9715 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9716 if ${lt_cv_prog_compiler_pic+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9722 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9723 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9726 # Check to make sure the PIC flag actually works.
9728 if test -n "$lt_prog_compiler_pic"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9730 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9731 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 lt_cv_prog_compiler_pic_works=no
9735 ac_outfile=conftest.$ac_objext
9736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9738 # Insert the option either (1) after the last *FLAGS variable, or
9739 # (2) before a word containing "conftest.", or (3) at the end.
9740 # Note that $ac_compile itself does not contain backslashes and begins
9741 # with a dollar sign (not a hyphen), so the echo should work correctly.
9742 # The option is referenced via a variable to avoid confusing sed.
9743 lt_compile=`echo "$ac_compile" | $SED \
9744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9746 -e 's:$: $lt_compiler_flag:'`
9747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9748 (eval "$lt_compile" 2>conftest.err)
9749 ac_status=$?
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 if (exit $ac_status) && test -s "$ac_outfile"; then
9753 # The compiler can only warn and ignore the option if not recognized
9754 # So say no if there are warnings other than the usual output.
9755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9758 lt_cv_prog_compiler_pic_works=yes
9761 $RM conftest*
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9765 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9767 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9768 case $lt_prog_compiler_pic in
9769 "" | " "*) ;;
9770 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9771 esac
9772 else
9773 lt_prog_compiler_pic=
9774 lt_prog_compiler_can_build_shared=no
9790 # Check to make sure the static flag actually works.
9792 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9795 if ${lt_cv_prog_compiler_static_works+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 lt_cv_prog_compiler_static_works=no
9799 save_LDFLAGS="$LDFLAGS"
9800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9803 # The linker can only warn and ignore the option if not recognized
9804 # So say no if there are warnings
9805 if test -s conftest.err; then
9806 # Append any errors to the config.log.
9807 cat conftest.err 1>&5
9808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810 if diff conftest.exp conftest.er2 >/dev/null; then
9811 lt_cv_prog_compiler_static_works=yes
9813 else
9814 lt_cv_prog_compiler_static_works=yes
9817 $RM -r conftest*
9818 LDFLAGS="$save_LDFLAGS"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9824 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9826 else
9827 lt_prog_compiler_static=
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9838 if ${lt_cv_prog_compiler_c_o+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 lt_cv_prog_compiler_c_o=no
9842 $RM -r conftest 2>/dev/null
9843 mkdir conftest
9844 cd conftest
9845 mkdir out
9846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848 lt_compiler_flag="-o out/conftest2.$ac_objext"
9849 # Insert the option either (1) after the last *FLAGS variable, or
9850 # (2) before a word containing "conftest.", or (3) at the end.
9851 # Note that $ac_compile itself does not contain backslashes and begins
9852 # with a dollar sign (not a hyphen), so the echo should work correctly.
9853 lt_compile=`echo "$ac_compile" | $SED \
9854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9856 -e 's:$: $lt_compiler_flag:'`
9857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9858 (eval "$lt_compile" 2>out/conftest.err)
9859 ac_status=$?
9860 cat out/conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9863 then
9864 # The compiler can only warn and ignore the option if not recognized
9865 # So say no if there are warnings
9866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9869 lt_cv_prog_compiler_c_o=yes
9872 chmod u+w . 2>&5
9873 $RM conftest*
9874 # SGI C++ compiler will create directory out/ii_files/ for
9875 # template instantiation
9876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9877 $RM out/* && rmdir out
9878 cd ..
9879 $RM -r conftest
9880 $RM conftest*
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9893 if ${lt_cv_prog_compiler_c_o+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 lt_cv_prog_compiler_c_o=no
9897 $RM -r conftest 2>/dev/null
9898 mkdir conftest
9899 cd conftest
9900 mkdir out
9901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9903 lt_compiler_flag="-o out/conftest2.$ac_objext"
9904 # Insert the option either (1) after the last *FLAGS variable, or
9905 # (2) before a word containing "conftest.", or (3) at the end.
9906 # Note that $ac_compile itself does not contain backslashes and begins
9907 # with a dollar sign (not a hyphen), so the echo should work correctly.
9908 lt_compile=`echo "$ac_compile" | $SED \
9909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9911 -e 's:$: $lt_compiler_flag:'`
9912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9913 (eval "$lt_compile" 2>out/conftest.err)
9914 ac_status=$?
9915 cat out/conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9918 then
9919 # The compiler can only warn and ignore the option if not recognized
9920 # So say no if there are warnings
9921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9924 lt_cv_prog_compiler_c_o=yes
9927 chmod u+w . 2>&5
9928 $RM conftest*
9929 # SGI C++ compiler will create directory out/ii_files/ for
9930 # template instantiation
9931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9932 $RM out/* && rmdir out
9933 cd ..
9934 $RM -r conftest
9935 $RM conftest*
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9944 hard_links="nottested"
9945 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9946 # do not overwrite the value of need_locks provided by the user
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9948 $as_echo_n "checking if we can lock with hard links... " >&6; }
9949 hard_links=yes
9950 $RM conftest*
9951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9952 touch conftest.a
9953 ln conftest.a conftest.b 2>&5 || hard_links=no
9954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9956 $as_echo "$hard_links" >&6; }
9957 if test "$hard_links" = no; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9959 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9960 need_locks=warn
9962 else
9963 need_locks=no
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9974 runpath_var=
9975 allow_undefined_flag=
9976 always_export_symbols=no
9977 archive_cmds=
9978 archive_expsym_cmds=
9979 compiler_needs_object=no
9980 enable_shared_with_static_runtimes=no
9981 export_dynamic_flag_spec=
9982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9983 hardcode_automatic=no
9984 hardcode_direct=no
9985 hardcode_direct_absolute=no
9986 hardcode_libdir_flag_spec=
9987 hardcode_libdir_separator=
9988 hardcode_minus_L=no
9989 hardcode_shlibpath_var=unsupported
9990 inherit_rpath=no
9991 link_all_deplibs=unknown
9992 module_cmds=
9993 module_expsym_cmds=
9994 old_archive_from_new_cmds=
9995 old_archive_from_expsyms_cmds=
9996 thread_safe_flag_spec=
9997 whole_archive_flag_spec=
9998 # include_expsyms should be a list of space-separated symbols to be *always*
9999 # included in the symbol list
10000 include_expsyms=
10001 # exclude_expsyms can be an extended regexp of symbols to exclude
10002 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10003 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10004 # as well as any symbol that contains `d'.
10005 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10007 # platforms (ab)use it in PIC code, but their linkers get confused if
10008 # the symbol is explicitly referenced. Since portable code cannot
10009 # rely on this symbol name, it's probably fine to never include it in
10010 # preloaded symbol tables.
10011 # Exclude shared library initialization/finalization symbols.
10012 extract_expsyms_cmds=
10014 case $host_os in
10015 cygwin* | mingw* | pw32* | cegcc*)
10016 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10017 # When not using gcc, we currently assume that we are using
10018 # Microsoft Visual C++.
10019 if test "$GCC" != yes; then
10020 with_gnu_ld=no
10023 interix*)
10024 # we just hope/assume this is gcc and not c89 (= MSVC++)
10025 with_gnu_ld=yes
10027 openbsd*)
10028 with_gnu_ld=no
10030 esac
10032 ld_shlibs=yes
10034 # On some targets, GNU ld is compatible enough with the native linker
10035 # that we're better off using the native interface for both.
10036 lt_use_gnu_ld_interface=no
10037 if test "$with_gnu_ld" = yes; then
10038 case $host_os in
10039 aix*)
10040 # The AIX port of GNU ld has always aspired to compatibility
10041 # with the native linker. However, as the warning in the GNU ld
10042 # block says, versions before 2.19.5* couldn't really create working
10043 # shared libraries, regardless of the interface used.
10044 case `$LD -v 2>&1` in
10045 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10046 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10047 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10049 lt_use_gnu_ld_interface=yes
10051 esac
10054 lt_use_gnu_ld_interface=yes
10056 esac
10059 if test "$lt_use_gnu_ld_interface" = yes; then
10060 # If archive_cmds runs LD, not CC, wlarc should be empty
10061 wlarc='${wl}'
10063 # Set some defaults for GNU ld with shared library support. These
10064 # are reset later if shared libraries are not supported. Putting them
10065 # here allows them to be overridden if necessary.
10066 runpath_var=LD_RUN_PATH
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 export_dynamic_flag_spec='${wl}--export-dynamic'
10069 # ancient GNU ld didn't support --whole-archive et. al.
10070 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10071 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10072 else
10073 whole_archive_flag_spec=
10075 supports_anon_versioning=no
10076 case `$LD -v 2>&1` in
10077 *GNU\ gold*) supports_anon_versioning=yes ;;
10078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10081 *\ 2.11.*) ;; # other 2.11 versions
10082 *) supports_anon_versioning=yes ;;
10083 esac
10085 # See if GNU ld supports shared libraries.
10086 case $host_os in
10087 aix[3-9]*)
10088 # On AIX/PPC, the GNU linker is very broken
10089 if test "$host_cpu" != ia64; then
10090 ld_shlibs=no
10091 cat <<_LT_EOF 1>&2
10093 *** Warning: the GNU linker, at least up to release 2.19, is reported
10094 *** to be unable to reliably create shared libraries on AIX.
10095 *** Therefore, libtool is disabling shared libraries support. If you
10096 *** really care for shared libraries, you may want to install binutils
10097 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10098 *** You will then need to restart the configuration process.
10100 _LT_EOF
10104 amigaos*)
10105 case $host_cpu in
10106 powerpc)
10107 # see comment about AmigaOS4 .so support
10108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds=''
10111 m68k)
10112 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)'
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_minus_L=yes
10116 esac
10119 beos*)
10120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121 allow_undefined_flag=unsupported
10122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10123 # support --undefined. This deserves some investigation. FIXME
10124 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10125 else
10126 ld_shlibs=no
10130 cygwin* | mingw* | pw32* | cegcc*)
10131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10132 # as there is no search path for DLLs.
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 export_dynamic_flag_spec='${wl}--export-all-symbols'
10135 allow_undefined_flag=unsupported
10136 always_export_symbols=no
10137 enable_shared_with_static_runtimes=yes
10138 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'
10139 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10143 # If the export-symbols file already is a .def file (1st line
10144 # is EXPORTS), use it as is; otherwise, prepend...
10145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10146 cp $export_symbols $output_objdir/$soname.def;
10147 else
10148 echo EXPORTS > $output_objdir/$soname.def;
10149 cat $export_symbols >> $output_objdir/$soname.def;
10151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10152 else
10153 ld_shlibs=no
10157 haiku*)
10158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 link_all_deplibs=yes
10162 interix[3-9]*)
10163 hardcode_direct=no
10164 hardcode_shlibpath_var=no
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 export_dynamic_flag_spec='${wl}-E'
10167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10168 # Instead, shared libraries are loaded at an image base (0x10000000 by
10169 # default) and relocated if they conflict, which is a slow very memory
10170 # consuming and fragmenting process. To avoid this, we pick a random,
10171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10174 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'
10177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10178 tmp_diet=no
10179 if test "$host_os" = linux-dietlibc; then
10180 case $cc_basename in
10181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10182 esac
10184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10185 && test "$tmp_diet" = no
10186 then
10187 tmp_addflag=' $pic_flag'
10188 tmp_sharedflag='-shared'
10189 case $cc_basename,$host_cpu in
10190 pgcc*) # Portland Group C compiler
10191 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'
10192 tmp_addflag=' $pic_flag'
10194 pgf77* | pgf90* | pgf95* | pgfortran*)
10195 # Portland Group f77 and f90 compilers
10196 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'
10197 tmp_addflag=' $pic_flag -Mnomain' ;;
10198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10199 tmp_addflag=' -i_dynamic' ;;
10200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10201 tmp_addflag=' -i_dynamic -nofor_main' ;;
10202 ifc* | ifort*) # Intel Fortran compiler
10203 tmp_addflag=' -nofor_main' ;;
10204 lf95*) # Lahey Fortran 8.1
10205 whole_archive_flag_spec=
10206 tmp_sharedflag='--shared' ;;
10207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10208 tmp_sharedflag='-qmkshrobj'
10209 tmp_addflag= ;;
10210 nvcc*) # Cuda Compiler Driver 2.2
10211 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'
10212 compiler_needs_object=yes
10214 esac
10215 case `$CC -V 2>&1 | sed 5q` in
10216 *Sun\ C*) # Sun C 5.9
10217 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'
10218 compiler_needs_object=yes
10219 tmp_sharedflag='-G' ;;
10220 *Sun\ F*) # Sun Fortran 8.3
10221 tmp_sharedflag='-G' ;;
10222 esac
10223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225 if test "x$supports_anon_versioning" = xyes; then
10226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10228 echo "local: *; };" >> $output_objdir/$libname.ver~
10229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10232 case $cc_basename in
10233 xlf* | bgf* | bgxlf* | mpixlf*)
10234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10237 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10238 if test "x$supports_anon_versioning" = xyes; then
10239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10241 echo "local: *; };" >> $output_objdir/$libname.ver~
10242 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10245 esac
10246 else
10247 ld_shlibs=no
10251 netbsd*)
10252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10254 wlarc=
10255 else
10256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10261 solaris*)
10262 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10263 ld_shlibs=no
10264 cat <<_LT_EOF 1>&2
10266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10267 *** create shared libraries on Solaris systems. Therefore, libtool
10268 *** is disabling shared libraries support. We urge you to upgrade GNU
10269 *** binutils to release 2.9.1 or newer. Another option is to modify
10270 *** your PATH or compiler configuration so that the native linker is
10271 *** used, and then restart.
10273 _LT_EOF
10274 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10277 else
10278 ld_shlibs=no
10282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10283 case `$LD -v 2>&1` in
10284 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10285 ld_shlibs=no
10286 cat <<_LT_EOF 1>&2
10288 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10289 *** reliably create shared libraries on SCO systems. Therefore, libtool
10290 *** is disabling shared libraries support. We urge you to upgrade GNU
10291 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10292 *** your PATH or compiler configuration so that the native linker is
10293 *** used, and then restart.
10295 _LT_EOF
10298 # For security reasons, it is highly recommended that you always
10299 # use absolute paths for naming shared libraries, and exclude the
10300 # DT_RUNPATH tag from executables and libraries. But doing so
10301 # requires that you compile everything twice, which is a pain.
10302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306 else
10307 ld_shlibs=no
10310 esac
10313 sunos4*)
10314 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10315 wlarc=
10316 hardcode_direct=yes
10317 hardcode_shlibpath_var=no
10321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10324 else
10325 ld_shlibs=no
10328 esac
10330 if test "$ld_shlibs" = no; then
10331 runpath_var=
10332 hardcode_libdir_flag_spec=
10333 export_dynamic_flag_spec=
10334 whole_archive_flag_spec=
10336 else
10337 # PORTME fill in a description of your system's linker (not GNU ld)
10338 case $host_os in
10339 aix3*)
10340 allow_undefined_flag=unsupported
10341 always_export_symbols=yes
10342 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'
10343 # Note: this linker hardcodes the directories in LIBPATH if there
10344 # are no directories specified by -L.
10345 hardcode_minus_L=yes
10346 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10347 # Neither direct hardcoding nor static linking is supported with a
10348 # broken collect2.
10349 hardcode_direct=unsupported
10353 aix[4-9]*)
10354 if test "$host_cpu" = ia64; then
10355 # On IA64, the linker does run time linking by default, so we don't
10356 # have to do anything special.
10357 aix_use_runtimelinking=no
10358 exp_sym_flag='-Bexport'
10359 no_entry_flag=""
10360 else
10361 # If we're using GNU nm, then we don't want the "-C" option.
10362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10363 # Also, AIX nm treats weak defined symbols like other global
10364 # defined symbols, whereas GNU nm marks them as "W".
10365 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10366 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'
10367 else
10368 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'
10370 aix_use_runtimelinking=no
10372 # Test if we are trying to use run time linking or normal
10373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10374 # need to do runtime linking.
10375 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10376 for ld_flag in $LDFLAGS; do
10377 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10378 aix_use_runtimelinking=yes
10379 break
10381 done
10383 esac
10385 exp_sym_flag='-bexport'
10386 no_entry_flag='-bnoentry'
10389 # When large executables or shared objects are built, AIX ld can
10390 # have problems creating the table of contents. If linking a library
10391 # or program results in "error TOC overflow" add -mminimal-toc to
10392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10395 archive_cmds=''
10396 hardcode_direct=yes
10397 hardcode_direct_absolute=yes
10398 hardcode_libdir_separator=':'
10399 link_all_deplibs=yes
10400 file_list_spec='${wl}-f,'
10402 if test "$GCC" = yes; then
10403 case $host_os in aix4.[012]|aix4.[012].*)
10404 # We only want to do this on AIX 4.2 and lower, the check
10405 # below for broken collect2 doesn't work under 4.3+
10406 collect2name=`${CC} -print-prog-name=collect2`
10407 if test -f "$collect2name" &&
10408 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10409 then
10410 # We have reworked collect2
10412 else
10413 # We have old collect2
10414 hardcode_direct=unsupported
10415 # It fails to find uninstalled libraries when the uninstalled
10416 # path is not listed in the libpath. Setting hardcode_minus_L
10417 # to unsupported forces relinking
10418 hardcode_minus_L=yes
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_libdir_separator=
10423 esac
10424 shared_flag='-shared'
10425 if test "$aix_use_runtimelinking" = yes; then
10426 shared_flag="$shared_flag "'${wl}-G'
10428 else
10429 # not using gcc
10430 if test "$host_cpu" = ia64; then
10431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10432 # chokes on -Wl,-G. The following line is correct:
10433 shared_flag='-G'
10434 else
10435 if test "$aix_use_runtimelinking" = yes; then
10436 shared_flag='${wl}-G'
10437 else
10438 shared_flag='${wl}-bM:SRE'
10443 export_dynamic_flag_spec='${wl}-bexpall'
10444 # It seems that -bexpall does not export symbols beginning with
10445 # underscore (_), so it is better to generate a list of symbols to export.
10446 always_export_symbols=yes
10447 if test "$aix_use_runtimelinking" = yes; then
10448 # Warning - without using the other runtime loading flags (-brtl),
10449 # -berok will link without error, but may produce a broken library.
10450 allow_undefined_flag='-berok'
10451 # Determine the default libpath from the value encoded in an
10452 # empty executable.
10453 if test "${lt_cv_aix_libpath+set}" = set; then
10454 aix_libpath=$lt_cv_aix_libpath
10455 else
10456 if ${lt_cv_aix_libpath_+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10463 main ()
10467 return 0;
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10472 lt_aix_libpath_sed='
10473 /Import File Strings/,/^$/ {
10474 /^0/ {
10475 s/^0 *\([^ ]*\) *$/\1/
10479 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10480 # Check for a 64-bit object if we didn't find anything.
10481 if test -z "$lt_cv_aix_libpath_"; then
10482 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 if test -z "$lt_cv_aix_libpath_"; then
10488 lt_cv_aix_libpath_="/usr/lib:/lib"
10493 aix_libpath=$lt_cv_aix_libpath_
10496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10497 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"
10498 else
10499 if test "$host_cpu" = ia64; then
10500 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10501 allow_undefined_flag="-z nodefs"
10502 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"
10503 else
10504 # Determine the default libpath from the value encoded in an
10505 # empty executable.
10506 if test "${lt_cv_aix_libpath+set}" = set; then
10507 aix_libpath=$lt_cv_aix_libpath
10508 else
10509 if ${lt_cv_aix_libpath_+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10516 main ()
10520 return 0;
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"; then :
10525 lt_aix_libpath_sed='
10526 /Import File Strings/,/^$/ {
10527 /^0/ {
10528 s/^0 *\([^ ]*\) *$/\1/
10532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10533 # Check for a 64-bit object if we didn't find anything.
10534 if test -z "$lt_cv_aix_libpath_"; then
10535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 if test -z "$lt_cv_aix_libpath_"; then
10541 lt_cv_aix_libpath_="/usr/lib:/lib"
10546 aix_libpath=$lt_cv_aix_libpath_
10549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10550 # Warning - without using the other run time loading flags,
10551 # -berok will link without error, but may produce a broken library.
10552 no_undefined_flag=' ${wl}-bernotok'
10553 allow_undefined_flag=' ${wl}-berok'
10554 if test "$with_gnu_ld" = yes; then
10555 # We only use this code for GNU lds that support --whole-archive.
10556 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10557 else
10558 # Exported symbols can be pulled into shared objects from archives
10559 whole_archive_flag_spec='$convenience'
10561 archive_cmds_need_lc=yes
10562 # This is similar to how AIX traditionally builds its shared libraries.
10563 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'
10568 amigaos*)
10569 case $host_cpu in
10570 powerpc)
10571 # see comment about AmigaOS4 .so support
10572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 archive_expsym_cmds=''
10575 m68k)
10576 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)'
10577 hardcode_libdir_flag_spec='-L$libdir'
10578 hardcode_minus_L=yes
10580 esac
10583 bsdi[45]*)
10584 export_dynamic_flag_spec=-rdynamic
10587 cygwin* | mingw* | pw32* | cegcc*)
10588 # When not using gcc, we currently assume that we are using
10589 # Microsoft Visual C++.
10590 # hardcode_libdir_flag_spec is actually meaningless, as there is
10591 # no search path for DLLs.
10592 case $cc_basename in
10593 cl*)
10594 # Native MSVC
10595 hardcode_libdir_flag_spec=' '
10596 allow_undefined_flag=unsupported
10597 always_export_symbols=yes
10598 file_list_spec='@'
10599 # Tell ltmain to make .lib files, not .a files.
10600 libext=lib
10601 # Tell ltmain to make .dll files, not .so files.
10602 shrext_cmds=".dll"
10603 # FIXME: Setting linknames here is a bad hack.
10604 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10605 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10606 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10607 else
10608 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10610 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10611 linknames='
10612 # The linker will not automatically build a static lib if we build a DLL.
10613 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10614 enable_shared_with_static_runtimes=yes
10615 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10617 # Don't use ranlib
10618 old_postinstall_cmds='chmod 644 $oldlib'
10619 postlink_cmds='lt_outputfile="@OUTPUT@"~
10620 lt_tool_outputfile="@TOOL_OUTPUT@"~
10621 case $lt_outputfile in
10622 *.exe|*.EXE) ;;
10624 lt_outputfile="$lt_outputfile.exe"
10625 lt_tool_outputfile="$lt_tool_outputfile.exe"
10627 esac~
10628 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10629 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10630 $RM "$lt_outputfile.manifest";
10634 # Assume MSVC wrapper
10635 hardcode_libdir_flag_spec=' '
10636 allow_undefined_flag=unsupported
10637 # Tell ltmain to make .lib files, not .a files.
10638 libext=lib
10639 # Tell ltmain to make .dll files, not .so files.
10640 shrext_cmds=".dll"
10641 # FIXME: Setting linknames here is a bad hack.
10642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10643 # The linker will automatically build a .lib file if we build a DLL.
10644 old_archive_from_new_cmds='true'
10645 # FIXME: Should let the user specify the lib program.
10646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10647 enable_shared_with_static_runtimes=yes
10649 esac
10652 darwin* | rhapsody*)
10655 archive_cmds_need_lc=no
10656 hardcode_direct=no
10657 hardcode_automatic=yes
10658 hardcode_shlibpath_var=unsupported
10659 if test "$lt_cv_ld_force_load" = "yes"; then
10660 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\"`'
10662 else
10663 whole_archive_flag_spec=''
10665 link_all_deplibs=yes
10666 allow_undefined_flag="$_lt_dar_allow_undefined"
10667 case $cc_basename in
10668 ifort*) _lt_dar_can_shared=yes ;;
10669 *) _lt_dar_can_shared=$GCC ;;
10670 esac
10671 if test "$_lt_dar_can_shared" = "yes"; then
10672 output_verbose_link_cmd=func_echo_all
10673 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10674 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10675 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}"
10676 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}"
10678 else
10679 ld_shlibs=no
10684 dgux*)
10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686 hardcode_libdir_flag_spec='-L$libdir'
10687 hardcode_shlibpath_var=no
10690 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10691 # support. Future versions do this automatically, but an explicit c++rt0.o
10692 # does not break anything, and helps significantly (at the cost of a little
10693 # extra space).
10694 freebsd2.2*)
10695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10696 hardcode_libdir_flag_spec='-R$libdir'
10697 hardcode_direct=yes
10698 hardcode_shlibpath_var=no
10701 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10702 freebsd2.*)
10703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10704 hardcode_direct=yes
10705 hardcode_minus_L=yes
10706 hardcode_shlibpath_var=no
10709 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10710 freebsd* | dragonfly*)
10711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10712 hardcode_libdir_flag_spec='-R$libdir'
10713 hardcode_direct=yes
10714 hardcode_shlibpath_var=no
10717 hpux9*)
10718 if test "$GCC" = yes; then
10719 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'
10720 else
10721 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'
10723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724 hardcode_libdir_separator=:
10725 hardcode_direct=yes
10727 # hardcode_minus_L: Not really in the search PATH,
10728 # but as the default location of the library.
10729 hardcode_minus_L=yes
10730 export_dynamic_flag_spec='${wl}-E'
10733 hpux10*)
10734 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10735 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736 else
10737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10739 if test "$with_gnu_ld" = no; then
10740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741 hardcode_libdir_separator=:
10742 hardcode_direct=yes
10743 hardcode_direct_absolute=yes
10744 export_dynamic_flag_spec='${wl}-E'
10745 # hardcode_minus_L: Not really in the search PATH,
10746 # but as the default location of the library.
10747 hardcode_minus_L=yes
10751 hpux11*)
10752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10753 case $host_cpu in
10754 hppa*64*)
10755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 ia64*)
10758 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10761 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10763 esac
10764 else
10765 case $host_cpu in
10766 hppa*64*)
10767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 ia64*)
10770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10774 # Older versions of the 11.00 compiler do not understand -b yet
10775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10777 $as_echo_n "checking if $CC understands -b... " >&6; }
10778 if ${lt_cv_prog_compiler__b+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 lt_cv_prog_compiler__b=no
10782 save_LDFLAGS="$LDFLAGS"
10783 LDFLAGS="$LDFLAGS -b"
10784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10786 # The linker can only warn and ignore the option if not recognized
10787 # So say no if there are warnings
10788 if test -s conftest.err; then
10789 # Append any errors to the config.log.
10790 cat conftest.err 1>&5
10791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10793 if diff conftest.exp conftest.er2 >/dev/null; then
10794 lt_cv_prog_compiler__b=yes
10796 else
10797 lt_cv_prog_compiler__b=yes
10800 $RM -r conftest*
10801 LDFLAGS="$save_LDFLAGS"
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10807 if test x"$lt_cv_prog_compiler__b" = xyes; then
10808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10809 else
10810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10814 esac
10816 if test "$with_gnu_ld" = no; then
10817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10818 hardcode_libdir_separator=:
10820 case $host_cpu in
10821 hppa*64*|ia64*)
10822 hardcode_direct=no
10823 hardcode_shlibpath_var=no
10826 hardcode_direct=yes
10827 hardcode_direct_absolute=yes
10828 export_dynamic_flag_spec='${wl}-E'
10830 # hardcode_minus_L: Not really in the search PATH,
10831 # but as the default location of the library.
10832 hardcode_minus_L=yes
10834 esac
10838 irix5* | irix6* | nonstopux*)
10839 if test "$GCC" = yes; then
10840 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'
10841 # Try to use the -exported_symbol ld option, if it does not
10842 # work, assume that -exports_file does not work either and
10843 # implicitly export all symbols.
10844 # This should be the same for all languages, so no per-tag cache variable.
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10846 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10847 if ${lt_cv_irix_exported_symbol+:} false; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 save_LDFLAGS="$LDFLAGS"
10851 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10854 int foo (void) { return 0; }
10855 _ACEOF
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 lt_cv_irix_exported_symbol=yes
10858 else
10859 lt_cv_irix_exported_symbol=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LDFLAGS="$save_LDFLAGS"
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10866 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10867 if test "$lt_cv_irix_exported_symbol" = yes; then
10868 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'
10870 else
10871 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'
10872 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'
10874 archive_cmds_need_lc='no'
10875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10876 hardcode_libdir_separator=:
10877 inherit_rpath=yes
10878 link_all_deplibs=yes
10881 netbsd*)
10882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10884 else
10885 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10887 hardcode_libdir_flag_spec='-R$libdir'
10888 hardcode_direct=yes
10889 hardcode_shlibpath_var=no
10892 newsos6)
10893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10894 hardcode_direct=yes
10895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10896 hardcode_libdir_separator=:
10897 hardcode_shlibpath_var=no
10900 *nto* | *qnx*)
10903 openbsd*)
10904 if test -f /usr/libexec/ld.so; then
10905 hardcode_direct=yes
10906 hardcode_shlibpath_var=no
10907 hardcode_direct_absolute=yes
10908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10910 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10912 export_dynamic_flag_spec='${wl}-E'
10913 else
10914 case $host_os in
10915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_libdir_flag_spec='-R$libdir'
10920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10923 esac
10925 else
10926 ld_shlibs=no
10930 os2*)
10931 hardcode_libdir_flag_spec='-L$libdir'
10932 hardcode_minus_L=yes
10933 allow_undefined_flag=unsupported
10934 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'
10935 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10938 osf3*)
10939 if test "$GCC" = yes; then
10940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10941 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'
10942 else
10943 allow_undefined_flag=' -expect_unresolved \*'
10944 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'
10946 archive_cmds_need_lc='no'
10947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10948 hardcode_libdir_separator=:
10951 osf4* | osf5*) # as osf3* with the addition of -msym flag
10952 if test "$GCC" = yes; then
10953 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10954 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'
10955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10956 else
10957 allow_undefined_flag=' -expect_unresolved \*'
10958 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'
10959 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~
10960 $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'
10962 # Both c and cxx compiler support -rpath directly
10963 hardcode_libdir_flag_spec='-rpath $libdir'
10965 archive_cmds_need_lc='no'
10966 hardcode_libdir_separator=:
10969 solaris*)
10970 no_undefined_flag=' -z defs'
10971 if test "$GCC" = yes; then
10972 wlarc='${wl}'
10973 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10975 $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'
10976 else
10977 case `$CC -V 2>&1` in
10978 *"Compilers 5.0"*)
10979 wlarc=''
10980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10985 wlarc='${wl}'
10986 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10990 esac
10992 hardcode_libdir_flag_spec='-R$libdir'
10993 hardcode_shlibpath_var=no
10994 case $host_os in
10995 solaris2.[0-5] | solaris2.[0-5].*) ;;
10997 # The compiler driver will combine and reorder linker options,
10998 # but understands `-z linker_flag'. GCC discards it without `$wl',
10999 # but is careful enough not to reorder.
11000 # Supported since Solaris 2.6 (maybe 2.5.1?)
11001 if test "$GCC" = yes; then
11002 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11003 else
11004 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11007 esac
11008 link_all_deplibs=yes
11011 sunos4*)
11012 if test "x$host_vendor" = xsequent; then
11013 # Use $CC to link under sequent, because it throws in some extra .o
11014 # files that make .init and .fini sections work.
11015 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11016 else
11017 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11019 hardcode_libdir_flag_spec='-L$libdir'
11020 hardcode_direct=yes
11021 hardcode_minus_L=yes
11022 hardcode_shlibpath_var=no
11025 sysv4)
11026 case $host_vendor in
11027 sni)
11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029 hardcode_direct=yes # is this really true???
11031 siemens)
11032 ## LD is ld it makes a PLAMLIB
11033 ## CC just makes a GrossModule.
11034 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11035 reload_cmds='$CC -r -o $output$reload_objs'
11036 hardcode_direct=no
11038 motorola)
11039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11042 esac
11043 runpath_var='LD_RUN_PATH'
11044 hardcode_shlibpath_var=no
11047 sysv4.3*)
11048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11049 hardcode_shlibpath_var=no
11050 export_dynamic_flag_spec='-Bexport'
11053 sysv4*MP*)
11054 if test -d /usr/nec; then
11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 hardcode_shlibpath_var=no
11057 runpath_var=LD_RUN_PATH
11058 hardcode_runpath_var=yes
11059 ld_shlibs=yes
11063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11064 no_undefined_flag='${wl}-z,text'
11065 archive_cmds_need_lc=no
11066 hardcode_shlibpath_var=no
11067 runpath_var='LD_RUN_PATH'
11069 if test "$GCC" = yes; then
11070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072 else
11073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11078 sysv5* | sco3.2v5* | sco5v6*)
11079 # Note: We can NOT use -z defs as we might desire, because we do not
11080 # link with -lc, and that would cause any symbols used from libc to
11081 # always be unresolved, which means just about no library would
11082 # ever link correctly. If we're not using GNU ld we use -z text
11083 # though, which does catch some bad symbols but isn't as heavy-handed
11084 # as -z defs.
11085 no_undefined_flag='${wl}-z,text'
11086 allow_undefined_flag='${wl}-z,nodefs'
11087 archive_cmds_need_lc=no
11088 hardcode_shlibpath_var=no
11089 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11090 hardcode_libdir_separator=':'
11091 link_all_deplibs=yes
11092 export_dynamic_flag_spec='${wl}-Bexport'
11093 runpath_var='LD_RUN_PATH'
11095 if test "$GCC" = yes; then
11096 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 else
11099 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11100 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11104 uts4*)
11105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11106 hardcode_libdir_flag_spec='-L$libdir'
11107 hardcode_shlibpath_var=no
11111 ld_shlibs=no
11113 esac
11115 if test x$host_vendor = xsni; then
11116 case $host in
11117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11118 export_dynamic_flag_spec='${wl}-Blargedynsym'
11120 esac
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11125 $as_echo "$ld_shlibs" >&6; }
11126 test "$ld_shlibs" = no && can_build_shared=no
11128 with_gnu_ld=$with_gnu_ld
11145 # Do we need to explicitly link libc?
11147 case "x$archive_cmds_need_lc" in
11148 x|xyes)
11149 # Assume -lc should be added
11150 archive_cmds_need_lc=yes
11152 if test "$enable_shared" = yes && test "$GCC" = yes; then
11153 case $archive_cmds in
11154 *'~'*)
11155 # FIXME: we may have to deal with multi-command sequences.
11157 '$CC '*)
11158 # Test whether the compiler implicitly links with -lc since on some
11159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11160 # to ld, don't add -lc before -lgcc.
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11162 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11163 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 $RM conftest*
11167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11170 (eval $ac_compile) 2>&5
11171 ac_status=$?
11172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11173 test $ac_status = 0; } 2>conftest.err; then
11174 soname=conftest
11175 lib=conftest
11176 libobjs=conftest.$ac_objext
11177 deplibs=
11178 wl=$lt_prog_compiler_wl
11179 pic_flag=$lt_prog_compiler_pic
11180 compiler_flags=-v
11181 linker_flags=-v
11182 verstring=
11183 output_objdir=.
11184 libname=conftest
11185 lt_save_allow_undefined_flag=$allow_undefined_flag
11186 allow_undefined_flag=
11187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11188 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11189 ac_status=$?
11190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11191 test $ac_status = 0; }
11192 then
11193 lt_cv_archive_cmds_need_lc=no
11194 else
11195 lt_cv_archive_cmds_need_lc=yes
11197 allow_undefined_flag=$lt_save_allow_undefined_flag
11198 else
11199 cat conftest.err 1>&5
11201 $RM conftest*
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11205 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11206 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11208 esac
11211 esac
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11365 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11367 if test "$GCC" = yes; then
11368 case $host_os in
11369 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11370 *) lt_awk_arg="/^libraries:/" ;;
11371 esac
11372 case $host_os in
11373 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11374 *) lt_sed_strip_eq="s,=/,/,g" ;;
11375 esac
11376 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11377 case $lt_search_path_spec in
11378 *\;*)
11379 # if the path contains ";" then we assume it to be the separator
11380 # otherwise default to the standard path separator (i.e. ":") - it is
11381 # assumed that no part of a normal pathname contains ";" but that should
11382 # okay in the real world where ";" in dirpaths is itself problematic.
11383 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11386 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11388 esac
11389 # Ok, now we have the path, separated by spaces, we can step through it
11390 # and add multilib dir if necessary.
11391 lt_tmp_lt_search_path_spec=
11392 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11393 for lt_sys_path in $lt_search_path_spec; do
11394 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11396 else
11397 test -d "$lt_sys_path" && \
11398 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11400 done
11401 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11402 BEGIN {RS=" "; FS="/|\n";} {
11403 lt_foo="";
11404 lt_count=0;
11405 for (lt_i = NF; lt_i > 0; lt_i--) {
11406 if ($lt_i != "" && $lt_i != ".") {
11407 if ($lt_i == "..") {
11408 lt_count++;
11409 } else {
11410 if (lt_count == 0) {
11411 lt_foo="/" $lt_i lt_foo;
11412 } else {
11413 lt_count--;
11418 if (lt_foo != "") { lt_freq[lt_foo]++; }
11419 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11421 # AWK program above erroneously prepends '/' to C:/dos/paths
11422 # for these hosts.
11423 case $host_os in
11424 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11425 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11426 esac
11427 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11428 else
11429 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11431 library_names_spec=
11432 libname_spec='lib$name'
11433 soname_spec=
11434 shrext_cmds=".so"
11435 postinstall_cmds=
11436 postuninstall_cmds=
11437 finish_cmds=
11438 finish_eval=
11439 shlibpath_var=
11440 shlibpath_overrides_runpath=unknown
11441 version_type=none
11442 dynamic_linker="$host_os ld.so"
11443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11444 need_lib_prefix=unknown
11445 hardcode_into_libs=no
11447 # when you set need_version to no, make sure it does not cause -set_version
11448 # flags to be left without arguments
11449 need_version=unknown
11451 case $host_os in
11452 aix3*)
11453 version_type=linux # correct to gnu/linux during the next big refactor
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11455 shlibpath_var=LIBPATH
11457 # AIX 3 has no versioning support, so we append a major version to the name.
11458 soname_spec='${libname}${release}${shared_ext}$major'
11461 aix[4-9]*)
11462 version_type=linux # correct to gnu/linux during the next big refactor
11463 need_lib_prefix=no
11464 need_version=no
11465 hardcode_into_libs=yes
11466 if test "$host_cpu" = ia64; then
11467 # AIX 5 supports IA64
11468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 else
11471 # With GCC up to 2.95.x, collect2 would create an import file
11472 # for dependence libraries. The import file would start with
11473 # the line `#! .'. This would cause the generated library to
11474 # depend on `.', always an invalid library. This was fixed in
11475 # development snapshots of GCC prior to 3.0.
11476 case $host_os in
11477 aix4 | aix4.[01] | aix4.[01].*)
11478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11479 echo ' yes '
11480 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11482 else
11483 can_build_shared=no
11486 esac
11487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11488 # soname into executable. Probably we can add versioning support to
11489 # collect2, so additional links can be useful in future.
11490 if test "$aix_use_runtimelinking" = yes; then
11491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11492 # instead of lib<name>.a to let people know that these are not
11493 # typical AIX shared libraries.
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 else
11496 # We preserve .a as extension for shared libraries through AIX4.2
11497 # and later when we are not doing run time linking.
11498 library_names_spec='${libname}${release}.a $libname.a'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11501 shlibpath_var=LIBPATH
11505 amigaos*)
11506 case $host_cpu in
11507 powerpc)
11508 # Since July 2007 AmigaOS4 officially supports .so libraries.
11509 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 m68k)
11513 library_names_spec='$libname.ixlibrary $libname.a'
11514 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11515 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'
11517 esac
11520 beos*)
11521 library_names_spec='${libname}${shared_ext}'
11522 dynamic_linker="$host_os ld.so"
11523 shlibpath_var=LIBRARY_PATH
11526 bsdi[45]*)
11527 version_type=linux # correct to gnu/linux during the next big refactor
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11535 # the default ld.so.conf also contains /usr/contrib/lib and
11536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11537 # libtool to hard-code these into programs
11540 cygwin* | mingw* | pw32* | cegcc*)
11541 version_type=windows
11542 shrext_cmds=".dll"
11543 need_version=no
11544 need_lib_prefix=no
11546 case $GCC,$cc_basename in
11547 yes,*)
11548 # gcc
11549 library_names_spec='$libname.dll.a'
11550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11551 postinstall_cmds='base_file=`basename \${file}`~
11552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11553 dldir=$destdir/`dirname \$dlpath`~
11554 test -d \$dldir || mkdir -p \$dldir~
11555 $install_prog $dir/$dlname \$dldir/$dlname~
11556 chmod a+x \$dldir/$dlname~
11557 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11558 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11561 dlpath=$dir/\$dldll~
11562 $RM \$dlpath'
11563 shlibpath_overrides_runpath=yes
11565 case $host_os in
11566 cygwin*)
11567 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11568 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11572 mingw* | cegcc*)
11573 # MinGW DLLs use traditional 'lib' prefix
11574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11576 pw32*)
11577 # pw32 DLLs use 'pw' prefix rather than 'lib'
11578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11580 esac
11581 dynamic_linker='Win32 ld.exe'
11584 *,cl*)
11585 # Native MSVC
11586 libname_spec='$name'
11587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11588 library_names_spec='${libname}.dll.lib'
11590 case $build_os in
11591 mingw*)
11592 sys_lib_search_path_spec=
11593 lt_save_ifs=$IFS
11594 IFS=';'
11595 for lt_path in $LIB
11597 IFS=$lt_save_ifs
11598 # Let DOS variable expansion print the short 8.3 style file name.
11599 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11600 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11601 done
11602 IFS=$lt_save_ifs
11603 # Convert to MSYS style.
11604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11606 cygwin*)
11607 # Convert to unix form, then to dos form, then back to unix form
11608 # but this time dos style (no spaces!) so that the unix form looks
11609 # like /cygdrive/c/PROGRA~1:/cygdr...
11610 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11611 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11612 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11615 sys_lib_search_path_spec="$LIB"
11616 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11617 # It is most probably a Windows format PATH.
11618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11619 else
11620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11622 # FIXME: find the short name or the path components, as spaces are
11623 # common. (e.g. "Program Files" -> "PROGRA~1")
11625 esac
11627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11628 postinstall_cmds='base_file=`basename \${file}`~
11629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11630 dldir=$destdir/`dirname \$dlpath`~
11631 test -d \$dldir || mkdir -p \$dldir~
11632 $install_prog $dir/$dlname \$dldir/$dlname'
11633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11634 dlpath=$dir/\$dldll~
11635 $RM \$dlpath'
11636 shlibpath_overrides_runpath=yes
11637 dynamic_linker='Win32 link.exe'
11641 # Assume MSVC wrapper
11642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11643 dynamic_linker='Win32 ld.exe'
11645 esac
11646 # FIXME: first we should search . and the directory the executable is in
11647 shlibpath_var=PATH
11650 darwin* | rhapsody*)
11651 dynamic_linker="$host_os dyld"
11652 version_type=darwin
11653 need_lib_prefix=no
11654 need_version=no
11655 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11656 soname_spec='${libname}${release}${major}$shared_ext'
11657 shlibpath_overrides_runpath=yes
11658 shlibpath_var=DYLD_LIBRARY_PATH
11659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11661 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11665 dgux*)
11666 version_type=linux # correct to gnu/linux during the next big refactor
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11674 freebsd* | dragonfly*)
11675 # DragonFly does not have aout. When/if they implement a new
11676 # versioning mechanism, adjust this.
11677 if test -x /usr/bin/objformat; then
11678 objformat=`/usr/bin/objformat`
11679 else
11680 case $host_os in
11681 freebsd[23].*) objformat=aout ;;
11682 *) objformat=elf ;;
11683 esac
11685 version_type=freebsd-$objformat
11686 case $version_type in
11687 freebsd-elf*)
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11689 need_version=no
11690 need_lib_prefix=no
11692 freebsd-*)
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11694 need_version=yes
11696 esac
11697 shlibpath_var=LD_LIBRARY_PATH
11698 case $host_os in
11699 freebsd2.*)
11700 shlibpath_overrides_runpath=yes
11702 freebsd3.[01]* | freebsdelf3.[01]*)
11703 shlibpath_overrides_runpath=yes
11704 hardcode_into_libs=yes
11706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11708 shlibpath_overrides_runpath=no
11709 hardcode_into_libs=yes
11711 *) # from 4.6 on, and DragonFly
11712 shlibpath_overrides_runpath=yes
11713 hardcode_into_libs=yes
11715 esac
11718 gnu*)
11719 version_type=linux # correct to gnu/linux during the next big refactor
11720 need_lib_prefix=no
11721 need_version=no
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
11726 hardcode_into_libs=yes
11729 haiku*)
11730 version_type=linux # correct to gnu/linux during the next big refactor
11731 need_lib_prefix=no
11732 need_version=no
11733 dynamic_linker="$host_os runtime_loader"
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 shlibpath_var=LIBRARY_PATH
11737 shlibpath_overrides_runpath=yes
11738 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11739 hardcode_into_libs=yes
11742 hpux9* | hpux10* | hpux11*)
11743 # Give a soname corresponding to the major version so that dld.sl refuses to
11744 # link against other versions.
11745 version_type=sunos
11746 need_lib_prefix=no
11747 need_version=no
11748 case $host_cpu in
11749 ia64*)
11750 shrext_cmds='.so'
11751 hardcode_into_libs=yes
11752 dynamic_linker="$host_os dld.so"
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 if test "X$HPUX_IA64_MODE" = X32; then
11758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11759 else
11760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11764 hppa*64*)
11765 shrext_cmds='.sl'
11766 hardcode_into_libs=yes
11767 dynamic_linker="$host_os dld.sl"
11768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11776 shrext_cmds='.sl'
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=SHLIB_PATH
11779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11783 esac
11784 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11785 postinstall_cmds='chmod 555 $lib'
11786 # or fails outright, so override atomically:
11787 install_override_mode=555
11790 interix[3-9]*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_lib_prefix=no
11793 need_version=no
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=no
11799 hardcode_into_libs=yes
11802 irix5* | irix6* | nonstopux*)
11803 case $host_os in
11804 nonstopux*) version_type=nonstopux ;;
11806 if test "$lt_cv_prog_gnu_ld" = yes; then
11807 version_type=linux # correct to gnu/linux during the next big refactor
11808 else
11809 version_type=irix
11810 fi ;;
11811 esac
11812 need_lib_prefix=no
11813 need_version=no
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11816 case $host_os in
11817 irix5* | nonstopux*)
11818 libsuff= shlibsuff=
11821 case $LD in # libtool.m4 will add one of these switches to LD
11822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11823 libsuff= shlibsuff= libmagic=32-bit;;
11824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11825 libsuff=32 shlibsuff=N32 libmagic=N32;;
11826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11828 *) libsuff= shlibsuff= libmagic=never-match;;
11829 esac
11831 esac
11832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11833 shlibpath_overrides_runpath=no
11834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11836 hardcode_into_libs=yes
11839 # No shared lib support for Linux oldld, aout, or coff.
11840 linux*oldld* | linux*aout* | linux*coff*)
11841 dynamic_linker=no
11844 # This must be glibc/ELF.
11845 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11846 version_type=linux # correct to gnu/linux during the next big refactor
11847 need_lib_prefix=no
11848 need_version=no
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 shlibpath_overrides_runpath=no
11855 # Some binutils ld are patched to set DT_RUNPATH
11856 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 lt_cv_shlibpath_overrides_runpath=no
11860 save_LDFLAGS=$LDFLAGS
11861 save_libdir=$libdir
11862 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11863 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11868 main ()
11872 return 0;
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11877 lt_cv_shlibpath_overrides_runpath=yes
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LDFLAGS=$save_LDFLAGS
11883 libdir=$save_libdir
11887 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11889 # This implies no fast_install, which is unacceptable.
11890 # Some rework will be needed to allow for fast_install
11891 # before this can be enabled.
11892 hardcode_into_libs=yes
11894 # Append ld.so.conf contents to the search path
11895 if test -f /etc/ld.so.conf; then
11896 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' ' '`
11897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11900 # We used to test for /lib/ld.so.1 and disable shared libraries on
11901 # powerpc, because MkLinux only supported shared libraries with the
11902 # GNU dynamic linker. Since this was broken with cross compilers,
11903 # most powerpc-linux boxes support dynamic linking these days and
11904 # people can always --disable-shared, the test was removed, and we
11905 # assume the GNU/Linux dynamic linker is in use.
11906 dynamic_linker='GNU/Linux ld.so'
11909 netbsd*)
11910 version_type=sunos
11911 need_lib_prefix=no
11912 need_version=no
11913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11916 dynamic_linker='NetBSD (a.out) ld.so'
11917 else
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 dynamic_linker='NetBSD ld.elf_so'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=yes
11924 hardcode_into_libs=yes
11927 newsos6)
11928 version_type=linux # correct to gnu/linux during the next big refactor
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11934 *nto* | *qnx*)
11935 version_type=qnx
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=no
11942 hardcode_into_libs=yes
11943 dynamic_linker='ldqnx.so'
11946 openbsd*)
11947 version_type=sunos
11948 sys_lib_dlsearch_path_spec="/usr/lib"
11949 need_lib_prefix=no
11950 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11951 case $host_os in
11952 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11953 *) need_version=no ;;
11954 esac
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11959 case $host_os in
11960 openbsd2.[89] | openbsd2.[89].*)
11961 shlibpath_overrides_runpath=no
11964 shlibpath_overrides_runpath=yes
11966 esac
11967 else
11968 shlibpath_overrides_runpath=yes
11972 os2*)
11973 libname_spec='$name'
11974 shrext_cmds=".dll"
11975 need_lib_prefix=no
11976 library_names_spec='$libname${shared_ext} $libname.a'
11977 dynamic_linker='OS/2 ld.exe'
11978 shlibpath_var=LIBPATH
11981 osf3* | osf4* | osf5*)
11982 version_type=osf
11983 need_lib_prefix=no
11984 need_version=no
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11989 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11992 rdos*)
11993 dynamic_linker=no
11996 solaris*)
11997 version_type=linux # correct to gnu/linux during the next big refactor
11998 need_lib_prefix=no
11999 need_version=no
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001 soname_spec='${libname}${release}${shared_ext}$major'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12005 # ldd complains unless libraries are executable
12006 postinstall_cmds='chmod +x $lib'
12009 sunos4*)
12010 version_type=sunos
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12013 shlibpath_var=LD_LIBRARY_PATH
12014 shlibpath_overrides_runpath=yes
12015 if test "$with_gnu_ld" = yes; then
12016 need_lib_prefix=no
12018 need_version=yes
12021 sysv4 | sysv4.3*)
12022 version_type=linux # correct to gnu/linux during the next big refactor
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 case $host_vendor in
12027 sni)
12028 shlibpath_overrides_runpath=no
12029 need_lib_prefix=no
12030 runpath_var=LD_RUN_PATH
12032 siemens)
12033 need_lib_prefix=no
12035 motorola)
12036 need_lib_prefix=no
12037 need_version=no
12038 shlibpath_overrides_runpath=no
12039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12041 esac
12044 sysv4*MP*)
12045 if test -d /usr/nec ;then
12046 version_type=linux # correct to gnu/linux during the next big refactor
12047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12048 soname_spec='$libname${shared_ext}.$major'
12049 shlibpath_var=LD_LIBRARY_PATH
12053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12054 version_type=freebsd-elf
12055 need_lib_prefix=no
12056 need_version=no
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 shlibpath_var=LD_LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12061 hardcode_into_libs=yes
12062 if test "$with_gnu_ld" = yes; then
12063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12064 else
12065 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12066 case $host_os in
12067 sco3.2v5*)
12068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12070 esac
12072 sys_lib_dlsearch_path_spec='/usr/lib'
12075 tpf*)
12076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 need_lib_prefix=no
12079 need_version=no
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 shlibpath_overrides_runpath=no
12083 hardcode_into_libs=yes
12086 uts4*)
12087 version_type=linux # correct to gnu/linux during the next big refactor
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12094 dynamic_linker=no
12096 esac
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12098 $as_echo "$dynamic_linker" >&6; }
12099 test "$dynamic_linker" = no && can_build_shared=no
12101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12102 if test "$GCC" = yes; then
12103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12106 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12107 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12109 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12110 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12205 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12206 hardcode_action=
12207 if test -n "$hardcode_libdir_flag_spec" ||
12208 test -n "$runpath_var" ||
12209 test "X$hardcode_automatic" = "Xyes" ; then
12211 # We can hardcode non-existent directories.
12212 if test "$hardcode_direct" != no &&
12213 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12214 # have to relink, otherwise we might link with an installed library
12215 # when we should be linking with a yet-to-be-installed one
12216 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12217 test "$hardcode_minus_L" != no; then
12218 # Linking always hardcodes the temporary library directory.
12219 hardcode_action=relink
12220 else
12221 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12222 hardcode_action=immediate
12224 else
12225 # We cannot hardcode anything, or else we can only hardcode existing
12226 # directories.
12227 hardcode_action=unsupported
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12230 $as_echo "$hardcode_action" >&6; }
12232 if test "$hardcode_action" = relink ||
12233 test "$inherit_rpath" = yes; then
12234 # Fast installation is not supported
12235 enable_fast_install=no
12236 elif test "$shlibpath_overrides_runpath" = yes ||
12237 test "$enable_shared" = no; then
12238 # Fast installation is not necessary
12239 enable_fast_install=needless
12247 if test "x$enable_dlopen" != xyes; then
12248 enable_dlopen=unknown
12249 enable_dlopen_self=unknown
12250 enable_dlopen_self_static=unknown
12251 else
12252 lt_cv_dlopen=no
12253 lt_cv_dlopen_libs=
12255 case $host_os in
12256 beos*)
12257 lt_cv_dlopen="load_add_on"
12258 lt_cv_dlopen_libs=
12259 lt_cv_dlopen_self=yes
12262 mingw* | pw32* | cegcc*)
12263 lt_cv_dlopen="LoadLibrary"
12264 lt_cv_dlopen_libs=
12267 cygwin*)
12268 lt_cv_dlopen="dlopen"
12269 lt_cv_dlopen_libs=
12272 darwin*)
12273 # if libdl is installed we need to link against it
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12276 if ${ac_cv_lib_dl_dlopen+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 ac_check_lib_save_LIBS=$LIBS
12280 LIBS="-ldl $LIBS"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char dlopen ();
12292 main ()
12294 return dlopen ();
12296 return 0;
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_dl_dlopen=yes
12301 else
12302 ac_cv_lib_dl_dlopen=no
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12309 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12310 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12312 else
12314 lt_cv_dlopen="dyld"
12315 lt_cv_dlopen_libs=
12316 lt_cv_dlopen_self=yes
12323 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12324 if test "x$ac_cv_func_shl_load" = xyes; then :
12325 lt_cv_dlopen="shl_load"
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12328 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12329 if ${ac_cv_lib_dld_shl_load+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-ldld $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char shl_load ();
12345 main ()
12347 return shl_load ();
12349 return 0;
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ac_cv_lib_dld_shl_load=yes
12354 else
12355 ac_cv_lib_dld_shl_load=no
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12362 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12363 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12364 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12365 else
12366 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12367 if test "x$ac_cv_func_dlopen" = xyes; then :
12368 lt_cv_dlopen="dlopen"
12369 else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12371 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12372 if ${ac_cv_lib_dl_dlopen+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-ldl $LIBS"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12380 /* Override any GCC internal prototype to avoid an error.
12381 Use char because int might match the return type of a GCC
12382 builtin and then its argument prototype would still apply. */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 char dlopen ();
12388 main ()
12390 return dlopen ();
12392 return 0;
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"; then :
12396 ac_cv_lib_dl_dlopen=yes
12397 else
12398 ac_cv_lib_dl_dlopen=no
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12405 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12406 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12408 else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12411 if ${ac_cv_lib_svld_dlopen+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lsvld $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char dlopen ();
12427 main ()
12429 return dlopen ();
12431 return 0;
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_svld_dlopen=yes
12436 else
12437 ac_cv_lib_svld_dlopen=no
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12449 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12450 if ${ac_cv_lib_dld_dld_link+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 ac_check_lib_save_LIBS=$LIBS
12454 LIBS="-ldld $LIBS"
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char dld_link ();
12466 main ()
12468 return dld_link ();
12470 return 0;
12472 _ACEOF
12473 if ac_fn_c_try_link "$LINENO"; then :
12474 ac_cv_lib_dld_dld_link=yes
12475 else
12476 ac_cv_lib_dld_dld_link=no
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_lib_save_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12483 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12484 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12485 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12504 esac
12506 if test "x$lt_cv_dlopen" != xno; then
12507 enable_dlopen=yes
12508 else
12509 enable_dlopen=no
12512 case $lt_cv_dlopen in
12513 dlopen)
12514 save_CPPFLAGS="$CPPFLAGS"
12515 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12517 save_LDFLAGS="$LDFLAGS"
12518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12520 save_LIBS="$LIBS"
12521 LIBS="$lt_cv_dlopen_libs $LIBS"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12524 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12525 if ${lt_cv_dlopen_self+:} false; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12528 if test "$cross_compiling" = yes; then :
12529 lt_cv_dlopen_self=cross
12530 else
12531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532 lt_status=$lt_dlunknown
12533 cat > conftest.$ac_ext <<_LT_EOF
12534 #line $LINENO "configure"
12535 #include "confdefs.h"
12537 #if HAVE_DLFCN_H
12538 #include <dlfcn.h>
12539 #endif
12541 #include <stdio.h>
12543 #ifdef RTLD_GLOBAL
12544 # define LT_DLGLOBAL RTLD_GLOBAL
12545 #else
12546 # ifdef DL_GLOBAL
12547 # define LT_DLGLOBAL DL_GLOBAL
12548 # else
12549 # define LT_DLGLOBAL 0
12550 # endif
12551 #endif
12553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554 find out it does not work in some platform. */
12555 #ifndef LT_DLLAZY_OR_NOW
12556 # ifdef RTLD_LAZY
12557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12558 # else
12559 # ifdef DL_LAZY
12560 # define LT_DLLAZY_OR_NOW DL_LAZY
12561 # else
12562 # ifdef RTLD_NOW
12563 # define LT_DLLAZY_OR_NOW RTLD_NOW
12564 # else
12565 # ifdef DL_NOW
12566 # define LT_DLLAZY_OR_NOW DL_NOW
12567 # else
12568 # define LT_DLLAZY_OR_NOW 0
12569 # endif
12570 # endif
12571 # endif
12572 # endif
12573 #endif
12575 /* When -fvisbility=hidden is used, assume the code has been annotated
12576 correspondingly for the symbols needed. */
12577 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12578 int fnord () __attribute__((visibility("default")));
12579 #endif
12581 int fnord () { return 42; }
12582 int main ()
12584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585 int status = $lt_dlunknown;
12587 if (self)
12589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12590 else
12592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12593 else puts (dlerror ());
12595 /* dlclose (self); */
12597 else
12598 puts (dlerror ());
12600 return status;
12602 _LT_EOF
12603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12604 (eval $ac_link) 2>&5
12605 ac_status=$?
12606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12608 (./conftest; exit; ) >&5 2>/dev/null
12609 lt_status=$?
12610 case x$lt_status in
12611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12614 esac
12615 else :
12616 # compilation failed
12617 lt_cv_dlopen_self=no
12620 rm -fr conftest*
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12625 $as_echo "$lt_cv_dlopen_self" >&6; }
12627 if test "x$lt_cv_dlopen_self" = xyes; then
12628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12631 if ${lt_cv_dlopen_self_static+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 if test "$cross_compiling" = yes; then :
12635 lt_cv_dlopen_self_static=cross
12636 else
12637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12638 lt_status=$lt_dlunknown
12639 cat > conftest.$ac_ext <<_LT_EOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12643 #if HAVE_DLFCN_H
12644 #include <dlfcn.h>
12645 #endif
12647 #include <stdio.h>
12649 #ifdef RTLD_GLOBAL
12650 # define LT_DLGLOBAL RTLD_GLOBAL
12651 #else
12652 # ifdef DL_GLOBAL
12653 # define LT_DLGLOBAL DL_GLOBAL
12654 # else
12655 # define LT_DLGLOBAL 0
12656 # endif
12657 #endif
12659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12660 find out it does not work in some platform. */
12661 #ifndef LT_DLLAZY_OR_NOW
12662 # ifdef RTLD_LAZY
12663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12664 # else
12665 # ifdef DL_LAZY
12666 # define LT_DLLAZY_OR_NOW DL_LAZY
12667 # else
12668 # ifdef RTLD_NOW
12669 # define LT_DLLAZY_OR_NOW RTLD_NOW
12670 # else
12671 # ifdef DL_NOW
12672 # define LT_DLLAZY_OR_NOW DL_NOW
12673 # else
12674 # define LT_DLLAZY_OR_NOW 0
12675 # endif
12676 # endif
12677 # endif
12678 # endif
12679 #endif
12681 /* When -fvisbility=hidden is used, assume the code has been annotated
12682 correspondingly for the symbols needed. */
12683 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12684 int fnord () __attribute__((visibility("default")));
12685 #endif
12687 int fnord () { return 42; }
12688 int main ()
12690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12691 int status = $lt_dlunknown;
12693 if (self)
12695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12696 else
12698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12699 else puts (dlerror ());
12701 /* dlclose (self); */
12703 else
12704 puts (dlerror ());
12706 return status;
12708 _LT_EOF
12709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12710 (eval $ac_link) 2>&5
12711 ac_status=$?
12712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12714 (./conftest; exit; ) >&5 2>/dev/null
12715 lt_status=$?
12716 case x$lt_status in
12717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12719 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12720 esac
12721 else :
12722 # compilation failed
12723 lt_cv_dlopen_self_static=no
12726 rm -fr conftest*
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12734 CPPFLAGS="$save_CPPFLAGS"
12735 LDFLAGS="$save_LDFLAGS"
12736 LIBS="$save_LIBS"
12738 esac
12740 case $lt_cv_dlopen_self in
12741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12742 *) enable_dlopen_self=unknown ;;
12743 esac
12745 case $lt_cv_dlopen_self_static in
12746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12747 *) enable_dlopen_self_static=unknown ;;
12748 esac
12767 striplib=
12768 old_striplib=
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12770 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12771 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12775 $as_echo "yes" >&6; }
12776 else
12777 # FIXME - insert some real tests, host_os isn't really good enough
12778 case $host_os in
12779 darwin*)
12780 if test -n "$STRIP" ; then
12781 striplib="$STRIP -x"
12782 old_striplib="$STRIP -S"
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 $as_echo "yes" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12794 esac
12808 # Report which library types will actually be built
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12810 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12812 $as_echo "$can_build_shared" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12815 $as_echo_n "checking whether to build shared libraries... " >&6; }
12816 test "$can_build_shared" = "no" && enable_shared=no
12818 # On AIX, shared libraries and static libraries use the same namespace, and
12819 # are all built from PIC.
12820 case $host_os in
12821 aix3*)
12822 test "$enable_shared" = yes && enable_static=no
12823 if test -n "$RANLIB"; then
12824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12825 postinstall_cmds='$RANLIB $lib'
12829 aix[4-9]*)
12830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12831 test "$enable_shared" = yes && enable_static=no
12834 esac
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12836 $as_echo "$enable_shared" >&6; }
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12839 $as_echo_n "checking whether to build static libraries... " >&6; }
12840 # Make sure either enable_shared or enable_static is yes.
12841 test "$enable_shared" = yes || enable_static=yes
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12843 $as_echo "$enable_static" >&6; }
12849 ac_ext=c
12850 ac_cpp='$CPP $CPPFLAGS'
12851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855 CC="$lt_save_CC"
12871 ac_config_commands="$ac_config_commands libtool"
12876 # Only expand once:
12880 # Select memory manager depending on user input.
12881 # If no "-enable-maxmem", use jmemnobs
12882 MEMORYMGR='jmemnobs'
12883 MAXMEM="no"
12884 # Check whether --enable-maxmem was given.
12885 if test "${enable_maxmem+set}" = set; then :
12886 enableval=$enable_maxmem; MAXMEM="$enableval"
12889 if test "x$MAXMEM" = xyes; then
12890 MAXMEM=1
12892 if test "x$MAXMEM" != xno; then
12893 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
12894 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
12896 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
12898 cat >>confdefs.h <<_ACEOF
12899 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
12900 _ACEOF
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
12903 $as_echo_n "checking for 'tmpfile()'... " >&6; }
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906 #include <stdio.h>
12908 main ()
12910 FILE * tfile = tmpfile();
12912 return 0;
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 $as_echo "yes" >&6; }
12918 MEMORYMGR='jmemansi'
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922 MEMORYMGR='jmemname'
12924 # Test for the need to remove temporary files using a signal handler
12925 # (for cjpeg/djpeg)
12927 $as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
12930 $as_echo_n "checking for 'mktemp()'... " >&6; }
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12935 main ()
12937 char fname[80]; mktemp(fname);
12939 return 0;
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944 $as_echo "yes" >&6; }
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12949 $as_echo "#define NO_MKTEMP 1" >>confdefs.h
12952 rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12960 # Extract the library version IDs from jpeglib.h.
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
12962 $as_echo_n "checking libjpeg version number... " >&6; }
12963 major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
12964 minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
12965 JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
12968 $as_echo "$JPEG_LIB_VERSION" >&6; }
12970 ac_config_files="$ac_config_files Makefile"
12972 cat >confcache <<\_ACEOF
12973 # This file is a shell script that caches the results of configure
12974 # tests run on this system so they can be shared between configure
12975 # scripts and configure runs, see configure's option --config-cache.
12976 # It is not useful on other systems. If it contains results you don't
12977 # want to keep, you may remove or edit it.
12979 # config.status only pays attention to the cache file if you give it
12980 # the --recheck option to rerun configure.
12982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12984 # following values.
12986 _ACEOF
12988 # The following way of writing the cache mishandles newlines in values,
12989 # but we know of no workaround that is simple, portable, and efficient.
12990 # So, we kill variables containing newlines.
12991 # Ultrix sh set writes to stderr and can't be redirected directly,
12992 # and sets the high bit in the cache file unless we assign to the vars.
12994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12995 eval ac_val=\$$ac_var
12996 case $ac_val in #(
12997 *${as_nl}*)
12998 case $ac_var in #(
12999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13001 esac
13002 case $ac_var in #(
13003 _ | IFS | as_nl) ;; #(
13004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13005 *) { eval $ac_var=; unset $ac_var;} ;;
13006 esac ;;
13007 esac
13008 done
13010 (set) 2>&1 |
13011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13012 *${as_nl}ac_space=\ *)
13013 # `set' does not quote correctly, so add quotes: double-quote
13014 # substitution turns \\\\ into \\, and sed turns \\ into \.
13015 sed -n \
13016 "s/'/'\\\\''/g;
13017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13018 ;; #(
13020 # `set' quotes correctly as required by POSIX, so do not add quotes.
13021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13023 esac |
13024 sort
13026 sed '
13027 /^ac_cv_env_/b end
13028 t clear
13029 :clear
13030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13031 t end
13032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13033 :end' >>confcache
13034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13035 if test -w "$cache_file"; then
13036 if test "x$cache_file" != "x/dev/null"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13038 $as_echo "$as_me: updating cache $cache_file" >&6;}
13039 if test ! -f "$cache_file" || test -h "$cache_file"; then
13040 cat confcache >"$cache_file"
13041 else
13042 case $cache_file in #(
13043 */* | ?:*)
13044 mv -f confcache "$cache_file"$$ &&
13045 mv -f "$cache_file"$$ "$cache_file" ;; #(
13047 mv -f confcache "$cache_file" ;;
13048 esac
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13056 rm -f confcache
13058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13059 # Let make expand exec_prefix.
13060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13062 DEFS=-DHAVE_CONFIG_H
13064 ac_libobjs=
13065 ac_ltlibobjs=
13067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13068 # 1. Remove the extension, and $U if already installed.
13069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13072 # will be set to the directory where LIBOBJS objects are built.
13073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13075 done
13076 LIBOBJS=$ac_libobjs
13078 LTLIBOBJS=$ac_ltlibobjs
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13082 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13083 if test -n "$am_sleep_pid"; then
13084 # Hide warnings about reused PIDs.
13085 wait $am_sleep_pid 2>/dev/null
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13088 $as_echo "done" >&6; }
13089 if test -n "$EXEEXT"; then
13090 am__EXEEXT_TRUE=
13091 am__EXEEXT_FALSE='#'
13092 else
13093 am__EXEEXT_TRUE='#'
13094 am__EXEEXT_FALSE=
13097 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13098 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13101 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13102 as_fn_error $? "conditional \"AMDEP\" was never defined.
13103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13105 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13106 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13109 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13110 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13114 : "${CONFIG_STATUS=./config.status}"
13115 ac_write_fail=0
13116 ac_clean_files_save=$ac_clean_files
13117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13119 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13120 as_write_fail=0
13121 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13122 #! $SHELL
13123 # Generated by $as_me.
13124 # Run this file to recreate the current configuration.
13125 # Compiler output produced by configure, useful for debugging
13126 # configure, is in config.log if it exists.
13128 debug=false
13129 ac_cs_recheck=false
13130 ac_cs_silent=false
13132 SHELL=\${CONFIG_SHELL-$SHELL}
13133 export SHELL
13134 _ASEOF
13135 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13136 ## -------------------- ##
13137 ## M4sh Initialization. ##
13138 ## -------------------- ##
13140 # Be more Bourne compatible
13141 DUALCASE=1; export DUALCASE # for MKS sh
13142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13143 emulate sh
13144 NULLCMD=:
13145 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13146 # is contrary to our usage. Disable this feature.
13147 alias -g '${1+"$@"}'='"$@"'
13148 setopt NO_GLOB_SUBST
13149 else
13150 case `(set -o) 2>/dev/null` in #(
13151 *posix*) :
13152 set -o posix ;; #(
13153 *) :
13155 esac
13159 as_nl='
13161 export as_nl
13162 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13163 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13166 # Prefer a ksh shell builtin over an external printf program on Solaris,
13167 # but without wasting forks for bash or zsh.
13168 if test -z "$BASH_VERSION$ZSH_VERSION" \
13169 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13170 as_echo='print -r --'
13171 as_echo_n='print -rn --'
13172 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13173 as_echo='printf %s\n'
13174 as_echo_n='printf %s'
13175 else
13176 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13177 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13178 as_echo_n='/usr/ucb/echo -n'
13179 else
13180 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13181 as_echo_n_body='eval
13182 arg=$1;
13183 case $arg in #(
13184 *"$as_nl"*)
13185 expr "X$arg" : "X\\(.*\\)$as_nl";
13186 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13187 esac;
13188 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13190 export as_echo_n_body
13191 as_echo_n='sh -c $as_echo_n_body as_echo'
13193 export as_echo_body
13194 as_echo='sh -c $as_echo_body as_echo'
13197 # The user is always right.
13198 if test "${PATH_SEPARATOR+set}" != set; then
13199 PATH_SEPARATOR=:
13200 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13201 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13202 PATH_SEPARATOR=';'
13207 # IFS
13208 # We need space, tab and new line, in precisely that order. Quoting is
13209 # there to prevent editors from complaining about space-tab.
13210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13211 # splitting by setting IFS to empty value.)
13212 IFS=" "" $as_nl"
13214 # Find who we are. Look in the path if we contain no directory separator.
13215 as_myself=
13216 case $0 in #((
13217 *[\\/]* ) as_myself=$0 ;;
13218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13224 done
13225 IFS=$as_save_IFS
13228 esac
13229 # We did not find ourselves, most probably we were run as `sh COMMAND'
13230 # in which case we are not to be found in the path.
13231 if test "x$as_myself" = x; then
13232 as_myself=$0
13234 if test ! -f "$as_myself"; then
13235 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13236 exit 1
13239 # Unset variables that we do not need and which cause bugs (e.g. in
13240 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13241 # suppresses any "Segmentation fault" message there. '((' could
13242 # trigger a bug in pdksh 5.2.14.
13243 for as_var in BASH_ENV ENV MAIL MAILPATH
13244 do eval test x\${$as_var+set} = xset \
13245 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13246 done
13247 PS1='$ '
13248 PS2='> '
13249 PS4='+ '
13251 # NLS nuisances.
13252 LC_ALL=C
13253 export LC_ALL
13254 LANGUAGE=C
13255 export LANGUAGE
13257 # CDPATH.
13258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13261 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13262 # ----------------------------------------
13263 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13264 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13265 # script with STATUS, using 1 if that was 0.
13266 as_fn_error ()
13268 as_status=$1; test $as_status -eq 0 && as_status=1
13269 if test "$4"; then
13270 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13271 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13273 $as_echo "$as_me: error: $2" >&2
13274 as_fn_exit $as_status
13275 } # as_fn_error
13278 # as_fn_set_status STATUS
13279 # -----------------------
13280 # Set $? to STATUS, without forking.
13281 as_fn_set_status ()
13283 return $1
13284 } # as_fn_set_status
13286 # as_fn_exit STATUS
13287 # -----------------
13288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13289 as_fn_exit ()
13291 set +e
13292 as_fn_set_status $1
13293 exit $1
13294 } # as_fn_exit
13296 # as_fn_unset VAR
13297 # ---------------
13298 # Portably unset VAR.
13299 as_fn_unset ()
13301 { eval $1=; unset $1;}
13303 as_unset=as_fn_unset
13304 # as_fn_append VAR VALUE
13305 # ----------------------
13306 # Append the text in VALUE to the end of the definition contained in VAR. Take
13307 # advantage of any shell optimizations that allow amortized linear growth over
13308 # repeated appends, instead of the typical quadratic growth present in naive
13309 # implementations.
13310 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13311 eval 'as_fn_append ()
13313 eval $1+=\$2
13315 else
13316 as_fn_append ()
13318 eval $1=\$$1\$2
13320 fi # as_fn_append
13322 # as_fn_arith ARG...
13323 # ------------------
13324 # Perform arithmetic evaluation on the ARGs, and store the result in the
13325 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13326 # must be portable across $(()) and expr.
13327 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13328 eval 'as_fn_arith ()
13330 as_val=$(( $* ))
13332 else
13333 as_fn_arith ()
13335 as_val=`expr "$@" || test $? -eq 1`
13337 fi # as_fn_arith
13340 if expr a : '\(a\)' >/dev/null 2>&1 &&
13341 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13342 as_expr=expr
13343 else
13344 as_expr=false
13347 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13348 as_basename=basename
13349 else
13350 as_basename=false
13353 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13354 as_dirname=dirname
13355 else
13356 as_dirname=false
13359 as_me=`$as_basename -- "$0" ||
13360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13361 X"$0" : 'X\(//\)$' \| \
13362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13363 $as_echo X/"$0" |
13364 sed '/^.*\/\([^/][^/]*\)\/*$/{
13365 s//\1/
13368 /^X\/\(\/\/\)$/{
13369 s//\1/
13372 /^X\/\(\/\).*/{
13373 s//\1/
13376 s/.*/./; q'`
13378 # Avoid depending upon Character Ranges.
13379 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13380 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13381 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13382 as_cr_digits='0123456789'
13383 as_cr_alnum=$as_cr_Letters$as_cr_digits
13385 ECHO_C= ECHO_N= ECHO_T=
13386 case `echo -n x` in #(((((
13387 -n*)
13388 case `echo 'xy\c'` in
13389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13390 xy) ECHO_C='\c';;
13391 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13392 ECHO_T=' ';;
13393 esac;;
13395 ECHO_N='-n';;
13396 esac
13398 rm -f conf$$ conf$$.exe conf$$.file
13399 if test -d conf$$.dir; then
13400 rm -f conf$$.dir/conf$$.file
13401 else
13402 rm -f conf$$.dir
13403 mkdir conf$$.dir 2>/dev/null
13405 if (echo >conf$$.file) 2>/dev/null; then
13406 if ln -s conf$$.file conf$$ 2>/dev/null; then
13407 as_ln_s='ln -s'
13408 # ... but there are two gotchas:
13409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13411 # In both cases, we have to default to `cp -pR'.
13412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13413 as_ln_s='cp -pR'
13414 elif ln conf$$.file conf$$ 2>/dev/null; then
13415 as_ln_s=ln
13416 else
13417 as_ln_s='cp -pR'
13419 else
13420 as_ln_s='cp -pR'
13422 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13423 rmdir conf$$.dir 2>/dev/null
13426 # as_fn_mkdir_p
13427 # -------------
13428 # Create "$as_dir" as a directory, including parents if necessary.
13429 as_fn_mkdir_p ()
13432 case $as_dir in #(
13433 -*) as_dir=./$as_dir;;
13434 esac
13435 test -d "$as_dir" || eval $as_mkdir_p || {
13436 as_dirs=
13437 while :; do
13438 case $as_dir in #(
13439 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13440 *) as_qdir=$as_dir;;
13441 esac
13442 as_dirs="'$as_qdir' $as_dirs"
13443 as_dir=`$as_dirname -- "$as_dir" ||
13444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13445 X"$as_dir" : 'X\(//\)[^/]' \| \
13446 X"$as_dir" : 'X\(//\)$' \| \
13447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13448 $as_echo X"$as_dir" |
13449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13450 s//\1/
13453 /^X\(\/\/\)[^/].*/{
13454 s//\1/
13457 /^X\(\/\/\)$/{
13458 s//\1/
13461 /^X\(\/\).*/{
13462 s//\1/
13465 s/.*/./; q'`
13466 test -d "$as_dir" && break
13467 done
13468 test -z "$as_dirs" || eval "mkdir $as_dirs"
13469 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13472 } # as_fn_mkdir_p
13473 if mkdir -p . 2>/dev/null; then
13474 as_mkdir_p='mkdir -p "$as_dir"'
13475 else
13476 test -d ./-p && rmdir ./-p
13477 as_mkdir_p=false
13481 # as_fn_executable_p FILE
13482 # -----------------------
13483 # Test if FILE is an executable regular file.
13484 as_fn_executable_p ()
13486 test -f "$1" && test -x "$1"
13487 } # as_fn_executable_p
13488 as_test_x='test -x'
13489 as_executable_p=as_fn_executable_p
13491 # Sed expression to map a string onto a valid CPP name.
13492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13494 # Sed expression to map a string onto a valid variable name.
13495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13498 exec 6>&1
13499 ## ----------------------------------- ##
13500 ## Main body of $CONFIG_STATUS script. ##
13501 ## ----------------------------------- ##
13502 _ASEOF
13503 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13506 # Save the log message, to keep $0 and so on meaningful, and to
13507 # report actual input values of CONFIG_FILES etc. instead of their
13508 # values after options handling.
13509 ac_log="
13510 This file was extended by libjpeg $as_me 9.0.0, which was
13511 generated by GNU Autoconf 2.69. Invocation command line was
13513 CONFIG_FILES = $CONFIG_FILES
13514 CONFIG_HEADERS = $CONFIG_HEADERS
13515 CONFIG_LINKS = $CONFIG_LINKS
13516 CONFIG_COMMANDS = $CONFIG_COMMANDS
13517 $ $0 $@
13519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13522 _ACEOF
13524 case $ac_config_files in *"
13525 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13526 esac
13528 case $ac_config_headers in *"
13529 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13530 esac
13533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534 # Files that config.status was made for.
13535 config_files="$ac_config_files"
13536 config_headers="$ac_config_headers"
13537 config_commands="$ac_config_commands"
13539 _ACEOF
13541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13542 ac_cs_usage="\
13543 \`$as_me' instantiates files and other configuration actions
13544 from templates according to the current configuration. Unless the files
13545 and actions are specified as TAGs, all are instantiated by default.
13547 Usage: $0 [OPTION]... [TAG]...
13549 -h, --help print this help, then exit
13550 -V, --version print version number and configuration settings, then exit
13551 --config print configuration, then exit
13552 -q, --quiet, --silent
13553 do not print progress messages
13554 -d, --debug don't remove temporary files
13555 --recheck update $as_me by reconfiguring in the same conditions
13556 --file=FILE[:TEMPLATE]
13557 instantiate the configuration file FILE
13558 --header=FILE[:TEMPLATE]
13559 instantiate the configuration header FILE
13561 Configuration files:
13562 $config_files
13564 Configuration headers:
13565 $config_headers
13567 Configuration commands:
13568 $config_commands
13570 Report bugs to the package provider."
13572 _ACEOF
13573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13574 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13575 ac_cs_version="\\
13576 libjpeg config.status 9.0.0
13577 configured by $0, generated by GNU Autoconf 2.69,
13578 with options \\"\$ac_cs_config\\"
13580 Copyright (C) 2012 Free Software Foundation, Inc.
13581 This config.status script is free software; the Free Software Foundation
13582 gives unlimited permission to copy, distribute and modify it."
13584 ac_pwd='$ac_pwd'
13585 srcdir='$srcdir'
13586 INSTALL='$INSTALL'
13587 MKDIR_P='$MKDIR_P'
13588 AWK='$AWK'
13589 test -n "\$AWK" || AWK=awk
13590 _ACEOF
13592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13593 # The default lists apply if the user does not specify any file.
13594 ac_need_defaults=:
13595 while test $# != 0
13597 case $1 in
13598 --*=?*)
13599 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13601 ac_shift=:
13603 --*=)
13604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13605 ac_optarg=
13606 ac_shift=:
13609 ac_option=$1
13610 ac_optarg=$2
13611 ac_shift=shift
13613 esac
13615 case $ac_option in
13616 # Handling of the options.
13617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13618 ac_cs_recheck=: ;;
13619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13620 $as_echo "$ac_cs_version"; exit ;;
13621 --config | --confi | --conf | --con | --co | --c )
13622 $as_echo "$ac_cs_config"; exit ;;
13623 --debug | --debu | --deb | --de | --d | -d )
13624 debug=: ;;
13625 --file | --fil | --fi | --f )
13626 $ac_shift
13627 case $ac_optarg in
13628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13629 '') as_fn_error $? "missing file argument" ;;
13630 esac
13631 as_fn_append CONFIG_FILES " '$ac_optarg'"
13632 ac_need_defaults=false;;
13633 --header | --heade | --head | --hea )
13634 $ac_shift
13635 case $ac_optarg in
13636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13637 esac
13638 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13639 ac_need_defaults=false;;
13640 --he | --h)
13641 # Conflict between --help and --header
13642 as_fn_error $? "ambiguous option: \`$1'
13643 Try \`$0 --help' for more information.";;
13644 --help | --hel | -h )
13645 $as_echo "$ac_cs_usage"; exit ;;
13646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13648 ac_cs_silent=: ;;
13650 # This is an error.
13651 -*) as_fn_error $? "unrecognized option: \`$1'
13652 Try \`$0 --help' for more information." ;;
13654 *) as_fn_append ac_config_targets " $1"
13655 ac_need_defaults=false ;;
13657 esac
13658 shift
13659 done
13661 ac_configure_extra_args=
13663 if $ac_cs_silent; then
13664 exec 6>/dev/null
13665 ac_configure_extra_args="$ac_configure_extra_args --silent"
13668 _ACEOF
13669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13670 if \$ac_cs_recheck; then
13671 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13672 shift
13673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13674 CONFIG_SHELL='$SHELL'
13675 export CONFIG_SHELL
13676 exec "\$@"
13679 _ACEOF
13680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13681 exec 5>>config.log
13683 echo
13684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13685 ## Running $as_me. ##
13686 _ASBOX
13687 $as_echo "$ac_log"
13688 } >&5
13690 _ACEOF
13691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13693 # INIT-COMMANDS
13695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13698 # The HP-UX ksh and POSIX shell print the target directory to stdout
13699 # if CDPATH is set.
13700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13702 sed_quote_subst='$sed_quote_subst'
13703 double_quote_subst='$double_quote_subst'
13704 delay_variable_subst='$delay_variable_subst'
13705 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13706 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13707 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13708 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13709 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13710 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13711 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13712 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13713 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13714 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13715 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13716 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13717 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13718 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13719 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13720 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13721 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13722 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13723 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13724 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13725 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13726 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13727 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13728 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13729 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13730 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13731 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13732 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13733 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13734 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13735 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13736 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13737 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13738 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13739 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13740 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13741 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13742 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13743 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13744 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13745 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13746 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13747 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13748 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13749 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13750 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13751 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13752 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13753 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13754 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13755 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13756 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13757 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13758 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13759 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13760 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13761 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13762 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"`'
13763 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13764 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13765 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13766 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13767 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13768 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13769 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13770 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13771 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13772 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13773 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13774 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13775 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13776 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13777 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13778 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13779 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13780 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13781 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13782 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13783 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13784 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13785 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13786 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13787 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13788 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13789 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13790 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13791 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13792 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13793 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13794 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13795 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13796 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13797 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13798 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13799 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13800 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13801 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13802 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13803 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13804 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13805 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13806 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13807 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13808 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13809 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13810 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13811 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13812 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13813 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13814 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13815 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13816 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13817 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13818 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13819 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13820 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13821 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13822 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13823 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13824 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13825 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13826 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13827 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13828 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13829 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13830 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13831 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13832 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13833 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13834 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13835 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13837 LTCC='$LTCC'
13838 LTCFLAGS='$LTCFLAGS'
13839 compiler='$compiler_DEFAULT'
13841 # A function that is used when there is no print builtin or printf.
13842 func_fallback_echo ()
13844 eval 'cat <<_LTECHO_EOF
13846 _LTECHO_EOF'
13849 # Quote evaled strings.
13850 for var in AS \
13851 DLLTOOL \
13852 OBJDUMP \
13853 SHELL \
13854 ECHO \
13855 PATH_SEPARATOR \
13856 SED \
13857 GREP \
13858 EGREP \
13859 FGREP \
13860 LD \
13861 NM \
13862 LN_S \
13863 lt_SP2NL \
13864 lt_NL2SP \
13865 reload_flag \
13866 deplibs_check_method \
13867 file_magic_cmd \
13868 file_magic_glob \
13869 want_nocaseglob \
13870 sharedlib_from_linklib_cmd \
13871 AR \
13872 AR_FLAGS \
13873 archiver_list_spec \
13874 STRIP \
13875 RANLIB \
13876 CC \
13877 CFLAGS \
13878 compiler \
13879 lt_cv_sys_global_symbol_pipe \
13880 lt_cv_sys_global_symbol_to_cdecl \
13881 lt_cv_sys_global_symbol_to_c_name_address \
13882 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13883 nm_file_list_spec \
13884 lt_prog_compiler_no_builtin_flag \
13885 lt_prog_compiler_pic \
13886 lt_prog_compiler_wl \
13887 lt_prog_compiler_static \
13888 lt_cv_prog_compiler_c_o \
13889 need_locks \
13890 MANIFEST_TOOL \
13891 DSYMUTIL \
13892 NMEDIT \
13893 LIPO \
13894 OTOOL \
13895 OTOOL64 \
13896 shrext_cmds \
13897 export_dynamic_flag_spec \
13898 whole_archive_flag_spec \
13899 compiler_needs_object \
13900 with_gnu_ld \
13901 allow_undefined_flag \
13902 no_undefined_flag \
13903 hardcode_libdir_flag_spec \
13904 hardcode_libdir_separator \
13905 exclude_expsyms \
13906 include_expsyms \
13907 file_list_spec \
13908 variables_saved_for_relink \
13909 libname_spec \
13910 library_names_spec \
13911 soname_spec \
13912 install_override_mode \
13913 finish_eval \
13914 old_striplib \
13915 striplib; do
13916 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13917 *[\\\\\\\`\\"\\\$]*)
13918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13923 esac
13924 done
13926 # Double-quote double-evaled strings.
13927 for var in reload_cmds \
13928 old_postinstall_cmds \
13929 old_postuninstall_cmds \
13930 old_archive_cmds \
13931 extract_expsyms_cmds \
13932 old_archive_from_new_cmds \
13933 old_archive_from_expsyms_cmds \
13934 archive_cmds \
13935 archive_expsym_cmds \
13936 module_cmds \
13937 module_expsym_cmds \
13938 export_symbols_cmds \
13939 prelink_cmds \
13940 postlink_cmds \
13941 postinstall_cmds \
13942 postuninstall_cmds \
13943 finish_cmds \
13944 sys_lib_search_path_spec \
13945 sys_lib_dlsearch_path_spec; do
13946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13947 *[\\\\\\\`\\"\\\$]*)
13948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13953 esac
13954 done
13956 ac_aux_dir='$ac_aux_dir'
13957 xsi_shell='$xsi_shell'
13958 lt_shell_append='$lt_shell_append'
13960 # See if we are running on zsh, and set the options which allow our
13961 # commands through without removal of \ escapes INIT.
13962 if test -n "\${ZSH_VERSION+set}" ; then
13963 setopt NO_GLOB_SUBST
13967 PACKAGE='$PACKAGE'
13968 VERSION='$VERSION'
13969 TIMESTAMP='$TIMESTAMP'
13970 RM='$RM'
13971 ofile='$ofile'
13976 _ACEOF
13978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13980 # Handling of arguments.
13981 for ac_config_target in $ac_config_targets
13983 case $ac_config_target in
13984 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
13985 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13986 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13989 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13990 esac
13991 done
13994 # If the user did not use the arguments to specify the items to instantiate,
13995 # then the envvar interface is used. Set only those that are not.
13996 # We use the long form for the default assignment because of an extremely
13997 # bizarre bug on SunOS 4.1.3.
13998 if $ac_need_defaults; then
13999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14001 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14004 # Have a temporary directory for convenience. Make it in the build tree
14005 # simply because there is no reason against having it here, and in addition,
14006 # creating and moving files from /tmp can sometimes cause problems.
14007 # Hook for its removal unless debugging.
14008 # Note that there is a small window in which the directory will not be cleaned:
14009 # after its creation but before its name has been assigned to `$tmp'.
14010 $debug ||
14012 tmp= ac_tmp=
14013 trap 'exit_status=$?
14014 : "${ac_tmp:=$tmp}"
14015 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14017 trap 'as_fn_exit 1' 1 2 13 15
14019 # Create a (secure) tmp directory for tmp files.
14022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14023 test -d "$tmp"
14024 } ||
14026 tmp=./conf$$-$RANDOM
14027 (umask 077 && mkdir "$tmp")
14028 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14029 ac_tmp=$tmp
14031 # Set up the scripts for CONFIG_FILES section.
14032 # No need to generate them if there are no CONFIG_FILES.
14033 # This happens for instance with `./config.status config.h'.
14034 if test -n "$CONFIG_FILES"; then
14037 ac_cr=`echo X | tr X '\015'`
14038 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14039 # But we know of no other shell where ac_cr would be empty at this
14040 # point, so we can use a bashism as a fallback.
14041 if test "x$ac_cr" = x; then
14042 eval ac_cr=\$\'\\r\'
14044 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14045 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14046 ac_cs_awk_cr='\\r'
14047 else
14048 ac_cs_awk_cr=$ac_cr
14051 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14052 _ACEOF
14056 echo "cat >conf$$subs.awk <<_ACEOF" &&
14057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14058 echo "_ACEOF"
14059 } >conf$$subs.sh ||
14060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14061 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14062 ac_delim='%!_!# '
14063 for ac_last_try in false false false false false :; do
14064 . ./conf$$subs.sh ||
14065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14068 if test $ac_delim_n = $ac_delim_num; then
14069 break
14070 elif $ac_last_try; then
14071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14072 else
14073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14075 done
14076 rm -f conf$$subs.sh
14078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14079 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14080 _ACEOF
14081 sed -n '
14083 s/^/S["/; s/!.*/"]=/
14086 s/^[^!]*!//
14087 :repl
14088 t repl
14089 s/'"$ac_delim"'$//
14090 t delim
14093 s/\(.\{148\}\)..*/\1/
14094 t more1
14095 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14098 b repl
14099 :more1
14100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14103 s/.\{148\}//
14104 t nl
14105 :delim
14107 s/\(.\{148\}\)..*/\1/
14108 t more2
14109 s/["\\]/\\&/g; s/^/"/; s/$/"/
14112 :more2
14113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14116 s/.\{148\}//
14117 t delim
14118 ' <conf$$subs.awk | sed '
14119 /^[^""]/{
14121 s/\n//
14123 ' >>$CONFIG_STATUS || ac_write_fail=1
14124 rm -f conf$$subs.awk
14125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14126 _ACAWK
14127 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14128 for (key in S) S_is_set[key] = 1
14129 FS = "\a"
14133 line = $ 0
14134 nfields = split(line, field, "@")
14135 substed = 0
14136 len = length(field[1])
14137 for (i = 2; i < nfields; i++) {
14138 key = field[i]
14139 keylen = length(key)
14140 if (S_is_set[key]) {
14141 value = S[key]
14142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14143 len += length(value) + length(field[++i])
14144 substed = 1
14145 } else
14146 len += 1 + keylen
14149 print line
14152 _ACAWK
14153 _ACEOF
14154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14157 else
14159 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14160 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14161 _ACEOF
14163 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14164 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14165 # trailing colons and then remove the whole line if VPATH becomes empty
14166 # (actually we leave an empty line to preserve line numbers).
14167 if test "x$srcdir" = x.; then
14168 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14170 s///
14171 s/^/:/
14172 s/[ ]*$/:/
14173 s/:\$(srcdir):/:/g
14174 s/:\${srcdir}:/:/g
14175 s/:@srcdir@:/:/g
14176 s/^:*//
14177 s/:*$//
14179 s/\(=[ ]*\).*/\1/
14181 s/\n//
14182 s/^[^=]*=[ ]*$//
14186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14187 fi # test -n "$CONFIG_FILES"
14189 # Set up the scripts for CONFIG_HEADERS section.
14190 # No need to generate them if there are no CONFIG_HEADERS.
14191 # This happens for instance with `./config.status Makefile'.
14192 if test -n "$CONFIG_HEADERS"; then
14193 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14194 BEGIN {
14195 _ACEOF
14197 # Transform confdefs.h into an awk script `defines.awk', embedded as
14198 # here-document in config.status, that substitutes the proper values into
14199 # config.h.in to produce config.h.
14201 # Create a delimiter string that does not exist in confdefs.h, to ease
14202 # handling of long lines.
14203 ac_delim='%!_!# '
14204 for ac_last_try in false false :; do
14205 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14206 if test -z "$ac_tt"; then
14207 break
14208 elif $ac_last_try; then
14209 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14210 else
14211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14213 done
14215 # For the awk script, D is an array of macro values keyed by name,
14216 # likewise P contains macro parameters if any. Preserve backslash
14217 # newline sequences.
14219 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14220 sed -n '
14221 s/.\{148\}/&'"$ac_delim"'/g
14222 t rset
14223 :rset
14224 s/^[ ]*#[ ]*define[ ][ ]*/ /
14225 t def
14227 :def
14228 s/\\$//
14229 t bsnl
14230 s/["\\]/\\&/g
14231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14232 D["\1"]=" \3"/p
14233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14235 :bsnl
14236 s/["\\]/\\&/g
14237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14238 D["\1"]=" \3\\\\\\n"\\/p
14239 t cont
14240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14241 t cont
14243 :cont
14245 s/.\{148\}/&'"$ac_delim"'/g
14246 t clear
14247 :clear
14248 s/\\$//
14249 t bsnlc
14250 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14252 :bsnlc
14253 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14254 b cont
14255 ' <confdefs.h | sed '
14256 s/'"$ac_delim"'/"\\\
14257 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14260 for (key in D) D_is_set[key] = 1
14261 FS = "\a"
14263 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14264 line = \$ 0
14265 split(line, arg, " ")
14266 if (arg[1] == "#") {
14267 defundef = arg[2]
14268 mac1 = arg[3]
14269 } else {
14270 defundef = substr(arg[1], 2)
14271 mac1 = arg[2]
14273 split(mac1, mac2, "(") #)
14274 macro = mac2[1]
14275 prefix = substr(line, 1, index(line, defundef) - 1)
14276 if (D_is_set[macro]) {
14277 # Preserve the white space surrounding the "#".
14278 print prefix "define", macro P[macro] D[macro]
14279 next
14280 } else {
14281 # Replace #undef with comments. This is necessary, for example,
14282 # in the case of _POSIX_SOURCE, which is predefined and required
14283 # on some systems where configure will not decide to define it.
14284 if (defundef == "undef") {
14285 print "/*", prefix defundef, macro, "*/"
14286 next
14290 { print }
14291 _ACAWK
14292 _ACEOF
14293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14294 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14295 fi # test -n "$CONFIG_HEADERS"
14298 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14299 shift
14300 for ac_tag
14302 case $ac_tag in
14303 :[FHLC]) ac_mode=$ac_tag; continue;;
14304 esac
14305 case $ac_mode$ac_tag in
14306 :[FHL]*:*);;
14307 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14308 :[FH]-) ac_tag=-:-;;
14309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14310 esac
14311 ac_save_IFS=$IFS
14312 IFS=:
14313 set x $ac_tag
14314 IFS=$ac_save_IFS
14315 shift
14316 ac_file=$1
14317 shift
14319 case $ac_mode in
14320 :L) ac_source=$1;;
14321 :[FH])
14322 ac_file_inputs=
14323 for ac_f
14325 case $ac_f in
14326 -) ac_f="$ac_tmp/stdin";;
14327 *) # Look for the file first in the build tree, then in the source tree
14328 # (if the path is not absolute). The absolute path cannot be DOS-style,
14329 # because $ac_f cannot contain `:'.
14330 test -f "$ac_f" ||
14331 case $ac_f in
14332 [\\/$]*) false;;
14333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14334 esac ||
14335 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14336 esac
14337 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14338 as_fn_append ac_file_inputs " '$ac_f'"
14339 done
14341 # Let's still pretend it is `configure' which instantiates (i.e., don't
14342 # use $as_me), people would be surprised to read:
14343 # /* config.h. Generated by config.status. */
14344 configure_input='Generated from '`
14345 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14346 `' by configure.'
14347 if test x"$ac_file" != x-; then
14348 configure_input="$ac_file. $configure_input"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14350 $as_echo "$as_me: creating $ac_file" >&6;}
14352 # Neutralize special characters interpreted by sed in replacement strings.
14353 case $configure_input in #(
14354 *\&* | *\|* | *\\* )
14355 ac_sed_conf_input=`$as_echo "$configure_input" |
14356 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14357 *) ac_sed_conf_input=$configure_input;;
14358 esac
14360 case $ac_tag in
14361 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14363 esac
14365 esac
14367 ac_dir=`$as_dirname -- "$ac_file" ||
14368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14369 X"$ac_file" : 'X\(//\)[^/]' \| \
14370 X"$ac_file" : 'X\(//\)$' \| \
14371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14372 $as_echo X"$ac_file" |
14373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14374 s//\1/
14377 /^X\(\/\/\)[^/].*/{
14378 s//\1/
14381 /^X\(\/\/\)$/{
14382 s//\1/
14385 /^X\(\/\).*/{
14386 s//\1/
14389 s/.*/./; q'`
14390 as_dir="$ac_dir"; as_fn_mkdir_p
14391 ac_builddir=.
14393 case "$ac_dir" in
14394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14396 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14397 # A ".." for each directory in $ac_dir_suffix.
14398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14399 case $ac_top_builddir_sub in
14400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14402 esac ;;
14403 esac
14404 ac_abs_top_builddir=$ac_pwd
14405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14406 # for backward compatibility:
14407 ac_top_builddir=$ac_top_build_prefix
14409 case $srcdir in
14410 .) # We are building in place.
14411 ac_srcdir=.
14412 ac_top_srcdir=$ac_top_builddir_sub
14413 ac_abs_top_srcdir=$ac_pwd ;;
14414 [\\/]* | ?:[\\/]* ) # Absolute name.
14415 ac_srcdir=$srcdir$ac_dir_suffix;
14416 ac_top_srcdir=$srcdir
14417 ac_abs_top_srcdir=$srcdir ;;
14418 *) # Relative name.
14419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14420 ac_top_srcdir=$ac_top_build_prefix$srcdir
14421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14422 esac
14423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14426 case $ac_mode in
14429 # CONFIG_FILE
14432 case $INSTALL in
14433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14434 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14435 esac
14436 ac_MKDIR_P=$MKDIR_P
14437 case $MKDIR_P in
14438 [\\/$]* | ?:[\\/]* ) ;;
14439 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14440 esac
14441 _ACEOF
14443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14444 # If the template does not know about datarootdir, expand it.
14445 # FIXME: This hack should be removed a few years after 2.60.
14446 ac_datarootdir_hack=; ac_datarootdir_seen=
14447 ac_sed_dataroot='
14448 /datarootdir/ {
14452 /@datadir@/p
14453 /@docdir@/p
14454 /@infodir@/p
14455 /@localedir@/p
14456 /@mandir@/p'
14457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14458 *datarootdir*) ac_datarootdir_seen=yes;;
14459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14462 _ACEOF
14463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14464 ac_datarootdir_hack='
14465 s&@datadir@&$datadir&g
14466 s&@docdir@&$docdir&g
14467 s&@infodir@&$infodir&g
14468 s&@localedir@&$localedir&g
14469 s&@mandir@&$mandir&g
14470 s&\\\${datarootdir}&$datarootdir&g' ;;
14471 esac
14472 _ACEOF
14474 # Neutralize VPATH when `$srcdir' = `.'.
14475 # Shell code in configure.ac might set extrasub.
14476 # FIXME: do we really want to maintain this feature?
14477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14478 ac_sed_extra="$ac_vpsub
14479 $extrasub
14480 _ACEOF
14481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14484 s|@configure_input@|$ac_sed_conf_input|;t t
14485 s&@top_builddir@&$ac_top_builddir_sub&;t t
14486 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14487 s&@srcdir@&$ac_srcdir&;t t
14488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14489 s&@top_srcdir@&$ac_top_srcdir&;t t
14490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14491 s&@builddir@&$ac_builddir&;t t
14492 s&@abs_builddir@&$ac_abs_builddir&;t t
14493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14494 s&@INSTALL@&$ac_INSTALL&;t t
14495 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14496 $ac_datarootdir_hack
14498 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14499 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14502 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14504 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14506 which seems to be undefined. Please make sure it is defined" >&5
14507 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14508 which seems to be undefined. Please make sure it is defined" >&2;}
14510 rm -f "$ac_tmp/stdin"
14511 case $ac_file in
14512 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14513 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14514 esac \
14515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14519 # CONFIG_HEADER
14521 if test x"$ac_file" != x-; then
14523 $as_echo "/* $configure_input */" \
14524 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14525 } >"$ac_tmp/config.h" \
14526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14527 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14529 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14530 else
14531 rm -f "$ac_file"
14532 mv "$ac_tmp/config.h" "$ac_file" \
14533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14535 else
14536 $as_echo "/* $configure_input */" \
14537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14538 || as_fn_error $? "could not create -" "$LINENO" 5
14540 # Compute "$ac_file"'s index in $config_headers.
14541 _am_arg="$ac_file"
14542 _am_stamp_count=1
14543 for _am_header in $config_headers :; do
14544 case $_am_header in
14545 $_am_arg | $_am_arg:* )
14546 break ;;
14548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14549 esac
14550 done
14551 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14552 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14553 X"$_am_arg" : 'X\(//\)[^/]' \| \
14554 X"$_am_arg" : 'X\(//\)$' \| \
14555 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14556 $as_echo X"$_am_arg" |
14557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14558 s//\1/
14561 /^X\(\/\/\)[^/].*/{
14562 s//\1/
14565 /^X\(\/\/\)$/{
14566 s//\1/
14569 /^X\(\/\).*/{
14570 s//\1/
14573 s/.*/./; q'`/stamp-h$_am_stamp_count
14576 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14577 $as_echo "$as_me: executing $ac_file commands" >&6;}
14579 esac
14582 case $ac_file$ac_mode in
14583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14584 # Older Autoconf quotes --file arguments for eval, but not when files
14585 # are listed without --file. Let's play safe and only enable the eval
14586 # if we detect the quoting.
14587 case $CONFIG_FILES in
14588 *\'*) eval set x "$CONFIG_FILES" ;;
14589 *) set x $CONFIG_FILES ;;
14590 esac
14591 shift
14592 for mf
14594 # Strip MF so we end up with the name of the file.
14595 mf=`echo "$mf" | sed -e 's/:.*$//'`
14596 # Check whether this is an Automake generated Makefile or not.
14597 # We used to match only the files named 'Makefile.in', but
14598 # some people rename them; so instead we look at the file content.
14599 # Grep'ing the first line is not enough: some people post-process
14600 # each Makefile.in and add a new line on top of each file to say so.
14601 # Grep'ing the whole file is not good either: AIX grep has a line
14602 # limit of 2048, but all sed's we know have understand at least 4000.
14603 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14604 dirpart=`$as_dirname -- "$mf" ||
14605 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14606 X"$mf" : 'X\(//\)[^/]' \| \
14607 X"$mf" : 'X\(//\)$' \| \
14608 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14609 $as_echo X"$mf" |
14610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14611 s//\1/
14614 /^X\(\/\/\)[^/].*/{
14615 s//\1/
14618 /^X\(\/\/\)$/{
14619 s//\1/
14622 /^X\(\/\).*/{
14623 s//\1/
14626 s/.*/./; q'`
14627 else
14628 continue
14630 # Extract the definition of DEPDIR, am__include, and am__quote
14631 # from the Makefile without running 'make'.
14632 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14633 test -z "$DEPDIR" && continue
14634 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14635 test -z "am__include" && continue
14636 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14637 # Find all dependency output files, they are included files with
14638 # $(DEPDIR) in their names. We invoke sed twice because it is the
14639 # simplest approach to changing $(DEPDIR) to its actual value in the
14640 # expansion.
14641 for file in `sed -n "
14642 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14643 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14644 # Make sure the directory exists.
14645 test -f "$dirpart/$file" && continue
14646 fdir=`$as_dirname -- "$file" ||
14647 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$file" : 'X\(//\)[^/]' \| \
14649 X"$file" : 'X\(//\)$' \| \
14650 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14651 $as_echo X"$file" |
14652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14653 s//\1/
14656 /^X\(\/\/\)[^/].*/{
14657 s//\1/
14660 /^X\(\/\/\)$/{
14661 s//\1/
14664 /^X\(\/\).*/{
14665 s//\1/
14668 s/.*/./; q'`
14669 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14670 # echo "creating $dirpart/$file"
14671 echo '# dummy' > "$dirpart/$file"
14672 done
14673 done
14676 "libtool":C)
14678 # See if we are running on zsh, and set the options which allow our
14679 # commands through without removal of \ escapes.
14680 if test -n "${ZSH_VERSION+set}" ; then
14681 setopt NO_GLOB_SUBST
14684 cfgfile="${ofile}T"
14685 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14686 $RM "$cfgfile"
14688 cat <<_LT_EOF >> "$cfgfile"
14689 #! $SHELL
14691 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14692 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14696 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14697 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14698 # Foundation, Inc.
14699 # Written by Gordon Matzigkeit, 1996
14701 # This file is part of GNU Libtool.
14703 # GNU Libtool is free software; you can redistribute it and/or
14704 # modify it under the terms of the GNU General Public License as
14705 # published by the Free Software Foundation; either version 2 of
14706 # the License, or (at your option) any later version.
14708 # As a special exception to the GNU General Public License,
14709 # if you distribute this file as part of a program or library that
14710 # is built using GNU Libtool, you may include this file under the
14711 # same distribution terms that you use for the rest of that program.
14713 # GNU Libtool is distributed in the hope that it will be useful,
14714 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14716 # GNU General Public License for more details.
14718 # You should have received a copy of the GNU General Public License
14719 # along with GNU Libtool; see the file COPYING. If not, a copy
14720 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14721 # obtained by writing to the Free Software Foundation, Inc.,
14722 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14725 # The names of the tagged configurations supported by this script.
14726 available_tags=""
14728 # ### BEGIN LIBTOOL CONFIG
14730 # Assembler program.
14731 AS=$lt_AS
14733 # DLL creation program.
14734 DLLTOOL=$lt_DLLTOOL
14736 # Object dumper program.
14737 OBJDUMP=$lt_OBJDUMP
14739 # Which release of libtool.m4 was used?
14740 macro_version=$macro_version
14741 macro_revision=$macro_revision
14743 # Whether or not to build shared libraries.
14744 build_libtool_libs=$enable_shared
14746 # Whether or not to build static libraries.
14747 build_old_libs=$enable_static
14749 # What type of objects to build.
14750 pic_mode=$pic_mode
14752 # Whether or not to optimize for fast installation.
14753 fast_install=$enable_fast_install
14755 # Shell to use when invoking shell scripts.
14756 SHELL=$lt_SHELL
14758 # An echo program that protects backslashes.
14759 ECHO=$lt_ECHO
14761 # The PATH separator for the build system.
14762 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14764 # The host system.
14765 host_alias=$host_alias
14766 host=$host
14767 host_os=$host_os
14769 # The build system.
14770 build_alias=$build_alias
14771 build=$build
14772 build_os=$build_os
14774 # A sed program that does not truncate output.
14775 SED=$lt_SED
14777 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14778 Xsed="\$SED -e 1s/^X//"
14780 # A grep program that handles long lines.
14781 GREP=$lt_GREP
14783 # An ERE matcher.
14784 EGREP=$lt_EGREP
14786 # A literal string matcher.
14787 FGREP=$lt_FGREP
14789 # A BSD- or MS-compatible name lister.
14790 NM=$lt_NM
14792 # Whether we need soft or hard links.
14793 LN_S=$lt_LN_S
14795 # What is the maximum length of a command?
14796 max_cmd_len=$max_cmd_len
14798 # Object file suffix (normally "o").
14799 objext=$ac_objext
14801 # Executable file suffix (normally "").
14802 exeext=$exeext
14804 # whether the shell understands "unset".
14805 lt_unset=$lt_unset
14807 # turn spaces into newlines.
14808 SP2NL=$lt_lt_SP2NL
14810 # turn newlines into spaces.
14811 NL2SP=$lt_lt_NL2SP
14813 # convert \$build file names to \$host format.
14814 to_host_file_cmd=$lt_cv_to_host_file_cmd
14816 # convert \$build files to toolchain format.
14817 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14819 # Method to check whether dependent libraries are shared objects.
14820 deplibs_check_method=$lt_deplibs_check_method
14822 # Command to use when deplibs_check_method = "file_magic".
14823 file_magic_cmd=$lt_file_magic_cmd
14825 # How to find potential files when deplibs_check_method = "file_magic".
14826 file_magic_glob=$lt_file_magic_glob
14828 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14829 want_nocaseglob=$lt_want_nocaseglob
14831 # Command to associate shared and link libraries.
14832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14834 # The archiver.
14835 AR=$lt_AR
14837 # Flags to create an archive.
14838 AR_FLAGS=$lt_AR_FLAGS
14840 # How to feed a file listing to the archiver.
14841 archiver_list_spec=$lt_archiver_list_spec
14843 # A symbol stripping program.
14844 STRIP=$lt_STRIP
14846 # Commands used to install an old-style archive.
14847 RANLIB=$lt_RANLIB
14848 old_postinstall_cmds=$lt_old_postinstall_cmds
14849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14851 # Whether to use a lock for old archive extraction.
14852 lock_old_archive_extraction=$lock_old_archive_extraction
14854 # A C compiler.
14855 LTCC=$lt_CC
14857 # LTCC compiler flags.
14858 LTCFLAGS=$lt_CFLAGS
14860 # Take the output of nm and produce a listing of raw symbols and C names.
14861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14863 # Transform the output of nm in a proper C declaration.
14864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14866 # Transform the output of nm in a C name address pair.
14867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14869 # Transform the output of nm in a C name address pair when lib prefix is needed.
14870 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14872 # Specify filename containing input files for \$NM.
14873 nm_file_list_spec=$lt_nm_file_list_spec
14875 # The root where to search for dependent libraries,and in which our libraries should be installed.
14876 lt_sysroot=$lt_sysroot
14878 # The name of the directory that contains temporary libtool files.
14879 objdir=$objdir
14881 # Used to examine libraries when file_magic_cmd begins with "file".
14882 MAGIC_CMD=$MAGIC_CMD
14884 # Must we lock files when doing compilation?
14885 need_locks=$lt_need_locks
14887 # Manifest tool.
14888 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14890 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14891 DSYMUTIL=$lt_DSYMUTIL
14893 # Tool to change global to local symbols on Mac OS X.
14894 NMEDIT=$lt_NMEDIT
14896 # Tool to manipulate fat objects and archives on Mac OS X.
14897 LIPO=$lt_LIPO
14899 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14900 OTOOL=$lt_OTOOL
14902 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14903 OTOOL64=$lt_OTOOL64
14905 # Old archive suffix (normally "a").
14906 libext=$libext
14908 # Shared library suffix (normally ".so").
14909 shrext_cmds=$lt_shrext_cmds
14911 # The commands to extract the exported symbol list from a shared archive.
14912 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14914 # Variables whose values should be saved in libtool wrapper scripts and
14915 # restored at link time.
14916 variables_saved_for_relink=$lt_variables_saved_for_relink
14918 # Do we need the "lib" prefix for modules?
14919 need_lib_prefix=$need_lib_prefix
14921 # Do we need a version for libraries?
14922 need_version=$need_version
14924 # Library versioning type.
14925 version_type=$version_type
14927 # Shared library runtime path variable.
14928 runpath_var=$runpath_var
14930 # Shared library path variable.
14931 shlibpath_var=$shlibpath_var
14933 # Is shlibpath searched before the hard-coded library search path?
14934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14936 # Format of library name prefix.
14937 libname_spec=$lt_libname_spec
14939 # List of archive names. First name is the real one, the rest are links.
14940 # The last name is the one that the linker finds with -lNAME
14941 library_names_spec=$lt_library_names_spec
14943 # The coded name of the library, if different from the real name.
14944 soname_spec=$lt_soname_spec
14946 # Permission mode override for installation of shared libraries.
14947 install_override_mode=$lt_install_override_mode
14949 # Command to use after installation of a shared archive.
14950 postinstall_cmds=$lt_postinstall_cmds
14952 # Command to use after uninstallation of a shared archive.
14953 postuninstall_cmds=$lt_postuninstall_cmds
14955 # Commands used to finish a libtool library installation in a directory.
14956 finish_cmds=$lt_finish_cmds
14958 # As "finish_cmds", except a single script fragment to be evaled but
14959 # not shown.
14960 finish_eval=$lt_finish_eval
14962 # Whether we should hardcode library paths into libraries.
14963 hardcode_into_libs=$hardcode_into_libs
14965 # Compile-time system search path for libraries.
14966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14968 # Run-time system search path for libraries.
14969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14971 # Whether dlopen is supported.
14972 dlopen_support=$enable_dlopen
14974 # Whether dlopen of programs is supported.
14975 dlopen_self=$enable_dlopen_self
14977 # Whether dlopen of statically linked programs is supported.
14978 dlopen_self_static=$enable_dlopen_self_static
14980 # Commands to strip libraries.
14981 old_striplib=$lt_old_striplib
14982 striplib=$lt_striplib
14985 # The linker used to build libraries.
14986 LD=$lt_LD
14988 # How to create reloadable object files.
14989 reload_flag=$lt_reload_flag
14990 reload_cmds=$lt_reload_cmds
14992 # Commands used to build an old-style archive.
14993 old_archive_cmds=$lt_old_archive_cmds
14995 # A language specific compiler.
14996 CC=$lt_compiler
14998 # Is the compiler the GNU compiler?
14999 with_gcc=$GCC
15001 # Compiler flag to turn off builtin functions.
15002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15004 # Additional compiler flags for building library objects.
15005 pic_flag=$lt_lt_prog_compiler_pic
15007 # How to pass a linker flag through the compiler.
15008 wl=$lt_lt_prog_compiler_wl
15010 # Compiler flag to prevent dynamic linking.
15011 link_static_flag=$lt_lt_prog_compiler_static
15013 # Does compiler simultaneously support -c and -o options?
15014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15016 # Whether or not to add -lc for building shared libraries.
15017 build_libtool_need_lc=$archive_cmds_need_lc
15019 # Whether or not to disallow shared libs when runtime libs are static.
15020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15022 # Compiler flag to allow reflexive dlopens.
15023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15025 # Compiler flag to generate shared objects directly from archives.
15026 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15028 # Whether the compiler copes with passing no objects directly.
15029 compiler_needs_object=$lt_compiler_needs_object
15031 # Create an old-style archive from a shared archive.
15032 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15034 # Create a temporary old-style archive to link instead of a shared archive.
15035 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15037 # Commands used to build a shared archive.
15038 archive_cmds=$lt_archive_cmds
15039 archive_expsym_cmds=$lt_archive_expsym_cmds
15041 # Commands used to build a loadable module if different from building
15042 # a shared archive.
15043 module_cmds=$lt_module_cmds
15044 module_expsym_cmds=$lt_module_expsym_cmds
15046 # Whether we are building with GNU ld or not.
15047 with_gnu_ld=$lt_with_gnu_ld
15049 # Flag that allows shared libraries with undefined symbols to be built.
15050 allow_undefined_flag=$lt_allow_undefined_flag
15052 # Flag that enforces no undefined symbols.
15053 no_undefined_flag=$lt_no_undefined_flag
15055 # Flag to hardcode \$libdir into a binary during linking.
15056 # This must work even if \$libdir does not exist
15057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15059 # Whether we need a single "-rpath" flag with a separated argument.
15060 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15062 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15063 # DIR into the resulting binary.
15064 hardcode_direct=$hardcode_direct
15066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15067 # DIR into the resulting binary and the resulting library dependency is
15068 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15069 # library is relocated.
15070 hardcode_direct_absolute=$hardcode_direct_absolute
15072 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15073 # into the resulting binary.
15074 hardcode_minus_L=$hardcode_minus_L
15076 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15077 # into the resulting binary.
15078 hardcode_shlibpath_var=$hardcode_shlibpath_var
15080 # Set to "yes" if building a shared library automatically hardcodes DIR
15081 # into the library and all subsequent libraries and executables linked
15082 # against it.
15083 hardcode_automatic=$hardcode_automatic
15085 # Set to yes if linker adds runtime paths of dependent libraries
15086 # to runtime path list.
15087 inherit_rpath=$inherit_rpath
15089 # Whether libtool must link a program against all its dependency libraries.
15090 link_all_deplibs=$link_all_deplibs
15092 # Set to "yes" if exported symbols are required.
15093 always_export_symbols=$always_export_symbols
15095 # The commands to list exported symbols.
15096 export_symbols_cmds=$lt_export_symbols_cmds
15098 # Symbols that should not be listed in the preloaded symbols.
15099 exclude_expsyms=$lt_exclude_expsyms
15101 # Symbols that must always be exported.
15102 include_expsyms=$lt_include_expsyms
15104 # Commands necessary for linking programs (against libraries) with templates.
15105 prelink_cmds=$lt_prelink_cmds
15107 # Commands necessary for finishing linking programs.
15108 postlink_cmds=$lt_postlink_cmds
15110 # Specify filename containing input files.
15111 file_list_spec=$lt_file_list_spec
15113 # How to hardcode a shared library path into an executable.
15114 hardcode_action=$hardcode_action
15116 # ### END LIBTOOL CONFIG
15118 _LT_EOF
15120 case $host_os in
15121 aix3*)
15122 cat <<\_LT_EOF >> "$cfgfile"
15123 # AIX sometimes has problems with the GCC collect2 program. For some
15124 # reason, if we set the COLLECT_NAMES environment variable, the problems
15125 # vanish in a puff of smoke.
15126 if test "X${COLLECT_NAMES+set}" != Xset; then
15127 COLLECT_NAMES=
15128 export COLLECT_NAMES
15130 _LT_EOF
15132 esac
15135 ltmain="$ac_aux_dir/ltmain.sh"
15138 # We use sed instead of cat because bash on DJGPP gets confused if
15139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15140 # text mode, it properly converts lines to CR/LF. This bash problem
15141 # is reportedly fixed, but why not run on old versions too?
15142 sed '$q' "$ltmain" >> "$cfgfile" \
15143 || (rm -f "$cfgfile"; exit 1)
15145 if test x"$xsi_shell" = xyes; then
15146 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15147 func_dirname ()\
15149 \ case ${1} in\
15150 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15151 \ * ) func_dirname_result="${3}" ;;\
15152 \ esac\
15153 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15154 && mv -f "$cfgfile.tmp" "$cfgfile" \
15155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15156 test 0 -eq $? || _lt_function_replace_fail=:
15159 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15160 func_basename ()\
15162 \ func_basename_result="${1##*/}"\
15163 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15164 && mv -f "$cfgfile.tmp" "$cfgfile" \
15165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15166 test 0 -eq $? || _lt_function_replace_fail=:
15169 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15170 func_dirname_and_basename ()\
15172 \ case ${1} in\
15173 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15174 \ * ) func_dirname_result="${3}" ;;\
15175 \ esac\
15176 \ func_basename_result="${1##*/}"\
15177 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15178 && mv -f "$cfgfile.tmp" "$cfgfile" \
15179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15180 test 0 -eq $? || _lt_function_replace_fail=:
15183 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15184 func_stripname ()\
15186 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15187 \ # positional parameters, so assign one to ordinary parameter first.\
15188 \ func_stripname_result=${3}\
15189 \ func_stripname_result=${func_stripname_result#"${1}"}\
15190 \ func_stripname_result=${func_stripname_result%"${2}"}\
15191 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15192 && mv -f "$cfgfile.tmp" "$cfgfile" \
15193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15194 test 0 -eq $? || _lt_function_replace_fail=:
15197 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15198 func_split_long_opt ()\
15200 \ func_split_long_opt_name=${1%%=*}\
15201 \ func_split_long_opt_arg=${1#*=}\
15202 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15203 && mv -f "$cfgfile.tmp" "$cfgfile" \
15204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15205 test 0 -eq $? || _lt_function_replace_fail=:
15208 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15209 func_split_short_opt ()\
15211 \ func_split_short_opt_arg=${1#??}\
15212 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15213 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15214 && mv -f "$cfgfile.tmp" "$cfgfile" \
15215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15216 test 0 -eq $? || _lt_function_replace_fail=:
15219 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15220 func_lo2o ()\
15222 \ case ${1} in\
15223 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15224 \ *) func_lo2o_result=${1} ;;\
15225 \ esac\
15226 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15227 && mv -f "$cfgfile.tmp" "$cfgfile" \
15228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15229 test 0 -eq $? || _lt_function_replace_fail=:
15232 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15233 func_xform ()\
15235 func_xform_result=${1%.*}.lo\
15236 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15237 && mv -f "$cfgfile.tmp" "$cfgfile" \
15238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15239 test 0 -eq $? || _lt_function_replace_fail=:
15242 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15243 func_arith ()\
15245 func_arith_result=$(( $* ))\
15246 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15247 && mv -f "$cfgfile.tmp" "$cfgfile" \
15248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15249 test 0 -eq $? || _lt_function_replace_fail=:
15252 sed -e '/^func_len ()$/,/^} # func_len /c\
15253 func_len ()\
15255 func_len_result=${#1}\
15256 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15257 && mv -f "$cfgfile.tmp" "$cfgfile" \
15258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15259 test 0 -eq $? || _lt_function_replace_fail=:
15263 if test x"$lt_shell_append" = xyes; then
15264 sed -e '/^func_append ()$/,/^} # func_append /c\
15265 func_append ()\
15267 eval "${1}+=\\${2}"\
15268 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15269 && mv -f "$cfgfile.tmp" "$cfgfile" \
15270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15271 test 0 -eq $? || _lt_function_replace_fail=:
15274 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15275 func_append_quoted ()\
15277 \ func_quote_for_eval "${2}"\
15278 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15279 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15280 && mv -f "$cfgfile.tmp" "$cfgfile" \
15281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15282 test 0 -eq $? || _lt_function_replace_fail=:
15285 # Save a `func_append' function call where possible by direct use of '+='
15286 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15287 && mv -f "$cfgfile.tmp" "$cfgfile" \
15288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15289 test 0 -eq $? || _lt_function_replace_fail=:
15290 else
15291 # Save a `func_append' function call even when '+=' is not available
15292 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15293 && mv -f "$cfgfile.tmp" "$cfgfile" \
15294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15295 test 0 -eq $? || _lt_function_replace_fail=:
15298 if test x"$_lt_function_replace_fail" = x":"; then
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15300 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15304 mv -f "$cfgfile" "$ofile" ||
15305 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15306 chmod +x "$ofile"
15310 esac
15311 done # for ac_tag
15314 as_fn_exit 0
15315 _ACEOF
15316 ac_clean_files=$ac_clean_files_save
15318 test $ac_write_fail = 0 ||
15319 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15322 # configure is writing to config.log, and then calls config.status.
15323 # config.status does its own redirection, appending to config.log.
15324 # Unfortunately, on DOS this fails, as config.log is still kept open
15325 # by configure, so config.status won't be able to write to it; its
15326 # output is simply discarded. So we exec the FD to /dev/null,
15327 # effectively closing config.log, so it can be properly (re)opened and
15328 # appended to by config.status. When coming back to configure, we
15329 # need to make the FD available again.
15330 if test "$no_create" != yes; then
15331 ac_cs_success=:
15332 ac_config_status_args=
15333 test "$silent" = yes &&
15334 ac_config_status_args="$ac_config_status_args --quiet"
15335 exec 5>/dev/null
15336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15337 exec 5>>config.log
15338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15339 # would make configure fail if this is the last instruction.
15340 $ac_cs_success || as_fn_exit 1
15342 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15344 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}