alsa.audio: limit the supported frequencies to common set
[AROS.git] / workbench / libs / lcms2 / configure
blob425273dbd34ecf991e2e4eb2a83c8bb6ab9ea7b7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for lcms2 2.5.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
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='lcms2'
589 PACKAGE_TARNAME='lcms2'
590 PACKAGE_VERSION='2.5'
591 PACKAGE_STRING='lcms2 2.5'
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 TIFFICC_DEPLIBS
636 JPEGICC_DEPLIBS
637 LCMS_LIB_DEPLIBS
638 LIB_TIFF
639 HasTIFF_FALSE
640 HasTIFF_TRUE
641 LIB_ZLIB
642 HasZLIB_FALSE
643 HasZLIB_TRUE
644 LIB_JPEG
645 HasJPEG_FALSE
646 HasJPEG_TRUE
647 LIB_MATH
648 inline
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 LIBTOOL_DEPS
653 CXXCPP
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
663 LN_S
665 ac_ct_DUMPBIN
666 DUMPBIN
668 FGREP
669 EGREP
670 GREP
672 LIBTOOL
673 OBJDUMP
674 DLLTOOL
676 am__fastdepCXX_FALSE
677 am__fastdepCXX_TRUE
678 CXXDEPMODE
679 ac_ct_CXX
680 CXXFLAGS
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 LIBRARY_AGE
732 LIBRARY_REVISION
733 LIBRARY_CURRENT
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 with_jpeg
776 with_tiff
777 with_zlib
778 enable_dependency_tracking
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 enable_maintainer_mode
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
798 CXXFLAGS
800 CXXCPP'
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
851 ac_prev=
852 ac_dashdash=
853 for ac_option
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
872 ac_dashdash=yes ;;
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
891 --config-cache | -C)
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 esac
1209 done
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1293 /^X\(\/\/\)$/{
1294 s//\1/
1297 /^X\(\/\).*/{
1298 s//\1/
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1306 else
1307 ac_srcdir_defaulted=no
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures lcms2 2.5 to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1396 cat <<\_ACEOF
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of lcms2 2.5:";;
1412 esac
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --without-jpeg disable JPEG support
1433 --without-tiff disable TIFF support
1434 --without-zlib disable ZLIB support
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 CXXCPP C++ preprocessor
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1457 Report bugs to the package provider.
1458 _ACEOF
1459 ac_status=$?
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1519 cat <<\_ACEOF
1520 lcms2 configure 2.5
1521 generated by GNU Autoconf 2.69
1523 Copyright (C) 2012 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1526 _ACEOF
1527 exit
1530 ## ------------------------ ##
1531 ## Autoconf initialization. ##
1532 ## ------------------------ ##
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1565 ac_retval=1
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1570 } # ac_fn_c_try_compile
1572 # ac_fn_c_try_cpp LINENO
1573 # ----------------------
1574 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_cpp ()
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_cpp conftest.$ac_ext"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } > conftest.i && {
1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1602 ac_retval=1
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_c_try_cpp
1609 # ac_fn_cxx_try_compile LINENO
1610 # ----------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_cxx_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_cxx_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_cxx_try_compile
1647 # ac_fn_c_try_link LINENO
1648 # -----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_link ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext conftest$ac_exeext
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest$ac_exeext && {
1673 test "$cross_compiling" = yes ||
1674 test -x conftest$ac_exeext
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=1
1683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685 # interfere with the next link command; also delete a directory that is
1686 # left behind by Apple's compiler. We do this before executing the actions.
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_c_try_link
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=$ac_status
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_run
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1788 #ifdef __STDC__
1789 # include <limits.h>
1790 #else
1791 # include <assert.h>
1792 #endif
1794 #undef $2
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 ();
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1811 main ()
1813 return $2 ();
1815 return 0;
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_func
1833 # ac_fn_cxx_try_cpp LINENO
1834 # ------------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_cpp ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_cxx_try_cpp
1870 # ac_fn_cxx_try_link LINENO
1871 # -------------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_link ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_cxx_try_link
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1920 # accordingly.
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 else
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1944 else
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1960 else
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969 yes:no: )
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 no:yes:* )
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 esac
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992 else
1993 eval "$3=\$ac_header_compiler"
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_header_mongrel
2002 cat >config.log <<_ACEOF
2003 This file contains any messages produced by compilers while
2004 running configure, to aid debugging if configure makes a mistake.
2006 It was created by lcms2 $as_me 2.5, which was
2007 generated by GNU Autoconf 2.69. Invocation command line was
2009 $ $0 $@
2011 _ACEOF
2012 exec 5>>config.log
2014 cat <<_ASUNAME
2015 ## --------- ##
2016 ## Platform. ##
2017 ## --------- ##
2019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2031 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2036 _ASUNAME
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 $as_echo "PATH: $as_dir"
2044 done
2045 IFS=$as_save_IFS
2047 } >&5
2049 cat >&5 <<_ACEOF
2052 ## ----------- ##
2053 ## Core tests. ##
2054 ## ----------- ##
2056 _ACEOF
2059 # Keep a trace of the command line.
2060 # Strip out --no-create and --no-recursion so they do not pile up.
2061 # Strip out --silent because we don't want to record it for future runs.
2062 # Also quote any args containing shell meta-characters.
2063 # Make two passes to allow for proper duplicate-argument suppression.
2064 ac_configure_args=
2065 ac_configure_args0=
2066 ac_configure_args1=
2067 ac_must_keep_next=false
2068 for ac_pass in 1 2
2070 for ac_arg
2072 case $ac_arg in
2073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2075 | -silent | --silent | --silen | --sile | --sil)
2076 continue ;;
2077 *\'*)
2078 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2079 esac
2080 case $ac_pass in
2081 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2083 as_fn_append ac_configure_args1 " '$ac_arg'"
2084 if test $ac_must_keep_next = true; then
2085 ac_must_keep_next=false # Got value, back to normal.
2086 else
2087 case $ac_arg in
2088 *=* | --config-cache | -C | -disable-* | --disable-* \
2089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2091 | -with-* | --with-* | -without-* | --without-* | --x)
2092 case "$ac_configure_args0 " in
2093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2094 esac
2096 -* ) ac_must_keep_next=true ;;
2097 esac
2099 as_fn_append ac_configure_args " '$ac_arg'"
2101 esac
2102 done
2103 done
2104 { ac_configure_args0=; unset ac_configure_args0;}
2105 { ac_configure_args1=; unset ac_configure_args1;}
2107 # When interrupted or exit'd, cleanup temporary files, and complete
2108 # config.log. We remove comments because anyway the quotes in there
2109 # would cause problems or look ugly.
2110 # WARNING: Use '\'' to represent an apostrophe within the trap.
2111 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2112 trap 'exit_status=$?
2113 # Save into config.log some information that might help in debugging.
2115 echo
2117 $as_echo "## ---------------- ##
2118 ## Cache variables. ##
2119 ## ---------------- ##"
2120 echo
2121 # The following way of writing the cache mishandles newlines in values,
2123 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in #(
2126 *${as_nl}*)
2127 case $ac_var in #(
2128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2129 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2130 esac
2131 case $ac_var in #(
2132 _ | IFS | as_nl) ;; #(
2133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2134 *) { eval $ac_var=; unset $ac_var;} ;;
2135 esac ;;
2136 esac
2137 done
2138 (set) 2>&1 |
2139 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2140 *${as_nl}ac_space=\ *)
2141 sed -n \
2142 "s/'\''/'\''\\\\'\'''\''/g;
2143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2144 ;; #(
2146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2148 esac |
2149 sort
2151 echo
2153 $as_echo "## ----------------- ##
2154 ## Output variables. ##
2155 ## ----------------- ##"
2156 echo
2157 for ac_var in $ac_subst_vars
2159 eval ac_val=\$$ac_var
2160 case $ac_val in
2161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162 esac
2163 $as_echo "$ac_var='\''$ac_val'\''"
2164 done | sort
2165 echo
2167 if test -n "$ac_subst_files"; then
2168 $as_echo "## ------------------- ##
2169 ## File substitutions. ##
2170 ## ------------------- ##"
2171 echo
2172 for ac_var in $ac_subst_files
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
2179 done | sort
2180 echo
2183 if test -s confdefs.h; then
2184 $as_echo "## ----------- ##
2185 ## confdefs.h. ##
2186 ## ----------- ##"
2187 echo
2188 cat confdefs.h
2189 echo
2191 test "$ac_signal" != 0 &&
2192 $as_echo "$as_me: caught signal $ac_signal"
2193 $as_echo "$as_me: exit $exit_status"
2194 } >&5
2195 rm -f core *.core core.conftest.* &&
2196 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2197 exit $exit_status
2199 for ac_signal in 1 2 13 15; do
2200 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2201 done
2202 ac_signal=0
2204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2205 rm -f -r conftest* confdefs.h
2207 $as_echo "/* confdefs.h */" > confdefs.h
2209 # Predefined preprocessor variables.
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_NAME "$PACKAGE_NAME"
2213 _ACEOF
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2217 _ACEOF
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2221 _ACEOF
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_STRING "$PACKAGE_STRING"
2225 _ACEOF
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2229 _ACEOF
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_URL "$PACKAGE_URL"
2233 _ACEOF
2236 # Let the site file select an alternate cache file if it wants to.
2237 # Prefer an explicitly selected file to automatically selected ones.
2238 ac_site_file1=NONE
2239 ac_site_file2=NONE
2240 if test -n "$CONFIG_SITE"; then
2241 # We do not want a PATH search for config.site.
2242 case $CONFIG_SITE in #((
2243 -*) ac_site_file1=./$CONFIG_SITE;;
2244 */*) ac_site_file1=$CONFIG_SITE;;
2245 *) ac_site_file1=./$CONFIG_SITE;;
2246 esac
2247 elif test "x$prefix" != xNONE; then
2248 ac_site_file1=$prefix/share/config.site
2249 ac_site_file2=$prefix/etc/config.site
2250 else
2251 ac_site_file1=$ac_default_prefix/share/config.site
2252 ac_site_file2=$ac_default_prefix/etc/config.site
2254 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2256 test "x$ac_site_file" = xNONE && continue
2257 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2259 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2260 sed 's/^/| /' "$ac_site_file" >&5
2261 . "$ac_site_file" \
2262 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 as_fn_error $? "failed to load site script $ac_site_file
2265 See \`config.log' for more details" "$LINENO" 5; }
2267 done
2269 if test -r "$cache_file"; then
2270 # Some versions of bash will fail to source /dev/null (special files
2271 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2272 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2274 $as_echo "$as_me: loading cache $cache_file" >&6;}
2275 case $cache_file in
2276 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2277 *) . "./$cache_file";;
2278 esac
2280 else
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2282 $as_echo "$as_me: creating cache $cache_file" >&6;}
2283 >$cache_file
2286 # Check that the precious variables saved in the cache have kept the same
2287 # value.
2288 ac_cache_corrupted=false
2289 for ac_var in $ac_precious_vars; do
2290 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2291 eval ac_new_set=\$ac_env_${ac_var}_set
2292 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2293 eval ac_new_val=\$ac_env_${ac_var}_value
2294 case $ac_old_set,$ac_new_set in
2295 set,)
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2297 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2298 ac_cache_corrupted=: ;;
2299 ,set)
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2301 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2302 ac_cache_corrupted=: ;;
2303 ,);;
2305 if test "x$ac_old_val" != "x$ac_new_val"; then
2306 # differences in whitespace do not lead to failure.
2307 ac_old_val_w=`echo x $ac_old_val`
2308 ac_new_val_w=`echo x $ac_new_val`
2309 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2311 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2312 ac_cache_corrupted=:
2313 else
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2315 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2316 eval $ac_var=\$ac_old_val
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2319 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2321 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2322 fi;;
2323 esac
2324 # Pass precious variables to config.status.
2325 if test "$ac_new_set" = set; then
2326 case $ac_new_val in
2327 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 *) ac_arg=$ac_var=$ac_new_val ;;
2329 esac
2330 case " $ac_configure_args " in
2331 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2332 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2333 esac
2335 done
2336 if $ac_cache_corrupted; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2340 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2341 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2343 ## -------------------- ##
2344 ## Main body of script. ##
2345 ## -------------------- ##
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 # Libtool library revision control info
2357 # See the libtool documentation under the heading "Libtool's versioning
2358 # system" in order to understand the meaning of these fields
2360 # Here are a set of rules to help you update your library version
2361 # information:
2363 # 1. Start with version information of `0:0:0' for each libtool library.
2364 # 2. Update the version information only immediately before a public
2365 # release of your software. More frequent updates are unnecessary, and
2366 # only guarantee that the current interface number gets larger faster.
2367 # 3. If the library source code has changed at all since the last update,
2368 # then increment revision (`c:r:a' becomes `c:r+1:a').
2369 # 4. If any interfaces have been added, removed, or changed since the last
2370 # update, increment current, and set revision to 0.
2371 # 5. If any interfaces have been added since the last public release, then
2372 # increment age.
2373 # 6. If any interfaces have been removed since the last public release,
2374 # then set age to 0.
2376 LIBRARY_CURRENT=2
2377 LIBRARY_REVISION=5
2378 LIBRARY_AGE=0
2381 # Obtain system type by running config.guess
2382 ac_aux_dir=
2383 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2384 if test -f "$ac_dir/install-sh"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/install-sh -c"
2387 break
2388 elif test -f "$ac_dir/install.sh"; then
2389 ac_aux_dir=$ac_dir
2390 ac_install_sh="$ac_aux_dir/install.sh -c"
2391 break
2392 elif test -f "$ac_dir/shtool"; then
2393 ac_aux_dir=$ac_dir
2394 ac_install_sh="$ac_aux_dir/shtool install -c"
2395 break
2397 done
2398 if test -z "$ac_aux_dir"; then
2399 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2402 # These three variables are undocumented and unsupported,
2403 # and are intended to be withdrawn in a future Autoconf release.
2404 # They can cause serious problems if a builder's source tree is in a directory
2405 # whose full name contains unusual characters.
2406 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2407 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2408 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2411 # Make sure we can run config.sub.
2412 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2413 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2416 $as_echo_n "checking build system type... " >&6; }
2417 if ${ac_cv_build+:} false; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 ac_build_alias=$build_alias
2421 test "x$ac_build_alias" = x &&
2422 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2423 test "x$ac_build_alias" = x &&
2424 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2425 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2430 $as_echo "$ac_cv_build" >&6; }
2431 case $ac_cv_build in
2432 *-*-*) ;;
2433 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2434 esac
2435 build=$ac_cv_build
2436 ac_save_IFS=$IFS; IFS='-'
2437 set x $ac_cv_build
2438 shift
2439 build_cpu=$1
2440 build_vendor=$2
2441 shift; shift
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2444 build_os=$*
2445 IFS=$ac_save_IFS
2446 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2450 $as_echo_n "checking host system type... " >&6; }
2451 if ${ac_cv_host+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test "x$host_alias" = x; then
2455 ac_cv_host=$ac_cv_build
2456 else
2457 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2463 $as_echo "$ac_cv_host" >&6; }
2464 case $ac_cv_host in
2465 *-*-*) ;;
2466 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2467 esac
2468 host=$ac_cv_host
2469 ac_save_IFS=$IFS; IFS='-'
2470 set x $ac_cv_host
2471 shift
2472 host_cpu=$1
2473 host_vendor=$2
2474 shift; shift
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2477 host_os=$*
2478 IFS=$ac_save_IFS
2479 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2483 am__api_version='1.11'
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if ${ac_cv_path_install+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515 /usr/ucb/* ) ;;
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2546 done
2547 done
2549 esac
2551 done
2552 IFS=$as_save_IFS
2554 rm -rf conftest.one conftest.two conftest.dir
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Just in case
2581 sleep 1
2582 echo timestamp > conftest.file
2583 # Reject unsafe characters in $srcdir or the absolute working directory
2584 # name. Accept space and tab only in the latter.
2585 am_lf='
2587 case `pwd` in
2588 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2590 esac
2591 case $srcdir in
2592 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2594 esac
2596 # Do `set' in a subshell so we don't clobber the current shell's
2597 # arguments. Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2600 # directory).
2601 if (
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t "$srcdir/configure" conftest.file`
2607 rm -f conftest.file
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" "$LINENO" 5
2619 test "$2" = conftest.file
2621 then
2622 # Ok.
2624 else
2625 as_fn_error $? "newly created file is older than distributed files!
2626 Check your system clock" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 test "$program_prefix" != NONE &&
2631 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2632 # Use a double $ so make ignores it.
2633 test "$program_suffix" != NONE &&
2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2635 # Double any \ or $.
2636 # By default was `s,x,x', remove it if useless.
2637 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2638 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640 # expand $ac_aux_dir to an absolute path
2641 am_aux_dir=`cd $ac_aux_dir && pwd`
2643 if test x"${MISSING+set}" != xset; then
2644 case $am_aux_dir in
2645 *\ * | *\ *)
2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2649 esac
2651 # Use eval to expand $SHELL
2652 if eval "$MISSING --run true"; then
2653 am_missing_run="$MISSING --run "
2654 else
2655 am_missing_run=
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2657 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2660 if test x"${install_sh}" != xset; then
2661 case $am_aux_dir in
2662 *\ * | *\ *)
2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665 install_sh="\${SHELL} $am_aux_dir/install-sh"
2666 esac
2669 # Installed binaries are usually stripped using `strip' when the user
2670 # run `make install-strip'. However `strip' might not be the right
2671 # tool to use in cross-compilation environments, therefore Automake
2672 # will honor the `STRIP' environment variable to overrule this program.
2673 if test "$cross_compiling" != no; then
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}strip; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_STRIP+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$STRIP"; then
2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 STRIP=$ac_cv_prog_STRIP
2703 if test -n "$STRIP"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2705 $as_echo "$STRIP" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$ac_cv_prog_STRIP"; then
2714 ac_ct_STRIP=$STRIP
2715 # Extract the first word of "strip", so it can be a program name with args.
2716 set dummy strip; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_STRIP"; then
2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_STRIP="strip"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2743 if test -n "$ac_ct_STRIP"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2745 $as_echo "$ac_ct_STRIP" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 if test "x$ac_ct_STRIP" = x; then
2752 STRIP=":"
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 STRIP=$ac_ct_STRIP
2762 else
2763 STRIP="$ac_cv_prog_STRIP"
2767 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2771 if test -z "$MKDIR_P"; then
2772 if ${ac_cv_path_mkdir+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_prog in mkdir gmkdir; do
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2784 'mkdir (GNU coreutils) '* | \
2785 'mkdir (coreutils) '* | \
2786 'mkdir (fileutils) '4.1*)
2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2788 break 3;;
2789 esac
2790 done
2791 done
2792 done
2793 IFS=$as_save_IFS
2797 test -d ./--version && rmdir ./--version
2798 if test "${ac_cv_path_mkdir+set}" = set; then
2799 MKDIR_P="$ac_cv_path_mkdir -p"
2800 else
2801 # As a last resort, use the slow shell script. Don't cache a
2802 # value for MKDIR_P within a source directory, because that will
2803 # break other packages using the cache if that directory is
2804 # removed, or if the value is a relative name.
2805 MKDIR_P="$ac_install_sh -d"
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2809 $as_echo "$MKDIR_P" >&6; }
2811 mkdir_p="$MKDIR_P"
2812 case $mkdir_p in
2813 [\\/$]* | ?:[\\/]*) ;;
2814 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2815 esac
2817 for ac_prog in gawk mawk nawk awk
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_AWK+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$AWK"; then
2827 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_AWK="$ac_prog"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 AWK=$ac_cv_prog_AWK
2847 if test -n "$AWK"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2849 $as_echo "$AWK" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2856 test -n "$AWK" && break
2857 done
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2860 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 set x ${MAKE-make}
2862 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2863 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 cat >conftest.make <<\_ACEOF
2867 SHELL = /bin/sh
2868 all:
2869 @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 _ACEOF
2871 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2872 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 *@@@%%%=?*=@@@%%%*)
2874 eval ac_cv_prog_make_${ac_make}_set=yes;;
2876 eval ac_cv_prog_make_${ac_make}_set=no;;
2877 esac
2878 rm -f conftest.make
2880 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883 SET_MAKE=
2884 else
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 SET_MAKE="MAKE=${MAKE-make}"
2890 rm -rf .tst 2>/dev/null
2891 mkdir .tst 2>/dev/null
2892 if test -d .tst; then
2893 am__leading_dot=.
2894 else
2895 am__leading_dot=_
2897 rmdir .tst 2>/dev/null
2899 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2900 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2901 # is not polluted with repeated "-I."
2902 am__isrc=' -I$(srcdir)'
2903 # test to see if srcdir already configured
2904 if test -f $srcdir/config.status; then
2905 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2909 # test whether we have cygpath
2910 if test -z "$CYGPATH_W"; then
2911 if (cygpath --version) >/dev/null 2>/dev/null; then
2912 CYGPATH_W='cygpath -w'
2913 else
2914 CYGPATH_W=echo
2919 # Define the identity of the package.
2920 PACKAGE='lcms2'
2921 VERSION='2.5'
2924 # Some tools Automake needs.
2926 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2929 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2932 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2935 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2938 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2940 # We need awk for the "check" target. The system "awk" is bad on
2941 # some platforms.
2942 # Always define AMTAR for backward compatibility. Yes, it's still used
2943 # in the wild :-( We should find a proper way to deprecate it ...
2944 AMTAR='$${TAR-tar}'
2946 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2953 # Disable JPEG.
2955 # Check whether --with-jpeg was given.
2956 if test "${with_jpeg+set}" = set; then :
2957 withval=$with_jpeg; with_jpeg=$withval
2958 else
2959 with_jpeg='yes'
2963 # Disable TIFF.
2965 # Check whether --with-tiff was given.
2966 if test "${with_tiff+set}" = set; then :
2967 withval=$with_tiff; with_tiff=$withval
2968 else
2969 with_tiff='yes'
2973 # Disable ZLIB
2975 # Check whether --with-zlib was given.
2976 if test "${with_zlib+set}" = set; then :
2977 withval=$with_zlib; with_zlib=$withval
2978 else
2979 with_zlib='yes'
2983 # Check for programs
2984 DEPDIR="${am__leading_dot}deps"
2986 ac_config_commands="$ac_config_commands depfiles"
2989 am_make=${MAKE-make}
2990 cat > confinc << 'END'
2991 am__doit:
2992 @echo this is the am__doit target
2993 .PHONY: am__doit
2995 # If we don't find an include directive, just comment out the code.
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2997 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2998 am__include="#"
2999 am__quote=
3000 _am_result=none
3001 # First try GNU make style include.
3002 echo "include confinc" > confmf
3003 # Ignore all kinds of additional output from `make'.
3004 case `$am_make -s -f confmf 2> /dev/null` in #(
3005 *the\ am__doit\ target*)
3006 am__include=include
3007 am__quote=
3008 _am_result=GNU
3010 esac
3011 # Now try BSD make style include.
3012 if test "$am__include" = "#"; then
3013 echo '.include "confinc"' > confmf
3014 case `$am_make -s -f confmf 2> /dev/null` in #(
3015 *the\ am__doit\ target*)
3016 am__include=.include
3017 am__quote="\""
3018 _am_result=BSD
3020 esac
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3025 $as_echo "$_am_result" >&6; }
3026 rm -f confinc confmf
3028 # Check whether --enable-dependency-tracking was given.
3029 if test "${enable_dependency_tracking+set}" = set; then :
3030 enableval=$enable_dependency_tracking;
3033 if test "x$enable_dependency_tracking" != xno; then
3034 am_depcomp="$ac_aux_dir/depcomp"
3035 AMDEPBACKSLASH='\'
3036 am__nodep='_no'
3038 if test "x$enable_dependency_tracking" != xno; then
3039 AMDEP_TRUE=
3040 AMDEP_FALSE='#'
3041 else
3042 AMDEP_TRUE='#'
3043 AMDEP_FALSE=
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3076 IFS=$as_save_IFS
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$ac_cv_prog_CC"; then
3092 ac_ct_CC=$CC
3093 # Extract the first word of "gcc", so it can be a program name with args.
3094 set dummy gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_ac_ct_CC="gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3114 done
3115 done
3116 IFS=$as_save_IFS
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 CC=$ac_ct_CC
3140 else
3141 CC="$ac_cv_prog_CC"
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}cc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_CC="${ac_tool_prefix}cc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3167 done
3168 done
3169 IFS=$as_save_IFS
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3185 if test -z "$CC"; then
3186 # Extract the first word of "cc", so it can be a program name with args.
3187 set dummy cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 ac_prog_rejected=no
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205 ac_prog_rejected=yes
3206 continue
3208 ac_cv_prog_CC="cc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3212 done
3213 done
3214 IFS=$as_save_IFS
3216 if test $ac_prog_rejected = yes; then
3217 # We found a bogon in the path, so make sure we never use it.
3218 set dummy $ac_cv_prog_CC
3219 shift
3220 if test $# != 0; then
3221 # We chose a different compiler from the bogus one.
3222 # However, it has the same basename, so the bogon will be chosen
3223 # first if we set CC to just the basename; use the full file name.
3224 shift
3225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 for ac_prog in cl.exe
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3266 done
3267 done
3268 IFS=$as_save_IFS
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$CC" && break
3283 done
3285 if test -z "$CC"; then
3286 ac_ct_CC=$CC
3287 for ac_prog in cl.exe
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290 set dummy $ac_prog; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_CC="$ac_prog"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3312 IFS=$as_save_IFS
3316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317 if test -n "$ac_ct_CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3319 $as_echo "$ac_ct_CC" >&6; }
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3326 test -n "$ac_ct_CC" && break
3327 done
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details" "$LINENO" 5; }
3350 # Provide some information about the compiler.
3351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3352 set X $ac_compile
3353 ac_compiler=$2
3354 for ac_option in --version -v -V -qversion; do
3355 { { ac_try="$ac_compiler $ac_option >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3363 ac_status=$?
3364 if test -s conftest.err; then
3365 sed '10a\
3366 ... rest of stderr output deleted ...
3367 10q' conftest.err >conftest.er1
3368 cat conftest.er1 >&5
3370 rm -f conftest.er1 conftest.err
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 done
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 ac_clean_files_save=$ac_clean_files
3387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3388 # Try to create an executable without -o first, disregard a.out.
3389 # It will help us diagnose broken compilers, and finding out an intuition
3390 # of exeext.
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3392 $as_echo_n "checking whether the C compiler works... " >&6; }
3393 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3395 # The possible output files:
3396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3398 ac_rmfiles=
3399 for ac_file in $ac_files
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3404 esac
3405 done
3406 rm -f $ac_rmfiles
3408 if { { ac_try="$ac_link_default"
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_default") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3421 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3422 # so that the user can short-circuit this test for compilers unknown to
3423 # Autoconf.
3424 for ac_file in $ac_files ''
3426 test -f "$ac_file" || continue
3427 case $ac_file in
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3430 [ab].out )
3431 # We found the default executable, but exeext='' is most
3432 # certainly right.
3433 break;;
3434 *.* )
3435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3436 then :; else
3437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 # We set ac_cv_exeext here because the later test for it is not
3440 # safe: cross compilers may not add the suffix if given an `-o'
3441 # argument, so we may need to know it at that point already.
3442 # Even if this section looks crufty: it has the advantage of
3443 # actually working.
3444 break;;
3446 break;;
3447 esac
3448 done
3449 test "$ac_cv_exeext" = no && ac_cv_exeext=
3451 else
3452 ac_file=''
3454 if test -z "$ac_file"; then :
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error 77 "C compiler cannot create executables
3463 See \`config.log' for more details" "$LINENO" 5; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466 $as_echo "yes" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3469 $as_echo_n "checking for C compiler default output file name... " >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3471 $as_echo "$ac_file" >&6; }
3472 ac_exeext=$ac_cv_exeext
3474 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3475 ac_clean_files=$ac_clean_files_save
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3477 $as_echo_n "checking for suffix of executables... " >&6; }
3478 if { { ac_try="$ac_link"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3490 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3491 # work properly (i.e., refer to `conftest.exe'), while it won't with
3492 # `rm'.
3493 for ac_file in conftest.exe conftest conftest.*; do
3494 test -f "$ac_file" || continue
3495 case $ac_file in
3496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3497 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3498 break;;
3499 * ) break;;
3500 esac
3501 done
3502 else
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3506 See \`config.log' for more details" "$LINENO" 5; }
3508 rm -f conftest conftest$ac_cv_exeext
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3510 $as_echo "$ac_cv_exeext" >&6; }
3512 rm -f conftest.$ac_ext
3513 EXEEXT=$ac_cv_exeext
3514 ac_exeext=$EXEEXT
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <stdio.h>
3519 main ()
3521 FILE *f = fopen ("conftest.out", "w");
3522 return ferror (f) || fclose (f) != 0;
3525 return 0;
3527 _ACEOF
3528 ac_clean_files="$ac_clean_files conftest.out"
3529 # Check that the compiler produces executables we can run. If not, either
3530 # the compiler is broken, or we cross compile.
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3532 $as_echo_n "checking whether we are cross compiling... " >&6; }
3533 if test "$cross_compiling" != yes; then
3534 { { ac_try="$ac_link"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_link") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }
3545 if { ac_try='./conftest$ac_cv_exeext'
3546 { { case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_try") 2>&5
3553 ac_status=$?
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; }; then
3556 cross_compiling=no
3557 else
3558 if test "$cross_compiling" = maybe; then
3559 cross_compiling=yes
3560 else
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "cannot run C compiled programs.
3564 If you meant to cross compile, use \`--host'.
3565 See \`config.log' for more details" "$LINENO" 5; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3570 $as_echo "$cross_compiling" >&6; }
3572 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3575 $as_echo_n "checking for suffix of object files... " >&6; }
3576 if ${ac_cv_objext+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3583 main ()
3587 return 0;
3589 _ACEOF
3590 rm -f conftest.o conftest.obj
3591 if { { ac_try="$ac_compile"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_compile") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 for ac_file in conftest.o conftest.obj conftest.*; do
3603 test -f "$ac_file" || continue;
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3607 break;;
3608 esac
3609 done
3610 else
3611 $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "cannot compute suffix of object files: cannot compile
3617 See \`config.log' for more details" "$LINENO" 5; }
3619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3622 $as_echo "$ac_cv_objext" >&6; }
3623 OBJEXT=$ac_cv_objext
3624 ac_objext=$OBJEXT
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3627 if ${ac_cv_c_compiler_gnu+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3634 main ()
3636 #ifndef __GNUC__
3637 choke me
3638 #endif
3641 return 0;
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_compiler_gnu=yes
3646 else
3647 ac_compiler_gnu=no
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3655 if test $ac_compiler_gnu = yes; then
3656 GCC=yes
3657 else
3658 GCC=
3660 ac_test_CFLAGS=${CFLAGS+set}
3661 ac_save_CFLAGS=$CFLAGS
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3664 if ${ac_cv_prog_cc_g+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 ac_save_c_werror_flag=$ac_c_werror_flag
3668 ac_c_werror_flag=yes
3669 ac_cv_prog_cc_g=no
3670 CFLAGS="-g"
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3679 return 0;
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_g=yes
3684 else
3685 CFLAGS=""
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3699 else
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701 CFLAGS="-g"
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_prog_cc_g=yes
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3724 $as_echo "$ac_cv_prog_cc_g" >&6; }
3725 if test "$ac_test_CFLAGS" = set; then
3726 CFLAGS=$ac_save_CFLAGS
3727 elif test $ac_cv_prog_cc_g = yes; then
3728 if test "$GCC" = yes; then
3729 CFLAGS="-g -O2"
3730 else
3731 CFLAGS="-g"
3733 else
3734 if test "$GCC" = yes; then
3735 CFLAGS="-O2"
3736 else
3737 CFLAGS=
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3742 if ${ac_cv_prog_cc_c89+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 ac_cv_prog_cc_c89=no
3746 ac_save_CC=$CC
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #include <stdarg.h>
3750 #include <stdio.h>
3751 struct stat;
3752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3753 struct buf { int x; };
3754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755 static char *e (p, i)
3756 char **p;
3757 int i;
3759 return p[i];
3761 static char *f (char * (*g) (char **, int), char **p, ...)
3763 char *s;
3764 va_list v;
3765 va_start (v,p);
3766 s = g (p, va_arg (v,int));
3767 va_end (v);
3768 return s;
3771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3772 function prototypes and stuff, but not '\xHH' hex character constants.
3773 These don't provoke an error unfortunately, instead are silently treated
3774 as 'x'. The following induces an error, until -std is added to get
3775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3776 array size at least. It's necessary to write '\x00'==0 to get something
3777 that's true only with -std. */
3778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3781 inside strings and character constants. */
3782 #define FOO(x) 'x'
3783 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3785 int test (int i, double x);
3786 struct s1 {int (*f) (int a);};
3787 struct s2 {int (*f) (double a);};
3788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789 int argc;
3790 char **argv;
3792 main ()
3794 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3796 return 0;
3798 _ACEOF
3799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3800 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802 CC="$ac_save_CC $ac_arg"
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804 ac_cv_prog_cc_c89=$ac_arg
3806 rm -f core conftest.err conftest.$ac_objext
3807 test "x$ac_cv_prog_cc_c89" != "xno" && break
3808 done
3809 rm -f conftest.$ac_ext
3810 CC=$ac_save_CC
3813 # AC_CACHE_VAL
3814 case "x$ac_cv_prog_cc_c89" in
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3817 $as_echo "none needed" >&6; } ;;
3818 xno)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3820 $as_echo "unsupported" >&6; } ;;
3822 CC="$CC $ac_cv_prog_cc_c89"
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3824 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3825 esac
3826 if test "x$ac_cv_prog_cc_c89" != xno; then :
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 depcc="$CC" am_compiler_list=
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3839 $as_echo_n "checking dependency style of $depcc... " >&6; }
3840 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3844 # We make a subdir and do the tests there. Otherwise we can end up
3845 # making bogus files that we don't know about and never remove. For
3846 # instance it was reported that on HP-UX the gcc test will end up
3847 # making a dummy file named `D' -- because `-MD' means `put the output
3848 # in D'.
3849 rm -rf conftest.dir
3850 mkdir conftest.dir
3851 # Copy depcomp to subdir because otherwise we won't find it if we're
3852 # using a relative directory.
3853 cp "$am_depcomp" conftest.dir
3854 cd conftest.dir
3855 # We will build objects and dependencies in a subdirectory because
3856 # it helps to detect inapplicable dependency modes. For instance
3857 # both Tru64's cc and ICC support -MD to output dependencies as a
3858 # side effect of compilation, but ICC will put the dependencies in
3859 # the current directory while Tru64 will put them in the object
3860 # directory.
3861 mkdir sub
3863 am_cv_CC_dependencies_compiler_type=none
3864 if test "$am_compiler_list" = ""; then
3865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867 am__universal=false
3868 case " $depcc " in #(
3869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3870 esac
3872 for depmode in $am_compiler_list; do
3873 # Setup a source with many dependencies, because some compilers
3874 # like to wrap large dependency lists on column 80 (with \), and
3875 # we should not choose a depcomp mode which is confused by this.
3877 # We need to recreate these files for each test, as the compiler may
3878 # overwrite some of them when testing with obscure command lines.
3879 # This happens at least with the AIX C compiler.
3880 : > sub/conftest.c
3881 for i in 1 2 3 4 5 6; do
3882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3884 # Solaris 8's {/usr,}/bin/sh.
3885 touch sub/conftst$i.h
3886 done
3887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3890 # mode. It turns out that the SunPro C++ compiler does not properly
3891 # handle `-M -o', and we need to detect this. Also, some Intel
3892 # versions had trouble with output in subdirs
3893 am__obj=sub/conftest.${OBJEXT-o}
3894 am__minus_obj="-o $am__obj"
3895 case $depmode in
3896 gcc)
3897 # This depmode causes a compiler race in universal mode.
3898 test "$am__universal" = false || continue
3900 nosideeffect)
3901 # after this tag, mechanisms are not by side-effect, so they'll
3902 # only be used when explicitly requested
3903 if test "x$enable_dependency_tracking" = xyes; then
3904 continue
3905 else
3906 break
3909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3910 # This compiler won't grok `-c -o', but also, the minuso test has
3911 # not run yet. These depmodes are late enough in the game, and
3912 # so weak that their functioning should not be impacted.
3913 am__obj=conftest.${OBJEXT-o}
3914 am__minus_obj=
3916 none) break ;;
3917 esac
3918 if depmode=$depmode \
3919 source=sub/conftest.c object=$am__obj \
3920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3922 >/dev/null 2>conftest.err &&
3923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3927 # icc doesn't choke on unknown options, it will just issue warnings
3928 # or remarks (even with -Werror). So we grep stderr for any message
3929 # that says an option was ignored or not supported.
3930 # When given -MP, icc 7.0 and 7.1 complain thusly:
3931 # icc: Command line warning: ignoring option '-M'; no argument required
3932 # The diagnosis changed in icc 8.0:
3933 # icc: Command line remark: option '-MP' not supported
3934 if (grep 'ignoring option' conftest.err ||
3935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3936 am_cv_CC_dependencies_compiler_type=$depmode
3937 break
3940 done
3942 cd ..
3943 rm -rf conftest.dir
3944 else
3945 am_cv_CC_dependencies_compiler_type=none
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3954 test "x$enable_dependency_tracking" != xno \
3955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3956 am__fastdepCC_TRUE=
3957 am__fastdepCC_FALSE='#'
3958 else
3959 am__fastdepCC_TRUE='#'
3960 am__fastdepCC_FALSE=
3964 case $ac_cv_prog_cc_stdc in #(
3965 no) :
3966 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3967 *) :
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3969 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3970 if ${ac_cv_prog_cc_c99+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 ac_cv_prog_cc_c99=no
3974 ac_save_CC=$CC
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <stdarg.h>
3978 #include <stdbool.h>
3979 #include <stdlib.h>
3980 #include <wchar.h>
3981 #include <stdio.h>
3983 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3984 #define debug(...) fprintf (stderr, __VA_ARGS__)
3985 #define showlist(...) puts (#__VA_ARGS__)
3986 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3987 static void
3988 test_varargs_macros (void)
3990 int x = 1234;
3991 int y = 5678;
3992 debug ("Flag");
3993 debug ("X = %d\n", x);
3994 showlist (The first, second, and third items.);
3995 report (x>y, "x is %d but y is %d", x, y);
3998 // Check long long types.
3999 #define BIG64 18446744073709551615ull
4000 #define BIG32 4294967295ul
4001 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4002 #if !BIG_OK
4003 your preprocessor is broken;
4004 #endif
4005 #if BIG_OK
4006 #else
4007 your preprocessor is broken;
4008 #endif
4009 static long long int bignum = -9223372036854775807LL;
4010 static unsigned long long int ubignum = BIG64;
4012 struct incomplete_array
4014 int datasize;
4015 double data[];
4018 struct named_init {
4019 int number;
4020 const wchar_t *name;
4021 double average;
4024 typedef const char *ccp;
4026 static inline int
4027 test_restrict (ccp restrict text)
4029 // See if C++-style comments work.
4030 // Iterate through items via the restricted pointer.
4031 // Also check for declarations in for loops.
4032 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4033 continue;
4034 return 0;
4037 // Check varargs and va_copy.
4038 static void
4039 test_varargs (const char *format, ...)
4041 va_list args;
4042 va_start (args, format);
4043 va_list args_copy;
4044 va_copy (args_copy, args);
4046 const char *str;
4047 int number;
4048 float fnumber;
4050 while (*format)
4052 switch (*format++)
4054 case 's': // string
4055 str = va_arg (args_copy, const char *);
4056 break;
4057 case 'd': // int
4058 number = va_arg (args_copy, int);
4059 break;
4060 case 'f': // float
4061 fnumber = va_arg (args_copy, double);
4062 break;
4063 default:
4064 break;
4067 va_end (args_copy);
4068 va_end (args);
4072 main ()
4075 // Check bool.
4076 _Bool success = false;
4078 // Check restrict.
4079 if (test_restrict ("String literal") == 0)
4080 success = true;
4081 char *restrict newvar = "Another string";
4083 // Check varargs.
4084 test_varargs ("s, d' f .", "string", 65, 34.234);
4085 test_varargs_macros ();
4087 // Check flexible array members.
4088 struct incomplete_array *ia =
4089 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4090 ia->datasize = 10;
4091 for (int i = 0; i < ia->datasize; ++i)
4092 ia->data[i] = i * 1.234;
4094 // Check named initializers.
4095 struct named_init ni = {
4096 .number = 34,
4097 .name = L"Test wide string",
4098 .average = 543.34343,
4101 ni.number = 58;
4103 int dynamic_array[ni.number];
4104 dynamic_array[ni.number - 1] = 543;
4106 // work around unused variable warnings
4107 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4108 || dynamic_array[ni.number - 1] != 543);
4111 return 0;
4113 _ACEOF
4114 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_c99=$ac_arg
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c99" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c99" in
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132 xno)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c99"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4138 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4139 esac
4140 if test "x$ac_cv_prog_cc_c99" != xno; then :
4141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if ${ac_cv_prog_cc_c89+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 ac_cv_prog_cc_c89=no
4149 ac_save_CC=$CC
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <stdarg.h>
4153 #include <stdio.h>
4154 struct stat;
4155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4156 struct buf { int x; };
4157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4158 static char *e (p, i)
4159 char **p;
4160 int i;
4162 return p[i];
4164 static char *f (char * (*g) (char **, int), char **p, ...)
4166 char *s;
4167 va_list v;
4168 va_start (v,p);
4169 s = g (p, va_arg (v,int));
4170 va_end (v);
4171 return s;
4174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4175 function prototypes and stuff, but not '\xHH' hex character constants.
4176 These don't provoke an error unfortunately, instead are silently treated
4177 as 'x'. The following induces an error, until -std is added to get
4178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4179 array size at least. It's necessary to write '\x00'==0 to get something
4180 that's true only with -std. */
4181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4184 inside strings and character constants. */
4185 #define FOO(x) 'x'
4186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4188 int test (int i, double x);
4189 struct s1 {int (*f) (int a);};
4190 struct s2 {int (*f) (double a);};
4191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4192 int argc;
4193 char **argv;
4195 main ()
4197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4199 return 0;
4201 _ACEOF
4202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 CC="$ac_save_CC $ac_arg"
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_cv_prog_cc_c89=$ac_arg
4209 rm -f core conftest.err conftest.$ac_objext
4210 test "x$ac_cv_prog_cc_c89" != "xno" && break
4211 done
4212 rm -f conftest.$ac_ext
4213 CC=$ac_save_CC
4216 # AC_CACHE_VAL
4217 case "x$ac_cv_prog_cc_c89" in
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4220 $as_echo "none needed" >&6; } ;;
4221 xno)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 $as_echo "unsupported" >&6; } ;;
4225 CC="$CC $ac_cv_prog_cc_c89"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4228 esac
4229 if test "x$ac_cv_prog_cc_c89" != xno; then :
4230 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4231 else
4232 ac_cv_prog_cc_stdc=no
4237 esac
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4239 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4240 if ${ac_cv_prog_cc_stdc+:} false; then :
4241 $as_echo_n "(cached) " >&6
4244 case $ac_cv_prog_cc_stdc in #(
4245 no) :
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4247 $as_echo "unsupported" >&6; } ;; #(
4248 '') :
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4250 $as_echo "none needed" >&6; } ;; #(
4251 *) :
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4253 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4254 esac
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4262 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4267 if test -z "$CPP"; then
4268 if ${ac_cv_prog_CPP+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 # Double quotes because CPP needs to be expanded
4272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4274 ac_preproc_ok=false
4275 for ac_c_preproc_warn_flag in '' yes
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error" is here to catch this case.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #ifdef __STDC__
4286 # include <limits.h>
4287 #else
4288 # include <assert.h>
4289 #endif
4290 Syntax error
4291 _ACEOF
4292 if ac_fn_c_try_cpp "$LINENO"; then :
4294 else
4295 # Broken: fails on valid input.
4296 continue
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4300 # OK, works on sane cases. Now check whether nonexistent headers
4301 # can be detected and how.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4305 _ACEOF
4306 if ac_fn_c_try_cpp "$LINENO"; then :
4307 # Broken: success on invalid input.
4308 continue
4309 else
4310 # Passes both tests.
4311 ac_preproc_ok=:
4312 break
4314 rm -f conftest.err conftest.i conftest.$ac_ext
4316 done
4317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4318 rm -f conftest.i conftest.err conftest.$ac_ext
4319 if $ac_preproc_ok; then :
4320 break
4323 done
4324 ac_cv_prog_CPP=$CPP
4327 CPP=$ac_cv_prog_CPP
4328 else
4329 ac_cv_prog_CPP=$CPP
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4332 $as_echo "$CPP" >&6; }
4333 ac_preproc_ok=false
4334 for ac_c_preproc_warn_flag in '' yes
4336 # Use a header file that comes with gcc, so configuring glibc
4337 # with a fresh cross-compiler works.
4338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339 # <limits.h> exists even on freestanding compilers.
4340 # On the NeXT, cc -E runs the code through the compiler's parser,
4341 # not just through cpp. "Syntax error" is here to catch this case.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #ifdef __STDC__
4345 # include <limits.h>
4346 #else
4347 # include <assert.h>
4348 #endif
4349 Syntax error
4350 _ACEOF
4351 if ac_fn_c_try_cpp "$LINENO"; then :
4353 else
4354 # Broken: fails on valid input.
4355 continue
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4359 # OK, works on sane cases. Now check whether nonexistent headers
4360 # can be detected and how.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 #include <ac_nonexistent.h>
4364 _ACEOF
4365 if ac_fn_c_try_cpp "$LINENO"; then :
4366 # Broken: success on invalid input.
4367 continue
4368 else
4369 # Passes both tests.
4370 ac_preproc_ok=:
4371 break
4373 rm -f conftest.err conftest.i conftest.$ac_ext
4375 done
4376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4377 rm -f conftest.i conftest.err conftest.$ac_ext
4378 if $ac_preproc_ok; then :
4380 else
4381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4384 See \`config.log' for more details" "$LINENO" 5; }
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 ac_ext=cpp
4394 ac_cpp='$CXXCPP $CPPFLAGS'
4395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4398 if test -z "$CXX"; then
4399 if test -n "$CCC"; then
4400 CXX=$CCC
4401 else
4402 if test -n "$ac_tool_prefix"; then
4403 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_CXX+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$CXX"; then
4413 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4432 CXX=$ac_cv_prog_CXX
4433 if test -n "$CXX"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4435 $as_echo "$CXX" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4442 test -n "$CXX" && break
4443 done
4445 if test -z "$CXX"; then
4446 ac_ct_CXX=$CXX
4447 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$ac_ct_CXX"; then
4457 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_prog_ac_ct_CXX="$ac_prog"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4476 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4477 if test -n "$ac_ct_CXX"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4479 $as_echo "$ac_ct_CXX" >&6; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4486 test -n "$ac_ct_CXX" && break
4487 done
4489 if test "x$ac_ct_CXX" = x; then
4490 CXX="g++"
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498 CXX=$ac_ct_CXX
4504 # Provide some information about the compiler.
4505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4506 set X $ac_compile
4507 ac_compiler=$2
4508 for ac_option in --version -v -V -qversion; do
4509 { { ac_try="$ac_compiler $ac_option >&5"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4517 ac_status=$?
4518 if test -s conftest.err; then
4519 sed '10a\
4520 ... rest of stderr output deleted ...
4521 10q' conftest.err >conftest.er1
4522 cat conftest.er1 >&5
4524 rm -f conftest.er1 conftest.err
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }
4527 done
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4530 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4531 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4538 main ()
4540 #ifndef __GNUC__
4541 choke me
4542 #endif
4545 return 0;
4547 _ACEOF
4548 if ac_fn_cxx_try_compile "$LINENO"; then :
4549 ac_compiler_gnu=yes
4550 else
4551 ac_compiler_gnu=no
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4558 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4559 if test $ac_compiler_gnu = yes; then
4560 GXX=yes
4561 else
4562 GXX=
4564 ac_test_CXXFLAGS=${CXXFLAGS+set}
4565 ac_save_CXXFLAGS=$CXXFLAGS
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4567 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4568 if ${ac_cv_prog_cxx_g+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4572 ac_cxx_werror_flag=yes
4573 ac_cv_prog_cxx_g=no
4574 CXXFLAGS="-g"
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4579 main ()
4583 return 0;
4585 _ACEOF
4586 if ac_fn_cxx_try_compile "$LINENO"; then :
4587 ac_cv_prog_cxx_g=yes
4588 else
4589 CXXFLAGS=""
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4594 main ()
4598 return 0;
4600 _ACEOF
4601 if ac_fn_cxx_try_compile "$LINENO"; then :
4603 else
4604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4605 CXXFLAGS="-g"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 if ac_fn_cxx_try_compile "$LINENO"; then :
4618 ac_cv_prog_cxx_g=yes
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4628 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4629 if test "$ac_test_CXXFLAGS" = set; then
4630 CXXFLAGS=$ac_save_CXXFLAGS
4631 elif test $ac_cv_prog_cxx_g = yes; then
4632 if test "$GXX" = yes; then
4633 CXXFLAGS="-g -O2"
4634 else
4635 CXXFLAGS="-g"
4637 else
4638 if test "$GXX" = yes; then
4639 CXXFLAGS="-O2"
4640 else
4641 CXXFLAGS=
4644 ac_ext=c
4645 ac_cpp='$CPP $CPPFLAGS'
4646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 depcc="$CXX" am_compiler_list=
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4653 $as_echo_n "checking dependency style of $depcc... " >&6; }
4654 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4658 # We make a subdir and do the tests there. Otherwise we can end up
4659 # making bogus files that we don't know about and never remove. For
4660 # instance it was reported that on HP-UX the gcc test will end up
4661 # making a dummy file named `D' -- because `-MD' means `put the output
4662 # in D'.
4663 rm -rf conftest.dir
4664 mkdir conftest.dir
4665 # Copy depcomp to subdir because otherwise we won't find it if we're
4666 # using a relative directory.
4667 cp "$am_depcomp" conftest.dir
4668 cd conftest.dir
4669 # We will build objects and dependencies in a subdirectory because
4670 # it helps to detect inapplicable dependency modes. For instance
4671 # both Tru64's cc and ICC support -MD to output dependencies as a
4672 # side effect of compilation, but ICC will put the dependencies in
4673 # the current directory while Tru64 will put them in the object
4674 # directory.
4675 mkdir sub
4677 am_cv_CXX_dependencies_compiler_type=none
4678 if test "$am_compiler_list" = ""; then
4679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4681 am__universal=false
4682 case " $depcc " in #(
4683 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4684 esac
4686 for depmode in $am_compiler_list; do
4687 # Setup a source with many dependencies, because some compilers
4688 # like to wrap large dependency lists on column 80 (with \), and
4689 # we should not choose a depcomp mode which is confused by this.
4691 # We need to recreate these files for each test, as the compiler may
4692 # overwrite some of them when testing with obscure command lines.
4693 # This happens at least with the AIX C compiler.
4694 : > sub/conftest.c
4695 for i in 1 2 3 4 5 6; do
4696 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4698 # Solaris 8's {/usr,}/bin/sh.
4699 touch sub/conftst$i.h
4700 done
4701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4704 # mode. It turns out that the SunPro C++ compiler does not properly
4705 # handle `-M -o', and we need to detect this. Also, some Intel
4706 # versions had trouble with output in subdirs
4707 am__obj=sub/conftest.${OBJEXT-o}
4708 am__minus_obj="-o $am__obj"
4709 case $depmode in
4710 gcc)
4711 # This depmode causes a compiler race in universal mode.
4712 test "$am__universal" = false || continue
4714 nosideeffect)
4715 # after this tag, mechanisms are not by side-effect, so they'll
4716 # only be used when explicitly requested
4717 if test "x$enable_dependency_tracking" = xyes; then
4718 continue
4719 else
4720 break
4723 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4724 # This compiler won't grok `-c -o', but also, the minuso test has
4725 # not run yet. These depmodes are late enough in the game, and
4726 # so weak that their functioning should not be impacted.
4727 am__obj=conftest.${OBJEXT-o}
4728 am__minus_obj=
4730 none) break ;;
4731 esac
4732 if depmode=$depmode \
4733 source=sub/conftest.c object=$am__obj \
4734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4735 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4736 >/dev/null 2>conftest.err &&
4737 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4739 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4741 # icc doesn't choke on unknown options, it will just issue warnings
4742 # or remarks (even with -Werror). So we grep stderr for any message
4743 # that says an option was ignored or not supported.
4744 # When given -MP, icc 7.0 and 7.1 complain thusly:
4745 # icc: Command line warning: ignoring option '-M'; no argument required
4746 # The diagnosis changed in icc 8.0:
4747 # icc: Command line remark: option '-MP' not supported
4748 if (grep 'ignoring option' conftest.err ||
4749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4750 am_cv_CXX_dependencies_compiler_type=$depmode
4751 break
4754 done
4756 cd ..
4757 rm -rf conftest.dir
4758 else
4759 am_cv_CXX_dependencies_compiler_type=none
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4764 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4765 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4768 test "x$enable_dependency_tracking" != xno \
4769 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4770 am__fastdepCXX_TRUE=
4771 am__fastdepCXX_FALSE='#'
4772 else
4773 am__fastdepCXX_TRUE='#'
4774 am__fastdepCXX_FALSE=
4779 #AM_PROG_LD
4780 #AC_SUBST(LD)
4781 #AC_PROG_INSTALL
4782 #AC_PROG_MAKE_SET
4783 #AC_PROG_LN_S
4786 # Tests for Windows
4791 # Configure libtool
4792 # Check whether --enable-shared was given.
4793 if test "${enable_shared+set}" = set; then :
4794 enableval=$enable_shared; p=${PACKAGE-default}
4795 case $enableval in
4796 yes) enable_shared=yes ;;
4797 no) enable_shared=no ;;
4799 enable_shared=no
4800 # Look at the argument we got. We use all the common list separators.
4801 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4802 for pkg in $enableval; do
4803 IFS="$lt_save_ifs"
4804 if test "X$pkg" = "X$p"; then
4805 enable_shared=yes
4807 done
4808 IFS="$lt_save_ifs"
4810 esac
4811 else
4812 enable_shared=yes
4823 # Check whether --enable-static was given.
4824 if test "${enable_static+set}" = set; then :
4825 enableval=$enable_static; p=${PACKAGE-default}
4826 case $enableval in
4827 yes) enable_static=yes ;;
4828 no) enable_static=no ;;
4830 enable_static=no
4831 # Look at the argument we got. We use all the common list separators.
4832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4833 for pkg in $enableval; do
4834 IFS="$lt_save_ifs"
4835 if test "X$pkg" = "X$p"; then
4836 enable_static=yes
4838 done
4839 IFS="$lt_save_ifs"
4841 esac
4842 else
4843 enable_static=yes
4854 enable_win32_dll=yes
4856 case $host in
4857 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}as; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_prog_AS+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$AS"; then
4867 ac_cv_prog_AS="$AS" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_AS="${ac_tool_prefix}as"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 AS=$ac_cv_prog_AS
4887 if test -n "$AS"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4889 $as_echo "$AS" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4897 if test -z "$ac_cv_prog_AS"; then
4898 ac_ct_AS=$AS
4899 # Extract the first word of "as", so it can be a program name with args.
4900 set dummy as; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_AS"; then
4907 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_ac_ct_AS="as"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4927 if test -n "$ac_ct_AS"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4929 $as_echo "$ac_ct_AS" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4935 if test "x$ac_ct_AS" = x; then
4936 AS="false"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 AS=$ac_ct_AS
4946 else
4947 AS="$ac_cv_prog_AS"
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_DLLTOOL+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$DLLTOOL"; then
4959 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 DLLTOOL=$ac_cv_prog_DLLTOOL
4979 if test -n "$DLLTOOL"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4981 $as_echo "$DLLTOOL" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4989 if test -z "$ac_cv_prog_DLLTOOL"; then
4990 ac_ct_DLLTOOL=$DLLTOOL
4991 # Extract the first word of "dlltool", so it can be a program name with args.
4992 set dummy dlltool; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$ac_ct_DLLTOOL"; then
4999 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5019 if test -n "$ac_ct_DLLTOOL"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5021 $as_echo "$ac_ct_DLLTOOL" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5027 if test "x$ac_ct_DLLTOOL" = x; then
5028 DLLTOOL="false"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031 yes:)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5035 esac
5036 DLLTOOL=$ac_ct_DLLTOOL
5038 else
5039 DLLTOOL="$ac_cv_prog_DLLTOOL"
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_OBJDUMP+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$OBJDUMP"; then
5051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5064 done
5065 done
5066 IFS=$as_save_IFS
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082 ac_ct_OBJDUMP=$OBJDUMP
5083 # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5104 done
5105 done
5106 IFS=$as_save_IFS
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5119 if test "x$ac_ct_OBJDUMP" = x; then
5120 OBJDUMP="false"
5121 else
5122 case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128 OBJDUMP=$ac_ct_OBJDUMP
5130 else
5131 OBJDUMP="$ac_cv_prog_OBJDUMP"
5135 esac
5137 test -z "$AS" && AS=as
5143 test -z "$DLLTOOL" && DLLTOOL=dlltool
5149 test -z "$OBJDUMP" && OBJDUMP=objdump
5158 case `pwd` in
5159 *\ * | *\ *)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5161 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5162 esac
5166 macro_version='2.4'
5167 macro_revision='1.3294'
5181 ltmain="$ac_aux_dir/ltmain.sh"
5183 # Backslashify metacharacters that are still active within
5184 # double-quoted strings.
5185 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5187 # Same as above, but do not quote variable references.
5188 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5190 # Sed substitution to delay expansion of an escaped shell variable in a
5191 # double_quote_subst'ed string.
5192 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5194 # Sed substitution to delay expansion of an escaped single quote.
5195 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5197 # Sed substitution to avoid accidental globbing in evaled expressions
5198 no_glob_subst='s/\*/\\\*/g'
5200 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5201 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5202 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5205 $as_echo_n "checking how to print strings... " >&6; }
5206 # Test print first, because it will be a builtin if present.
5207 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5208 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5209 ECHO='print -r --'
5210 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5211 ECHO='printf %s\n'
5212 else
5213 # Use this function as a fallback that always works.
5214 func_fallback_echo ()
5216 eval 'cat <<_LTECHO_EOF
5218 _LTECHO_EOF'
5220 ECHO='func_fallback_echo'
5223 # func_echo_all arg...
5224 # Invoke $ECHO with all args, space-separated.
5225 func_echo_all ()
5227 $ECHO ""
5230 case "$ECHO" in
5231 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5232 $as_echo "printf" >&6; } ;;
5233 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5234 $as_echo "print -r" >&6; } ;;
5235 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5236 $as_echo "cat" >&6; } ;;
5237 esac
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5253 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5254 if ${ac_cv_path_SED+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5258 for ac_i in 1 2 3 4 5 6 7; do
5259 ac_script="$ac_script$as_nl$ac_script"
5260 done
5261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5262 { ac_script=; unset ac_script;}
5263 if test -z "$SED"; then
5264 ac_path_SED_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_prog in sed gsed; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5274 as_fn_executable_p "$ac_path_SED" || continue
5275 # Check for GNU ac_path_SED and select it if it is found.
5276 # Check for GNU $ac_path_SED
5277 case `"$ac_path_SED" --version 2>&1` in
5278 *GNU*)
5279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5281 ac_count=0
5282 $as_echo_n 0123456789 >"conftest.in"
5283 while :
5285 cat "conftest.in" "conftest.in" >"conftest.tmp"
5286 mv "conftest.tmp" "conftest.in"
5287 cp "conftest.in" "conftest.nl"
5288 $as_echo '' >> "conftest.nl"
5289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291 as_fn_arith $ac_count + 1 && ac_count=$as_val
5292 if test $ac_count -gt ${ac_path_SED_max-0}; then
5293 # Best one so far, save it but keep looking for a better one
5294 ac_cv_path_SED="$ac_path_SED"
5295 ac_path_SED_max=$ac_count
5297 # 10*(2^10) chars as input seems more than enough
5298 test $ac_count -gt 10 && break
5299 done
5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301 esac
5303 $ac_path_SED_found && break 3
5304 done
5305 done
5306 done
5307 IFS=$as_save_IFS
5308 if test -z "$ac_cv_path_SED"; then
5309 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5311 else
5312 ac_cv_path_SED=$SED
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5317 $as_echo "$ac_cv_path_SED" >&6; }
5318 SED="$ac_cv_path_SED"
5319 rm -f conftest.sed
5321 test -z "$SED" && SED=sed
5322 Xsed="$SED -e 1s/^X//"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5335 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5336 if ${ac_cv_path_GREP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -z "$GREP"; then
5340 ac_path_GREP_found=false
5341 # Loop through the user's path and test for each of PROGNAME-LIST
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_prog in grep ggrep; do
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5350 as_fn_executable_p "$ac_path_GREP" || continue
5351 # Check for GNU ac_path_GREP and select it if it is found.
5352 # Check for GNU $ac_path_GREP
5353 case `"$ac_path_GREP" --version 2>&1` in
5354 *GNU*)
5355 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5357 ac_count=0
5358 $as_echo_n 0123456789 >"conftest.in"
5359 while :
5361 cat "conftest.in" "conftest.in" >"conftest.tmp"
5362 mv "conftest.tmp" "conftest.in"
5363 cp "conftest.in" "conftest.nl"
5364 $as_echo 'GREP' >> "conftest.nl"
5365 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5367 as_fn_arith $ac_count + 1 && ac_count=$as_val
5368 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5369 # Best one so far, save it but keep looking for a better one
5370 ac_cv_path_GREP="$ac_path_GREP"
5371 ac_path_GREP_max=$ac_count
5373 # 10*(2^10) chars as input seems more than enough
5374 test $ac_count -gt 10 && break
5375 done
5376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5377 esac
5379 $ac_path_GREP_found && break 3
5380 done
5381 done
5382 done
5383 IFS=$as_save_IFS
5384 if test -z "$ac_cv_path_GREP"; then
5385 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5387 else
5388 ac_cv_path_GREP=$GREP
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5393 $as_echo "$ac_cv_path_GREP" >&6; }
5394 GREP="$ac_cv_path_GREP"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5398 $as_echo_n "checking for egrep... " >&6; }
5399 if ${ac_cv_path_EGREP+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5403 then ac_cv_path_EGREP="$GREP -E"
5404 else
5405 if test -z "$EGREP"; then
5406 ac_path_EGREP_found=false
5407 # Loop through the user's path and test for each of PROGNAME-LIST
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_prog in egrep; do
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5416 as_fn_executable_p "$ac_path_EGREP" || continue
5417 # Check for GNU ac_path_EGREP and select it if it is found.
5418 # Check for GNU $ac_path_EGREP
5419 case `"$ac_path_EGREP" --version 2>&1` in
5420 *GNU*)
5421 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5423 ac_count=0
5424 $as_echo_n 0123456789 >"conftest.in"
5425 while :
5427 cat "conftest.in" "conftest.in" >"conftest.tmp"
5428 mv "conftest.tmp" "conftest.in"
5429 cp "conftest.in" "conftest.nl"
5430 $as_echo 'EGREP' >> "conftest.nl"
5431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5433 as_fn_arith $ac_count + 1 && ac_count=$as_val
5434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5435 # Best one so far, save it but keep looking for a better one
5436 ac_cv_path_EGREP="$ac_path_EGREP"
5437 ac_path_EGREP_max=$ac_count
5439 # 10*(2^10) chars as input seems more than enough
5440 test $ac_count -gt 10 && break
5441 done
5442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5443 esac
5445 $ac_path_EGREP_found && break 3
5446 done
5447 done
5448 done
5449 IFS=$as_save_IFS
5450 if test -z "$ac_cv_path_EGREP"; then
5451 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5453 else
5454 ac_cv_path_EGREP=$EGREP
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5460 $as_echo "$ac_cv_path_EGREP" >&6; }
5461 EGREP="$ac_cv_path_EGREP"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5465 $as_echo_n "checking for fgrep... " >&6; }
5466 if ${ac_cv_path_FGREP+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5470 then ac_cv_path_FGREP="$GREP -F"
5471 else
5472 if test -z "$FGREP"; then
5473 ac_path_FGREP_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_prog in fgrep; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5483 as_fn_executable_p "$ac_path_FGREP" || continue
5484 # Check for GNU ac_path_FGREP and select it if it is found.
5485 # Check for GNU $ac_path_FGREP
5486 case `"$ac_path_FGREP" --version 2>&1` in
5487 *GNU*)
5488 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5490 ac_count=0
5491 $as_echo_n 0123456789 >"conftest.in"
5492 while :
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 $as_echo 'FGREP' >> "conftest.nl"
5498 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 as_fn_arith $ac_count + 1 && ac_count=$as_val
5501 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_FGREP="$ac_path_FGREP"
5504 ac_path_FGREP_max=$ac_count
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5508 done
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510 esac
5512 $ac_path_FGREP_found && break 3
5513 done
5514 done
5515 done
5516 IFS=$as_save_IFS
5517 if test -z "$ac_cv_path_FGREP"; then
5518 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5520 else
5521 ac_cv_path_FGREP=$FGREP
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5527 $as_echo "$ac_cv_path_FGREP" >&6; }
5528 FGREP="$ac_cv_path_FGREP"
5531 test -z "$GREP" && GREP=grep
5551 # Check whether --with-gnu-ld was given.
5552 if test "${with_gnu_ld+set}" = set; then :
5553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5554 else
5555 with_gnu_ld=no
5558 ac_prog=ld
5559 if test "$GCC" = yes; then
5560 # Check if gcc -print-prog-name=ld gives a path.
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5562 $as_echo_n "checking for ld used by $CC... " >&6; }
5563 case $host in
5564 *-*-mingw*)
5565 # gcc leaves a trailing carriage return which upsets mingw
5566 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5568 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5569 esac
5570 case $ac_prog in
5571 # Accept absolute paths.
5572 [\\/]* | ?:[\\/]*)
5573 re_direlt='/[^/][^/]*/\.\./'
5574 # Canonicalize the pathname of ld
5575 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5576 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5577 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5578 done
5579 test -z "$LD" && LD="$ac_prog"
5582 # If it fails, then pretend we aren't using GCC.
5583 ac_prog=ld
5586 # If it is relative, then search for the first ld in PATH.
5587 with_gnu_ld=unknown
5589 esac
5590 elif test "$with_gnu_ld" = yes; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5592 $as_echo_n "checking for GNU ld... " >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5595 $as_echo_n "checking for non-GNU ld... " >&6; }
5597 if ${lt_cv_path_LD+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -z "$LD"; then
5601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5602 for ac_dir in $PATH; do
5603 IFS="$lt_save_ifs"
5604 test -z "$ac_dir" && ac_dir=.
5605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5606 lt_cv_path_LD="$ac_dir/$ac_prog"
5607 # Check to see if the program is GNU ld. I'd rather use --version,
5608 # but apparently some variants of GNU ld only accept -v.
5609 # Break only if it was the GNU/non-GNU ld that we prefer.
5610 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5611 *GNU* | *'with BFD'*)
5612 test "$with_gnu_ld" != no && break
5615 test "$with_gnu_ld" != yes && break
5617 esac
5619 done
5620 IFS="$lt_save_ifs"
5621 else
5622 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5626 LD="$lt_cv_path_LD"
5627 if test -n "$LD"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5629 $as_echo "$LD" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5634 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5636 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5637 if ${lt_cv_prog_gnu_ld+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5641 case `$LD -v 2>&1 </dev/null` in
5642 *GNU* | *'with BFD'*)
5643 lt_cv_prog_gnu_ld=yes
5646 lt_cv_prog_gnu_ld=no
5648 esac
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5651 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5652 with_gnu_ld=$lt_cv_prog_gnu_ld
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5663 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5664 if ${lt_cv_path_NM+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$NM"; then
5668 # Let the user override the test.
5669 lt_cv_path_NM="$NM"
5670 else
5671 lt_nm_to_check="${ac_tool_prefix}nm"
5672 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673 lt_nm_to_check="$lt_nm_to_check nm"
5675 for lt_tmp_nm in $lt_nm_to_check; do
5676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5678 IFS="$lt_save_ifs"
5679 test -z "$ac_dir" && ac_dir=.
5680 tmp_nm="$ac_dir/$lt_tmp_nm"
5681 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682 # Check to see if the nm accepts a BSD-compat flag.
5683 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684 # nm: unknown option "B" ignored
5685 # Tru64's nm complains that /dev/null is an invalid object file
5686 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687 */dev/null* | *'Invalid file or object type'*)
5688 lt_cv_path_NM="$tmp_nm -B"
5689 break
5692 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5693 */dev/null*)
5694 lt_cv_path_NM="$tmp_nm -p"
5695 break
5698 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699 continue # so that we can try to find one that supports BSD flags
5701 esac
5703 esac
5705 done
5706 IFS="$lt_save_ifs"
5707 done
5708 : ${lt_cv_path_NM=no}
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5712 $as_echo "$lt_cv_path_NM" >&6; }
5713 if test "$lt_cv_path_NM" != "no"; then
5714 NM="$lt_cv_path_NM"
5715 else
5716 # Didn't find any BSD compatible name lister, look for dumpbin.
5717 if test -n "$DUMPBIN"; then :
5718 # Let the user override the test.
5719 else
5720 if test -n "$ac_tool_prefix"; then
5721 for ac_prog in dumpbin "link -dump"
5723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_DUMPBIN+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$DUMPBIN"; then
5731 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5744 done
5745 done
5746 IFS=$as_save_IFS
5750 DUMPBIN=$ac_cv_prog_DUMPBIN
5751 if test -n "$DUMPBIN"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5753 $as_echo "$DUMPBIN" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5760 test -n "$DUMPBIN" && break
5761 done
5763 if test -z "$DUMPBIN"; then
5764 ac_ct_DUMPBIN=$DUMPBIN
5765 for ac_prog in dumpbin "link -dump"
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768 set dummy $ac_prog; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$ac_ct_DUMPBIN"; then
5775 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5788 done
5789 done
5790 IFS=$as_save_IFS
5794 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5795 if test -n "$ac_ct_DUMPBIN"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5797 $as_echo "$ac_ct_DUMPBIN" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5804 test -n "$ac_ct_DUMPBIN" && break
5805 done
5807 if test "x$ac_ct_DUMPBIN" = x; then
5808 DUMPBIN=":"
5809 else
5810 case $cross_compiling:$ac_tool_warned in
5811 yes:)
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814 ac_tool_warned=yes ;;
5815 esac
5816 DUMPBIN=$ac_ct_DUMPBIN
5820 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5821 *COFF*)
5822 DUMPBIN="$DUMPBIN -symbols"
5825 DUMPBIN=:
5827 esac
5830 if test "$DUMPBIN" != ":"; then
5831 NM="$DUMPBIN"
5834 test -z "$NM" && NM=nm
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5842 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5843 if ${lt_cv_nm_interface+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 lt_cv_nm_interface="BSD nm"
5847 echo "int some_variable = 0;" > conftest.$ac_ext
5848 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5849 (eval "$ac_compile" 2>conftest.err)
5850 cat conftest.err >&5
5851 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5852 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5853 cat conftest.err >&5
5854 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5855 cat conftest.out >&5
5856 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5857 lt_cv_nm_interface="MS dumpbin"
5859 rm -f conftest*
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5862 $as_echo "$lt_cv_nm_interface" >&6; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5865 $as_echo_n "checking whether ln -s works... " >&6; }
5866 LN_S=$as_ln_s
5867 if test "$LN_S" = "ln -s"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5869 $as_echo "yes" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5872 $as_echo "no, using $LN_S" >&6; }
5875 # find the maximum length of command line arguments
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5877 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5878 if ${lt_cv_sys_max_cmd_len+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5882 teststring="ABCD"
5884 case $build_os in
5885 msdosdjgpp*)
5886 # On DJGPP, this test can blow up pretty badly due to problems in libc
5887 # (any single argument exceeding 2000 bytes causes a buffer overrun
5888 # during glob expansion). Even if it were fixed, the result of this
5889 # check would be larger than it should be.
5890 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5893 gnu*)
5894 # Under GNU Hurd, this test is not required because there is
5895 # no limit to the length of command line arguments.
5896 # Libtool will interpret -1 as no limit whatsoever
5897 lt_cv_sys_max_cmd_len=-1;
5900 cygwin* | mingw* | cegcc*)
5901 # On Win9x/ME, this test blows up -- it succeeds, but takes
5902 # about 5 minutes as the teststring grows exponentially.
5903 # Worse, since 9x/ME are not pre-emptively multitasking,
5904 # you end up with a "frozen" computer, even though with patience
5905 # the test eventually succeeds (with a max line length of 256k).
5906 # Instead, let's just punt: use the minimum linelength reported by
5907 # all of the supported platforms: 8192 (on NT/2K/XP).
5908 lt_cv_sys_max_cmd_len=8192;
5911 mint*)
5912 # On MiNT this can take a long time and run out of memory.
5913 lt_cv_sys_max_cmd_len=8192;
5916 amigaos*)
5917 # On AmigaOS with pdksh, this test takes hours, literally.
5918 # So we just punt and use a minimum line length of 8192.
5919 lt_cv_sys_max_cmd_len=8192;
5922 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5923 # This has been around since 386BSD, at least. Likely further.
5924 if test -x /sbin/sysctl; then
5925 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5926 elif test -x /usr/sbin/sysctl; then
5927 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5928 else
5929 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5931 # And add a safety zone
5932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5936 interix*)
5937 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5938 lt_cv_sys_max_cmd_len=196608
5941 osf*)
5942 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5943 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5944 # nice to cause kernel panics so lets avoid the loop below.
5945 # First set a reasonable default.
5946 lt_cv_sys_max_cmd_len=16384
5948 if test -x /sbin/sysconfig; then
5949 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5950 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5951 esac
5954 sco3.2v5*)
5955 lt_cv_sys_max_cmd_len=102400
5957 sysv5* | sco5v6* | sysv4.2uw2*)
5958 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5959 if test -n "$kargmax"; then
5960 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5961 else
5962 lt_cv_sys_max_cmd_len=32768
5966 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5967 if test -n "$lt_cv_sys_max_cmd_len"; then
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5970 else
5971 # Make teststring a little bigger before we do anything with it.
5972 # a 1K string should be a reasonable start.
5973 for i in 1 2 3 4 5 6 7 8 ; do
5974 teststring=$teststring$teststring
5975 done
5976 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5977 # If test is not a shell built-in, we'll probably end up computing a
5978 # maximum length that is only half of the actual maximum length, but
5979 # we can't tell.
5980 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5981 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5982 test $i != 17 # 1/2 MB should be enough
5984 i=`expr $i + 1`
5985 teststring=$teststring$teststring
5986 done
5987 # Only check the string length outside the loop.
5988 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5989 teststring=
5990 # Add a significant safety factor because C++ compilers can tack on
5991 # massive amounts of additional arguments before passing them to the
5992 # linker. It appears as though 1/2 is a usable value.
5993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5996 esac
6000 if test -n $lt_cv_sys_max_cmd_len ; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6002 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6003 else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6005 $as_echo "none" >&6; }
6007 max_cmd_len=$lt_cv_sys_max_cmd_len
6014 : ${CP="cp -f"}
6015 : ${MV="mv -f"}
6016 : ${RM="rm -f"}
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6019 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6020 # Try some XSI features
6021 xsi_shell=no
6022 ( _lt_dummy="a/b/c"
6023 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6024 = c,a/b,b/c, \
6025 && eval 'test $(( 1 + 1 )) -eq 2 \
6026 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6027 && xsi_shell=yes
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6029 $as_echo "$xsi_shell" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6033 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6034 lt_shell_append=no
6035 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6036 >/dev/null 2>&1 \
6037 && lt_shell_append=yes
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6039 $as_echo "$lt_shell_append" >&6; }
6042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6043 lt_unset=unset
6044 else
6045 lt_unset=false
6052 # test EBCDIC or ASCII
6053 case `echo X|tr X '\101'` in
6054 A) # ASCII based system
6055 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6056 lt_SP2NL='tr \040 \012'
6057 lt_NL2SP='tr \015\012 \040\040'
6059 *) # EBCDIC based system
6060 lt_SP2NL='tr \100 \n'
6061 lt_NL2SP='tr \r\n \100\100'
6063 esac
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6074 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6075 if ${lt_cv_to_host_file_cmd+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 case $host in
6079 *-*-mingw* )
6080 case $build in
6081 *-*-mingw* ) # actually msys
6082 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6084 *-*-cygwin* )
6085 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6087 * ) # otherwise, assume *nix
6088 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6090 esac
6092 *-*-cygwin* )
6093 case $build in
6094 *-*-mingw* ) # actually msys
6095 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6097 *-*-cygwin* )
6098 lt_cv_to_host_file_cmd=func_convert_file_noop
6100 * ) # otherwise, assume *nix
6101 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6103 esac
6105 * ) # unhandled hosts (and "normal" native builds)
6106 lt_cv_to_host_file_cmd=func_convert_file_noop
6108 esac
6112 to_host_file_cmd=$lt_cv_to_host_file_cmd
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6114 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6121 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6122 if ${lt_cv_to_tool_file_cmd+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 #assume ordinary cross tools, or native build.
6126 lt_cv_to_tool_file_cmd=func_convert_file_noop
6127 case $host in
6128 *-*-mingw* )
6129 case $build in
6130 *-*-mingw* ) # actually msys
6131 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6133 esac
6135 esac
6139 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6141 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6148 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6149 if ${lt_cv_ld_reload_flag+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 lt_cv_ld_reload_flag='-r'
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6155 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6156 reload_flag=$lt_cv_ld_reload_flag
6157 case $reload_flag in
6158 "" | " "*) ;;
6159 *) reload_flag=" $reload_flag" ;;
6160 esac
6161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162 case $host_os in
6163 cygwin* | mingw* | pw32* | cegcc*)
6164 if test "$GCC" != yes; then
6165 reload_cmds=false
6168 darwin*)
6169 if test "$GCC" = yes; then
6170 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6171 else
6172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175 esac
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_OBJDUMP+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 if test -n "$OBJDUMP"; then
6194 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6207 done
6208 done
6209 IFS=$as_save_IFS
6213 OBJDUMP=$ac_cv_prog_OBJDUMP
6214 if test -n "$OBJDUMP"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6216 $as_echo "$OBJDUMP" >&6; }
6217 else
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6224 if test -z "$ac_cv_prog_OBJDUMP"; then
6225 ac_ct_OBJDUMP=$OBJDUMP
6226 # Extract the first word of "objdump", so it can be a program name with args.
6227 set dummy objdump; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 if test -n "$ac_ct_OBJDUMP"; then
6234 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6247 done
6248 done
6249 IFS=$as_save_IFS
6253 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6254 if test -n "$ac_ct_OBJDUMP"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6256 $as_echo "$ac_ct_OBJDUMP" >&6; }
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6262 if test "x$ac_ct_OBJDUMP" = x; then
6263 OBJDUMP="false"
6264 else
6265 case $cross_compiling:$ac_tool_warned in
6266 yes:)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6270 esac
6271 OBJDUMP=$ac_ct_OBJDUMP
6273 else
6274 OBJDUMP="$ac_cv_prog_OBJDUMP"
6277 test -z "$OBJDUMP" && OBJDUMP=objdump
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6285 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6286 if ${lt_cv_deplibs_check_method+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 lt_cv_file_magic_cmd='$MAGIC_CMD'
6290 lt_cv_file_magic_test_file=
6291 lt_cv_deplibs_check_method='unknown'
6292 # Need to set the preceding variable on all platforms that support
6293 # interlibrary dependencies.
6294 # 'none' -- dependencies not supported.
6295 # `unknown' -- same as none, but documents that we really don't know.
6296 # 'pass_all' -- all dependencies passed with no checks.
6297 # 'test_compile' -- check by making test program.
6298 # 'file_magic [[regex]]' -- check by looking for files in library path
6299 # which responds to the $file_magic_cmd with a given extended regex.
6300 # If you have `file' or equivalent on your system and you're not sure
6301 # whether `pass_all' will *always* work, you probably want this one.
6303 case $host_os in
6304 aix[4-9]*)
6305 lt_cv_deplibs_check_method=pass_all
6308 beos*)
6309 lt_cv_deplibs_check_method=pass_all
6312 bsdi[45]*)
6313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314 lt_cv_file_magic_cmd='/usr/bin/file -L'
6315 lt_cv_file_magic_test_file=/shlib/libc.so
6318 cygwin*)
6319 # func_win32_libid is a shell function defined in ltmain.sh
6320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321 lt_cv_file_magic_cmd='func_win32_libid'
6324 mingw* | pw32*)
6325 # Base MSYS/MinGW do not provide the 'file' command needed by
6326 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327 # unless we find 'file', for example because we are cross-compiling.
6328 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6329 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6331 lt_cv_file_magic_cmd='func_win32_libid'
6332 else
6333 # Keep this pattern in sync with the one in func_win32_libid.
6334 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6335 lt_cv_file_magic_cmd='$OBJDUMP -f'
6339 cegcc*)
6340 # use the weaker test based on 'objdump'. See mingw*.
6341 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6342 lt_cv_file_magic_cmd='$OBJDUMP -f'
6345 darwin* | rhapsody*)
6346 lt_cv_deplibs_check_method=pass_all
6349 freebsd* | dragonfly*)
6350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351 case $host_cpu in
6352 i*86 )
6353 # Not sure whether the presence of OpenBSD here was a mistake.
6354 # Let's accept both of them until this is cleared up.
6355 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6356 lt_cv_file_magic_cmd=/usr/bin/file
6357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6359 esac
6360 else
6361 lt_cv_deplibs_check_method=pass_all
6365 gnu*)
6366 lt_cv_deplibs_check_method=pass_all
6369 haiku*)
6370 lt_cv_deplibs_check_method=pass_all
6373 hpux10.20* | hpux11*)
6374 lt_cv_file_magic_cmd=/usr/bin/file
6375 case $host_cpu in
6376 ia64*)
6377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6380 hppa*64*)
6381 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]'
6382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6388 esac
6391 interix[3-9]*)
6392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6396 irix5* | irix6* | nonstopux*)
6397 case $LD in
6398 *-32|*"-32 ") libmagic=32-bit;;
6399 *-n32|*"-n32 ") libmagic=N32;;
6400 *-64|*"-64 ") libmagic=64-bit;;
6401 *) libmagic=never-match;;
6402 esac
6403 lt_cv_deplibs_check_method=pass_all
6406 # This must be Linux ELF.
6407 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6408 lt_cv_deplibs_check_method=pass_all
6411 netbsd*)
6412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6414 else
6415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6419 newos6*)
6420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6421 lt_cv_file_magic_cmd=/usr/bin/file
6422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6425 *nto* | *qnx*)
6426 lt_cv_deplibs_check_method=pass_all
6429 openbsd*)
6430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6432 else
6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6437 osf3* | osf4* | osf5*)
6438 lt_cv_deplibs_check_method=pass_all
6441 rdos*)
6442 lt_cv_deplibs_check_method=pass_all
6445 solaris*)
6446 lt_cv_deplibs_check_method=pass_all
6449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6450 lt_cv_deplibs_check_method=pass_all
6453 sysv4 | sysv4.3*)
6454 case $host_vendor in
6455 motorola)
6456 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]'
6457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6459 ncr)
6460 lt_cv_deplibs_check_method=pass_all
6462 sequent)
6463 lt_cv_file_magic_cmd='/bin/file'
6464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6466 sni)
6467 lt_cv_file_magic_cmd='/bin/file'
6468 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6469 lt_cv_file_magic_test_file=/lib/libc.so
6471 siemens)
6472 lt_cv_deplibs_check_method=pass_all
6475 lt_cv_deplibs_check_method=pass_all
6477 esac
6480 tpf*)
6481 lt_cv_deplibs_check_method=pass_all
6483 esac
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6487 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6489 file_magic_glob=
6490 want_nocaseglob=no
6491 if test "$build" = "$host"; then
6492 case $host_os in
6493 mingw* | pw32*)
6494 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6495 want_nocaseglob=yes
6496 else
6497 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6500 esac
6503 file_magic_cmd=$lt_cv_file_magic_cmd
6504 deplibs_check_method=$lt_cv_deplibs_check_method
6505 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_prog_DLLTOOL+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 if test -n "$DLLTOOL"; then
6537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6550 done
6551 done
6552 IFS=$as_save_IFS
6556 DLLTOOL=$ac_cv_prog_DLLTOOL
6557 if test -n "$DLLTOOL"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6559 $as_echo "$DLLTOOL" >&6; }
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6567 if test -z "$ac_cv_prog_DLLTOOL"; then
6568 ac_ct_DLLTOOL=$DLLTOOL
6569 # Extract the first word of "dlltool", so it can be a program name with args.
6570 set dummy dlltool; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if test -n "$ac_ct_DLLTOOL"; then
6577 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6590 done
6591 done
6592 IFS=$as_save_IFS
6596 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6597 if test -n "$ac_ct_DLLTOOL"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6599 $as_echo "$ac_ct_DLLTOOL" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6605 if test "x$ac_ct_DLLTOOL" = x; then
6606 DLLTOOL="false"
6607 else
6608 case $cross_compiling:$ac_tool_warned in
6609 yes:)
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614 DLLTOOL=$ac_ct_DLLTOOL
6616 else
6617 DLLTOOL="$ac_cv_prog_DLLTOOL"
6620 test -z "$DLLTOOL" && DLLTOOL=dlltool
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6629 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6630 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 lt_cv_sharedlib_from_linklib_cmd='unknown'
6635 case $host_os in
6636 cygwin* | mingw* | pw32* | cegcc*)
6637 # two different shell functions defined in ltmain.sh
6638 # decide which to use based on capabilities of $DLLTOOL
6639 case `$DLLTOOL --help 2>&1` in
6640 *--identify-strict*)
6641 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6644 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6646 esac
6649 # fallback: assume linklib IS sharedlib
6650 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6652 esac
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6656 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6657 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6658 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6667 if test -n "$ac_tool_prefix"; then
6668 for ac_prog in ar
6670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_AR+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$AR"; then
6678 ac_cv_prog_AR="$AR" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 AR=$ac_cv_prog_AR
6698 if test -n "$AR"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6700 $as_echo "$AR" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6707 test -n "$AR" && break
6708 done
6710 if test -z "$AR"; then
6711 ac_ct_AR=$AR
6712 for ac_prog in ar
6714 # Extract the first word of "$ac_prog", so it can be a program name with args.
6715 set dummy $ac_prog; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$ac_ct_AR"; then
6722 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_ac_ct_AR="$ac_prog"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6735 done
6736 done
6737 IFS=$as_save_IFS
6741 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6742 if test -n "$ac_ct_AR"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6744 $as_echo "$ac_ct_AR" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6751 test -n "$ac_ct_AR" && break
6752 done
6754 if test "x$ac_ct_AR" = x; then
6755 AR="false"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763 AR=$ac_ct_AR
6767 : ${AR=ar}
6768 : ${AR_FLAGS=cru}
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6781 $as_echo_n "checking for archiver @FILE support... " >&6; }
6782 if ${lt_cv_ar_at_file+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 lt_cv_ar_at_file=no
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6790 main ()
6794 return 0;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 echo conftest.$ac_objext > conftest.lst
6799 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6801 (eval $lt_ar_try) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }
6805 if test "$ac_status" -eq 0; then
6806 # Ensure the archiver fails upon bogus file names.
6807 rm -f conftest.$ac_objext libconftest.a
6808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6809 (eval $lt_ar_try) 2>&5
6810 ac_status=$?
6811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812 test $ac_status = 0; }
6813 if test "$ac_status" -ne 0; then
6814 lt_cv_ar_at_file=@
6817 rm -f conftest.* libconftest.a
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6824 $as_echo "$lt_cv_ar_at_file" >&6; }
6826 if test "x$lt_cv_ar_at_file" = xno; then
6827 archiver_list_spec=
6828 else
6829 archiver_list_spec=$lt_cv_ar_at_file
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}strip; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_STRIP+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$STRIP"; then
6847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6866 STRIP=$ac_cv_prog_STRIP
6867 if test -n "$STRIP"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6869 $as_echo "$STRIP" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6877 if test -z "$ac_cv_prog_STRIP"; then
6878 ac_ct_STRIP=$STRIP
6879 # Extract the first word of "strip", so it can be a program name with args.
6880 set dummy strip; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$ac_ct_STRIP"; then
6887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_STRIP="strip"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6907 if test -n "$ac_ct_STRIP"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6909 $as_echo "$ac_ct_STRIP" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6915 if test "x$ac_ct_STRIP" = x; then
6916 STRIP=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924 STRIP=$ac_ct_STRIP
6926 else
6927 STRIP="$ac_cv_prog_STRIP"
6930 test -z "$STRIP" && STRIP=:
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_RANLIB+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$RANLIB"; then
6946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6959 done
6960 done
6961 IFS=$as_save_IFS
6965 RANLIB=$ac_cv_prog_RANLIB
6966 if test -n "$RANLIB"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6968 $as_echo "$RANLIB" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6976 if test -z "$ac_cv_prog_RANLIB"; then
6977 ac_ct_RANLIB=$RANLIB
6978 # Extract the first word of "ranlib", so it can be a program name with args.
6979 set dummy ranlib; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_RANLIB"; then
6986 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_RANLIB="ranlib"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7005 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7006 if test -n "$ac_ct_RANLIB"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7008 $as_echo "$ac_ct_RANLIB" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7014 if test "x$ac_ct_RANLIB" = x; then
7015 RANLIB=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 RANLIB=$ac_ct_RANLIB
7025 else
7026 RANLIB="$ac_cv_prog_RANLIB"
7029 test -z "$RANLIB" && RANLIB=:
7036 # Determine commands to create old-style static archives.
7037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7038 old_postinstall_cmds='chmod 644 $oldlib'
7039 old_postuninstall_cmds=
7041 if test -n "$RANLIB"; then
7042 case $host_os in
7043 openbsd*)
7044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7049 esac
7050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7053 case $host_os in
7054 darwin*)
7055 lock_old_archive_extraction=yes ;;
7057 lock_old_archive_extraction=no ;;
7058 esac
7098 # If no C compiler was specified, use CC.
7099 LTCC=${LTCC-"$CC"}
7101 # If no C compiler flags were specified, use CFLAGS.
7102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7104 # Allow CC to be a program name with arguments.
7105 compiler=$CC
7108 # Check for command to grab the raw symbol name followed by C symbol from nm.
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7110 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7111 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7115 # These are sane defaults that work on at least a few old systems.
7116 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7118 # Character class describing NM global symbol codes.
7119 symcode='[BCDEGRST]'
7121 # Regexp to match symbols that can be accessed directly from C.
7122 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7124 # Define system-specific variables.
7125 case $host_os in
7126 aix*)
7127 symcode='[BCDT]'
7129 cygwin* | mingw* | pw32* | cegcc*)
7130 symcode='[ABCDGISTW]'
7132 hpux*)
7133 if test "$host_cpu" = ia64; then
7134 symcode='[ABCDEGRST]'
7137 irix* | nonstopux*)
7138 symcode='[BCDEGRST]'
7140 osf*)
7141 symcode='[BCDEGQRST]'
7143 solaris*)
7144 symcode='[BDRT]'
7146 sco3.2v5*)
7147 symcode='[DT]'
7149 sysv4.2uw2*)
7150 symcode='[DT]'
7152 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7153 symcode='[ABDT]'
7155 sysv4)
7156 symcode='[DFNSTU]'
7158 esac
7160 # If we're using GNU nm, then use its standard symbol codes.
7161 case `$NM -V 2>&1` in
7162 *GNU* | *'with BFD'*)
7163 symcode='[ABCDGIRSTW]' ;;
7164 esac
7166 # Transform an extracted symbol line into a proper C declaration.
7167 # Some systems (esp. on ia64) link data and code symbols differently,
7168 # so use this general approach.
7169 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7171 # Transform an extracted symbol line into symbol name and symbol address
7172 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7173 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'"
7175 # Handle CRLF in mingw tool chain
7176 opt_cr=
7177 case $build_os in
7178 mingw*)
7179 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7181 esac
7183 # Try without a prefix underscore, then with it.
7184 for ac_symprfx in "" "_"; do
7186 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7187 symxfrm="\\1 $ac_symprfx\\2 \\2"
7189 # Write the raw and C identifiers.
7190 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7191 # Fake it for dumpbin and say T for any non-static function
7192 # and D for any global variable.
7193 # Also find C++ and __fastcall symbols from MSVC++,
7194 # which start with @ or ?.
7195 lt_cv_sys_global_symbol_pipe="$AWK '"\
7196 " {last_section=section; section=\$ 3};"\
7197 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7198 " \$ 0!~/External *\|/{next};"\
7199 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7200 " {if(hide[section]) next};"\
7201 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7202 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7203 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7204 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7205 " ' prfx=^$ac_symprfx"
7206 else
7207 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7209 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7211 # Check to see that the pipe works correctly.
7212 pipe_works=no
7214 rm -f conftest*
7215 cat > conftest.$ac_ext <<_LT_EOF
7216 #ifdef __cplusplus
7217 extern "C" {
7218 #endif
7219 char nm_test_var;
7220 void nm_test_func(void);
7221 void nm_test_func(void){}
7222 #ifdef __cplusplus
7224 #endif
7225 int main(){nm_test_var='a';nm_test_func();return(0);}
7226 _LT_EOF
7228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7229 (eval $ac_compile) 2>&5
7230 ac_status=$?
7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; }; then
7233 # Now try to grab the symbols.
7234 nlist=conftest.nm
7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7236 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7237 ac_status=$?
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; } && test -s "$nlist"; then
7240 # Try sorting and uniquifying the output.
7241 if sort "$nlist" | uniq > "$nlist"T; then
7242 mv -f "$nlist"T "$nlist"
7243 else
7244 rm -f "$nlist"T
7247 # Make sure that we snagged all the symbols we need.
7248 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7249 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7250 cat <<_LT_EOF > conftest.$ac_ext
7251 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7252 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7253 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7254 relocations are performed -- see ld's documentation on pseudo-relocs. */
7255 # define LT_DLSYM_CONST
7256 #elif defined(__osf__)
7257 /* This system does not cope well with relocations in const data. */
7258 # define LT_DLSYM_CONST
7259 #else
7260 # define LT_DLSYM_CONST const
7261 #endif
7263 #ifdef __cplusplus
7264 extern "C" {
7265 #endif
7267 _LT_EOF
7268 # Now generate the symbol file.
7269 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7271 cat <<_LT_EOF >> conftest.$ac_ext
7273 /* The mapping between symbol names and symbols. */
7274 LT_DLSYM_CONST struct {
7275 const char *name;
7276 void *address;
7278 lt__PROGRAM__LTX_preloaded_symbols[] =
7280 { "@PROGRAM@", (void *) 0 },
7281 _LT_EOF
7282 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7283 cat <<\_LT_EOF >> conftest.$ac_ext
7284 {0, (void *) 0}
7287 /* This works around a problem in FreeBSD linker */
7288 #ifdef FREEBSD_WORKAROUND
7289 static const void *lt_preloaded_setup() {
7290 return lt__PROGRAM__LTX_preloaded_symbols;
7292 #endif
7294 #ifdef __cplusplus
7296 #endif
7297 _LT_EOF
7298 # Now try linking the two files.
7299 mv conftest.$ac_objext conftstm.$ac_objext
7300 lt_globsym_save_LIBS=$LIBS
7301 lt_globsym_save_CFLAGS=$CFLAGS
7302 LIBS="conftstm.$ac_objext"
7303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7305 (eval $ac_link) 2>&5
7306 ac_status=$?
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7309 pipe_works=yes
7311 LIBS=$lt_globsym_save_LIBS
7312 CFLAGS=$lt_globsym_save_CFLAGS
7313 else
7314 echo "cannot find nm_test_func in $nlist" >&5
7316 else
7317 echo "cannot find nm_test_var in $nlist" >&5
7319 else
7320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7322 else
7323 echo "$progname: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 rm -rf conftest* conftst*
7328 # Do not use the global_symbol_pipe unless it works.
7329 if test "$pipe_works" = yes; then
7330 break
7331 else
7332 lt_cv_sys_global_symbol_pipe=
7334 done
7338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7339 lt_cv_sys_global_symbol_to_cdecl=
7341 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7343 $as_echo "failed" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7346 $as_echo "ok" >&6; }
7349 # Response file support.
7350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7351 nm_file_list_spec='@'
7352 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7353 nm_file_list_spec='@'
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7383 $as_echo_n "checking for sysroot... " >&6; }
7385 # Check whether --with-sysroot was given.
7386 if test "${with_sysroot+set}" = set; then :
7387 withval=$with_sysroot;
7388 else
7389 with_sysroot=no
7393 lt_sysroot=
7394 case ${with_sysroot} in #(
7395 yes)
7396 if test "$GCC" = yes; then
7397 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7399 ;; #(
7401 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7402 ;; #(
7403 no|'')
7404 ;; #(
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7407 $as_echo "${with_sysroot}" >&6; }
7408 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7410 esac
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7413 $as_echo "${lt_sysroot:-no}" >&6; }
7419 # Check whether --enable-libtool-lock was given.
7420 if test "${enable_libtool_lock+set}" = set; then :
7421 enableval=$enable_libtool_lock;
7424 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7426 # Some flags need to be propagated to the compiler or linker for good
7427 # libtool support.
7428 case $host in
7429 ia64-*-hpux*)
7430 # Find out which ABI we are using.
7431 echo 'int i;' > conftest.$ac_ext
7432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7433 (eval $ac_compile) 2>&5
7434 ac_status=$?
7435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; }; then
7437 case `/usr/bin/file conftest.$ac_objext` in
7438 *ELF-32*)
7439 HPUX_IA64_MODE="32"
7441 *ELF-64*)
7442 HPUX_IA64_MODE="64"
7444 esac
7446 rm -rf conftest*
7448 *-*-irix6*)
7449 # Find out which ABI we are using.
7450 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452 (eval $ac_compile) 2>&5
7453 ac_status=$?
7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 if test "$lt_cv_prog_gnu_ld" = yes; then
7457 case `/usr/bin/file conftest.$ac_objext` in
7458 *32-bit*)
7459 LD="${LD-ld} -melf32bsmip"
7461 *N32*)
7462 LD="${LD-ld} -melf32bmipn32"
7464 *64-bit*)
7465 LD="${LD-ld} -melf64bmip"
7467 esac
7468 else
7469 case `/usr/bin/file conftest.$ac_objext` in
7470 *32-bit*)
7471 LD="${LD-ld} -32"
7473 *N32*)
7474 LD="${LD-ld} -n32"
7476 *64-bit*)
7477 LD="${LD-ld} -64"
7479 esac
7482 rm -rf conftest*
7485 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7486 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7487 # Find out which ABI we are using.
7488 echo 'int i;' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 case `/usr/bin/file conftest.o` in
7495 *32-bit*)
7496 case $host in
7497 x86_64-*kfreebsd*-gnu)
7498 LD="${LD-ld} -m elf_i386_fbsd"
7500 x86_64-*linux*)
7501 LD="${LD-ld} -m elf_i386"
7503 ppc64-*linux*|powerpc64-*linux*)
7504 LD="${LD-ld} -m elf32ppclinux"
7506 s390x-*linux*)
7507 LD="${LD-ld} -m elf_s390"
7509 sparc64-*linux*)
7510 LD="${LD-ld} -m elf32_sparc"
7512 esac
7514 *64-bit*)
7515 case $host in
7516 x86_64-*kfreebsd*-gnu)
7517 LD="${LD-ld} -m elf_x86_64_fbsd"
7519 x86_64-*linux*)
7520 LD="${LD-ld} -m elf_x86_64"
7522 ppc*-*linux*|powerpc*-*linux*)
7523 LD="${LD-ld} -m elf64ppc"
7525 s390*-*linux*|s390*-*tpf*)
7526 LD="${LD-ld} -m elf64_s390"
7528 sparc*-*linux*)
7529 LD="${LD-ld} -m elf64_sparc"
7531 esac
7533 esac
7535 rm -rf conftest*
7538 *-*-sco3.2v5*)
7539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540 SAVE_CFLAGS="$CFLAGS"
7541 CFLAGS="$CFLAGS -belf"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544 if ${lt_cv_cc_needs_belf+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 ac_ext=c
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7557 main ()
7561 return 0;
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 lt_cv_cc_needs_belf=yes
7566 else
7567 lt_cv_cc_needs_belf=no
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582 CFLAGS="$SAVE_CFLAGS"
7585 sparc*-*solaris*)
7586 # Find out which ABI we are using.
7587 echo 'int i;' > conftest.$ac_ext
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589 (eval $ac_compile) 2>&5
7590 ac_status=$?
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 case `/usr/bin/file conftest.o` in
7594 *64-bit*)
7595 case $lt_cv_prog_gnu_ld in
7596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7599 LD="${LD-ld} -64"
7602 esac
7604 esac
7606 rm -rf conftest*
7608 esac
7610 need_locks="$enable_libtool_lock"
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}mt; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$MANIFEST_TOOL"; then
7621 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7634 done
7635 done
7636 IFS=$as_save_IFS
7640 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7641 if test -n "$MANIFEST_TOOL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7643 $as_echo "$MANIFEST_TOOL" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7652 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7653 # Extract the first word of "mt", so it can be a program name with args.
7654 set dummy mt; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_MANIFEST_TOOL"; then
7661 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7674 done
7675 done
7676 IFS=$as_save_IFS
7680 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7681 if test -n "$ac_ct_MANIFEST_TOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7683 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7690 MANIFEST_TOOL=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7700 else
7701 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7704 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7706 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7707 if ${lt_cv_path_mainfest_tool+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 lt_cv_path_mainfest_tool=no
7711 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7712 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7713 cat conftest.err >&5
7714 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7715 lt_cv_path_mainfest_tool=yes
7717 rm -f conftest*
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7720 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7721 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7722 MANIFEST_TOOL=:
7730 case $host_os in
7731 rhapsody* | darwin*)
7732 if test -n "$ac_tool_prefix"; then
7733 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$DSYMUTIL"; then
7741 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7754 done
7755 done
7756 IFS=$as_save_IFS
7760 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7761 if test -n "$DSYMUTIL"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7763 $as_echo "$DSYMUTIL" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7771 if test -z "$ac_cv_prog_DSYMUTIL"; then
7772 ac_ct_DSYMUTIL=$DSYMUTIL
7773 # Extract the first word of "dsymutil", so it can be a program name with args.
7774 set dummy dsymutil; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 if test -n "$ac_ct_DSYMUTIL"; then
7781 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7794 done
7795 done
7796 IFS=$as_save_IFS
7800 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7801 if test -n "$ac_ct_DSYMUTIL"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7803 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7809 if test "x$ac_ct_DSYMUTIL" = x; then
7810 DSYMUTIL=":"
7811 else
7812 case $cross_compiling:$ac_tool_warned in
7813 yes:)
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818 DSYMUTIL=$ac_ct_DSYMUTIL
7820 else
7821 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_NMEDIT+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$NMEDIT"; then
7833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 NMEDIT=$ac_cv_prog_NMEDIT
7853 if test -n "$NMEDIT"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7855 $as_echo "$NMEDIT" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7863 if test -z "$ac_cv_prog_NMEDIT"; then
7864 ac_ct_NMEDIT=$NMEDIT
7865 # Extract the first word of "nmedit", so it can be a program name with args.
7866 set dummy nmedit; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$ac_ct_NMEDIT"; then
7873 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7886 done
7887 done
7888 IFS=$as_save_IFS
7892 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7893 if test -n "$ac_ct_NMEDIT"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7895 $as_echo "$ac_ct_NMEDIT" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7901 if test "x$ac_ct_NMEDIT" = x; then
7902 NMEDIT=":"
7903 else
7904 case $cross_compiling:$ac_tool_warned in
7905 yes:)
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908 ac_tool_warned=yes ;;
7909 esac
7910 NMEDIT=$ac_ct_NMEDIT
7912 else
7913 NMEDIT="$ac_cv_prog_NMEDIT"
7916 if test -n "$ac_tool_prefix"; then
7917 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7918 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_LIPO+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$LIPO"; then
7925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7938 done
7939 done
7940 IFS=$as_save_IFS
7944 LIPO=$ac_cv_prog_LIPO
7945 if test -n "$LIPO"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7947 $as_echo "$LIPO" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7955 if test -z "$ac_cv_prog_LIPO"; then
7956 ac_ct_LIPO=$LIPO
7957 # Extract the first word of "lipo", so it can be a program name with args.
7958 set dummy lipo; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$ac_ct_LIPO"; then
7965 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_ac_ct_LIPO="lipo"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7978 done
7979 done
7980 IFS=$as_save_IFS
7984 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7985 if test -n "$ac_ct_LIPO"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7987 $as_echo "$ac_ct_LIPO" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7993 if test "x$ac_ct_LIPO" = x; then
7994 LIPO=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002 LIPO=$ac_ct_LIPO
8004 else
8005 LIPO="$ac_cv_prog_LIPO"
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}otool; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_OTOOL+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 if test -n "$OTOOL"; then
8017 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8030 done
8031 done
8032 IFS=$as_save_IFS
8036 OTOOL=$ac_cv_prog_OTOOL
8037 if test -n "$OTOOL"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8039 $as_echo "$OTOOL" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8047 if test -z "$ac_cv_prog_OTOOL"; then
8048 ac_ct_OTOOL=$OTOOL
8049 # Extract the first word of "otool", so it can be a program name with args.
8050 set dummy otool; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$ac_ct_OTOOL"; then
8057 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_ac_ct_OTOOL="otool"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8076 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8077 if test -n "$ac_ct_OTOOL"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8079 $as_echo "$ac_ct_OTOOL" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8085 if test "x$ac_ct_OTOOL" = x; then
8086 OTOOL=":"
8087 else
8088 case $cross_compiling:$ac_tool_warned in
8089 yes:)
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8093 esac
8094 OTOOL=$ac_ct_OTOOL
8096 else
8097 OTOOL="$ac_cv_prog_OTOOL"
8100 if test -n "$ac_tool_prefix"; then
8101 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8102 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if ${ac_cv_prog_OTOOL64+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 if test -n "$OTOOL64"; then
8109 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8122 done
8123 done
8124 IFS=$as_save_IFS
8128 OTOOL64=$ac_cv_prog_OTOOL64
8129 if test -n "$OTOOL64"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8131 $as_echo "$OTOOL64" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8139 if test -z "$ac_cv_prog_OTOOL64"; then
8140 ac_ct_OTOOL64=$OTOOL64
8141 # Extract the first word of "otool64", so it can be a program name with args.
8142 set dummy otool64; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 if test -n "$ac_ct_OTOOL64"; then
8149 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_ac_ct_OTOOL64="otool64"
8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8162 done
8163 done
8164 IFS=$as_save_IFS
8168 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8169 if test -n "$ac_ct_OTOOL64"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8171 $as_echo "$ac_ct_OTOOL64" >&6; }
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8177 if test "x$ac_ct_OTOOL64" = x; then
8178 OTOOL64=":"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181 yes:)
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184 ac_tool_warned=yes ;;
8185 esac
8186 OTOOL64=$ac_ct_OTOOL64
8188 else
8189 OTOOL64="$ac_cv_prog_OTOOL64"
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8219 $as_echo_n "checking for -single_module linker flag... " >&6; }
8220 if ${lt_cv_apple_cc_single_mod+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_apple_cc_single_mod=no
8224 if test -z "${LT_MULTI_MODULE}"; then
8225 # By default we will add the -single_module flag. You can override
8226 # by either setting the environment variable LT_MULTI_MODULE
8227 # non-empty at configure time, or by adding -multi_module to the
8228 # link flags.
8229 rm -rf libconftest.dylib*
8230 echo "int foo(void){return 1;}" > conftest.c
8231 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8232 -dynamiclib -Wl,-single_module conftest.c" >&5
8233 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8234 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8235 _lt_result=$?
8236 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8237 lt_cv_apple_cc_single_mod=yes
8238 else
8239 cat conftest.err >&5
8241 rm -rf libconftest.dylib*
8242 rm -f conftest.*
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8246 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8248 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8249 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 lt_cv_ld_exported_symbols_list=no
8253 save_LDFLAGS=$LDFLAGS
8254 echo "_main" > conftest.sym
8255 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8260 main ()
8264 return 0;
8266 _ACEOF
8267 if ac_fn_c_try_link "$LINENO"; then :
8268 lt_cv_ld_exported_symbols_list=yes
8269 else
8270 lt_cv_ld_exported_symbols_list=no
8272 rm -f core conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LDFLAGS="$save_LDFLAGS"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8278 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8280 $as_echo_n "checking for -force_load linker flag... " >&6; }
8281 if ${lt_cv_ld_force_load+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 lt_cv_ld_force_load=no
8285 cat > conftest.c << _LT_EOF
8286 int forced_loaded() { return 2;}
8287 _LT_EOF
8288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8290 echo "$AR cru libconftest.a conftest.o" >&5
8291 $AR cru libconftest.a conftest.o 2>&5
8292 echo "$RANLIB libconftest.a" >&5
8293 $RANLIB libconftest.a 2>&5
8294 cat > conftest.c << _LT_EOF
8295 int main() { return 0;}
8296 _LT_EOF
8297 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8298 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8299 _lt_result=$?
8300 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8301 lt_cv_ld_force_load=yes
8302 else
8303 cat conftest.err >&5
8305 rm -f conftest.err libconftest.a conftest conftest.c
8306 rm -rf conftest.dSYM
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8310 $as_echo "$lt_cv_ld_force_load" >&6; }
8311 case $host_os in
8312 rhapsody* | darwin1.[012])
8313 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8314 darwin1.*)
8315 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8316 darwin*) # darwin 5.x on
8317 # if running on 10.5 or later, the deployment target defaults
8318 # to the OS version, if on x86, and 10.4, the deployment
8319 # target defaults to 10.4. Don't you love it?
8320 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8321 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8322 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8323 10.[012]*)
8324 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8325 10.*)
8326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8327 esac
8329 esac
8330 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8331 _lt_dar_single_mod='$single_module'
8333 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8334 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8335 else
8336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8338 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8339 _lt_dsymutil='~$DSYMUTIL $lib || :'
8340 else
8341 _lt_dsymutil=
8344 esac
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8348 $as_echo_n "checking for ANSI C header files... " >&6; }
8349 if ${ac_cv_header_stdc+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <stdlib.h>
8355 #include <stdarg.h>
8356 #include <string.h>
8357 #include <float.h>
8360 main ()
8364 return 0;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 ac_cv_header_stdc=yes
8369 else
8370 ac_cv_header_stdc=no
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 if test $ac_cv_header_stdc = yes; then
8375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 #include <string.h>
8380 _ACEOF
8381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8382 $EGREP "memchr" >/dev/null 2>&1; then :
8384 else
8385 ac_cv_header_stdc=no
8387 rm -f conftest*
8391 if test $ac_cv_header_stdc = yes; then
8392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <stdlib.h>
8397 _ACEOF
8398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8399 $EGREP "free" >/dev/null 2>&1; then :
8401 else
8402 ac_cv_header_stdc=no
8404 rm -f conftest*
8408 if test $ac_cv_header_stdc = yes; then
8409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8410 if test "$cross_compiling" = yes; then :
8412 else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 #include <ctype.h>
8416 #include <stdlib.h>
8417 #if ((' ' & 0x0FF) == 0x020)
8418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8420 #else
8421 # define ISLOWER(c) \
8422 (('a' <= (c) && (c) <= 'i') \
8423 || ('j' <= (c) && (c) <= 'r') \
8424 || ('s' <= (c) && (c) <= 'z'))
8425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8426 #endif
8428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8430 main ()
8432 int i;
8433 for (i = 0; i < 256; i++)
8434 if (XOR (islower (i), ISLOWER (i))
8435 || toupper (i) != TOUPPER (i))
8436 return 2;
8437 return 0;
8439 _ACEOF
8440 if ac_fn_c_try_run "$LINENO"; then :
8442 else
8443 ac_cv_header_stdc=no
8445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446 conftest.$ac_objext conftest.beam conftest.$ac_ext
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8452 $as_echo "$ac_cv_header_stdc" >&6; }
8453 if test $ac_cv_header_stdc = yes; then
8455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8461 inttypes.h stdint.h unistd.h
8462 do :
8463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8464 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8466 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8467 cat >>confdefs.h <<_ACEOF
8468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8469 _ACEOF
8473 done
8476 for ac_header in dlfcn.h
8477 do :
8478 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8480 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8481 cat >>confdefs.h <<_ACEOF
8482 #define HAVE_DLFCN_H 1
8483 _ACEOF
8487 done
8492 func_stripname_cnf ()
8494 case ${2} in
8495 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8496 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8497 esac
8498 } # func_stripname_cnf
8504 # Set options
8508 enable_dlopen=no
8515 # Check whether --with-pic was given.
8516 if test "${with_pic+set}" = set; then :
8517 withval=$with_pic; pic_mode="$withval"
8518 else
8519 pic_mode=default
8523 test -z "$pic_mode" && pic_mode=default
8531 # Check whether --enable-fast-install was given.
8532 if test "${enable_fast_install+set}" = set; then :
8533 enableval=$enable_fast_install; p=${PACKAGE-default}
8534 case $enableval in
8535 yes) enable_fast_install=yes ;;
8536 no) enable_fast_install=no ;;
8538 enable_fast_install=no
8539 # Look at the argument we got. We use all the common list separators.
8540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8541 for pkg in $enableval; do
8542 IFS="$lt_save_ifs"
8543 if test "X$pkg" = "X$p"; then
8544 enable_fast_install=yes
8546 done
8547 IFS="$lt_save_ifs"
8549 esac
8550 else
8551 enable_fast_install=yes
8564 # This can be used to rebuild libtool when needed
8565 LIBTOOL_DEPS="$ltmain"
8567 # Always use our own libtool.
8568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8595 test -z "$LN_S" && LN_S="ln -s"
8610 if test -n "${ZSH_VERSION+set}" ; then
8611 setopt NO_GLOB_SUBST
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8615 $as_echo_n "checking for objdir... " >&6; }
8616 if ${lt_cv_objdir+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 rm -f .libs 2>/dev/null
8620 mkdir .libs 2>/dev/null
8621 if test -d .libs; then
8622 lt_cv_objdir=.libs
8623 else
8624 # MS-DOS does not allow filenames that begin with a dot.
8625 lt_cv_objdir=_libs
8627 rmdir .libs 2>/dev/null
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8630 $as_echo "$lt_cv_objdir" >&6; }
8631 objdir=$lt_cv_objdir
8637 cat >>confdefs.h <<_ACEOF
8638 #define LT_OBJDIR "$lt_cv_objdir/"
8639 _ACEOF
8644 case $host_os in
8645 aix3*)
8646 # AIX sometimes has problems with the GCC collect2 program. For some
8647 # reason, if we set the COLLECT_NAMES environment variable, the problems
8648 # vanish in a puff of smoke.
8649 if test "X${COLLECT_NAMES+set}" != Xset; then
8650 COLLECT_NAMES=
8651 export COLLECT_NAMES
8654 esac
8656 # Global variables:
8657 ofile=libtool
8658 can_build_shared=yes
8660 # All known linkers require a `.a' archive for static linking (except MSVC,
8661 # which needs '.lib').
8662 libext=a
8664 with_gnu_ld="$lt_cv_prog_gnu_ld"
8666 old_CC="$CC"
8667 old_CFLAGS="$CFLAGS"
8669 # Set sane defaults for various variables
8670 test -z "$CC" && CC=cc
8671 test -z "$LTCC" && LTCC=$CC
8672 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8673 test -z "$LD" && LD=ld
8674 test -z "$ac_objext" && ac_objext=o
8676 for cc_temp in $compiler""; do
8677 case $cc_temp in
8678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8680 \-*) ;;
8681 *) break;;
8682 esac
8683 done
8684 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8687 # Only perform the check for file, if the check method requires it
8688 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8689 case $deplibs_check_method in
8690 file_magic*)
8691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8693 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8694 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 case $MAGIC_CMD in
8698 [\\/*] | ?:[\\/]*)
8699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8702 lt_save_MAGIC_CMD="$MAGIC_CMD"
8703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8705 for ac_dir in $ac_dummy; do
8706 IFS="$lt_save_ifs"
8707 test -z "$ac_dir" && ac_dir=.
8708 if test -f $ac_dir/${ac_tool_prefix}file; then
8709 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8710 if test -n "$file_magic_test_file"; then
8711 case $deplibs_check_method in
8712 "file_magic "*)
8713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8716 $EGREP "$file_magic_regex" > /dev/null; then
8718 else
8719 cat <<_LT_EOF 1>&2
8721 *** Warning: the command libtool uses to detect shared libraries,
8722 *** $file_magic_cmd, produces output that libtool cannot recognize.
8723 *** The result is that libtool may fail to recognize shared libraries
8724 *** as such. This will affect the creation of libtool libraries that
8725 *** depend on shared libraries, but programs linked with such libtool
8726 *** libraries will work regardless of this problem. Nevertheless, you
8727 *** may want to report the problem to your system manager and/or to
8728 *** bug-libtool@gnu.org
8730 _LT_EOF
8731 fi ;;
8732 esac
8734 break
8736 done
8737 IFS="$lt_save_ifs"
8738 MAGIC_CMD="$lt_save_MAGIC_CMD"
8740 esac
8743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8744 if test -n "$MAGIC_CMD"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8746 $as_echo "$MAGIC_CMD" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8756 if test -z "$lt_cv_path_MAGIC_CMD"; then
8757 if test -n "$ac_tool_prefix"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8759 $as_echo_n "checking for file... " >&6; }
8760 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 case $MAGIC_CMD in
8764 [\\/*] | ?:[\\/]*)
8765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8768 lt_save_MAGIC_CMD="$MAGIC_CMD"
8769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8771 for ac_dir in $ac_dummy; do
8772 IFS="$lt_save_ifs"
8773 test -z "$ac_dir" && ac_dir=.
8774 if test -f $ac_dir/file; then
8775 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8776 if test -n "$file_magic_test_file"; then
8777 case $deplibs_check_method in
8778 "file_magic "*)
8779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8782 $EGREP "$file_magic_regex" > /dev/null; then
8784 else
8785 cat <<_LT_EOF 1>&2
8787 *** Warning: the command libtool uses to detect shared libraries,
8788 *** $file_magic_cmd, produces output that libtool cannot recognize.
8789 *** The result is that libtool may fail to recognize shared libraries
8790 *** as such. This will affect the creation of libtool libraries that
8791 *** depend on shared libraries, but programs linked with such libtool
8792 *** libraries will work regardless of this problem. Nevertheless, you
8793 *** may want to report the problem to your system manager and/or to
8794 *** bug-libtool@gnu.org
8796 _LT_EOF
8797 fi ;;
8798 esac
8800 break
8802 done
8803 IFS="$lt_save_ifs"
8804 MAGIC_CMD="$lt_save_MAGIC_CMD"
8806 esac
8809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8810 if test -n "$MAGIC_CMD"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8812 $as_echo "$MAGIC_CMD" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8819 else
8820 MAGIC_CMD=:
8826 esac
8828 # Use C for the default configuration in the libtool script
8830 lt_save_CC="$CC"
8831 ac_ext=c
8832 ac_cpp='$CPP $CPPFLAGS'
8833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8838 # Source file extension for C test sources.
8839 ac_ext=c
8841 # Object file extension for compiled C test sources.
8842 objext=o
8843 objext=$objext
8845 # Code to be used in simple compile tests
8846 lt_simple_compile_test_code="int some_variable = 0;"
8848 # Code to be used in simple link tests
8849 lt_simple_link_test_code='int main(){return(0);}'
8857 # If no C compiler was specified, use CC.
8858 LTCC=${LTCC-"$CC"}
8860 # If no C compiler flags were specified, use CFLAGS.
8861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8863 # Allow CC to be a program name with arguments.
8864 compiler=$CC
8866 # Save the default compiler, since it gets overwritten when the other
8867 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8868 compiler_DEFAULT=$CC
8870 # save warnings/boilerplate of simple test code
8871 ac_outfile=conftest.$ac_objext
8872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8874 _lt_compiler_boilerplate=`cat conftest.err`
8875 $RM conftest*
8877 ac_outfile=conftest.$ac_objext
8878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8880 _lt_linker_boilerplate=`cat conftest.err`
8881 $RM -r conftest*
8884 if test -n "$compiler"; then
8886 lt_prog_compiler_no_builtin_flag=
8888 if test "$GCC" = yes; then
8889 case $cc_basename in
8890 nvcc*)
8891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8894 esac
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8897 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8898 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 lt_cv_prog_compiler_rtti_exceptions=no
8902 ac_outfile=conftest.$ac_objext
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="-fno-rtti -fno-exceptions"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 # The option is referenced via a variable to avoid confusing sed.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>conftest.err)
8916 ac_status=$?
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s "$ac_outfile"; then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings other than the usual output.
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_rtti_exceptions=yes
8928 $RM conftest*
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8932 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8936 else
8947 lt_prog_compiler_wl=
8948 lt_prog_compiler_pic=
8949 lt_prog_compiler_static=
8952 if test "$GCC" = yes; then
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_static='-static'
8956 case $host_os in
8957 aix*)
8958 # All AIX code is PIC.
8959 if test "$host_cpu" = ia64; then
8960 # AIX 5 now supports IA64 processor
8961 lt_prog_compiler_static='-Bstatic'
8965 amigaos*)
8966 case $host_cpu in
8967 powerpc)
8968 # see comment about AmigaOS4 .so support
8969 lt_prog_compiler_pic='-fPIC'
8971 m68k)
8972 # FIXME: we need at least 68020 code to build shared libraries, but
8973 # adding the `-m68020' flag to GCC prevents building anything better,
8974 # like `-m68040'.
8975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8977 esac
8980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8981 # PIC is the default for these OSes.
8984 mingw* | cygwin* | pw32* | os2* | cegcc*)
8985 # This hack is so that the source file can tell whether it is being
8986 # built for inclusion in a dll (and should export symbols for example).
8987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8988 # (--disable-auto-import) libraries
8989 lt_prog_compiler_pic='-DDLL_EXPORT'
8992 darwin* | rhapsody*)
8993 # PIC is the default on this platform
8994 # Common symbols not allowed in MH_DYLIB files
8995 lt_prog_compiler_pic='-fno-common'
8998 haiku*)
8999 # PIC is the default for Haiku.
9000 # The "-static" flag exists, but is broken.
9001 lt_prog_compiler_static=
9004 hpux*)
9005 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9006 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9007 # sets the default TLS model and affects inlining.
9008 case $host_cpu in
9009 hppa*64*)
9010 # +Z the default
9013 lt_prog_compiler_pic='-fPIC'
9015 esac
9018 interix[3-9]*)
9019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9020 # Instead, we relocate shared libraries at runtime.
9023 msdosdjgpp*)
9024 # Just because we use GCC doesn't mean we suddenly get shared libraries
9025 # on systems that don't support them.
9026 lt_prog_compiler_can_build_shared=no
9027 enable_shared=no
9030 *nto* | *qnx*)
9031 # QNX uses GNU C++, but need to define -shared option too, otherwise
9032 # it will coredump.
9033 lt_prog_compiler_pic='-fPIC -shared'
9036 sysv4*MP*)
9037 if test -d /usr/nec; then
9038 lt_prog_compiler_pic=-Kconform_pic
9043 lt_prog_compiler_pic='-fPIC'
9045 esac
9047 case $cc_basename in
9048 nvcc*) # Cuda Compiler Driver 2.2
9049 lt_prog_compiler_wl='-Xlinker '
9050 lt_prog_compiler_pic='-Xcompiler -fPIC'
9052 esac
9053 else
9054 # PORTME Check for flag to pass linker flags through the system compiler.
9055 case $host_os in
9056 aix*)
9057 lt_prog_compiler_wl='-Wl,'
9058 if test "$host_cpu" = ia64; then
9059 # AIX 5 now supports IA64 processor
9060 lt_prog_compiler_static='-Bstatic'
9061 else
9062 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9066 mingw* | cygwin* | pw32* | os2* | cegcc*)
9067 # This hack is so that the source file can tell whether it is being
9068 # built for inclusion in a dll (and should export symbols for example).
9069 lt_prog_compiler_pic='-DDLL_EXPORT'
9072 hpux9* | hpux10* | hpux11*)
9073 lt_prog_compiler_wl='-Wl,'
9074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9075 # not for PA HP-UX.
9076 case $host_cpu in
9077 hppa*64*|ia64*)
9078 # +Z the default
9081 lt_prog_compiler_pic='+Z'
9083 esac
9084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9085 lt_prog_compiler_static='${wl}-a ${wl}archive'
9088 irix5* | irix6* | nonstopux*)
9089 lt_prog_compiler_wl='-Wl,'
9090 # PIC (with -KPIC) is the default.
9091 lt_prog_compiler_static='-non_shared'
9094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9095 case $cc_basename in
9096 # old Intel for x86_64 which still supported -KPIC.
9097 ecc*)
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='-KPIC'
9100 lt_prog_compiler_static='-static'
9102 # icc used to be incompatible with GCC.
9103 # ICC 10 doesn't accept -KPIC any more.
9104 icc* | ifort*)
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_pic='-fPIC'
9107 lt_prog_compiler_static='-static'
9109 # Lahey Fortran 8.1.
9110 lf95*)
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='--shared'
9113 lt_prog_compiler_static='--static'
9115 nagfor*)
9116 # NAG Fortran compiler
9117 lt_prog_compiler_wl='-Wl,-Wl,,'
9118 lt_prog_compiler_pic='-PIC'
9119 lt_prog_compiler_static='-Bstatic'
9121 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9122 # Portland Group compilers (*not* the Pentium gcc compiler,
9123 # which looks to be a dead project)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-fpic'
9126 lt_prog_compiler_static='-Bstatic'
9128 ccc*)
9129 lt_prog_compiler_wl='-Wl,'
9130 # All Alpha code is PIC.
9131 lt_prog_compiler_static='-non_shared'
9133 xl* | bgxl* | bgf* | mpixl*)
9134 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_pic='-qpic'
9137 lt_prog_compiler_static='-qstaticlink'
9140 case `$CC -V 2>&1 | sed 5q` in
9141 *Sun\ F* | *Sun*Fortran*)
9142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9143 lt_prog_compiler_pic='-KPIC'
9144 lt_prog_compiler_static='-Bstatic'
9145 lt_prog_compiler_wl=''
9147 *Sun\ C*)
9148 # Sun C 5.9
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9151 lt_prog_compiler_wl='-Wl,'
9153 esac
9155 esac
9158 newsos6)
9159 lt_prog_compiler_pic='-KPIC'
9160 lt_prog_compiler_static='-Bstatic'
9163 *nto* | *qnx*)
9164 # QNX uses GNU C++, but need to define -shared option too, otherwise
9165 # it will coredump.
9166 lt_prog_compiler_pic='-fPIC -shared'
9169 osf3* | osf4* | osf5*)
9170 lt_prog_compiler_wl='-Wl,'
9171 # All OSF/1 code is PIC.
9172 lt_prog_compiler_static='-non_shared'
9175 rdos*)
9176 lt_prog_compiler_static='-non_shared'
9179 solaris*)
9180 lt_prog_compiler_pic='-KPIC'
9181 lt_prog_compiler_static='-Bstatic'
9182 case $cc_basename in
9183 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9184 lt_prog_compiler_wl='-Qoption ld ';;
9186 lt_prog_compiler_wl='-Wl,';;
9187 esac
9190 sunos4*)
9191 lt_prog_compiler_wl='-Qoption ld '
9192 lt_prog_compiler_pic='-PIC'
9193 lt_prog_compiler_static='-Bstatic'
9196 sysv4 | sysv4.2uw2* | sysv4.3*)
9197 lt_prog_compiler_wl='-Wl,'
9198 lt_prog_compiler_pic='-KPIC'
9199 lt_prog_compiler_static='-Bstatic'
9202 sysv4*MP*)
9203 if test -d /usr/nec ;then
9204 lt_prog_compiler_pic='-Kconform_pic'
9205 lt_prog_compiler_static='-Bstatic'
9209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9210 lt_prog_compiler_wl='-Wl,'
9211 lt_prog_compiler_pic='-KPIC'
9212 lt_prog_compiler_static='-Bstatic'
9215 unicos*)
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_can_build_shared=no
9220 uts4*)
9221 lt_prog_compiler_pic='-pic'
9222 lt_prog_compiler_static='-Bstatic'
9226 lt_prog_compiler_can_build_shared=no
9228 esac
9231 case $host_os in
9232 # For platforms which do not support PIC, -DPIC is meaningless:
9233 *djgpp*)
9234 lt_prog_compiler_pic=
9237 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9239 esac
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9242 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9243 if ${lt_cv_prog_compiler_pic+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9249 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9250 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9253 # Check to make sure the PIC flag actually works.
9255 if test -n "$lt_prog_compiler_pic"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9258 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 lt_cv_prog_compiler_pic_works=no
9262 ac_outfile=conftest.$ac_objext
9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9265 # Insert the option either (1) after the last *FLAGS variable, or
9266 # (2) before a word containing "conftest.", or (3) at the end.
9267 # Note that $ac_compile itself does not contain backslashes and begins
9268 # with a dollar sign (not a hyphen), so the echo should work correctly.
9269 # The option is referenced via a variable to avoid confusing sed.
9270 lt_compile=`echo "$ac_compile" | $SED \
9271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273 -e 's:$: $lt_compiler_flag:'`
9274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9275 (eval "$lt_compile" 2>conftest.err)
9276 ac_status=$?
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 if (exit $ac_status) && test -s "$ac_outfile"; then
9280 # The compiler can only warn and ignore the option if not recognized
9281 # So say no if there are warnings other than the usual output.
9282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9285 lt_cv_prog_compiler_pic_works=yes
9288 $RM conftest*
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9294 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9295 case $lt_prog_compiler_pic in
9296 "" | " "*) ;;
9297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9298 esac
9299 else
9300 lt_prog_compiler_pic=
9301 lt_prog_compiler_can_build_shared=no
9317 # Check to make sure the static flag actually works.
9319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9322 if ${lt_cv_prog_compiler_static_works+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 lt_cv_prog_compiler_static_works=no
9326 save_LDFLAGS="$LDFLAGS"
9327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9330 # The linker can only warn and ignore the option if not recognized
9331 # So say no if there are warnings
9332 if test -s conftest.err; then
9333 # Append any errors to the config.log.
9334 cat conftest.err 1>&5
9335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9337 if diff conftest.exp conftest.er2 >/dev/null; then
9338 lt_cv_prog_compiler_static_works=yes
9340 else
9341 lt_cv_prog_compiler_static_works=yes
9344 $RM -r conftest*
9345 LDFLAGS="$save_LDFLAGS"
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9349 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9351 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9353 else
9354 lt_prog_compiler_static=
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9365 if ${lt_cv_prog_compiler_c_o+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 lt_cv_prog_compiler_c_o=no
9369 $RM -r conftest 2>/dev/null
9370 mkdir conftest
9371 cd conftest
9372 mkdir out
9373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9375 lt_compiler_flag="-o out/conftest2.$ac_objext"
9376 # Insert the option either (1) after the last *FLAGS variable, or
9377 # (2) before a word containing "conftest.", or (3) at the end.
9378 # Note that $ac_compile itself does not contain backslashes and begins
9379 # with a dollar sign (not a hyphen), so the echo should work correctly.
9380 lt_compile=`echo "$ac_compile" | $SED \
9381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9383 -e 's:$: $lt_compiler_flag:'`
9384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9385 (eval "$lt_compile" 2>out/conftest.err)
9386 ac_status=$?
9387 cat out/conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9390 then
9391 # The compiler can only warn and ignore the option if not recognized
9392 # So say no if there are warnings
9393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9396 lt_cv_prog_compiler_c_o=yes
9399 chmod u+w . 2>&5
9400 $RM conftest*
9401 # SGI C++ compiler will create directory out/ii_files/ for
9402 # template instantiation
9403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9404 $RM out/* && rmdir out
9405 cd ..
9406 $RM -r conftest
9407 $RM conftest*
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9419 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9420 if ${lt_cv_prog_compiler_c_o+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 lt_cv_prog_compiler_c_o=no
9424 $RM -r conftest 2>/dev/null
9425 mkdir conftest
9426 cd conftest
9427 mkdir out
9428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9430 lt_compiler_flag="-o out/conftest2.$ac_objext"
9431 # Insert the option either (1) after the last *FLAGS variable, or
9432 # (2) before a word containing "conftest.", or (3) at the end.
9433 # Note that $ac_compile itself does not contain backslashes and begins
9434 # with a dollar sign (not a hyphen), so the echo should work correctly.
9435 lt_compile=`echo "$ac_compile" | $SED \
9436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438 -e 's:$: $lt_compiler_flag:'`
9439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9440 (eval "$lt_compile" 2>out/conftest.err)
9441 ac_status=$?
9442 cat out/conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9445 then
9446 # The compiler can only warn and ignore the option if not recognized
9447 # So say no if there are warnings
9448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9451 lt_cv_prog_compiler_c_o=yes
9454 chmod u+w . 2>&5
9455 $RM conftest*
9456 # SGI C++ compiler will create directory out/ii_files/ for
9457 # template instantiation
9458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9459 $RM out/* && rmdir out
9460 cd ..
9461 $RM -r conftest
9462 $RM conftest*
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9471 hard_links="nottested"
9472 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9473 # do not overwrite the value of need_locks provided by the user
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9475 $as_echo_n "checking if we can lock with hard links... " >&6; }
9476 hard_links=yes
9477 $RM conftest*
9478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9479 touch conftest.a
9480 ln conftest.a conftest.b 2>&5 || hard_links=no
9481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9483 $as_echo "$hard_links" >&6; }
9484 if test "$hard_links" = no; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9486 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9487 need_locks=warn
9489 else
9490 need_locks=no
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9501 runpath_var=
9502 allow_undefined_flag=
9503 always_export_symbols=no
9504 archive_cmds=
9505 archive_expsym_cmds=
9506 compiler_needs_object=no
9507 enable_shared_with_static_runtimes=no
9508 export_dynamic_flag_spec=
9509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9510 hardcode_automatic=no
9511 hardcode_direct=no
9512 hardcode_direct_absolute=no
9513 hardcode_libdir_flag_spec=
9514 hardcode_libdir_flag_spec_ld=
9515 hardcode_libdir_separator=
9516 hardcode_minus_L=no
9517 hardcode_shlibpath_var=unsupported
9518 inherit_rpath=no
9519 link_all_deplibs=unknown
9520 module_cmds=
9521 module_expsym_cmds=
9522 old_archive_from_new_cmds=
9523 old_archive_from_expsyms_cmds=
9524 thread_safe_flag_spec=
9525 whole_archive_flag_spec=
9526 # include_expsyms should be a list of space-separated symbols to be *always*
9527 # included in the symbol list
9528 include_expsyms=
9529 # exclude_expsyms can be an extended regexp of symbols to exclude
9530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9532 # as well as any symbol that contains `d'.
9533 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9535 # platforms (ab)use it in PIC code, but their linkers get confused if
9536 # the symbol is explicitly referenced. Since portable code cannot
9537 # rely on this symbol name, it's probably fine to never include it in
9538 # preloaded symbol tables.
9539 # Exclude shared library initialization/finalization symbols.
9540 extract_expsyms_cmds=
9542 case $host_os in
9543 cygwin* | mingw* | pw32* | cegcc*)
9544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9545 # When not using gcc, we currently assume that we are using
9546 # Microsoft Visual C++.
9547 if test "$GCC" != yes; then
9548 with_gnu_ld=no
9551 interix*)
9552 # we just hope/assume this is gcc and not c89 (= MSVC++)
9553 with_gnu_ld=yes
9555 openbsd*)
9556 with_gnu_ld=no
9558 esac
9560 ld_shlibs=yes
9562 # On some targets, GNU ld is compatible enough with the native linker
9563 # that we're better off using the native interface for both.
9564 lt_use_gnu_ld_interface=no
9565 if test "$with_gnu_ld" = yes; then
9566 case $host_os in
9567 aix*)
9568 # The AIX port of GNU ld has always aspired to compatibility
9569 # with the native linker. However, as the warning in the GNU ld
9570 # block says, versions before 2.19.5* couldn't really create working
9571 # shared libraries, regardless of the interface used.
9572 case `$LD -v 2>&1` in
9573 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9574 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9575 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9577 lt_use_gnu_ld_interface=yes
9579 esac
9582 lt_use_gnu_ld_interface=yes
9584 esac
9587 if test "$lt_use_gnu_ld_interface" = yes; then
9588 # If archive_cmds runs LD, not CC, wlarc should be empty
9589 wlarc='${wl}'
9591 # Set some defaults for GNU ld with shared library support. These
9592 # are reset later if shared libraries are not supported. Putting them
9593 # here allows them to be overridden if necessary.
9594 runpath_var=LD_RUN_PATH
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 export_dynamic_flag_spec='${wl}--export-dynamic'
9597 # ancient GNU ld didn't support --whole-archive et. al.
9598 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9599 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9600 else
9601 whole_archive_flag_spec=
9603 supports_anon_versioning=no
9604 case `$LD -v 2>&1` in
9605 *GNU\ gold*) supports_anon_versioning=yes ;;
9606 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9609 *\ 2.11.*) ;; # other 2.11 versions
9610 *) supports_anon_versioning=yes ;;
9611 esac
9613 # See if GNU ld supports shared libraries.
9614 case $host_os in
9615 aix[3-9]*)
9616 # On AIX/PPC, the GNU linker is very broken
9617 if test "$host_cpu" != ia64; then
9618 ld_shlibs=no
9619 cat <<_LT_EOF 1>&2
9621 *** Warning: the GNU linker, at least up to release 2.19, is reported
9622 *** to be unable to reliably create shared libraries on AIX.
9623 *** Therefore, libtool is disabling shared libraries support. If you
9624 *** really care for shared libraries, you may want to install binutils
9625 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9626 *** You will then need to restart the configuration process.
9628 _LT_EOF
9632 amigaos*)
9633 case $host_cpu in
9634 powerpc)
9635 # see comment about AmigaOS4 .so support
9636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637 archive_expsym_cmds=''
9639 m68k)
9640 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)'
9641 hardcode_libdir_flag_spec='-L$libdir'
9642 hardcode_minus_L=yes
9644 esac
9647 beos*)
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649 allow_undefined_flag=unsupported
9650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9651 # support --undefined. This deserves some investigation. FIXME
9652 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 else
9654 ld_shlibs=no
9658 cygwin* | mingw* | pw32* | cegcc*)
9659 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9660 # as there is no search path for DLLs.
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 export_dynamic_flag_spec='${wl}--export-all-symbols'
9663 allow_undefined_flag=unsupported
9664 always_export_symbols=no
9665 enable_shared_with_static_runtimes=yes
9666 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'
9667 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9669 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9671 # If the export-symbols file already is a .def file (1st line
9672 # is EXPORTS), use it as is; otherwise, prepend...
9673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9674 cp $export_symbols $output_objdir/$soname.def;
9675 else
9676 echo EXPORTS > $output_objdir/$soname.def;
9677 cat $export_symbols >> $output_objdir/$soname.def;
9679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9680 else
9681 ld_shlibs=no
9685 haiku*)
9686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9687 link_all_deplibs=yes
9690 interix[3-9]*)
9691 hardcode_direct=no
9692 hardcode_shlibpath_var=no
9693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9694 export_dynamic_flag_spec='${wl}-E'
9695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9696 # Instead, shared libraries are loaded at an image base (0x10000000 by
9697 # default) and relocated if they conflict, which is a slow very memory
9698 # consuming and fragmenting process. To avoid this, we pick a random,
9699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9702 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'
9705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9706 tmp_diet=no
9707 if test "$host_os" = linux-dietlibc; then
9708 case $cc_basename in
9709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9710 esac
9712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9713 && test "$tmp_diet" = no
9714 then
9715 tmp_addflag=' $pic_flag'
9716 tmp_sharedflag='-shared'
9717 case $cc_basename,$host_cpu in
9718 pgcc*) # Portland Group C compiler
9719 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'
9720 tmp_addflag=' $pic_flag'
9722 pgf77* | pgf90* | pgf95* | pgfortran*)
9723 # Portland Group f77 and f90 compilers
9724 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'
9725 tmp_addflag=' $pic_flag -Mnomain' ;;
9726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9727 tmp_addflag=' -i_dynamic' ;;
9728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9729 tmp_addflag=' -i_dynamic -nofor_main' ;;
9730 ifc* | ifort*) # Intel Fortran compiler
9731 tmp_addflag=' -nofor_main' ;;
9732 lf95*) # Lahey Fortran 8.1
9733 whole_archive_flag_spec=
9734 tmp_sharedflag='--shared' ;;
9735 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9736 tmp_sharedflag='-qmkshrobj'
9737 tmp_addflag= ;;
9738 nvcc*) # Cuda Compiler Driver 2.2
9739 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'
9740 compiler_needs_object=yes
9742 esac
9743 case `$CC -V 2>&1 | sed 5q` in
9744 *Sun\ C*) # Sun C 5.9
9745 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'
9746 compiler_needs_object=yes
9747 tmp_sharedflag='-G' ;;
9748 *Sun\ F*) # Sun Fortran 8.3
9749 tmp_sharedflag='-G' ;;
9750 esac
9751 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 if test "x$supports_anon_versioning" = xyes; then
9754 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9756 echo "local: *; };" >> $output_objdir/$libname.ver~
9757 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9760 case $cc_basename in
9761 xlf* | bgf* | bgxlf* | mpixlf*)
9762 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9763 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9764 hardcode_libdir_flag_spec=
9765 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9766 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9767 if test "x$supports_anon_versioning" = xyes; then
9768 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9770 echo "local: *; };" >> $output_objdir/$libname.ver~
9771 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9774 esac
9775 else
9776 ld_shlibs=no
9780 netbsd*)
9781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9782 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9783 wlarc=
9784 else
9785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9790 solaris*)
9791 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9792 ld_shlibs=no
9793 cat <<_LT_EOF 1>&2
9795 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9796 *** create shared libraries on Solaris systems. Therefore, libtool
9797 *** is disabling shared libraries support. We urge you to upgrade GNU
9798 *** binutils to release 2.9.1 or newer. Another option is to modify
9799 *** your PATH or compiler configuration so that the native linker is
9800 *** used, and then restart.
9802 _LT_EOF
9803 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9806 else
9807 ld_shlibs=no
9811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9812 case `$LD -v 2>&1` in
9813 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9814 ld_shlibs=no
9815 cat <<_LT_EOF 1>&2
9817 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9818 *** reliably create shared libraries on SCO systems. Therefore, libtool
9819 *** is disabling shared libraries support. We urge you to upgrade GNU
9820 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9821 *** your PATH or compiler configuration so that the native linker is
9822 *** used, and then restart.
9824 _LT_EOF
9827 # For security reasons, it is highly recommended that you always
9828 # use absolute paths for naming shared libraries, and exclude the
9829 # DT_RUNPATH tag from executables and libraries. But doing so
9830 # requires that you compile everything twice, which is a pain.
9831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9835 else
9836 ld_shlibs=no
9839 esac
9842 sunos4*)
9843 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9844 wlarc=
9845 hardcode_direct=yes
9846 hardcode_shlibpath_var=no
9850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9853 else
9854 ld_shlibs=no
9857 esac
9859 if test "$ld_shlibs" = no; then
9860 runpath_var=
9861 hardcode_libdir_flag_spec=
9862 export_dynamic_flag_spec=
9863 whole_archive_flag_spec=
9865 else
9866 # PORTME fill in a description of your system's linker (not GNU ld)
9867 case $host_os in
9868 aix3*)
9869 allow_undefined_flag=unsupported
9870 always_export_symbols=yes
9871 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'
9872 # Note: this linker hardcodes the directories in LIBPATH if there
9873 # are no directories specified by -L.
9874 hardcode_minus_L=yes
9875 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9876 # Neither direct hardcoding nor static linking is supported with a
9877 # broken collect2.
9878 hardcode_direct=unsupported
9882 aix[4-9]*)
9883 if test "$host_cpu" = ia64; then
9884 # On IA64, the linker does run time linking by default, so we don't
9885 # have to do anything special.
9886 aix_use_runtimelinking=no
9887 exp_sym_flag='-Bexport'
9888 no_entry_flag=""
9889 else
9890 # If we're using GNU nm, then we don't want the "-C" option.
9891 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9892 # Also, AIX nm treats weak defined symbols like other global
9893 # defined symbols, whereas GNU nm marks them as "W".
9894 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9895 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'
9896 else
9897 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'
9899 aix_use_runtimelinking=no
9901 # Test if we are trying to use run time linking or normal
9902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9903 # need to do runtime linking.
9904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9905 for ld_flag in $LDFLAGS; do
9906 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9907 aix_use_runtimelinking=yes
9908 break
9910 done
9912 esac
9914 exp_sym_flag='-bexport'
9915 no_entry_flag='-bnoentry'
9918 # When large executables or shared objects are built, AIX ld can
9919 # have problems creating the table of contents. If linking a library
9920 # or program results in "error TOC overflow" add -mminimal-toc to
9921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9924 archive_cmds=''
9925 hardcode_direct=yes
9926 hardcode_direct_absolute=yes
9927 hardcode_libdir_separator=':'
9928 link_all_deplibs=yes
9929 file_list_spec='${wl}-f,'
9931 if test "$GCC" = yes; then
9932 case $host_os in aix4.[012]|aix4.[012].*)
9933 # We only want to do this on AIX 4.2 and lower, the check
9934 # below for broken collect2 doesn't work under 4.3+
9935 collect2name=`${CC} -print-prog-name=collect2`
9936 if test -f "$collect2name" &&
9937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9938 then
9939 # We have reworked collect2
9941 else
9942 # We have old collect2
9943 hardcode_direct=unsupported
9944 # It fails to find uninstalled libraries when the uninstalled
9945 # path is not listed in the libpath. Setting hardcode_minus_L
9946 # to unsupported forces relinking
9947 hardcode_minus_L=yes
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_libdir_separator=
9952 esac
9953 shared_flag='-shared'
9954 if test "$aix_use_runtimelinking" = yes; then
9955 shared_flag="$shared_flag "'${wl}-G'
9957 else
9958 # not using gcc
9959 if test "$host_cpu" = ia64; then
9960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9961 # chokes on -Wl,-G. The following line is correct:
9962 shared_flag='-G'
9963 else
9964 if test "$aix_use_runtimelinking" = yes; then
9965 shared_flag='${wl}-G'
9966 else
9967 shared_flag='${wl}-bM:SRE'
9972 export_dynamic_flag_spec='${wl}-bexpall'
9973 # It seems that -bexpall does not export symbols beginning with
9974 # underscore (_), so it is better to generate a list of symbols to export.
9975 always_export_symbols=yes
9976 if test "$aix_use_runtimelinking" = yes; then
9977 # Warning - without using the other runtime loading flags (-brtl),
9978 # -berok will link without error, but may produce a broken library.
9979 allow_undefined_flag='-berok'
9980 # Determine the default libpath from the value encoded in an
9981 # empty executable.
9982 if test "${lt_cv_aix_libpath+set}" = set; then
9983 aix_libpath=$lt_cv_aix_libpath
9984 else
9985 if ${lt_cv_aix_libpath_+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9992 main ()
9996 return 0;
9998 _ACEOF
9999 if ac_fn_c_try_link "$LINENO"; then :
10001 lt_aix_libpath_sed='
10002 /Import File Strings/,/^$/ {
10003 /^0/ {
10004 s/^0 *\([^ ]*\) *$/\1/
10008 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10009 # Check for a 64-bit object if we didn't find anything.
10010 if test -z "$lt_cv_aix_libpath_"; then
10011 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 if test -z "$lt_cv_aix_libpath_"; then
10017 lt_cv_aix_libpath_="/usr/lib:/lib"
10022 aix_libpath=$lt_cv_aix_libpath_
10025 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10026 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"
10027 else
10028 if test "$host_cpu" = ia64; then
10029 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10030 allow_undefined_flag="-z nodefs"
10031 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"
10032 else
10033 # Determine the default libpath from the value encoded in an
10034 # empty executable.
10035 if test "${lt_cv_aix_libpath+set}" = set; then
10036 aix_libpath=$lt_cv_aix_libpath
10037 else
10038 if ${lt_cv_aix_libpath_+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10045 main ()
10049 return 0;
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10054 lt_aix_libpath_sed='
10055 /Import File Strings/,/^$/ {
10056 /^0/ {
10057 s/^0 *\([^ ]*\) *$/\1/
10061 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062 # Check for a 64-bit object if we didn't find anything.
10063 if test -z "$lt_cv_aix_libpath_"; then
10064 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 if test -z "$lt_cv_aix_libpath_"; then
10070 lt_cv_aix_libpath_="/usr/lib:/lib"
10075 aix_libpath=$lt_cv_aix_libpath_
10078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079 # Warning - without using the other run time loading flags,
10080 # -berok will link without error, but may produce a broken library.
10081 no_undefined_flag=' ${wl}-bernotok'
10082 allow_undefined_flag=' ${wl}-berok'
10083 if test "$with_gnu_ld" = yes; then
10084 # We only use this code for GNU lds that support --whole-archive.
10085 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10086 else
10087 # Exported symbols can be pulled into shared objects from archives
10088 whole_archive_flag_spec='$convenience'
10090 archive_cmds_need_lc=yes
10091 # This is similar to how AIX traditionally builds its shared libraries.
10092 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'
10097 amigaos*)
10098 case $host_cpu in
10099 powerpc)
10100 # see comment about AmigaOS4 .so support
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds=''
10104 m68k)
10105 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)'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_minus_L=yes
10109 esac
10112 bsdi[45]*)
10113 export_dynamic_flag_spec=-rdynamic
10116 cygwin* | mingw* | pw32* | cegcc*)
10117 # When not using gcc, we currently assume that we are using
10118 # Microsoft Visual C++.
10119 # hardcode_libdir_flag_spec is actually meaningless, as there is
10120 # no search path for DLLs.
10121 case $cc_basename in
10122 cl*)
10123 # Native MSVC
10124 hardcode_libdir_flag_spec=' '
10125 allow_undefined_flag=unsupported
10126 always_export_symbols=yes
10127 file_list_spec='@'
10128 # Tell ltmain to make .lib files, not .a files.
10129 libext=lib
10130 # Tell ltmain to make .dll files, not .so files.
10131 shrext_cmds=".dll"
10132 # FIXME: Setting linknames here is a bad hack.
10133 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10134 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10135 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10136 else
10137 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10139 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10140 linknames='
10141 # The linker will not automatically build a static lib if we build a DLL.
10142 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10143 enable_shared_with_static_runtimes=yes
10144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10145 # Don't use ranlib
10146 old_postinstall_cmds='chmod 644 $oldlib'
10147 postlink_cmds='lt_outputfile="@OUTPUT@"~
10148 lt_tool_outputfile="@TOOL_OUTPUT@"~
10149 case $lt_outputfile in
10150 *.exe|*.EXE) ;;
10152 lt_outputfile="$lt_outputfile.exe"
10153 lt_tool_outputfile="$lt_tool_outputfile.exe"
10155 esac~
10156 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10157 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10158 $RM "$lt_outputfile.manifest";
10162 # Assume MSVC wrapper
10163 hardcode_libdir_flag_spec=' '
10164 allow_undefined_flag=unsupported
10165 # Tell ltmain to make .lib files, not .a files.
10166 libext=lib
10167 # Tell ltmain to make .dll files, not .so files.
10168 shrext_cmds=".dll"
10169 # FIXME: Setting linknames here is a bad hack.
10170 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10171 # The linker will automatically build a .lib file if we build a DLL.
10172 old_archive_from_new_cmds='true'
10173 # FIXME: Should let the user specify the lib program.
10174 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10175 enable_shared_with_static_runtimes=yes
10177 esac
10180 darwin* | rhapsody*)
10183 archive_cmds_need_lc=no
10184 hardcode_direct=no
10185 hardcode_automatic=yes
10186 hardcode_shlibpath_var=unsupported
10187 if test "$lt_cv_ld_force_load" = "yes"; then
10188 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\"`'
10189 else
10190 whole_archive_flag_spec=''
10192 link_all_deplibs=yes
10193 allow_undefined_flag="$_lt_dar_allow_undefined"
10194 case $cc_basename in
10195 ifort*) _lt_dar_can_shared=yes ;;
10196 *) _lt_dar_can_shared=$GCC ;;
10197 esac
10198 if test "$_lt_dar_can_shared" = "yes"; then
10199 output_verbose_link_cmd=func_echo_all
10200 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10201 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10202 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}"
10203 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}"
10205 else
10206 ld_shlibs=no
10211 dgux*)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_libdir_flag_spec='-L$libdir'
10214 hardcode_shlibpath_var=no
10217 freebsd1*)
10218 ld_shlibs=no
10221 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10222 # support. Future versions do this automatically, but an explicit c++rt0.o
10223 # does not break anything, and helps significantly (at the cost of a little
10224 # extra space).
10225 freebsd2.2*)
10226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10227 hardcode_libdir_flag_spec='-R$libdir'
10228 hardcode_direct=yes
10229 hardcode_shlibpath_var=no
10232 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10233 freebsd2*)
10234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct=yes
10236 hardcode_minus_L=yes
10237 hardcode_shlibpath_var=no
10240 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10241 freebsd* | dragonfly*)
10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243 hardcode_libdir_flag_spec='-R$libdir'
10244 hardcode_direct=yes
10245 hardcode_shlibpath_var=no
10248 hpux9*)
10249 if test "$GCC" = yes; then
10250 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'
10251 else
10252 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'
10254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10255 hardcode_libdir_separator=:
10256 hardcode_direct=yes
10258 # hardcode_minus_L: Not really in the search PATH,
10259 # but as the default location of the library.
10260 hardcode_minus_L=yes
10261 export_dynamic_flag_spec='${wl}-E'
10264 hpux10*)
10265 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10266 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10267 else
10268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10270 if test "$with_gnu_ld" = no; then
10271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10272 hardcode_libdir_flag_spec_ld='+b $libdir'
10273 hardcode_libdir_separator=:
10274 hardcode_direct=yes
10275 hardcode_direct_absolute=yes
10276 export_dynamic_flag_spec='${wl}-E'
10277 # hardcode_minus_L: Not really in the search PATH,
10278 # but as the default location of the library.
10279 hardcode_minus_L=yes
10283 hpux11*)
10284 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10285 case $host_cpu in
10286 hppa*64*)
10287 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 ia64*)
10290 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295 esac
10296 else
10297 case $host_cpu in
10298 hppa*64*)
10299 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10301 ia64*)
10302 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10306 # Older versions of the 11.00 compiler do not understand -b yet
10307 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10309 $as_echo_n "checking if $CC understands -b... " >&6; }
10310 if ${lt_cv_prog_compiler__b+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 lt_cv_prog_compiler__b=no
10314 save_LDFLAGS="$LDFLAGS"
10315 LDFLAGS="$LDFLAGS -b"
10316 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10318 # The linker can only warn and ignore the option if not recognized
10319 # So say no if there are warnings
10320 if test -s conftest.err; then
10321 # Append any errors to the config.log.
10322 cat conftest.err 1>&5
10323 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10325 if diff conftest.exp conftest.er2 >/dev/null; then
10326 lt_cv_prog_compiler__b=yes
10328 else
10329 lt_cv_prog_compiler__b=yes
10332 $RM -r conftest*
10333 LDFLAGS="$save_LDFLAGS"
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10337 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10339 if test x"$lt_cv_prog_compiler__b" = xyes; then
10340 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 else
10342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10346 esac
10348 if test "$with_gnu_ld" = no; then
10349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10350 hardcode_libdir_separator=:
10352 case $host_cpu in
10353 hppa*64*|ia64*)
10354 hardcode_direct=no
10355 hardcode_shlibpath_var=no
10358 hardcode_direct=yes
10359 hardcode_direct_absolute=yes
10360 export_dynamic_flag_spec='${wl}-E'
10362 # hardcode_minus_L: Not really in the search PATH,
10363 # but as the default location of the library.
10364 hardcode_minus_L=yes
10366 esac
10370 irix5* | irix6* | nonstopux*)
10371 if test "$GCC" = yes; then
10372 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'
10373 # Try to use the -exported_symbol ld option, if it does not
10374 # work, assume that -exports_file does not work either and
10375 # implicitly export all symbols.
10376 # This should be the same for all languages, so no per-tag cache variable.
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10378 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10379 if ${lt_cv_irix_exported_symbol+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 save_LDFLAGS="$LDFLAGS"
10383 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 int foo (void) { return 0; }
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 lt_cv_irix_exported_symbol=yes
10390 else
10391 lt_cv_irix_exported_symbol=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LDFLAGS="$save_LDFLAGS"
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10398 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10399 if test "$lt_cv_irix_exported_symbol" = yes; then
10400 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'
10402 else
10403 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'
10404 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'
10406 archive_cmds_need_lc='no'
10407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10408 hardcode_libdir_separator=:
10409 inherit_rpath=yes
10410 link_all_deplibs=yes
10413 netbsd*)
10414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10416 else
10417 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10419 hardcode_libdir_flag_spec='-R$libdir'
10420 hardcode_direct=yes
10421 hardcode_shlibpath_var=no
10424 newsos6)
10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_direct=yes
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator=:
10429 hardcode_shlibpath_var=no
10432 *nto* | *qnx*)
10435 openbsd*)
10436 if test -f /usr/libexec/ld.so; then
10437 hardcode_direct=yes
10438 hardcode_shlibpath_var=no
10439 hardcode_direct_absolute=yes
10440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10442 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10443 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10444 export_dynamic_flag_spec='${wl}-E'
10445 else
10446 case $host_os in
10447 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_libdir_flag_spec='-R$libdir'
10452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10453 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10455 esac
10457 else
10458 ld_shlibs=no
10462 os2*)
10463 hardcode_libdir_flag_spec='-L$libdir'
10464 hardcode_minus_L=yes
10465 allow_undefined_flag=unsupported
10466 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'
10467 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10470 osf3*)
10471 if test "$GCC" = yes; then
10472 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10473 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'
10474 else
10475 allow_undefined_flag=' -expect_unresolved \*'
10476 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'
10478 archive_cmds_need_lc='no'
10479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10480 hardcode_libdir_separator=:
10483 osf4* | osf5*) # as osf3* with the addition of -msym flag
10484 if test "$GCC" = yes; then
10485 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10486 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'
10487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10488 else
10489 allow_undefined_flag=' -expect_unresolved \*'
10490 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'
10491 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~
10492 $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'
10494 # Both c and cxx compiler support -rpath directly
10495 hardcode_libdir_flag_spec='-rpath $libdir'
10497 archive_cmds_need_lc='no'
10498 hardcode_libdir_separator=:
10501 solaris*)
10502 no_undefined_flag=' -z defs'
10503 if test "$GCC" = yes; then
10504 wlarc='${wl}'
10505 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10507 $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'
10508 else
10509 case `$CC -V 2>&1` in
10510 *"Compilers 5.0"*)
10511 wlarc=''
10512 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10514 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10517 wlarc='${wl}'
10518 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10520 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10522 esac
10524 hardcode_libdir_flag_spec='-R$libdir'
10525 hardcode_shlibpath_var=no
10526 case $host_os in
10527 solaris2.[0-5] | solaris2.[0-5].*) ;;
10529 # The compiler driver will combine and reorder linker options,
10530 # but understands `-z linker_flag'. GCC discards it without `$wl',
10531 # but is careful enough not to reorder.
10532 # Supported since Solaris 2.6 (maybe 2.5.1?)
10533 if test "$GCC" = yes; then
10534 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10535 else
10536 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10539 esac
10540 link_all_deplibs=yes
10543 sunos4*)
10544 if test "x$host_vendor" = xsequent; then
10545 # Use $CC to link under sequent, because it throws in some extra .o
10546 # files that make .init and .fini sections work.
10547 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10548 else
10549 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_libdir_flag_spec='-L$libdir'
10552 hardcode_direct=yes
10553 hardcode_minus_L=yes
10554 hardcode_shlibpath_var=no
10557 sysv4)
10558 case $host_vendor in
10559 sni)
10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_direct=yes # is this really true???
10563 siemens)
10564 ## LD is ld it makes a PLAMLIB
10565 ## CC just makes a GrossModule.
10566 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10567 reload_cmds='$CC -r -o $output$reload_objs'
10568 hardcode_direct=no
10570 motorola)
10571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10574 esac
10575 runpath_var='LD_RUN_PATH'
10576 hardcode_shlibpath_var=no
10579 sysv4.3*)
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_shlibpath_var=no
10582 export_dynamic_flag_spec='-Bexport'
10585 sysv4*MP*)
10586 if test -d /usr/nec; then
10587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588 hardcode_shlibpath_var=no
10589 runpath_var=LD_RUN_PATH
10590 hardcode_runpath_var=yes
10591 ld_shlibs=yes
10595 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10596 no_undefined_flag='${wl}-z,text'
10597 archive_cmds_need_lc=no
10598 hardcode_shlibpath_var=no
10599 runpath_var='LD_RUN_PATH'
10601 if test "$GCC" = yes; then
10602 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 else
10605 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 sysv5* | sco3.2v5* | sco5v6*)
10611 # Note: We can NOT use -z defs as we might desire, because we do not
10612 # link with -lc, and that would cause any symbols used from libc to
10613 # always be unresolved, which means just about no library would
10614 # ever link correctly. If we're not using GNU ld we use -z text
10615 # though, which does catch some bad symbols but isn't as heavy-handed
10616 # as -z defs.
10617 no_undefined_flag='${wl}-z,text'
10618 allow_undefined_flag='${wl}-z,nodefs'
10619 archive_cmds_need_lc=no
10620 hardcode_shlibpath_var=no
10621 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10622 hardcode_libdir_separator=':'
10623 link_all_deplibs=yes
10624 export_dynamic_flag_spec='${wl}-Bexport'
10625 runpath_var='LD_RUN_PATH'
10627 if test "$GCC" = yes; then
10628 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 else
10631 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 uts4*)
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_libdir_flag_spec='-L$libdir'
10639 hardcode_shlibpath_var=no
10643 ld_shlibs=no
10645 esac
10647 if test x$host_vendor = xsni; then
10648 case $host in
10649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10650 export_dynamic_flag_spec='${wl}-Blargedynsym'
10652 esac
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10657 $as_echo "$ld_shlibs" >&6; }
10658 test "$ld_shlibs" = no && can_build_shared=no
10660 with_gnu_ld=$with_gnu_ld
10677 # Do we need to explicitly link libc?
10679 case "x$archive_cmds_need_lc" in
10680 x|xyes)
10681 # Assume -lc should be added
10682 archive_cmds_need_lc=yes
10684 if test "$enable_shared" = yes && test "$GCC" = yes; then
10685 case $archive_cmds in
10686 *'~'*)
10687 # FIXME: we may have to deal with multi-command sequences.
10689 '$CC '*)
10690 # Test whether the compiler implicitly links with -lc since on some
10691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10692 # to ld, don't add -lc before -lgcc.
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10695 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 $RM conftest*
10699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10702 (eval $ac_compile) 2>&5
10703 ac_status=$?
10704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705 test $ac_status = 0; } 2>conftest.err; then
10706 soname=conftest
10707 lib=conftest
10708 libobjs=conftest.$ac_objext
10709 deplibs=
10710 wl=$lt_prog_compiler_wl
10711 pic_flag=$lt_prog_compiler_pic
10712 compiler_flags=-v
10713 linker_flags=-v
10714 verstring=
10715 output_objdir=.
10716 libname=conftest
10717 lt_save_allow_undefined_flag=$allow_undefined_flag
10718 allow_undefined_flag=
10719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10720 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10721 ac_status=$?
10722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723 test $ac_status = 0; }
10724 then
10725 lt_cv_archive_cmds_need_lc=no
10726 else
10727 lt_cv_archive_cmds_need_lc=yes
10729 allow_undefined_flag=$lt_save_allow_undefined_flag
10730 else
10731 cat conftest.err 1>&5
10733 $RM conftest*
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10737 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10738 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10740 esac
10743 esac
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10904 if test "$GCC" = yes; then
10905 case $host_os in
10906 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10907 *) lt_awk_arg="/^libraries:/" ;;
10908 esac
10909 case $host_os in
10910 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10911 *) lt_sed_strip_eq="s,=/,/,g" ;;
10912 esac
10913 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10914 case $lt_search_path_spec in
10915 *\;*)
10916 # if the path contains ";" then we assume it to be the separator
10917 # otherwise default to the standard path separator (i.e. ":") - it is
10918 # assumed that no part of a normal pathname contains ";" but that should
10919 # okay in the real world where ";" in dirpaths is itself problematic.
10920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10923 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10925 esac
10926 # Ok, now we have the path, separated by spaces, we can step through it
10927 # and add multilib dir if necessary.
10928 lt_tmp_lt_search_path_spec=
10929 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10930 for lt_sys_path in $lt_search_path_spec; do
10931 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10933 else
10934 test -d "$lt_sys_path" && \
10935 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10937 done
10938 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10939 BEGIN {RS=" "; FS="/|\n";} {
10940 lt_foo="";
10941 lt_count=0;
10942 for (lt_i = NF; lt_i > 0; lt_i--) {
10943 if ($lt_i != "" && $lt_i != ".") {
10944 if ($lt_i == "..") {
10945 lt_count++;
10946 } else {
10947 if (lt_count == 0) {
10948 lt_foo="/" $lt_i lt_foo;
10949 } else {
10950 lt_count--;
10955 if (lt_foo != "") { lt_freq[lt_foo]++; }
10956 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10958 # AWK program above erroneously prepends '/' to C:/dos/paths
10959 # for these hosts.
10960 case $host_os in
10961 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10962 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10963 esac
10964 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10965 else
10966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10968 library_names_spec=
10969 libname_spec='lib$name'
10970 soname_spec=
10971 shrext_cmds=".so"
10972 postinstall_cmds=
10973 postuninstall_cmds=
10974 finish_cmds=
10975 finish_eval=
10976 shlibpath_var=
10977 shlibpath_overrides_runpath=unknown
10978 version_type=none
10979 dynamic_linker="$host_os ld.so"
10980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10981 need_lib_prefix=unknown
10982 hardcode_into_libs=no
10984 # when you set need_version to no, make sure it does not cause -set_version
10985 # flags to be left without arguments
10986 need_version=unknown
10988 case $host_os in
10989 aix3*)
10990 version_type=linux
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10992 shlibpath_var=LIBPATH
10994 # AIX 3 has no versioning support, so we append a major version to the name.
10995 soname_spec='${libname}${release}${shared_ext}$major'
10998 aix[4-9]*)
10999 version_type=linux
11000 need_lib_prefix=no
11001 need_version=no
11002 hardcode_into_libs=yes
11003 if test "$host_cpu" = ia64; then
11004 # AIX 5 supports IA64
11005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 else
11008 # With GCC up to 2.95.x, collect2 would create an import file
11009 # for dependence libraries. The import file would start with
11010 # the line `#! .'. This would cause the generated library to
11011 # depend on `.', always an invalid library. This was fixed in
11012 # development snapshots of GCC prior to 3.0.
11013 case $host_os in
11014 aix4 | aix4.[01] | aix4.[01].*)
11015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11016 echo ' yes '
11017 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11019 else
11020 can_build_shared=no
11023 esac
11024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11025 # soname into executable. Probably we can add versioning support to
11026 # collect2, so additional links can be useful in future.
11027 if test "$aix_use_runtimelinking" = yes; then
11028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11029 # instead of lib<name>.a to let people know that these are not
11030 # typical AIX shared libraries.
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032 else
11033 # We preserve .a as extension for shared libraries through AIX4.2
11034 # and later when we are not doing run time linking.
11035 library_names_spec='${libname}${release}.a $libname.a'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11038 shlibpath_var=LIBPATH
11042 amigaos*)
11043 case $host_cpu in
11044 powerpc)
11045 # Since July 2007 AmigaOS4 officially supports .so libraries.
11046 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 m68k)
11050 library_names_spec='$libname.ixlibrary $libname.a'
11051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11052 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'
11054 esac
11057 beos*)
11058 library_names_spec='${libname}${shared_ext}'
11059 dynamic_linker="$host_os ld.so"
11060 shlibpath_var=LIBRARY_PATH
11063 bsdi[45]*)
11064 version_type=linux
11065 need_version=no
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11072 # the default ld.so.conf also contains /usr/contrib/lib and
11073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11074 # libtool to hard-code these into programs
11077 cygwin* | mingw* | pw32* | cegcc*)
11078 version_type=windows
11079 shrext_cmds=".dll"
11080 need_version=no
11081 need_lib_prefix=no
11083 case $GCC,$cc_basename in
11084 yes,*)
11085 # gcc
11086 library_names_spec='$libname.dll.a'
11087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11088 postinstall_cmds='base_file=`basename \${file}`~
11089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11090 dldir=$destdir/`dirname \$dlpath`~
11091 test -d \$dldir || mkdir -p \$dldir~
11092 $install_prog $dir/$dlname \$dldir/$dlname~
11093 chmod a+x \$dldir/$dlname~
11094 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11095 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11098 dlpath=$dir/\$dldll~
11099 $RM \$dlpath'
11100 shlibpath_overrides_runpath=yes
11102 case $host_os in
11103 cygwin*)
11104 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11105 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11107 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11109 mingw* | cegcc*)
11110 # MinGW DLLs use traditional 'lib' prefix
11111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11113 pw32*)
11114 # pw32 DLLs use 'pw' prefix rather than 'lib'
11115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11117 esac
11118 dynamic_linker='Win32 ld.exe'
11121 *,cl*)
11122 # Native MSVC
11123 libname_spec='$name'
11124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11125 library_names_spec='${libname}.dll.lib'
11127 case $build_os in
11128 mingw*)
11129 sys_lib_search_path_spec=
11130 lt_save_ifs=$IFS
11131 IFS=';'
11132 for lt_path in $LIB
11134 IFS=$lt_save_ifs
11135 # Let DOS variable expansion print the short 8.3 style file name.
11136 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11137 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11138 done
11139 IFS=$lt_save_ifs
11140 # Convert to MSYS style.
11141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11143 cygwin*)
11144 # Convert to unix form, then to dos form, then back to unix form
11145 # but this time dos style (no spaces!) so that the unix form looks
11146 # like /cygdrive/c/PROGRA~1:/cygdr...
11147 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11148 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11149 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11152 sys_lib_search_path_spec="$LIB"
11153 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11154 # It is most probably a Windows format PATH.
11155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11156 else
11157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11159 # FIXME: find the short name or the path components, as spaces are
11160 # common. (e.g. "Program Files" -> "PROGRA~1")
11162 esac
11164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11165 postinstall_cmds='base_file=`basename \${file}`~
11166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11167 dldir=$destdir/`dirname \$dlpath`~
11168 test -d \$dldir || mkdir -p \$dldir~
11169 $install_prog $dir/$dlname \$dldir/$dlname'
11170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11171 dlpath=$dir/\$dldll~
11172 $RM \$dlpath'
11173 shlibpath_overrides_runpath=yes
11174 dynamic_linker='Win32 link.exe'
11178 # Assume MSVC wrapper
11179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11180 dynamic_linker='Win32 ld.exe'
11182 esac
11183 # FIXME: first we should search . and the directory the executable is in
11184 shlibpath_var=PATH
11187 darwin* | rhapsody*)
11188 dynamic_linker="$host_os dyld"
11189 version_type=darwin
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11193 soname_spec='${libname}${release}${major}$shared_ext'
11194 shlibpath_overrides_runpath=yes
11195 shlibpath_var=DYLD_LIBRARY_PATH
11196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11198 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11202 dgux*)
11203 version_type=linux
11204 need_lib_prefix=no
11205 need_version=no
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11211 freebsd1*)
11212 dynamic_linker=no
11215 freebsd* | dragonfly*)
11216 # DragonFly does not have aout. When/if they implement a new
11217 # versioning mechanism, adjust this.
11218 if test -x /usr/bin/objformat; then
11219 objformat=`/usr/bin/objformat`
11220 else
11221 case $host_os in
11222 freebsd[123]*) objformat=aout ;;
11223 *) objformat=elf ;;
11224 esac
11226 version_type=freebsd-$objformat
11227 case $version_type in
11228 freebsd-elf*)
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11230 need_version=no
11231 need_lib_prefix=no
11233 freebsd-*)
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11235 need_version=yes
11237 esac
11238 shlibpath_var=LD_LIBRARY_PATH
11239 case $host_os in
11240 freebsd2*)
11241 shlibpath_overrides_runpath=yes
11243 freebsd3.[01]* | freebsdelf3.[01]*)
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11249 shlibpath_overrides_runpath=no
11250 hardcode_into_libs=yes
11252 *) # from 4.6 on, and DragonFly
11253 shlibpath_overrides_runpath=yes
11254 hardcode_into_libs=yes
11256 esac
11259 gnu*)
11260 version_type=linux
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 hardcode_into_libs=yes
11269 haiku*)
11270 version_type=linux
11271 need_lib_prefix=no
11272 need_version=no
11273 dynamic_linker="$host_os runtime_loader"
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11279 hardcode_into_libs=yes
11282 hpux9* | hpux10* | hpux11*)
11283 # Give a soname corresponding to the major version so that dld.sl refuses to
11284 # link against other versions.
11285 version_type=sunos
11286 need_lib_prefix=no
11287 need_version=no
11288 case $host_cpu in
11289 ia64*)
11290 shrext_cmds='.so'
11291 hardcode_into_libs=yes
11292 dynamic_linker="$host_os dld.so"
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 if test "X$HPUX_IA64_MODE" = X32; then
11298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11299 else
11300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11304 hppa*64*)
11305 shrext_cmds='.sl'
11306 hardcode_into_libs=yes
11307 dynamic_linker="$host_os dld.sl"
11308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11316 shrext_cmds='.sl'
11317 dynamic_linker="$host_os dld.sl"
11318 shlibpath_var=SHLIB_PATH
11319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11323 esac
11324 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11325 postinstall_cmds='chmod 555 $lib'
11326 # or fails outright, so override atomically:
11327 install_override_mode=555
11330 interix[3-9]*)
11331 version_type=linux
11332 need_lib_prefix=no
11333 need_version=no
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 shlibpath_overrides_runpath=no
11339 hardcode_into_libs=yes
11342 irix5* | irix6* | nonstopux*)
11343 case $host_os in
11344 nonstopux*) version_type=nonstopux ;;
11346 if test "$lt_cv_prog_gnu_ld" = yes; then
11347 version_type=linux
11348 else
11349 version_type=irix
11350 fi ;;
11351 esac
11352 need_lib_prefix=no
11353 need_version=no
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11356 case $host_os in
11357 irix5* | nonstopux*)
11358 libsuff= shlibsuff=
11361 case $LD in # libtool.m4 will add one of these switches to LD
11362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11363 libsuff= shlibsuff= libmagic=32-bit;;
11364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11365 libsuff=32 shlibsuff=N32 libmagic=N32;;
11366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11368 *) libsuff= shlibsuff= libmagic=never-match;;
11369 esac
11371 esac
11372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11373 shlibpath_overrides_runpath=no
11374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11376 hardcode_into_libs=yes
11379 # No shared lib support for Linux oldld, aout, or coff.
11380 linux*oldld* | linux*aout* | linux*coff*)
11381 dynamic_linker=no
11384 # This must be Linux ELF.
11385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11386 version_type=linux
11387 need_lib_prefix=no
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=no
11395 # Some binutils ld are patched to set DT_RUNPATH
11396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 lt_cv_shlibpath_overrides_runpath=no
11400 save_LDFLAGS=$LDFLAGS
11401 save_libdir=$libdir
11402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11408 main ()
11412 return 0;
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11417 lt_cv_shlibpath_overrides_runpath=yes
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LDFLAGS=$save_LDFLAGS
11423 libdir=$save_libdir
11427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11429 # This implies no fast_install, which is unacceptable.
11430 # Some rework will be needed to allow for fast_install
11431 # before this can be enabled.
11432 hardcode_into_libs=yes
11434 # Append ld.so.conf contents to the search path
11435 if test -f /etc/ld.so.conf; then
11436 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' ' '`
11437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11440 # We used to test for /lib/ld.so.1 and disable shared libraries on
11441 # powerpc, because MkLinux only supported shared libraries with the
11442 # GNU dynamic linker. Since this was broken with cross compilers,
11443 # most powerpc-linux boxes support dynamic linking these days and
11444 # people can always --disable-shared, the test was removed, and we
11445 # assume the GNU/Linux dynamic linker is in use.
11446 dynamic_linker='GNU/Linux ld.so'
11449 netbsd*)
11450 version_type=sunos
11451 need_lib_prefix=no
11452 need_version=no
11453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11456 dynamic_linker='NetBSD (a.out) ld.so'
11457 else
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 dynamic_linker='NetBSD ld.elf_so'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 hardcode_into_libs=yes
11467 newsos6)
11468 version_type=linux
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=yes
11474 *nto* | *qnx*)
11475 version_type=qnx
11476 need_lib_prefix=no
11477 need_version=no
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11483 dynamic_linker='ldqnx.so'
11486 openbsd*)
11487 version_type=sunos
11488 sys_lib_dlsearch_path_spec="/usr/lib"
11489 need_lib_prefix=no
11490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11491 case $host_os in
11492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11493 *) need_version=no ;;
11494 esac
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11499 case $host_os in
11500 openbsd2.[89] | openbsd2.[89].*)
11501 shlibpath_overrides_runpath=no
11504 shlibpath_overrides_runpath=yes
11506 esac
11507 else
11508 shlibpath_overrides_runpath=yes
11512 os2*)
11513 libname_spec='$name'
11514 shrext_cmds=".dll"
11515 need_lib_prefix=no
11516 library_names_spec='$libname${shared_ext} $libname.a'
11517 dynamic_linker='OS/2 ld.exe'
11518 shlibpath_var=LIBPATH
11521 osf3* | osf4* | osf5*)
11522 version_type=osf
11523 need_lib_prefix=no
11524 need_version=no
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11532 rdos*)
11533 dynamic_linker=no
11536 solaris*)
11537 version_type=linux
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes
11544 hardcode_into_libs=yes
11545 # ldd complains unless libraries are executable
11546 postinstall_cmds='chmod +x $lib'
11549 sunos4*)
11550 version_type=sunos
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555 if test "$with_gnu_ld" = yes; then
11556 need_lib_prefix=no
11558 need_version=yes
11561 sysv4 | sysv4.3*)
11562 version_type=linux
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 case $host_vendor in
11567 sni)
11568 shlibpath_overrides_runpath=no
11569 need_lib_prefix=no
11570 runpath_var=LD_RUN_PATH
11572 siemens)
11573 need_lib_prefix=no
11575 motorola)
11576 need_lib_prefix=no
11577 need_version=no
11578 shlibpath_overrides_runpath=no
11579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11581 esac
11584 sysv4*MP*)
11585 if test -d /usr/nec ;then
11586 version_type=linux
11587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11588 soname_spec='$libname${shared_ext}.$major'
11589 shlibpath_var=LD_LIBRARY_PATH
11593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11594 version_type=freebsd-elf
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=yes
11601 hardcode_into_libs=yes
11602 if test "$with_gnu_ld" = yes; then
11603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11604 else
11605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11606 case $host_os in
11607 sco3.2v5*)
11608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11610 esac
11612 sys_lib_dlsearch_path_spec='/usr/lib'
11615 tpf*)
11616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11617 version_type=linux
11618 need_lib_prefix=no
11619 need_version=no
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=no
11623 hardcode_into_libs=yes
11626 uts4*)
11627 version_type=linux
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11634 dynamic_linker=no
11636 esac
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11638 $as_echo "$dynamic_linker" >&6; }
11639 test "$dynamic_linker" = no && can_build_shared=no
11641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11642 if test "$GCC" = yes; then
11643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11745 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11746 hardcode_action=
11747 if test -n "$hardcode_libdir_flag_spec" ||
11748 test -n "$runpath_var" ||
11749 test "X$hardcode_automatic" = "Xyes" ; then
11751 # We can hardcode non-existent directories.
11752 if test "$hardcode_direct" != no &&
11753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11754 # have to relink, otherwise we might link with an installed library
11755 # when we should be linking with a yet-to-be-installed one
11756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11757 test "$hardcode_minus_L" != no; then
11758 # Linking always hardcodes the temporary library directory.
11759 hardcode_action=relink
11760 else
11761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11762 hardcode_action=immediate
11764 else
11765 # We cannot hardcode anything, or else we can only hardcode existing
11766 # directories.
11767 hardcode_action=unsupported
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11770 $as_echo "$hardcode_action" >&6; }
11772 if test "$hardcode_action" = relink ||
11773 test "$inherit_rpath" = yes; then
11774 # Fast installation is not supported
11775 enable_fast_install=no
11776 elif test "$shlibpath_overrides_runpath" = yes ||
11777 test "$enable_shared" = no; then
11778 # Fast installation is not necessary
11779 enable_fast_install=needless
11787 if test "x$enable_dlopen" != xyes; then
11788 enable_dlopen=unknown
11789 enable_dlopen_self=unknown
11790 enable_dlopen_self_static=unknown
11791 else
11792 lt_cv_dlopen=no
11793 lt_cv_dlopen_libs=
11795 case $host_os in
11796 beos*)
11797 lt_cv_dlopen="load_add_on"
11798 lt_cv_dlopen_libs=
11799 lt_cv_dlopen_self=yes
11802 mingw* | pw32* | cegcc*)
11803 lt_cv_dlopen="LoadLibrary"
11804 lt_cv_dlopen_libs=
11807 cygwin*)
11808 lt_cv_dlopen="dlopen"
11809 lt_cv_dlopen_libs=
11812 darwin*)
11813 # if libdl is installed we need to link against it
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11815 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11816 if ${ac_cv_lib_dl_dlopen+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 ac_check_lib_save_LIBS=$LIBS
11820 LIBS="-ldl $LIBS"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char dlopen ();
11832 main ()
11834 return dlopen ();
11836 return 0;
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"; then :
11840 ac_cv_lib_dl_dlopen=yes
11841 else
11842 ac_cv_lib_dl_dlopen=no
11844 rm -f core conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11849 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11850 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11852 else
11854 lt_cv_dlopen="dyld"
11855 lt_cv_dlopen_libs=
11856 lt_cv_dlopen_self=yes
11863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11864 if test "x$ac_cv_func_shl_load" = xyes; then :
11865 lt_cv_dlopen="shl_load"
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11869 if ${ac_cv_lib_dld_shl_load+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-ldld $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char shl_load ();
11885 main ()
11887 return shl_load ();
11889 return 0;
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_dld_shl_load=yes
11894 else
11895 ac_cv_lib_dld_shl_load=no
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11905 else
11906 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11907 if test "x$ac_cv_func_dlopen" = xyes; then :
11908 lt_cv_dlopen="dlopen"
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11912 if ${ac_cv_lib_dl_dlopen+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-ldl $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char dlopen ();
11928 main ()
11930 return dlopen ();
11932 return 0;
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_dl_dlopen=yes
11937 else
11938 ac_cv_lib_dl_dlopen=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11950 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11951 if ${ac_cv_lib_svld_dlopen+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-lsvld $LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char dlopen ();
11967 main ()
11969 return dlopen ();
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_svld_dlopen=yes
11976 else
11977 ac_cv_lib_svld_dlopen=no
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11984 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11985 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11989 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11990 if ${ac_cv_lib_dld_dld_link+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-ldld $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char dld_link ();
12006 main ()
12008 return dld_link ();
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 ac_cv_lib_dld_dld_link=yes
12015 else
12016 ac_cv_lib_dld_dld_link=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12023 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12024 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12044 esac
12046 if test "x$lt_cv_dlopen" != xno; then
12047 enable_dlopen=yes
12048 else
12049 enable_dlopen=no
12052 case $lt_cv_dlopen in
12053 dlopen)
12054 save_CPPFLAGS="$CPPFLAGS"
12055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12057 save_LDFLAGS="$LDFLAGS"
12058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12060 save_LIBS="$LIBS"
12061 LIBS="$lt_cv_dlopen_libs $LIBS"
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12064 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12065 if ${lt_cv_dlopen_self+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 if test "$cross_compiling" = yes; then :
12069 lt_cv_dlopen_self=cross
12070 else
12071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12072 lt_status=$lt_dlunknown
12073 cat > conftest.$ac_ext <<_LT_EOF
12074 #line $LINENO "configure"
12075 #include "confdefs.h"
12077 #if HAVE_DLFCN_H
12078 #include <dlfcn.h>
12079 #endif
12081 #include <stdio.h>
12083 #ifdef RTLD_GLOBAL
12084 # define LT_DLGLOBAL RTLD_GLOBAL
12085 #else
12086 # ifdef DL_GLOBAL
12087 # define LT_DLGLOBAL DL_GLOBAL
12088 # else
12089 # define LT_DLGLOBAL 0
12090 # endif
12091 #endif
12093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12094 find out it does not work in some platform. */
12095 #ifndef LT_DLLAZY_OR_NOW
12096 # ifdef RTLD_LAZY
12097 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12098 # else
12099 # ifdef DL_LAZY
12100 # define LT_DLLAZY_OR_NOW DL_LAZY
12101 # else
12102 # ifdef RTLD_NOW
12103 # define LT_DLLAZY_OR_NOW RTLD_NOW
12104 # else
12105 # ifdef DL_NOW
12106 # define LT_DLLAZY_OR_NOW DL_NOW
12107 # else
12108 # define LT_DLLAZY_OR_NOW 0
12109 # endif
12110 # endif
12111 # endif
12112 # endif
12113 #endif
12115 /* When -fvisbility=hidden is used, assume the code has been annotated
12116 correspondingly for the symbols needed. */
12117 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12118 int fnord () __attribute__((visibility("default")));
12119 #endif
12121 int fnord () { return 42; }
12122 int main ()
12124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12125 int status = $lt_dlunknown;
12127 if (self)
12129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12130 else
12132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12133 else puts (dlerror ());
12135 /* dlclose (self); */
12137 else
12138 puts (dlerror ());
12140 return status;
12142 _LT_EOF
12143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12144 (eval $ac_link) 2>&5
12145 ac_status=$?
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12148 (./conftest; exit; ) >&5 2>/dev/null
12149 lt_status=$?
12150 case x$lt_status in
12151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12153 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12154 esac
12155 else :
12156 # compilation failed
12157 lt_cv_dlopen_self=no
12160 rm -fr conftest*
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12165 $as_echo "$lt_cv_dlopen_self" >&6; }
12167 if test "x$lt_cv_dlopen_self" = xyes; then
12168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12170 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12171 if ${lt_cv_dlopen_self_static+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test "$cross_compiling" = yes; then :
12175 lt_cv_dlopen_self_static=cross
12176 else
12177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12178 lt_status=$lt_dlunknown
12179 cat > conftest.$ac_ext <<_LT_EOF
12180 #line $LINENO "configure"
12181 #include "confdefs.h"
12183 #if HAVE_DLFCN_H
12184 #include <dlfcn.h>
12185 #endif
12187 #include <stdio.h>
12189 #ifdef RTLD_GLOBAL
12190 # define LT_DLGLOBAL RTLD_GLOBAL
12191 #else
12192 # ifdef DL_GLOBAL
12193 # define LT_DLGLOBAL DL_GLOBAL
12194 # else
12195 # define LT_DLGLOBAL 0
12196 # endif
12197 #endif
12199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12200 find out it does not work in some platform. */
12201 #ifndef LT_DLLAZY_OR_NOW
12202 # ifdef RTLD_LAZY
12203 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12204 # else
12205 # ifdef DL_LAZY
12206 # define LT_DLLAZY_OR_NOW DL_LAZY
12207 # else
12208 # ifdef RTLD_NOW
12209 # define LT_DLLAZY_OR_NOW RTLD_NOW
12210 # else
12211 # ifdef DL_NOW
12212 # define LT_DLLAZY_OR_NOW DL_NOW
12213 # else
12214 # define LT_DLLAZY_OR_NOW 0
12215 # endif
12216 # endif
12217 # endif
12218 # endif
12219 #endif
12221 /* When -fvisbility=hidden is used, assume the code has been annotated
12222 correspondingly for the symbols needed. */
12223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12224 int fnord () __attribute__((visibility("default")));
12225 #endif
12227 int fnord () { return 42; }
12228 int main ()
12230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12231 int status = $lt_dlunknown;
12233 if (self)
12235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12236 else
12238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12239 else puts (dlerror ());
12241 /* dlclose (self); */
12243 else
12244 puts (dlerror ());
12246 return status;
12248 _LT_EOF
12249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12250 (eval $ac_link) 2>&5
12251 ac_status=$?
12252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12254 (./conftest; exit; ) >&5 2>/dev/null
12255 lt_status=$?
12256 case x$lt_status in
12257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12260 esac
12261 else :
12262 # compilation failed
12263 lt_cv_dlopen_self_static=no
12266 rm -fr conftest*
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12271 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12274 CPPFLAGS="$save_CPPFLAGS"
12275 LDFLAGS="$save_LDFLAGS"
12276 LIBS="$save_LIBS"
12278 esac
12280 case $lt_cv_dlopen_self in
12281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12282 *) enable_dlopen_self=unknown ;;
12283 esac
12285 case $lt_cv_dlopen_self_static in
12286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12287 *) enable_dlopen_self_static=unknown ;;
12288 esac
12307 striplib=
12308 old_striplib=
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12310 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12311 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315 $as_echo "yes" >&6; }
12316 else
12317 # FIXME - insert some real tests, host_os isn't really good enough
12318 case $host_os in
12319 darwin*)
12320 if test -n "$STRIP" ; then
12321 striplib="$STRIP -x"
12322 old_striplib="$STRIP -S"
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; }
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12334 esac
12348 # Report which library types will actually be built
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12350 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12352 $as_echo "$can_build_shared" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12355 $as_echo_n "checking whether to build shared libraries... " >&6; }
12356 test "$can_build_shared" = "no" && enable_shared=no
12358 # On AIX, shared libraries and static libraries use the same namespace, and
12359 # are all built from PIC.
12360 case $host_os in
12361 aix3*)
12362 test "$enable_shared" = yes && enable_static=no
12363 if test -n "$RANLIB"; then
12364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12365 postinstall_cmds='$RANLIB $lib'
12369 aix[4-9]*)
12370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12371 test "$enable_shared" = yes && enable_static=no
12374 esac
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12376 $as_echo "$enable_shared" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12379 $as_echo_n "checking whether to build static libraries... " >&6; }
12380 # Make sure either enable_shared or enable_static is yes.
12381 test "$enable_shared" = yes || enable_static=yes
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12383 $as_echo "$enable_static" >&6; }
12389 ac_ext=c
12390 ac_cpp='$CPP $CPPFLAGS'
12391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395 CC="$lt_save_CC"
12397 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12398 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12399 (test "X$CXX" != "Xg++"))) ; then
12400 ac_ext=cpp
12401 ac_cpp='$CXXCPP $CPPFLAGS'
12402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12406 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12407 if test -z "$CXXCPP"; then
12408 if ${ac_cv_prog_CXXCPP+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 # Double quotes because CXXCPP needs to be expanded
12412 for CXXCPP in "$CXX -E" "/lib/cpp"
12414 ac_preproc_ok=false
12415 for ac_cxx_preproc_warn_flag in '' yes
12417 # Use a header file that comes with gcc, so configuring glibc
12418 # with a fresh cross-compiler works.
12419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12420 # <limits.h> exists even on freestanding compilers.
12421 # On the NeXT, cc -E runs the code through the compiler's parser,
12422 # not just through cpp. "Syntax error" is here to catch this case.
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 #ifdef __STDC__
12426 # include <limits.h>
12427 #else
12428 # include <assert.h>
12429 #endif
12430 Syntax error
12431 _ACEOF
12432 if ac_fn_cxx_try_cpp "$LINENO"; then :
12434 else
12435 # Broken: fails on valid input.
12436 continue
12438 rm -f conftest.err conftest.i conftest.$ac_ext
12440 # OK, works on sane cases. Now check whether nonexistent headers
12441 # can be detected and how.
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 #include <ac_nonexistent.h>
12445 _ACEOF
12446 if ac_fn_cxx_try_cpp "$LINENO"; then :
12447 # Broken: success on invalid input.
12448 continue
12449 else
12450 # Passes both tests.
12451 ac_preproc_ok=:
12452 break
12454 rm -f conftest.err conftest.i conftest.$ac_ext
12456 done
12457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12458 rm -f conftest.i conftest.err conftest.$ac_ext
12459 if $ac_preproc_ok; then :
12460 break
12463 done
12464 ac_cv_prog_CXXCPP=$CXXCPP
12467 CXXCPP=$ac_cv_prog_CXXCPP
12468 else
12469 ac_cv_prog_CXXCPP=$CXXCPP
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12472 $as_echo "$CXXCPP" >&6; }
12473 ac_preproc_ok=false
12474 for ac_cxx_preproc_warn_flag in '' yes
12476 # Use a header file that comes with gcc, so configuring glibc
12477 # with a fresh cross-compiler works.
12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479 # <limits.h> exists even on freestanding compilers.
12480 # On the NeXT, cc -E runs the code through the compiler's parser,
12481 # not just through cpp. "Syntax error" is here to catch this case.
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 #ifdef __STDC__
12485 # include <limits.h>
12486 #else
12487 # include <assert.h>
12488 #endif
12489 Syntax error
12490 _ACEOF
12491 if ac_fn_cxx_try_cpp "$LINENO"; then :
12493 else
12494 # Broken: fails on valid input.
12495 continue
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12499 # OK, works on sane cases. Now check whether nonexistent headers
12500 # can be detected and how.
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 #include <ac_nonexistent.h>
12504 _ACEOF
12505 if ac_fn_cxx_try_cpp "$LINENO"; then :
12506 # Broken: success on invalid input.
12507 continue
12508 else
12509 # Passes both tests.
12510 ac_preproc_ok=:
12511 break
12513 rm -f conftest.err conftest.i conftest.$ac_ext
12515 done
12516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12517 rm -f conftest.i conftest.err conftest.$ac_ext
12518 if $ac_preproc_ok; then :
12520 else
12521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12523 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12524 See \`config.log' for more details" "$LINENO" 5; }
12527 ac_ext=c
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533 else
12534 _lt_caught_CXX_error=yes
12537 ac_ext=cpp
12538 ac_cpp='$CXXCPP $CPPFLAGS'
12539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12543 archive_cmds_need_lc_CXX=no
12544 allow_undefined_flag_CXX=
12545 always_export_symbols_CXX=no
12546 archive_expsym_cmds_CXX=
12547 compiler_needs_object_CXX=no
12548 export_dynamic_flag_spec_CXX=
12549 hardcode_direct_CXX=no
12550 hardcode_direct_absolute_CXX=no
12551 hardcode_libdir_flag_spec_CXX=
12552 hardcode_libdir_flag_spec_ld_CXX=
12553 hardcode_libdir_separator_CXX=
12554 hardcode_minus_L_CXX=no
12555 hardcode_shlibpath_var_CXX=unsupported
12556 hardcode_automatic_CXX=no
12557 inherit_rpath_CXX=no
12558 module_cmds_CXX=
12559 module_expsym_cmds_CXX=
12560 link_all_deplibs_CXX=unknown
12561 old_archive_cmds_CXX=$old_archive_cmds
12562 reload_flag_CXX=$reload_flag
12563 reload_cmds_CXX=$reload_cmds
12564 no_undefined_flag_CXX=
12565 whole_archive_flag_spec_CXX=
12566 enable_shared_with_static_runtimes_CXX=no
12568 # Source file extension for C++ test sources.
12569 ac_ext=cpp
12571 # Object file extension for compiled C++ test sources.
12572 objext=o
12573 objext_CXX=$objext
12575 # No sense in running all these tests if we already determined that
12576 # the CXX compiler isn't working. Some variables (like enable_shared)
12577 # are currently assumed to apply to all compilers on this platform,
12578 # and will be corrupted by setting them based on a non-working compiler.
12579 if test "$_lt_caught_CXX_error" != yes; then
12580 # Code to be used in simple compile tests
12581 lt_simple_compile_test_code="int some_variable = 0;"
12583 # Code to be used in simple link tests
12584 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12593 # If no C compiler was specified, use CC.
12594 LTCC=${LTCC-"$CC"}
12596 # If no C compiler flags were specified, use CFLAGS.
12597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12599 # Allow CC to be a program name with arguments.
12600 compiler=$CC
12603 # save warnings/boilerplate of simple test code
12604 ac_outfile=conftest.$ac_objext
12605 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12607 _lt_compiler_boilerplate=`cat conftest.err`
12608 $RM conftest*
12610 ac_outfile=conftest.$ac_objext
12611 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12613 _lt_linker_boilerplate=`cat conftest.err`
12614 $RM -r conftest*
12617 # Allow CC to be a program name with arguments.
12618 lt_save_CC=$CC
12619 lt_save_CFLAGS=$CFLAGS
12620 lt_save_LD=$LD
12621 lt_save_GCC=$GCC
12622 GCC=$GXX
12623 lt_save_with_gnu_ld=$with_gnu_ld
12624 lt_save_path_LD=$lt_cv_path_LD
12625 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12626 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12627 else
12628 $as_unset lt_cv_prog_gnu_ld
12630 if test -n "${lt_cv_path_LDCXX+set}"; then
12631 lt_cv_path_LD=$lt_cv_path_LDCXX
12632 else
12633 $as_unset lt_cv_path_LD
12635 test -z "${LDCXX+set}" || LD=$LDCXX
12636 CC=${CXX-"c++"}
12637 CFLAGS=$CXXFLAGS
12638 compiler=$CC
12639 compiler_CXX=$CC
12640 for cc_temp in $compiler""; do
12641 case $cc_temp in
12642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12644 \-*) ;;
12645 *) break;;
12646 esac
12647 done
12648 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12651 if test -n "$compiler"; then
12652 # We don't want -fno-exception when compiling C++ code, so set the
12653 # no_builtin_flag separately
12654 if test "$GXX" = yes; then
12655 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12656 else
12657 lt_prog_compiler_no_builtin_flag_CXX=
12660 if test "$GXX" = yes; then
12661 # Set up default GNU C++ configuration
12665 # Check whether --with-gnu-ld was given.
12666 if test "${with_gnu_ld+set}" = set; then :
12667 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12668 else
12669 with_gnu_ld=no
12672 ac_prog=ld
12673 if test "$GCC" = yes; then
12674 # Check if gcc -print-prog-name=ld gives a path.
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12676 $as_echo_n "checking for ld used by $CC... " >&6; }
12677 case $host in
12678 *-*-mingw*)
12679 # gcc leaves a trailing carriage return which upsets mingw
12680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12683 esac
12684 case $ac_prog in
12685 # Accept absolute paths.
12686 [\\/]* | ?:[\\/]*)
12687 re_direlt='/[^/][^/]*/\.\./'
12688 # Canonicalize the pathname of ld
12689 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12690 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12691 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12692 done
12693 test -z "$LD" && LD="$ac_prog"
12696 # If it fails, then pretend we aren't using GCC.
12697 ac_prog=ld
12700 # If it is relative, then search for the first ld in PATH.
12701 with_gnu_ld=unknown
12703 esac
12704 elif test "$with_gnu_ld" = yes; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12706 $as_echo_n "checking for GNU ld... " >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12709 $as_echo_n "checking for non-GNU ld... " >&6; }
12711 if ${lt_cv_path_LD+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 if test -z "$LD"; then
12715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12716 for ac_dir in $PATH; do
12717 IFS="$lt_save_ifs"
12718 test -z "$ac_dir" && ac_dir=.
12719 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12720 lt_cv_path_LD="$ac_dir/$ac_prog"
12721 # Check to see if the program is GNU ld. I'd rather use --version,
12722 # but apparently some variants of GNU ld only accept -v.
12723 # Break only if it was the GNU/non-GNU ld that we prefer.
12724 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12725 *GNU* | *'with BFD'*)
12726 test "$with_gnu_ld" != no && break
12729 test "$with_gnu_ld" != yes && break
12731 esac
12733 done
12734 IFS="$lt_save_ifs"
12735 else
12736 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12740 LD="$lt_cv_path_LD"
12741 if test -n "$LD"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12743 $as_echo "$LD" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12748 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12750 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12751 if ${lt_cv_prog_gnu_ld+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12755 case `$LD -v 2>&1 </dev/null` in
12756 *GNU* | *'with BFD'*)
12757 lt_cv_prog_gnu_ld=yes
12760 lt_cv_prog_gnu_ld=no
12762 esac
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12765 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12766 with_gnu_ld=$lt_cv_prog_gnu_ld
12774 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12775 # archiving commands below assume that GNU ld is being used.
12776 if test "$with_gnu_ld" = yes; then
12777 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12780 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12783 # If archive_cmds runs LD, not CC, wlarc should be empty
12784 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12785 # investigate it a little bit more. (MM)
12786 wlarc='${wl}'
12788 # ancient GNU ld didn't support --whole-archive et. al.
12789 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12790 $GREP 'no-whole-archive' > /dev/null; then
12791 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12792 else
12793 whole_archive_flag_spec_CXX=
12795 else
12796 with_gnu_ld=no
12797 wlarc=
12799 # A generic and very simple default shared library creation
12800 # command for GNU C++ for the case where it uses the native
12801 # linker, instead of GNU ld. If possible, this setting should
12802 # overridden to take advantage of the native linker features on
12803 # the platform it is being used on.
12804 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12807 # Commands to make compiler produce verbose output that lists
12808 # what "hidden" libraries, object files and flags are used when
12809 # linking a shared library.
12810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12812 else
12813 GXX=no
12814 with_gnu_ld=no
12815 wlarc=
12818 # PORTME: fill in a description of your system's C++ link characteristics
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12820 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12821 ld_shlibs_CXX=yes
12822 case $host_os in
12823 aix3*)
12824 # FIXME: insert proper C++ library support
12825 ld_shlibs_CXX=no
12827 aix[4-9]*)
12828 if test "$host_cpu" = ia64; then
12829 # On IA64, the linker does run time linking by default, so we don't
12830 # have to do anything special.
12831 aix_use_runtimelinking=no
12832 exp_sym_flag='-Bexport'
12833 no_entry_flag=""
12834 else
12835 aix_use_runtimelinking=no
12837 # Test if we are trying to use run time linking or normal
12838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12839 # need to do runtime linking.
12840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12841 for ld_flag in $LDFLAGS; do
12842 case $ld_flag in
12843 *-brtl*)
12844 aix_use_runtimelinking=yes
12845 break
12847 esac
12848 done
12850 esac
12852 exp_sym_flag='-bexport'
12853 no_entry_flag='-bnoentry'
12856 # When large executables or shared objects are built, AIX ld can
12857 # have problems creating the table of contents. If linking a library
12858 # or program results in "error TOC overflow" add -mminimal-toc to
12859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12862 archive_cmds_CXX=''
12863 hardcode_direct_CXX=yes
12864 hardcode_direct_absolute_CXX=yes
12865 hardcode_libdir_separator_CXX=':'
12866 link_all_deplibs_CXX=yes
12867 file_list_spec_CXX='${wl}-f,'
12869 if test "$GXX" = yes; then
12870 case $host_os in aix4.[012]|aix4.[012].*)
12871 # We only want to do this on AIX 4.2 and lower, the check
12872 # below for broken collect2 doesn't work under 4.3+
12873 collect2name=`${CC} -print-prog-name=collect2`
12874 if test -f "$collect2name" &&
12875 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12876 then
12877 # We have reworked collect2
12879 else
12880 # We have old collect2
12881 hardcode_direct_CXX=unsupported
12882 # It fails to find uninstalled libraries when the uninstalled
12883 # path is not listed in the libpath. Setting hardcode_minus_L
12884 # to unsupported forces relinking
12885 hardcode_minus_L_CXX=yes
12886 hardcode_libdir_flag_spec_CXX='-L$libdir'
12887 hardcode_libdir_separator_CXX=
12889 esac
12890 shared_flag='-shared'
12891 if test "$aix_use_runtimelinking" = yes; then
12892 shared_flag="$shared_flag "'${wl}-G'
12894 else
12895 # not using gcc
12896 if test "$host_cpu" = ia64; then
12897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12898 # chokes on -Wl,-G. The following line is correct:
12899 shared_flag='-G'
12900 else
12901 if test "$aix_use_runtimelinking" = yes; then
12902 shared_flag='${wl}-G'
12903 else
12904 shared_flag='${wl}-bM:SRE'
12909 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12910 # It seems that -bexpall does not export symbols beginning with
12911 # underscore (_), so it is better to generate a list of symbols to
12912 # export.
12913 always_export_symbols_CXX=yes
12914 if test "$aix_use_runtimelinking" = yes; then
12915 # Warning - without using the other runtime loading flags (-brtl),
12916 # -berok will link without error, but may produce a broken library.
12917 allow_undefined_flag_CXX='-berok'
12918 # Determine the default libpath from the value encoded in an empty
12919 # executable.
12920 if test "${lt_cv_aix_libpath+set}" = set; then
12921 aix_libpath=$lt_cv_aix_libpath
12922 else
12923 if ${lt_cv_aix_libpath__CXX+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12930 main ()
12934 return 0;
12936 _ACEOF
12937 if ac_fn_cxx_try_link "$LINENO"; then :
12939 lt_aix_libpath_sed='
12940 /Import File Strings/,/^$/ {
12941 /^0/ {
12942 s/^0 *\([^ ]*\) *$/\1/
12946 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12947 # Check for a 64-bit object if we didn't find anything.
12948 if test -z "$lt_cv_aix_libpath__CXX"; then
12949 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12952 rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 if test -z "$lt_cv_aix_libpath__CXX"; then
12955 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12960 aix_libpath=$lt_cv_aix_libpath__CXX
12963 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12965 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12966 else
12967 if test "$host_cpu" = ia64; then
12968 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12969 allow_undefined_flag_CXX="-z nodefs"
12970 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12971 else
12972 # Determine the default libpath from the value encoded in an
12973 # empty executable.
12974 if test "${lt_cv_aix_libpath+set}" = set; then
12975 aix_libpath=$lt_cv_aix_libpath
12976 else
12977 if ${lt_cv_aix_libpath__CXX+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12984 main ()
12988 return 0;
12990 _ACEOF
12991 if ac_fn_cxx_try_link "$LINENO"; then :
12993 lt_aix_libpath_sed='
12994 /Import File Strings/,/^$/ {
12995 /^0/ {
12996 s/^0 *\([^ ]*\) *$/\1/
13000 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13001 # Check for a 64-bit object if we didn't find anything.
13002 if test -z "$lt_cv_aix_libpath__CXX"; then
13003 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 if test -z "$lt_cv_aix_libpath__CXX"; then
13009 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13014 aix_libpath=$lt_cv_aix_libpath__CXX
13017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13018 # Warning - without using the other run time loading flags,
13019 # -berok will link without error, but may produce a broken library.
13020 no_undefined_flag_CXX=' ${wl}-bernotok'
13021 allow_undefined_flag_CXX=' ${wl}-berok'
13022 if test "$with_gnu_ld" = yes; then
13023 # We only use this code for GNU lds that support --whole-archive.
13024 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13025 else
13026 # Exported symbols can be pulled into shared objects from archives
13027 whole_archive_flag_spec_CXX='$convenience'
13029 archive_cmds_need_lc_CXX=yes
13030 # This is similar to how AIX traditionally builds its shared
13031 # libraries.
13032 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13037 beos*)
13038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13039 allow_undefined_flag_CXX=unsupported
13040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13041 # support --undefined. This deserves some investigation. FIXME
13042 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 else
13044 ld_shlibs_CXX=no
13048 chorus*)
13049 case $cc_basename in
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13054 esac
13057 cygwin* | mingw* | pw32* | cegcc*)
13058 case $GXX,$cc_basename in
13059 ,cl* | no,cl*)
13060 # Native MSVC
13061 # hardcode_libdir_flag_spec is actually meaningless, as there is
13062 # no search path for DLLs.
13063 hardcode_libdir_flag_spec_CXX=' '
13064 allow_undefined_flag_CXX=unsupported
13065 always_export_symbols_CXX=yes
13066 file_list_spec_CXX='@'
13067 # Tell ltmain to make .lib files, not .a files.
13068 libext=lib
13069 # Tell ltmain to make .dll files, not .so files.
13070 shrext_cmds=".dll"
13071 # FIXME: Setting linknames here is a bad hack.
13072 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13073 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13074 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13075 else
13076 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13078 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13079 linknames='
13080 # The linker will not automatically build a static lib if we build a DLL.
13081 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13082 enable_shared_with_static_runtimes_CXX=yes
13083 # Don't use ranlib
13084 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13085 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13086 lt_tool_outputfile="@TOOL_OUTPUT@"~
13087 case $lt_outputfile in
13088 *.exe|*.EXE) ;;
13090 lt_outputfile="$lt_outputfile.exe"
13091 lt_tool_outputfile="$lt_tool_outputfile.exe"
13093 esac~
13094 func_to_tool_file "$lt_outputfile"~
13095 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13096 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13097 $RM "$lt_outputfile.manifest";
13101 # g++
13102 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13103 # as there is no search path for DLLs.
13104 hardcode_libdir_flag_spec_CXX='-L$libdir'
13105 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13106 allow_undefined_flag_CXX=unsupported
13107 always_export_symbols_CXX=no
13108 enable_shared_with_static_runtimes_CXX=yes
13110 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13112 # If the export-symbols file already is a .def file (1st line
13113 # is EXPORTS), use it as is; otherwise, prepend...
13114 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13115 cp $export_symbols $output_objdir/$soname.def;
13116 else
13117 echo EXPORTS > $output_objdir/$soname.def;
13118 cat $export_symbols >> $output_objdir/$soname.def;
13120 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13121 else
13122 ld_shlibs_CXX=no
13125 esac
13127 darwin* | rhapsody*)
13130 archive_cmds_need_lc_CXX=no
13131 hardcode_direct_CXX=no
13132 hardcode_automatic_CXX=yes
13133 hardcode_shlibpath_var_CXX=unsupported
13134 if test "$lt_cv_ld_force_load" = "yes"; then
13135 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13136 else
13137 whole_archive_flag_spec_CXX=''
13139 link_all_deplibs_CXX=yes
13140 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13141 case $cc_basename in
13142 ifort*) _lt_dar_can_shared=yes ;;
13143 *) _lt_dar_can_shared=$GCC ;;
13144 esac
13145 if test "$_lt_dar_can_shared" = "yes"; then
13146 output_verbose_link_cmd=func_echo_all
13147 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13148 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13149 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13150 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13151 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13152 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13153 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13156 else
13157 ld_shlibs_CXX=no
13162 dgux*)
13163 case $cc_basename in
13164 ec++*)
13165 # FIXME: insert proper C++ library support
13166 ld_shlibs_CXX=no
13168 ghcx*)
13169 # Green Hills C++ Compiler
13170 # FIXME: insert proper C++ library support
13171 ld_shlibs_CXX=no
13174 # FIXME: insert proper C++ library support
13175 ld_shlibs_CXX=no
13177 esac
13180 freebsd[12]*)
13181 # C++ shared libraries reported to be fairly broken before
13182 # switch to ELF
13183 ld_shlibs_CXX=no
13186 freebsd-elf*)
13187 archive_cmds_need_lc_CXX=no
13190 freebsd* | dragonfly*)
13191 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13192 # conventions
13193 ld_shlibs_CXX=yes
13196 gnu*)
13199 haiku*)
13200 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13201 link_all_deplibs_CXX=yes
13204 hpux9*)
13205 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13206 hardcode_libdir_separator_CXX=:
13207 export_dynamic_flag_spec_CXX='${wl}-E'
13208 hardcode_direct_CXX=yes
13209 hardcode_minus_L_CXX=yes # Not in the search PATH,
13210 # but as the default
13211 # location of the library.
13213 case $cc_basename in
13214 CC*)
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13218 aCC*)
13219 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13220 # Commands to make compiler produce verbose output that lists
13221 # what "hidden" libraries, object files and flags are used when
13222 # linking a shared library.
13224 # There doesn't appear to be a way to prevent this compiler from
13225 # explicitly linking system object files so we need to strip them
13226 # from the output so that they don't get included in the library
13227 # dependencies.
13228 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13231 if test "$GXX" = yes; then
13232 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13233 else
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13238 esac
13241 hpux10*|hpux11*)
13242 if test $with_gnu_ld = no; then
13243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13244 hardcode_libdir_separator_CXX=:
13246 case $host_cpu in
13247 hppa*64*|ia64*)
13250 export_dynamic_flag_spec_CXX='${wl}-E'
13252 esac
13254 case $host_cpu in
13255 hppa*64*|ia64*)
13256 hardcode_direct_CXX=no
13257 hardcode_shlibpath_var_CXX=no
13260 hardcode_direct_CXX=yes
13261 hardcode_direct_absolute_CXX=yes
13262 hardcode_minus_L_CXX=yes # Not in the search PATH,
13263 # but as the default
13264 # location of the library.
13266 esac
13268 case $cc_basename in
13269 CC*)
13270 # FIXME: insert proper C++ library support
13271 ld_shlibs_CXX=no
13273 aCC*)
13274 case $host_cpu in
13275 hppa*64*)
13276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13278 ia64*)
13279 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13284 esac
13285 # Commands to make compiler produce verbose output that lists
13286 # what "hidden" libraries, object files and flags are used when
13287 # linking a shared library.
13289 # There doesn't appear to be a way to prevent this compiler from
13290 # explicitly linking system object files so we need to strip them
13291 # from the output so that they don't get included in the library
13292 # dependencies.
13293 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13296 if test "$GXX" = yes; then
13297 if test $with_gnu_ld = no; then
13298 case $host_cpu in
13299 hppa*64*)
13300 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13302 ia64*)
13303 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13306 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13308 esac
13310 else
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13315 esac
13318 interix[3-9]*)
13319 hardcode_direct_CXX=no
13320 hardcode_shlibpath_var_CXX=no
13321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13322 export_dynamic_flag_spec_CXX='${wl}-E'
13323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13324 # Instead, shared libraries are loaded at an image base (0x10000000 by
13325 # default) and relocated if they conflict, which is a slow very memory
13326 # consuming and fragmenting process. To avoid this, we pick a random,
13327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13329 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13330 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13332 irix5* | irix6*)
13333 case $cc_basename in
13334 CC*)
13335 # SGI C++
13336 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13338 # Archives containing C++ object files must be created using
13339 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13340 # necessary to make sure instantiated templates are included
13341 # in the archive.
13342 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13345 if test "$GXX" = yes; then
13346 if test "$with_gnu_ld" = no; then
13347 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13348 else
13349 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13352 link_all_deplibs_CXX=yes
13354 esac
13355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13356 hardcode_libdir_separator_CXX=:
13357 inherit_rpath_CXX=yes
13360 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13361 case $cc_basename in
13362 KCC*)
13363 # Kuck and Associates, Inc. (KAI) C++ Compiler
13365 # KCC will only create a shared library if the output file
13366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13367 # to its proper name (with version) after linking.
13368 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13369 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13374 # There doesn't appear to be a way to prevent this compiler from
13375 # explicitly linking system object files so we need to strip them
13376 # from the output so that they don't get included in the library
13377 # dependencies.
13378 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13383 # Archives containing C++ object files must be created using
13384 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13385 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13387 icpc* | ecpc* )
13388 # Intel C++
13389 with_gnu_ld=yes
13390 # version 8.0 and above of icpc choke on multiply defined symbols
13391 # if we add $predep_objects and $postdep_objects, however 7.1 and
13392 # earlier do not add the objects themselves.
13393 case `$CC -V 2>&1` in
13394 *"Version 7."*)
13395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13398 *) # Version 8.0 or newer
13399 tmp_idyn=
13400 case $host_cpu in
13401 ia64*) tmp_idyn=' -i_dynamic';;
13402 esac
13403 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13404 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13406 esac
13407 archive_cmds_need_lc_CXX=no
13408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13410 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13412 pgCC* | pgcpp*)
13413 # Portland Group C++ compiler
13414 case `$CC -V` in
13415 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13416 prelink_cmds_CXX='tpldir=Template.dir~
13417 rm -rf $tpldir~
13418 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13419 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13420 old_archive_cmds_CXX='tpldir=Template.dir~
13421 rm -rf $tpldir~
13422 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13423 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13424 $RANLIB $oldlib'
13425 archive_cmds_CXX='tpldir=Template.dir~
13426 rm -rf $tpldir~
13427 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13428 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13429 archive_expsym_cmds_CXX='tpldir=Template.dir~
13430 rm -rf $tpldir~
13431 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13432 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13434 *) # Version 6 and above use weak symbols
13435 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13436 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13438 esac
13440 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13441 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13442 whole_archive_flag_spec_CXX='${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'
13444 cxx*)
13445 # Compaq C++
13446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13447 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13449 runpath_var=LD_RUN_PATH
13450 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13451 hardcode_libdir_separator_CXX=:
13453 # Commands to make compiler produce verbose output that lists
13454 # what "hidden" libraries, object files and flags are used when
13455 # linking a shared library.
13457 # There doesn't appear to be a way to prevent this compiler from
13458 # explicitly linking system object files so we need to strip them
13459 # from the output so that they don't get included in the library
13460 # dependencies.
13461 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13463 xl* | mpixl* | bgxl*)
13464 # IBM XL 8.0 on PPC, with GNU ld
13465 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13467 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468 if test "x$supports_anon_versioning" = xyes; then
13469 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13471 echo "local: *; };" >> $output_objdir/$libname.ver~
13472 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13476 case `$CC -V 2>&1 | sed 5q` in
13477 *Sun\ C*)
13478 # Sun C++ 5.9
13479 no_undefined_flag_CXX=' -zdefs'
13480 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13481 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13482 hardcode_libdir_flag_spec_CXX='-R$libdir'
13483 whole_archive_flag_spec_CXX='${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'
13484 compiler_needs_object_CXX=yes
13486 # Not sure whether something based on
13487 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13488 # would be better.
13489 output_verbose_link_cmd='func_echo_all'
13491 # Archives containing C++ object files must be created using
13492 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13493 # necessary to make sure instantiated templates are included
13494 # in the archive.
13495 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13497 esac
13499 esac
13502 lynxos*)
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13507 m88k*)
13508 # FIXME: insert proper C++ library support
13509 ld_shlibs_CXX=no
13512 mvs*)
13513 case $cc_basename in
13514 cxx*)
13515 # FIXME: insert proper C++ library support
13516 ld_shlibs_CXX=no
13519 # FIXME: insert proper C++ library support
13520 ld_shlibs_CXX=no
13522 esac
13525 netbsd*)
13526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13527 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13528 wlarc=
13529 hardcode_libdir_flag_spec_CXX='-R$libdir'
13530 hardcode_direct_CXX=yes
13531 hardcode_shlibpath_var_CXX=no
13533 # Workaround some broken pre-1.5 toolchains
13534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13537 *nto* | *qnx*)
13538 ld_shlibs_CXX=yes
13541 openbsd2*)
13542 # C++ shared libraries are fairly broken
13543 ld_shlibs_CXX=no
13546 openbsd*)
13547 if test -f /usr/libexec/ld.so; then
13548 hardcode_direct_CXX=yes
13549 hardcode_shlibpath_var_CXX=no
13550 hardcode_direct_absolute_CXX=yes
13551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13554 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13555 export_dynamic_flag_spec_CXX='${wl}-E'
13556 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13558 output_verbose_link_cmd=func_echo_all
13559 else
13560 ld_shlibs_CXX=no
13564 osf3* | osf4* | osf5*)
13565 case $cc_basename in
13566 KCC*)
13567 # Kuck and Associates, Inc. (KAI) C++ Compiler
13569 # KCC will only create a shared library if the output file
13570 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13571 # to its proper name (with version) after linking.
13572 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13575 hardcode_libdir_separator_CXX=:
13577 # Archives containing C++ object files must be created using
13578 # the KAI C++ compiler.
13579 case $host in
13580 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13581 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13582 esac
13584 RCC*)
13585 # Rational C++ 2.4.1
13586 # FIXME: insert proper C++ library support
13587 ld_shlibs_CXX=no
13589 cxx*)
13590 case $host in
13591 osf3*)
13592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13593 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13597 allow_undefined_flag_CXX=' -expect_unresolved \*'
13598 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13599 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13600 echo "-hidden">> $lib.exp~
13601 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13602 $RM $lib.exp'
13603 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13605 esac
13607 hardcode_libdir_separator_CXX=:
13609 # Commands to make compiler produce verbose output that lists
13610 # what "hidden" libraries, object files and flags are used when
13611 # linking a shared library.
13613 # There doesn't appear to be a way to prevent this compiler from
13614 # explicitly linking system object files so we need to strip them
13615 # from the output so that they don't get included in the library
13616 # dependencies.
13617 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13621 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13622 case $host in
13623 osf3*)
13624 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13627 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13629 esac
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13632 hardcode_libdir_separator_CXX=:
13634 # Commands to make compiler produce verbose output that lists
13635 # what "hidden" libraries, object files and flags are used when
13636 # linking a shared library.
13637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13639 else
13640 # FIXME: insert proper C++ library support
13641 ld_shlibs_CXX=no
13644 esac
13647 psos*)
13648 # FIXME: insert proper C++ library support
13649 ld_shlibs_CXX=no
13652 sunos4*)
13653 case $cc_basename in
13654 CC*)
13655 # Sun C++ 4.x
13656 # FIXME: insert proper C++ library support
13657 ld_shlibs_CXX=no
13659 lcc*)
13660 # Lucid
13661 # FIXME: insert proper C++ library support
13662 ld_shlibs_CXX=no
13665 # FIXME: insert proper C++ library support
13666 ld_shlibs_CXX=no
13668 esac
13671 solaris*)
13672 case $cc_basename in
13673 CC* | sunCC*)
13674 # Sun C++ 4.2, 5.x and Centerline C++
13675 archive_cmds_need_lc_CXX=yes
13676 no_undefined_flag_CXX=' -zdefs'
13677 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13678 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13679 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13681 hardcode_libdir_flag_spec_CXX='-R$libdir'
13682 hardcode_shlibpath_var_CXX=no
13683 case $host_os in
13684 solaris2.[0-5] | solaris2.[0-5].*) ;;
13686 # The compiler driver will combine and reorder linker options,
13687 # but understands `-z linker_flag'.
13688 # Supported since Solaris 2.6 (maybe 2.5.1?)
13689 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13691 esac
13692 link_all_deplibs_CXX=yes
13694 output_verbose_link_cmd='func_echo_all'
13696 # Archives containing C++ object files must be created using
13697 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13698 # necessary to make sure instantiated templates are included
13699 # in the archive.
13700 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13702 gcx*)
13703 # Green Hills C++ Compiler
13704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706 # The C++ compiler must be used to create the archive.
13707 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13710 # GNU C++ compiler with Solaris linker
13711 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13712 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13713 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13714 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13715 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13716 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13718 # Commands to make compiler produce verbose output that lists
13719 # what "hidden" libraries, object files and flags are used when
13720 # linking a shared library.
13721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13722 else
13723 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13724 # platform.
13725 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13726 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13727 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13732 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13735 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13736 case $host_os in
13737 solaris2.[0-5] | solaris2.[0-5].*) ;;
13739 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13741 esac
13744 esac
13747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13748 no_undefined_flag_CXX='${wl}-z,text'
13749 archive_cmds_need_lc_CXX=no
13750 hardcode_shlibpath_var_CXX=no
13751 runpath_var='LD_RUN_PATH'
13753 case $cc_basename in
13754 CC*)
13755 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13760 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 esac
13765 sysv5* | sco3.2v5* | sco5v6*)
13766 # Note: We can NOT use -z defs as we might desire, because we do not
13767 # link with -lc, and that would cause any symbols used from libc to
13768 # always be unresolved, which means just about no library would
13769 # ever link correctly. If we're not using GNU ld we use -z text
13770 # though, which does catch some bad symbols but isn't as heavy-handed
13771 # as -z defs.
13772 no_undefined_flag_CXX='${wl}-z,text'
13773 allow_undefined_flag_CXX='${wl}-z,nodefs'
13774 archive_cmds_need_lc_CXX=no
13775 hardcode_shlibpath_var_CXX=no
13776 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13777 hardcode_libdir_separator_CXX=':'
13778 link_all_deplibs_CXX=yes
13779 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13780 runpath_var='LD_RUN_PATH'
13782 case $cc_basename in
13783 CC*)
13784 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13787 '"$old_archive_cmds_CXX"
13788 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13789 '"$reload_cmds_CXX"
13792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13795 esac
13798 tandem*)
13799 case $cc_basename in
13800 NCC*)
13801 # NonStop-UX NCC 3.20
13802 # FIXME: insert proper C++ library support
13803 ld_shlibs_CXX=no
13806 # FIXME: insert proper C++ library support
13807 ld_shlibs_CXX=no
13809 esac
13812 vxworks*)
13813 # FIXME: insert proper C++ library support
13814 ld_shlibs_CXX=no
13818 # FIXME: insert proper C++ library support
13819 ld_shlibs_CXX=no
13821 esac
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13824 $as_echo "$ld_shlibs_CXX" >&6; }
13825 test "$ld_shlibs_CXX" = no && can_build_shared=no
13827 GCC_CXX="$GXX"
13828 LD_CXX="$LD"
13830 ## CAVEAT EMPTOR:
13831 ## There is no encapsulation within the following macros, do not change
13832 ## the running order or otherwise move them around unless you know exactly
13833 ## what you are doing...
13834 # Dependencies to place before and after the object being linked:
13835 predep_objects_CXX=
13836 postdep_objects_CXX=
13837 predeps_CXX=
13838 postdeps_CXX=
13839 compiler_lib_search_path_CXX=
13841 cat > conftest.$ac_ext <<_LT_EOF
13842 class Foo
13844 public:
13845 Foo (void) { a = 0; }
13846 private:
13847 int a;
13849 _LT_EOF
13852 _lt_libdeps_save_CFLAGS=$CFLAGS
13853 case "$CC $CFLAGS " in #(
13854 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13855 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13856 esac
13858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13859 (eval $ac_compile) 2>&5
13860 ac_status=$?
13861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13862 test $ac_status = 0; }; then
13863 # Parse the compiler output and extract the necessary
13864 # objects, libraries and library flags.
13866 # Sentinel used to keep track of whether or not we are before
13867 # the conftest object file.
13868 pre_test_object_deps_done=no
13870 for p in `eval "$output_verbose_link_cmd"`; do
13871 case ${prev}${p} in
13873 -L* | -R* | -l*)
13874 # Some compilers place space between "-{L,R}" and the path.
13875 # Remove the space.
13876 if test $p = "-L" ||
13877 test $p = "-R"; then
13878 prev=$p
13879 continue
13882 # Expand the sysroot to ease extracting the directories later.
13883 if test -z "$prev"; then
13884 case $p in
13885 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13886 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13887 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13888 esac
13890 case $p in
13891 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13892 esac
13893 if test "$pre_test_object_deps_done" = no; then
13894 case ${prev} in
13895 -L | -R)
13896 # Internal compiler library paths should come after those
13897 # provided the user. The postdeps already come after the
13898 # user supplied libs so there is no need to process them.
13899 if test -z "$compiler_lib_search_path_CXX"; then
13900 compiler_lib_search_path_CXX="${prev}${p}"
13901 else
13902 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13905 # The "-l" case would never come before the object being
13906 # linked, so don't bother handling this case.
13907 esac
13908 else
13909 if test -z "$postdeps_CXX"; then
13910 postdeps_CXX="${prev}${p}"
13911 else
13912 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13915 prev=
13918 *.lto.$objext) ;; # Ignore GCC LTO objects
13919 *.$objext)
13920 # This assumes that the test object file only shows up
13921 # once in the compiler output.
13922 if test "$p" = "conftest.$objext"; then
13923 pre_test_object_deps_done=yes
13924 continue
13927 if test "$pre_test_object_deps_done" = no; then
13928 if test -z "$predep_objects_CXX"; then
13929 predep_objects_CXX="$p"
13930 else
13931 predep_objects_CXX="$predep_objects_CXX $p"
13933 else
13934 if test -z "$postdep_objects_CXX"; then
13935 postdep_objects_CXX="$p"
13936 else
13937 postdep_objects_CXX="$postdep_objects_CXX $p"
13942 *) ;; # Ignore the rest.
13944 esac
13945 done
13947 # Clean up.
13948 rm -f a.out a.exe
13949 else
13950 echo "libtool.m4: error: problem compiling CXX test program"
13953 $RM -f confest.$objext
13954 CFLAGS=$_lt_libdeps_save_CFLAGS
13956 # PORTME: override above test on systems where it is broken
13957 case $host_os in
13958 interix[3-9]*)
13959 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13960 # hack all around it, let's just trust "g++" to DTRT.
13961 predep_objects_CXX=
13962 postdep_objects_CXX=
13963 postdeps_CXX=
13966 linux*)
13967 case `$CC -V 2>&1 | sed 5q` in
13968 *Sun\ C*)
13969 # Sun C++ 5.9
13971 # The more standards-conforming stlport4 library is
13972 # incompatible with the Cstd library. Avoid specifying
13973 # it if it's in CXXFLAGS. Ignore libCrun as
13974 # -library=stlport4 depends on it.
13975 case " $CXX $CXXFLAGS " in
13976 *" -library=stlport4 "*)
13977 solaris_use_stlport4=yes
13979 esac
13981 if test "$solaris_use_stlport4" != yes; then
13982 postdeps_CXX='-library=Cstd -library=Crun'
13985 esac
13988 solaris*)
13989 case $cc_basename in
13990 CC* | sunCC*)
13991 # The more standards-conforming stlport4 library is
13992 # incompatible with the Cstd library. Avoid specifying
13993 # it if it's in CXXFLAGS. Ignore libCrun as
13994 # -library=stlport4 depends on it.
13995 case " $CXX $CXXFLAGS " in
13996 *" -library=stlport4 "*)
13997 solaris_use_stlport4=yes
13999 esac
14001 # Adding this requires a known-good setup of shared libraries for
14002 # Sun compiler versions before 5.6, else PIC objects from an old
14003 # archive will be linked into the output, leading to subtle bugs.
14004 if test "$solaris_use_stlport4" != yes; then
14005 postdeps_CXX='-library=Cstd -library=Crun'
14008 esac
14010 esac
14013 case " $postdeps_CXX " in
14014 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14015 esac
14016 compiler_lib_search_dirs_CXX=
14017 if test -n "${compiler_lib_search_path_CXX}"; then
14018 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14051 lt_prog_compiler_wl_CXX=
14052 lt_prog_compiler_pic_CXX=
14053 lt_prog_compiler_static_CXX=
14056 # C++ specific cases for pic, static, wl, etc.
14057 if test "$GXX" = yes; then
14058 lt_prog_compiler_wl_CXX='-Wl,'
14059 lt_prog_compiler_static_CXX='-static'
14061 case $host_os in
14062 aix*)
14063 # All AIX code is PIC.
14064 if test "$host_cpu" = ia64; then
14065 # AIX 5 now supports IA64 processor
14066 lt_prog_compiler_static_CXX='-Bstatic'
14070 amigaos*)
14071 case $host_cpu in
14072 powerpc)
14073 # see comment about AmigaOS4 .so support
14074 lt_prog_compiler_pic_CXX='-fPIC'
14076 m68k)
14077 # FIXME: we need at least 68020 code to build shared libraries, but
14078 # adding the `-m68020' flag to GCC prevents building anything better,
14079 # like `-m68040'.
14080 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14082 esac
14085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14086 # PIC is the default for these OSes.
14088 mingw* | cygwin* | os2* | pw32* | cegcc*)
14089 # This hack is so that the source file can tell whether it is being
14090 # built for inclusion in a dll (and should export symbols for example).
14091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14092 # (--disable-auto-import) libraries
14093 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14095 darwin* | rhapsody*)
14096 # PIC is the default on this platform
14097 # Common symbols not allowed in MH_DYLIB files
14098 lt_prog_compiler_pic_CXX='-fno-common'
14100 *djgpp*)
14101 # DJGPP does not support shared libraries at all
14102 lt_prog_compiler_pic_CXX=
14104 haiku*)
14105 # PIC is the default for Haiku.
14106 # The "-static" flag exists, but is broken.
14107 lt_prog_compiler_static_CXX=
14109 interix[3-9]*)
14110 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14111 # Instead, we relocate shared libraries at runtime.
14113 sysv4*MP*)
14114 if test -d /usr/nec; then
14115 lt_prog_compiler_pic_CXX=-Kconform_pic
14118 hpux*)
14119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14121 # sets the default TLS model and affects inlining.
14122 case $host_cpu in
14123 hppa*64*)
14126 lt_prog_compiler_pic_CXX='-fPIC'
14128 esac
14130 *qnx* | *nto*)
14131 # QNX uses GNU C++, but need to define -shared option too, otherwise
14132 # it will coredump.
14133 lt_prog_compiler_pic_CXX='-fPIC -shared'
14136 lt_prog_compiler_pic_CXX='-fPIC'
14138 esac
14139 else
14140 case $host_os in
14141 aix[4-9]*)
14142 # All AIX code is PIC.
14143 if test "$host_cpu" = ia64; then
14144 # AIX 5 now supports IA64 processor
14145 lt_prog_compiler_static_CXX='-Bstatic'
14146 else
14147 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14150 chorus*)
14151 case $cc_basename in
14152 cxch68*)
14153 # Green Hills C++ Compiler
14154 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14156 esac
14158 mingw* | cygwin* | os2* | pw32* | cegcc*)
14159 # This hack is so that the source file can tell whether it is being
14160 # built for inclusion in a dll (and should export symbols for example).
14161 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14163 dgux*)
14164 case $cc_basename in
14165 ec++*)
14166 lt_prog_compiler_pic_CXX='-KPIC'
14168 ghcx*)
14169 # Green Hills C++ Compiler
14170 lt_prog_compiler_pic_CXX='-pic'
14174 esac
14176 freebsd* | dragonfly*)
14177 # FreeBSD uses GNU C++
14179 hpux9* | hpux10* | hpux11*)
14180 case $cc_basename in
14181 CC*)
14182 lt_prog_compiler_wl_CXX='-Wl,'
14183 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14184 if test "$host_cpu" != ia64; then
14185 lt_prog_compiler_pic_CXX='+Z'
14188 aCC*)
14189 lt_prog_compiler_wl_CXX='-Wl,'
14190 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14191 case $host_cpu in
14192 hppa*64*|ia64*)
14193 # +Z the default
14196 lt_prog_compiler_pic_CXX='+Z'
14198 esac
14202 esac
14204 interix*)
14205 # This is c89, which is MS Visual C++ (no shared libs)
14206 # Anyone wants to do a port?
14208 irix5* | irix6* | nonstopux*)
14209 case $cc_basename in
14210 CC*)
14211 lt_prog_compiler_wl_CXX='-Wl,'
14212 lt_prog_compiler_static_CXX='-non_shared'
14213 # CC pic flag -KPIC is the default.
14217 esac
14219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14220 case $cc_basename in
14221 KCC*)
14222 # KAI C++ Compiler
14223 lt_prog_compiler_wl_CXX='--backend -Wl,'
14224 lt_prog_compiler_pic_CXX='-fPIC'
14226 ecpc* )
14227 # old Intel C++ for x86_64 which still supported -KPIC.
14228 lt_prog_compiler_wl_CXX='-Wl,'
14229 lt_prog_compiler_pic_CXX='-KPIC'
14230 lt_prog_compiler_static_CXX='-static'
14232 icpc* )
14233 # Intel C++, used to be incompatible with GCC.
14234 # ICC 10 doesn't accept -KPIC any more.
14235 lt_prog_compiler_wl_CXX='-Wl,'
14236 lt_prog_compiler_pic_CXX='-fPIC'
14237 lt_prog_compiler_static_CXX='-static'
14239 pgCC* | pgcpp*)
14240 # Portland Group C++ compiler
14241 lt_prog_compiler_wl_CXX='-Wl,'
14242 lt_prog_compiler_pic_CXX='-fpic'
14243 lt_prog_compiler_static_CXX='-Bstatic'
14245 cxx*)
14246 # Compaq C++
14247 # Make sure the PIC flag is empty. It appears that all Alpha
14248 # Linux and Compaq Tru64 Unix objects are PIC.
14249 lt_prog_compiler_pic_CXX=
14250 lt_prog_compiler_static_CXX='-non_shared'
14252 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14253 # IBM XL 8.0, 9.0 on PPC and BlueGene
14254 lt_prog_compiler_wl_CXX='-Wl,'
14255 lt_prog_compiler_pic_CXX='-qpic'
14256 lt_prog_compiler_static_CXX='-qstaticlink'
14259 case `$CC -V 2>&1 | sed 5q` in
14260 *Sun\ C*)
14261 # Sun C++ 5.9
14262 lt_prog_compiler_pic_CXX='-KPIC'
14263 lt_prog_compiler_static_CXX='-Bstatic'
14264 lt_prog_compiler_wl_CXX='-Qoption ld '
14266 esac
14268 esac
14270 lynxos*)
14272 m88k*)
14274 mvs*)
14275 case $cc_basename in
14276 cxx*)
14277 lt_prog_compiler_pic_CXX='-W c,exportall'
14281 esac
14283 netbsd*)
14285 *qnx* | *nto*)
14286 # QNX uses GNU C++, but need to define -shared option too, otherwise
14287 # it will coredump.
14288 lt_prog_compiler_pic_CXX='-fPIC -shared'
14290 osf3* | osf4* | osf5*)
14291 case $cc_basename in
14292 KCC*)
14293 lt_prog_compiler_wl_CXX='--backend -Wl,'
14295 RCC*)
14296 # Rational C++ 2.4.1
14297 lt_prog_compiler_pic_CXX='-pic'
14299 cxx*)
14300 # Digital/Compaq C++
14301 lt_prog_compiler_wl_CXX='-Wl,'
14302 # Make sure the PIC flag is empty. It appears that all Alpha
14303 # Linux and Compaq Tru64 Unix objects are PIC.
14304 lt_prog_compiler_pic_CXX=
14305 lt_prog_compiler_static_CXX='-non_shared'
14309 esac
14311 psos*)
14313 solaris*)
14314 case $cc_basename in
14315 CC* | sunCC*)
14316 # Sun C++ 4.2, 5.x and Centerline C++
14317 lt_prog_compiler_pic_CXX='-KPIC'
14318 lt_prog_compiler_static_CXX='-Bstatic'
14319 lt_prog_compiler_wl_CXX='-Qoption ld '
14321 gcx*)
14322 # Green Hills C++ Compiler
14323 lt_prog_compiler_pic_CXX='-PIC'
14327 esac
14329 sunos4*)
14330 case $cc_basename in
14331 CC*)
14332 # Sun C++ 4.x
14333 lt_prog_compiler_pic_CXX='-pic'
14334 lt_prog_compiler_static_CXX='-Bstatic'
14336 lcc*)
14337 # Lucid
14338 lt_prog_compiler_pic_CXX='-pic'
14342 esac
14344 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14345 case $cc_basename in
14346 CC*)
14347 lt_prog_compiler_wl_CXX='-Wl,'
14348 lt_prog_compiler_pic_CXX='-KPIC'
14349 lt_prog_compiler_static_CXX='-Bstatic'
14351 esac
14353 tandem*)
14354 case $cc_basename in
14355 NCC*)
14356 # NonStop-UX NCC 3.20
14357 lt_prog_compiler_pic_CXX='-KPIC'
14361 esac
14363 vxworks*)
14366 lt_prog_compiler_can_build_shared_CXX=no
14368 esac
14371 case $host_os in
14372 # For platforms which do not support PIC, -DPIC is meaningless:
14373 *djgpp*)
14374 lt_prog_compiler_pic_CXX=
14377 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14379 esac
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14382 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14383 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14389 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14390 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14393 # Check to make sure the PIC flag actually works.
14395 if test -n "$lt_prog_compiler_pic_CXX"; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14397 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14398 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 lt_cv_prog_compiler_pic_works_CXX=no
14402 ac_outfile=conftest.$ac_objext
14403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14405 # Insert the option either (1) after the last *FLAGS variable, or
14406 # (2) before a word containing "conftest.", or (3) at the end.
14407 # Note that $ac_compile itself does not contain backslashes and begins
14408 # with a dollar sign (not a hyphen), so the echo should work correctly.
14409 # The option is referenced via a variable to avoid confusing sed.
14410 lt_compile=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>conftest.err)
14416 ac_status=$?
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s "$ac_outfile"; then
14420 # The compiler can only warn and ignore the option if not recognized
14421 # So say no if there are warnings other than the usual output.
14422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14425 lt_cv_prog_compiler_pic_works_CXX=yes
14428 $RM conftest*
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14432 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14434 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14435 case $lt_prog_compiler_pic_CXX in
14436 "" | " "*) ;;
14437 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14438 esac
14439 else
14440 lt_prog_compiler_pic_CXX=
14441 lt_prog_compiler_can_build_shared_CXX=no
14451 # Check to make sure the static flag actually works.
14453 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14455 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14456 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 lt_cv_prog_compiler_static_works_CXX=no
14460 save_LDFLAGS="$LDFLAGS"
14461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14464 # The linker can only warn and ignore the option if not recognized
14465 # So say no if there are warnings
14466 if test -s conftest.err; then
14467 # Append any errors to the config.log.
14468 cat conftest.err 1>&5
14469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14471 if diff conftest.exp conftest.er2 >/dev/null; then
14472 lt_cv_prog_compiler_static_works_CXX=yes
14474 else
14475 lt_cv_prog_compiler_static_works_CXX=yes
14478 $RM -r conftest*
14479 LDFLAGS="$save_LDFLAGS"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14483 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14485 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14487 else
14488 lt_prog_compiler_static_CXX=
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14496 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 lt_cv_prog_compiler_c_o_CXX=no
14500 $RM -r conftest 2>/dev/null
14501 mkdir conftest
14502 cd conftest
14503 mkdir out
14504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14506 lt_compiler_flag="-o out/conftest2.$ac_objext"
14507 # Insert the option either (1) after the last *FLAGS variable, or
14508 # (2) before a word containing "conftest.", or (3) at the end.
14509 # Note that $ac_compile itself does not contain backslashes and begins
14510 # with a dollar sign (not a hyphen), so the echo should work correctly.
14511 lt_compile=`echo "$ac_compile" | $SED \
14512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14514 -e 's:$: $lt_compiler_flag:'`
14515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14516 (eval "$lt_compile" 2>out/conftest.err)
14517 ac_status=$?
14518 cat out/conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14521 then
14522 # The compiler can only warn and ignore the option if not recognized
14523 # So say no if there are warnings
14524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14527 lt_cv_prog_compiler_c_o_CXX=yes
14530 chmod u+w . 2>&5
14531 $RM conftest*
14532 # SGI C++ compiler will create directory out/ii_files/ for
14533 # template instantiation
14534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14535 $RM out/* && rmdir out
14536 cd ..
14537 $RM -r conftest
14538 $RM conftest*
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14542 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14548 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 lt_cv_prog_compiler_c_o_CXX=no
14552 $RM -r conftest 2>/dev/null
14553 mkdir conftest
14554 cd conftest
14555 mkdir out
14556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14558 lt_compiler_flag="-o out/conftest2.$ac_objext"
14559 # Insert the option either (1) after the last *FLAGS variable, or
14560 # (2) before a word containing "conftest.", or (3) at the end.
14561 # Note that $ac_compile itself does not contain backslashes and begins
14562 # with a dollar sign (not a hyphen), so the echo should work correctly.
14563 lt_compile=`echo "$ac_compile" | $SED \
14564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566 -e 's:$: $lt_compiler_flag:'`
14567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14568 (eval "$lt_compile" 2>out/conftest.err)
14569 ac_status=$?
14570 cat out/conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14573 then
14574 # The compiler can only warn and ignore the option if not recognized
14575 # So say no if there are warnings
14576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14579 lt_cv_prog_compiler_c_o_CXX=yes
14582 chmod u+w . 2>&5
14583 $RM conftest*
14584 # SGI C++ compiler will create directory out/ii_files/ for
14585 # template instantiation
14586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14587 $RM out/* && rmdir out
14588 cd ..
14589 $RM -r conftest
14590 $RM conftest*
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14594 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14599 hard_links="nottested"
14600 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14601 # do not overwrite the value of need_locks provided by the user
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14603 $as_echo_n "checking if we can lock with hard links... " >&6; }
14604 hard_links=yes
14605 $RM conftest*
14606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14607 touch conftest.a
14608 ln conftest.a conftest.b 2>&5 || hard_links=no
14609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14611 $as_echo "$hard_links" >&6; }
14612 if test "$hard_links" = no; then
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14614 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14615 need_locks=warn
14617 else
14618 need_locks=no
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14624 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14626 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14627 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14628 case $host_os in
14629 aix[4-9]*)
14630 # If we're using GNU nm, then we don't want the "-C" option.
14631 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14632 # Also, AIX nm treats weak defined symbols like other global defined
14633 # symbols, whereas GNU nm marks them as "W".
14634 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14635 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14636 else
14637 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14640 pw32*)
14641 export_symbols_cmds_CXX="$ltdll_cmds"
14643 cygwin* | mingw* | cegcc*)
14644 case $cc_basename in
14645 cl*) ;;
14647 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14648 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14650 esac
14653 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14655 esac
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14658 $as_echo "$ld_shlibs_CXX" >&6; }
14659 test "$ld_shlibs_CXX" = no && can_build_shared=no
14661 with_gnu_ld_CXX=$with_gnu_ld
14669 # Do we need to explicitly link libc?
14671 case "x$archive_cmds_need_lc_CXX" in
14672 x|xyes)
14673 # Assume -lc should be added
14674 archive_cmds_need_lc_CXX=yes
14676 if test "$enable_shared" = yes && test "$GCC" = yes; then
14677 case $archive_cmds_CXX in
14678 *'~'*)
14679 # FIXME: we may have to deal with multi-command sequences.
14681 '$CC '*)
14682 # Test whether the compiler implicitly links with -lc since on some
14683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14684 # to ld, don't add -lc before -lgcc.
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14686 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14687 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14688 $as_echo_n "(cached) " >&6
14689 else
14690 $RM conftest*
14691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14694 (eval $ac_compile) 2>&5
14695 ac_status=$?
14696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14697 test $ac_status = 0; } 2>conftest.err; then
14698 soname=conftest
14699 lib=conftest
14700 libobjs=conftest.$ac_objext
14701 deplibs=
14702 wl=$lt_prog_compiler_wl_CXX
14703 pic_flag=$lt_prog_compiler_pic_CXX
14704 compiler_flags=-v
14705 linker_flags=-v
14706 verstring=
14707 output_objdir=.
14708 libname=conftest
14709 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14710 allow_undefined_flag_CXX=
14711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14712 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14713 ac_status=$?
14714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14715 test $ac_status = 0; }
14716 then
14717 lt_cv_archive_cmds_need_lc_CXX=no
14718 else
14719 lt_cv_archive_cmds_need_lc_CXX=yes
14721 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14722 else
14723 cat conftest.err 1>&5
14725 $RM conftest*
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14729 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14730 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14732 esac
14735 esac
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14803 library_names_spec=
14804 libname_spec='lib$name'
14805 soname_spec=
14806 shrext_cmds=".so"
14807 postinstall_cmds=
14808 postuninstall_cmds=
14809 finish_cmds=
14810 finish_eval=
14811 shlibpath_var=
14812 shlibpath_overrides_runpath=unknown
14813 version_type=none
14814 dynamic_linker="$host_os ld.so"
14815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14816 need_lib_prefix=unknown
14817 hardcode_into_libs=no
14819 # when you set need_version to no, make sure it does not cause -set_version
14820 # flags to be left without arguments
14821 need_version=unknown
14823 case $host_os in
14824 aix3*)
14825 version_type=linux
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14827 shlibpath_var=LIBPATH
14829 # AIX 3 has no versioning support, so we append a major version to the name.
14830 soname_spec='${libname}${release}${shared_ext}$major'
14833 aix[4-9]*)
14834 version_type=linux
14835 need_lib_prefix=no
14836 need_version=no
14837 hardcode_into_libs=yes
14838 if test "$host_cpu" = ia64; then
14839 # AIX 5 supports IA64
14840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 else
14843 # With GCC up to 2.95.x, collect2 would create an import file
14844 # for dependence libraries. The import file would start with
14845 # the line `#! .'. This would cause the generated library to
14846 # depend on `.', always an invalid library. This was fixed in
14847 # development snapshots of GCC prior to 3.0.
14848 case $host_os in
14849 aix4 | aix4.[01] | aix4.[01].*)
14850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14851 echo ' yes '
14852 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14854 else
14855 can_build_shared=no
14858 esac
14859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14860 # soname into executable. Probably we can add versioning support to
14861 # collect2, so additional links can be useful in future.
14862 if test "$aix_use_runtimelinking" = yes; then
14863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14864 # instead of lib<name>.a to let people know that these are not
14865 # typical AIX shared libraries.
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867 else
14868 # We preserve .a as extension for shared libraries through AIX4.2
14869 # and later when we are not doing run time linking.
14870 library_names_spec='${libname}${release}.a $libname.a'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LIBPATH
14877 amigaos*)
14878 case $host_cpu in
14879 powerpc)
14880 # Since July 2007 AmigaOS4 officially supports .so libraries.
14881 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 m68k)
14885 library_names_spec='$libname.ixlibrary $libname.a'
14886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14887 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'
14889 esac
14892 beos*)
14893 library_names_spec='${libname}${shared_ext}'
14894 dynamic_linker="$host_os ld.so"
14895 shlibpath_var=LIBRARY_PATH
14898 bsdi[45]*)
14899 version_type=linux
14900 need_version=no
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14907 # the default ld.so.conf also contains /usr/contrib/lib and
14908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14909 # libtool to hard-code these into programs
14912 cygwin* | mingw* | pw32* | cegcc*)
14913 version_type=windows
14914 shrext_cmds=".dll"
14915 need_version=no
14916 need_lib_prefix=no
14918 case $GCC,$cc_basename in
14919 yes,*)
14920 # gcc
14921 library_names_spec='$libname.dll.a'
14922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14923 postinstall_cmds='base_file=`basename \${file}`~
14924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14925 dldir=$destdir/`dirname \$dlpath`~
14926 test -d \$dldir || mkdir -p \$dldir~
14927 $install_prog $dir/$dlname \$dldir/$dlname~
14928 chmod a+x \$dldir/$dlname~
14929 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14930 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14933 dlpath=$dir/\$dldll~
14934 $RM \$dlpath'
14935 shlibpath_overrides_runpath=yes
14937 case $host_os in
14938 cygwin*)
14939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14943 mingw* | cegcc*)
14944 # MinGW DLLs use traditional 'lib' prefix
14945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947 pw32*)
14948 # pw32 DLLs use 'pw' prefix rather than 'lib'
14949 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14951 esac
14952 dynamic_linker='Win32 ld.exe'
14955 *,cl*)
14956 # Native MSVC
14957 libname_spec='$name'
14958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959 library_names_spec='${libname}.dll.lib'
14961 case $build_os in
14962 mingw*)
14963 sys_lib_search_path_spec=
14964 lt_save_ifs=$IFS
14965 IFS=';'
14966 for lt_path in $LIB
14968 IFS=$lt_save_ifs
14969 # Let DOS variable expansion print the short 8.3 style file name.
14970 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14971 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14972 done
14973 IFS=$lt_save_ifs
14974 # Convert to MSYS style.
14975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14977 cygwin*)
14978 # Convert to unix form, then to dos form, then back to unix form
14979 # but this time dos style (no spaces!) so that the unix form looks
14980 # like /cygdrive/c/PROGRA~1:/cygdr...
14981 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14982 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14983 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14986 sys_lib_search_path_spec="$LIB"
14987 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14988 # It is most probably a Windows format PATH.
14989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14990 else
14991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14993 # FIXME: find the short name or the path components, as spaces are
14994 # common. (e.g. "Program Files" -> "PROGRA~1")
14996 esac
14998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14999 postinstall_cmds='base_file=`basename \${file}`~
15000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15001 dldir=$destdir/`dirname \$dlpath`~
15002 test -d \$dldir || mkdir -p \$dldir~
15003 $install_prog $dir/$dlname \$dldir/$dlname'
15004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15005 dlpath=$dir/\$dldll~
15006 $RM \$dlpath'
15007 shlibpath_overrides_runpath=yes
15008 dynamic_linker='Win32 link.exe'
15012 # Assume MSVC wrapper
15013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15014 dynamic_linker='Win32 ld.exe'
15016 esac
15017 # FIXME: first we should search . and the directory the executable is in
15018 shlibpath_var=PATH
15021 darwin* | rhapsody*)
15022 dynamic_linker="$host_os dyld"
15023 version_type=darwin
15024 need_lib_prefix=no
15025 need_version=no
15026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15027 soname_spec='${libname}${release}${major}$shared_ext'
15028 shlibpath_overrides_runpath=yes
15029 shlibpath_var=DYLD_LIBRARY_PATH
15030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15035 dgux*)
15036 version_type=linux
15037 need_lib_prefix=no
15038 need_version=no
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 shlibpath_var=LD_LIBRARY_PATH
15044 freebsd1*)
15045 dynamic_linker=no
15048 freebsd* | dragonfly*)
15049 # DragonFly does not have aout. When/if they implement a new
15050 # versioning mechanism, adjust this.
15051 if test -x /usr/bin/objformat; then
15052 objformat=`/usr/bin/objformat`
15053 else
15054 case $host_os in
15055 freebsd[123]*) objformat=aout ;;
15056 *) objformat=elf ;;
15057 esac
15059 version_type=freebsd-$objformat
15060 case $version_type in
15061 freebsd-elf*)
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15063 need_version=no
15064 need_lib_prefix=no
15066 freebsd-*)
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15068 need_version=yes
15070 esac
15071 shlibpath_var=LD_LIBRARY_PATH
15072 case $host_os in
15073 freebsd2*)
15074 shlibpath_overrides_runpath=yes
15076 freebsd3.[01]* | freebsdelf3.[01]*)
15077 shlibpath_overrides_runpath=yes
15078 hardcode_into_libs=yes
15080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15082 shlibpath_overrides_runpath=no
15083 hardcode_into_libs=yes
15085 *) # from 4.6 on, and DragonFly
15086 shlibpath_overrides_runpath=yes
15087 hardcode_into_libs=yes
15089 esac
15092 gnu*)
15093 version_type=linux
15094 need_lib_prefix=no
15095 need_version=no
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 shlibpath_var=LD_LIBRARY_PATH
15099 hardcode_into_libs=yes
15102 haiku*)
15103 version_type=linux
15104 need_lib_prefix=no
15105 need_version=no
15106 dynamic_linker="$host_os runtime_loader"
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 shlibpath_var=LIBRARY_PATH
15110 shlibpath_overrides_runpath=yes
15111 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15112 hardcode_into_libs=yes
15115 hpux9* | hpux10* | hpux11*)
15116 # Give a soname corresponding to the major version so that dld.sl refuses to
15117 # link against other versions.
15118 version_type=sunos
15119 need_lib_prefix=no
15120 need_version=no
15121 case $host_cpu in
15122 ia64*)
15123 shrext_cmds='.so'
15124 hardcode_into_libs=yes
15125 dynamic_linker="$host_os dld.so"
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 if test "X$HPUX_IA64_MODE" = X32; then
15131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15132 else
15133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15137 hppa*64*)
15138 shrext_cmds='.sl'
15139 hardcode_into_libs=yes
15140 dynamic_linker="$host_os dld.sl"
15141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15149 shrext_cmds='.sl'
15150 dynamic_linker="$host_os dld.sl"
15151 shlibpath_var=SHLIB_PATH
15152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15156 esac
15157 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15158 postinstall_cmds='chmod 555 $lib'
15159 # or fails outright, so override atomically:
15160 install_override_mode=555
15163 interix[3-9]*)
15164 version_type=linux
15165 need_lib_prefix=no
15166 need_version=no
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=no
15172 hardcode_into_libs=yes
15175 irix5* | irix6* | nonstopux*)
15176 case $host_os in
15177 nonstopux*) version_type=nonstopux ;;
15179 if test "$lt_cv_prog_gnu_ld" = yes; then
15180 version_type=linux
15181 else
15182 version_type=irix
15183 fi ;;
15184 esac
15185 need_lib_prefix=no
15186 need_version=no
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15189 case $host_os in
15190 irix5* | nonstopux*)
15191 libsuff= shlibsuff=
15194 case $LD in # libtool.m4 will add one of these switches to LD
15195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15196 libsuff= shlibsuff= libmagic=32-bit;;
15197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15198 libsuff=32 shlibsuff=N32 libmagic=N32;;
15199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15201 *) libsuff= shlibsuff= libmagic=never-match;;
15202 esac
15204 esac
15205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15206 shlibpath_overrides_runpath=no
15207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15209 hardcode_into_libs=yes
15212 # No shared lib support for Linux oldld, aout, or coff.
15213 linux*oldld* | linux*aout* | linux*coff*)
15214 dynamic_linker=no
15217 # This must be Linux ELF.
15218 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15219 version_type=linux
15220 need_lib_prefix=no
15221 need_version=no
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 shlibpath_overrides_runpath=no
15228 # Some binutils ld are patched to set DT_RUNPATH
15229 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 lt_cv_shlibpath_overrides_runpath=no
15233 save_LDFLAGS=$LDFLAGS
15234 save_libdir=$libdir
15235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15241 main ()
15245 return 0;
15247 _ACEOF
15248 if ac_fn_cxx_try_link "$LINENO"; then :
15249 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15250 lt_cv_shlibpath_overrides_runpath=yes
15253 rm -f core conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15255 LDFLAGS=$save_LDFLAGS
15256 libdir=$save_libdir
15260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15262 # This implies no fast_install, which is unacceptable.
15263 # Some rework will be needed to allow for fast_install
15264 # before this can be enabled.
15265 hardcode_into_libs=yes
15267 # Append ld.so.conf contents to the search path
15268 if test -f /etc/ld.so.conf; then
15269 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' ' '`
15270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15273 # We used to test for /lib/ld.so.1 and disable shared libraries on
15274 # powerpc, because MkLinux only supported shared libraries with the
15275 # GNU dynamic linker. Since this was broken with cross compilers,
15276 # most powerpc-linux boxes support dynamic linking these days and
15277 # people can always --disable-shared, the test was removed, and we
15278 # assume the GNU/Linux dynamic linker is in use.
15279 dynamic_linker='GNU/Linux ld.so'
15282 netbsd*)
15283 version_type=sunos
15284 need_lib_prefix=no
15285 need_version=no
15286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15289 dynamic_linker='NetBSD (a.out) ld.so'
15290 else
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 dynamic_linker='NetBSD ld.elf_so'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes
15297 hardcode_into_libs=yes
15300 newsos6)
15301 version_type=linux
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=yes
15307 *nto* | *qnx*)
15308 version_type=qnx
15309 need_lib_prefix=no
15310 need_version=no
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=no
15315 hardcode_into_libs=yes
15316 dynamic_linker='ldqnx.so'
15319 openbsd*)
15320 version_type=sunos
15321 sys_lib_dlsearch_path_spec="/usr/lib"
15322 need_lib_prefix=no
15323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15324 case $host_os in
15325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15326 *) need_version=no ;;
15327 esac
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15332 case $host_os in
15333 openbsd2.[89] | openbsd2.[89].*)
15334 shlibpath_overrides_runpath=no
15337 shlibpath_overrides_runpath=yes
15339 esac
15340 else
15341 shlibpath_overrides_runpath=yes
15345 os2*)
15346 libname_spec='$name'
15347 shrext_cmds=".dll"
15348 need_lib_prefix=no
15349 library_names_spec='$libname${shared_ext} $libname.a'
15350 dynamic_linker='OS/2 ld.exe'
15351 shlibpath_var=LIBPATH
15354 osf3* | osf4* | osf5*)
15355 version_type=osf
15356 need_lib_prefix=no
15357 need_version=no
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15365 rdos*)
15366 dynamic_linker=no
15369 solaris*)
15370 version_type=linux
15371 need_lib_prefix=no
15372 need_version=no
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=yes
15377 hardcode_into_libs=yes
15378 # ldd complains unless libraries are executable
15379 postinstall_cmds='chmod +x $lib'
15382 sunos4*)
15383 version_type=sunos
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 shlibpath_overrides_runpath=yes
15388 if test "$with_gnu_ld" = yes; then
15389 need_lib_prefix=no
15391 need_version=yes
15394 sysv4 | sysv4.3*)
15395 version_type=linux
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 case $host_vendor in
15400 sni)
15401 shlibpath_overrides_runpath=no
15402 need_lib_prefix=no
15403 runpath_var=LD_RUN_PATH
15405 siemens)
15406 need_lib_prefix=no
15408 motorola)
15409 need_lib_prefix=no
15410 need_version=no
15411 shlibpath_overrides_runpath=no
15412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15414 esac
15417 sysv4*MP*)
15418 if test -d /usr/nec ;then
15419 version_type=linux
15420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15421 soname_spec='$libname${shared_ext}.$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15427 version_type=freebsd-elf
15428 need_lib_prefix=no
15429 need_version=no
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=yes
15434 hardcode_into_libs=yes
15435 if test "$with_gnu_ld" = yes; then
15436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15437 else
15438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15439 case $host_os in
15440 sco3.2v5*)
15441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15443 esac
15445 sys_lib_dlsearch_path_spec='/usr/lib'
15448 tpf*)
15449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15450 version_type=linux
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=no
15456 hardcode_into_libs=yes
15459 uts4*)
15460 version_type=linux
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 shlibpath_var=LD_LIBRARY_PATH
15467 dynamic_linker=no
15469 esac
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15471 $as_echo "$dynamic_linker" >&6; }
15472 test "$dynamic_linker" = no && can_build_shared=no
15474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15475 if test "$GCC" = yes; then
15476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15524 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15525 hardcode_action_CXX=
15526 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15527 test -n "$runpath_var_CXX" ||
15528 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15530 # We can hardcode non-existent directories.
15531 if test "$hardcode_direct_CXX" != no &&
15532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15533 # have to relink, otherwise we might link with an installed library
15534 # when we should be linking with a yet-to-be-installed one
15535 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15536 test "$hardcode_minus_L_CXX" != no; then
15537 # Linking always hardcodes the temporary library directory.
15538 hardcode_action_CXX=relink
15539 else
15540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15541 hardcode_action_CXX=immediate
15543 else
15544 # We cannot hardcode anything, or else we can only hardcode existing
15545 # directories.
15546 hardcode_action_CXX=unsupported
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15549 $as_echo "$hardcode_action_CXX" >&6; }
15551 if test "$hardcode_action_CXX" = relink ||
15552 test "$inherit_rpath_CXX" = yes; then
15553 # Fast installation is not supported
15554 enable_fast_install=no
15555 elif test "$shlibpath_overrides_runpath" = yes ||
15556 test "$enable_shared" = no; then
15557 # Fast installation is not necessary
15558 enable_fast_install=needless
15567 fi # test -n "$compiler"
15569 CC=$lt_save_CC
15570 CFLAGS=$lt_save_CFLAGS
15571 LDCXX=$LD
15572 LD=$lt_save_LD
15573 GCC=$lt_save_GCC
15574 with_gnu_ld=$lt_save_with_gnu_ld
15575 lt_cv_path_LDCXX=$lt_cv_path_LD
15576 lt_cv_path_LD=$lt_save_path_LD
15577 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15578 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15579 fi # test "$_lt_caught_CXX_error" != yes
15581 ac_ext=c
15582 ac_cpp='$CPP $CPPFLAGS'
15583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15599 ac_config_commands="$ac_config_commands libtool"
15604 # Only expand once:
15609 # Add configure option --enable-maintainer-mode which enables dependency
15610 # checking and generation useful to package maintainers. This is made an
15611 # option to avoid confusing end users.
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15614 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15615 # Check whether --enable-maintainer-mode was given.
15616 if test "${enable_maintainer_mode+set}" = set; then :
15617 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15618 else
15619 USE_MAINTAINER_MODE=no
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15623 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15624 if test $USE_MAINTAINER_MODE = yes; then
15625 MAINTAINER_MODE_TRUE=
15626 MAINTAINER_MODE_FALSE='#'
15627 else
15628 MAINTAINER_MODE_TRUE='#'
15629 MAINTAINER_MODE_FALSE=
15632 MAINT=$MAINTAINER_MODE_TRUE
15636 # If the C compiler supports the keyword inline, do nothing. Otherwise
15637 # define inline to __inline__ or __inline if it accepts one of those,
15638 # otherwise define inline to be empty.
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15640 $as_echo_n "checking for inline... " >&6; }
15641 if ${ac_cv_c_inline+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 ac_cv_c_inline=no
15645 for ac_kw in inline __inline__ __inline; do
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 #ifndef __cplusplus
15649 typedef int foo_t;
15650 static $ac_kw foo_t static_foo () {return 0; }
15651 $ac_kw foo_t foo () {return 0; }
15652 #endif
15654 _ACEOF
15655 if ac_fn_c_try_compile "$LINENO"; then :
15656 ac_cv_c_inline=$ac_kw
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659 test "$ac_cv_c_inline" != no && break
15660 done
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15664 $as_echo "$ac_cv_c_inline" >&6; }
15666 case $ac_cv_c_inline in
15667 inline | yes) ;;
15669 case $ac_cv_c_inline in
15670 no) ac_val=;;
15671 *) ac_val=$ac_cv_c_inline;;
15672 esac
15673 cat >>confdefs.h <<_ACEOF
15674 #ifndef __cplusplus
15675 #define inline $ac_val
15676 #endif
15677 _ACEOF
15679 esac
15683 # If words are stored with the most significant byte first (like
15684 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15686 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15687 if ${ac_cv_c_bigendian+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 ac_cv_c_bigendian=unknown
15691 # See if we're dealing with a universal compiler.
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15694 #ifndef __APPLE_CC__
15695 not a universal capable compiler
15696 #endif
15697 typedef int dummy;
15699 _ACEOF
15700 if ac_fn_c_try_compile "$LINENO"; then :
15702 # Check for potential -arch flags. It is not universal unless
15703 # there are at least two -arch flags with different values.
15704 ac_arch=
15705 ac_prev=
15706 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15707 if test -n "$ac_prev"; then
15708 case $ac_word in
15709 i?86 | x86_64 | ppc | ppc64)
15710 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15711 ac_arch=$ac_word
15712 else
15713 ac_cv_c_bigendian=universal
15714 break
15717 esac
15718 ac_prev=
15719 elif test "x$ac_word" = "x-arch"; then
15720 ac_prev=arch
15722 done
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725 if test $ac_cv_c_bigendian = unknown; then
15726 # See if sys/param.h defines the BYTE_ORDER macro.
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 #include <sys/types.h>
15730 #include <sys/param.h>
15733 main ()
15735 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15736 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15737 && LITTLE_ENDIAN)
15738 bogus endian macros
15739 #endif
15742 return 0;
15744 _ACEOF
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 # It does; now see whether it defined to BIG_ENDIAN or not.
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749 #include <sys/types.h>
15750 #include <sys/param.h>
15753 main ()
15755 #if BYTE_ORDER != BIG_ENDIAN
15756 not big endian
15757 #endif
15760 return 0;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 ac_cv_c_bigendian=yes
15765 else
15766 ac_cv_c_bigendian=no
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 if test $ac_cv_c_bigendian = unknown; then
15773 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15776 #include <limits.h>
15779 main ()
15781 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15782 bogus endian macros
15783 #endif
15786 return 0;
15788 _ACEOF
15789 if ac_fn_c_try_compile "$LINENO"; then :
15790 # It does; now see whether it defined to _BIG_ENDIAN or not.
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 #include <limits.h>
15796 main ()
15798 #ifndef _BIG_ENDIAN
15799 not big endian
15800 #endif
15803 return 0;
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"; then :
15807 ac_cv_c_bigendian=yes
15808 else
15809 ac_cv_c_bigendian=no
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 if test $ac_cv_c_bigendian = unknown; then
15816 # Compile a test program.
15817 if test "$cross_compiling" = yes; then :
15818 # Try to guess by grepping values from an object file.
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 short int ascii_mm[] =
15822 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15823 short int ascii_ii[] =
15824 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15825 int use_ascii (int i) {
15826 return ascii_mm[i] + ascii_ii[i];
15828 short int ebcdic_ii[] =
15829 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15830 short int ebcdic_mm[] =
15831 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15832 int use_ebcdic (int i) {
15833 return ebcdic_mm[i] + ebcdic_ii[i];
15835 extern int foo;
15838 main ()
15840 return use_ascii (foo) == use_ebcdic (foo);
15842 return 0;
15844 _ACEOF
15845 if ac_fn_c_try_compile "$LINENO"; then :
15846 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15847 ac_cv_c_bigendian=yes
15849 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15850 if test "$ac_cv_c_bigendian" = unknown; then
15851 ac_cv_c_bigendian=no
15852 else
15853 # finding both strings is unlikely to happen, but who knows?
15854 ac_cv_c_bigendian=unknown
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 else
15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 $ac_includes_default
15864 main ()
15867 /* Are we little or big endian? From Harbison&Steele. */
15868 union
15870 long int l;
15871 char c[sizeof (long int)];
15872 } u;
15873 u.l = 1;
15874 return u.c[sizeof (long int) - 1] == 1;
15877 return 0;
15879 _ACEOF
15880 if ac_fn_c_try_run "$LINENO"; then :
15881 ac_cv_c_bigendian=no
15882 else
15883 ac_cv_c_bigendian=yes
15885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15886 conftest.$ac_objext conftest.beam conftest.$ac_ext
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15892 $as_echo "$ac_cv_c_bigendian" >&6; }
15893 case $ac_cv_c_bigendian in #(
15894 yes)
15895 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15896 ;; #(
15898 ;; #(
15899 universal)
15901 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15903 ;; #(
15905 as_fn_error $? "unknown endianness
15906 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15907 esac
15911 # Find math library
15913 LIB_MATH=''
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15915 $as_echo_n "checking for sqrt in -lm... " >&6; }
15916 if ${ac_cv_lib_m_sqrt+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 ac_check_lib_save_LIBS=$LIBS
15920 LIBS="-lm $LIBS"
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15924 /* Override any GCC internal prototype to avoid an error.
15925 Use char because int might match the return type of a GCC
15926 builtin and then its argument prototype would still apply. */
15927 #ifdef __cplusplus
15928 extern "C"
15929 #endif
15930 char sqrt ();
15932 main ()
15934 return sqrt ();
15936 return 0;
15938 _ACEOF
15939 if ac_fn_c_try_link "$LINENO"; then :
15940 ac_cv_lib_m_sqrt=yes
15941 else
15942 ac_cv_lib_m_sqrt=no
15944 rm -f core conftest.err conftest.$ac_objext \
15945 conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15949 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15950 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
15951 LIB_MATH="-lm"
15954 LIBS="$LIB_MATH $LIBS"
15958 # Check for JPEG
15960 have_jpeg='no'
15961 LIB_JPEG=''
15962 if test ! "$with_jpeg" = 'no'
15963 then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support " >&5
15965 $as_echo_n "checking for JPEG support ... " >&6; }
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15967 $as_echo "" >&6; }
15968 failed=0;
15969 passed=0;
15970 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
15971 if test "x$ac_cv_header_jconfig_h" = xyes; then :
15972 passed=`expr $passed + 1`
15973 else
15974 failed=`expr $failed + 1`
15978 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
15979 if test "x$ac_cv_header_jerror_h" = xyes; then :
15980 passed=`expr $passed + 1`
15981 else
15982 failed=`expr $failed + 1`
15986 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
15987 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
15988 passed=`expr $passed + 1`
15989 else
15990 failed=`expr $failed + 1`
15994 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15995 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
15996 passed=`expr $passed + 1`
15997 else
15998 failed=`expr $failed + 1`
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
16003 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
16004 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 ac_check_lib_save_LIBS=$LIBS
16008 LIBS="-ljpeg $LIBS"
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16015 #ifdef __cplusplus
16016 extern "C"
16017 #endif
16018 char jpeg_read_header ();
16020 main ()
16022 return jpeg_read_header ();
16024 return 0;
16026 _ACEOF
16027 if ac_fn_c_try_link "$LINENO"; then :
16028 ac_cv_lib_jpeg_jpeg_read_header=yes
16029 else
16030 ac_cv_lib_jpeg_jpeg_read_header=no
16032 rm -f core conftest.err conftest.$ac_objext \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
16037 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
16038 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
16039 passed=`expr $passed + 1`
16040 else
16041 failed=`expr $failed + 1`
16045 # Test for compatible JPEG library
16046 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
16048 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
16049 if ${ac_cv_jpeg_version_ok+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16054 #include <stdio.h>
16055 #include <stdlib.h>
16056 #include <jpeglib.h>
16059 main ()
16062 #if JPEG_LIB_VERSION < 62
16063 #error IJG JPEG library must be version 6b or newer!
16064 #endif
16065 return 0;
16068 return 0;
16070 _ACEOF
16071 if ac_fn_c_try_compile "$LINENO"; then :
16072 ac_cv_jpeg_version_ok='yes'
16073 else
16074 ac_cv_jpeg_version_ok='no'
16076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
16079 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
16080 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16082 $as_echo "yes" >&6; }
16083 passed=`expr $passed + 1`
16084 else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086 $as_echo "no" >&6; }
16087 failed=`expr $failed + 1`
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
16091 $as_echo_n "checking if JPEG package is complete... " >&6; }
16092 if test $passed -gt 0
16093 then
16094 if test $failed -gt 0
16095 then
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16097 $as_echo "no -- some components failed test" >&6; }
16098 have_jpeg='no (failed tests)'
16099 else
16100 LIB_JPEG='-ljpeg'
16101 LIBS="$LIB_JPEG $LIBS"
16103 $as_echo "#define HasJPEG 1" >>confdefs.h
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 $as_echo "yes" >&6; }
16107 have_jpeg='yes'
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16114 if test "$have_jpeg" = 'yes'; then
16115 HasJPEG_TRUE=
16116 HasJPEG_FALSE='#'
16117 else
16118 HasJPEG_TRUE='#'
16119 HasJPEG_FALSE=
16125 # Check for ZLIB
16127 have_zlib='no'
16128 if test ! "$with_zlib" = 'no' || test ! "$with_png" = 'no'
16129 then
16130 LIB_ZLIB=''
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
16132 $as_echo_n "checking for ZLIB support ... " >&6; }
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16134 $as_echo "" >&6; }
16135 failed=0;
16136 passed=0;
16137 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
16138 if test "x$ac_cv_header_zconf_h" = xyes; then :
16139 passed=`expr $passed + 1`
16140 else
16141 failed=`expr $failed + 1`
16145 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16146 if test "x$ac_cv_header_zlib_h" = xyes; then :
16147 passed=`expr $passed + 1`
16148 else
16149 failed=`expr $failed + 1`
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
16154 $as_echo_n "checking for compress in -lz... " >&6; }
16155 if ${ac_cv_lib_z_compress+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 ac_check_lib_save_LIBS=$LIBS
16159 LIBS="-lz $LIBS"
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16163 /* Override any GCC internal prototype to avoid an error.
16164 Use char because int might match the return type of a GCC
16165 builtin and then its argument prototype would still apply. */
16166 #ifdef __cplusplus
16167 extern "C"
16168 #endif
16169 char compress ();
16171 main ()
16173 return compress ();
16175 return 0;
16177 _ACEOF
16178 if ac_fn_c_try_link "$LINENO"; then :
16179 ac_cv_lib_z_compress=yes
16180 else
16181 ac_cv_lib_z_compress=no
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16185 LIBS=$ac_check_lib_save_LIBS
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
16188 $as_echo "$ac_cv_lib_z_compress" >&6; }
16189 if test "x$ac_cv_lib_z_compress" = xyes; then :
16190 passed=`expr $passed + 1`
16191 else
16192 failed=`expr $failed + 1`
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
16196 $as_echo_n "checking for uncompress in -lz... " >&6; }
16197 if ${ac_cv_lib_z_uncompress+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200 ac_check_lib_save_LIBS=$LIBS
16201 LIBS="-lz $LIBS"
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16205 /* Override any GCC internal prototype to avoid an error.
16206 Use char because int might match the return type of a GCC
16207 builtin and then its argument prototype would still apply. */
16208 #ifdef __cplusplus
16209 extern "C"
16210 #endif
16211 char uncompress ();
16213 main ()
16215 return uncompress ();
16217 return 0;
16219 _ACEOF
16220 if ac_fn_c_try_link "$LINENO"; then :
16221 ac_cv_lib_z_uncompress=yes
16222 else
16223 ac_cv_lib_z_uncompress=no
16225 rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227 LIBS=$ac_check_lib_save_LIBS
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
16230 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16231 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
16232 passed=`expr $passed + 1`
16233 else
16234 failed=`expr $failed + 1`
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16238 $as_echo_n "checking for deflate in -lz... " >&6; }
16239 if ${ac_cv_lib_z_deflate+:} false; then :
16240 $as_echo_n "(cached) " >&6
16241 else
16242 ac_check_lib_save_LIBS=$LIBS
16243 LIBS="-lz $LIBS"
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16247 /* Override any GCC internal prototype to avoid an error.
16248 Use char because int might match the return type of a GCC
16249 builtin and then its argument prototype would still apply. */
16250 #ifdef __cplusplus
16251 extern "C"
16252 #endif
16253 char deflate ();
16255 main ()
16257 return deflate ();
16259 return 0;
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"; then :
16263 ac_cv_lib_z_deflate=yes
16264 else
16265 ac_cv_lib_z_deflate=no
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 LIBS=$ac_check_lib_save_LIBS
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16272 $as_echo "$ac_cv_lib_z_deflate" >&6; }
16273 if test "x$ac_cv_lib_z_deflate" = xyes; then :
16274 passed=`expr $passed + 1`
16275 else
16276 failed=`expr $failed + 1`
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
16280 $as_echo_n "checking for inflate in -lz... " >&6; }
16281 if ${ac_cv_lib_z_inflate+:} false; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 ac_check_lib_save_LIBS=$LIBS
16285 LIBS="-lz $LIBS"
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16289 /* Override any GCC internal prototype to avoid an error.
16290 Use char because int might match the return type of a GCC
16291 builtin and then its argument prototype would still apply. */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 char inflate ();
16297 main ()
16299 return inflate ();
16301 return 0;
16303 _ACEOF
16304 if ac_fn_c_try_link "$LINENO"; then :
16305 ac_cv_lib_z_inflate=yes
16306 else
16307 ac_cv_lib_z_inflate=no
16309 rm -f core conftest.err conftest.$ac_objext \
16310 conftest$ac_exeext conftest.$ac_ext
16311 LIBS=$ac_check_lib_save_LIBS
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16314 $as_echo "$ac_cv_lib_z_inflate" >&6; }
16315 if test "x$ac_cv_lib_z_inflate" = xyes; then :
16316 passed=`expr $passed + 1`
16317 else
16318 failed=`expr $failed + 1`
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
16322 $as_echo_n "checking for gzseek in -lz... " >&6; }
16323 if ${ac_cv_lib_z_gzseek+:} false; then :
16324 $as_echo_n "(cached) " >&6
16325 else
16326 ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lz $LIBS"
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16331 /* Override any GCC internal prototype to avoid an error.
16332 Use char because int might match the return type of a GCC
16333 builtin and then its argument prototype would still apply. */
16334 #ifdef __cplusplus
16335 extern "C"
16336 #endif
16337 char gzseek ();
16339 main ()
16341 return gzseek ();
16343 return 0;
16345 _ACEOF
16346 if ac_fn_c_try_link "$LINENO"; then :
16347 ac_cv_lib_z_gzseek=yes
16348 else
16349 ac_cv_lib_z_gzseek=no
16351 rm -f core conftest.err conftest.$ac_objext \
16352 conftest$ac_exeext conftest.$ac_ext
16353 LIBS=$ac_check_lib_save_LIBS
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
16356 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
16357 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
16358 passed=`expr $passed + 1`
16359 else
16360 failed=`expr $failed + 1`
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
16364 $as_echo_n "checking for gztell in -lz... " >&6; }
16365 if ${ac_cv_lib_z_gztell+:} false; then :
16366 $as_echo_n "(cached) " >&6
16367 else
16368 ac_check_lib_save_LIBS=$LIBS
16369 LIBS="-lz $LIBS"
16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16373 /* Override any GCC internal prototype to avoid an error.
16374 Use char because int might match the return type of a GCC
16375 builtin and then its argument prototype would still apply. */
16376 #ifdef __cplusplus
16377 extern "C"
16378 #endif
16379 char gztell ();
16381 main ()
16383 return gztell ();
16385 return 0;
16387 _ACEOF
16388 if ac_fn_c_try_link "$LINENO"; then :
16389 ac_cv_lib_z_gztell=yes
16390 else
16391 ac_cv_lib_z_gztell=no
16393 rm -f core conftest.err conftest.$ac_objext \
16394 conftest$ac_exeext conftest.$ac_ext
16395 LIBS=$ac_check_lib_save_LIBS
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
16398 $as_echo "$ac_cv_lib_z_gztell" >&6; }
16399 if test "x$ac_cv_lib_z_gztell" = xyes; then :
16400 passed=`expr $passed + 1`
16401 else
16402 failed=`expr $failed + 1`
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
16406 $as_echo_n "checking if ZLIB package is complete... " >&6; }
16407 if test $passed -gt 0
16408 then
16409 if test $failed -gt 0
16410 then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16412 $as_echo "no -- some components failed test" >&6; }
16413 have_zlib='no (failed tests)'
16414 else
16415 LIB_ZLIB='-lz'
16416 LIBS="$LIB_ZLIB $LIBS"
16418 $as_echo "#define HasZLIB 1" >>confdefs.h
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16421 $as_echo "yes" >&6; }
16422 have_zlib='yes'
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16429 if test "$have_zlib" = 'yes'; then
16430 HasZLIB_TRUE=
16431 HasZLIB_FALSE='#'
16432 else
16433 HasZLIB_TRUE='#'
16434 HasZLIB_FALSE=
16440 # Check for TIFF
16442 have_tiff='no'
16443 LIB_TIFF=''
16444 if test ! "$with_tiff" = 'no'
16445 then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support " >&5
16447 $as_echo_n "checking for TIFF support ... " >&6; }
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16449 $as_echo "" >&6; }
16450 failed=0;
16451 passed=0;
16452 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16453 if test "x$ac_cv_header_tiff_h" = xyes; then :
16454 passed=`expr $passed + 1`
16455 else
16456 failed=`expr $failed + 1`
16460 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
16461 if test "x$ac_cv_header_tiffio_h" = xyes; then :
16462 passed=`expr $passed + 1`
16463 else
16464 failed=`expr $failed + 1`
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
16469 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
16470 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-ltiff $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char TIFFOpen ();
16486 main ()
16488 return TIFFOpen ();
16490 return 0;
16492 _ACEOF
16493 if ac_fn_c_try_link "$LINENO"; then :
16494 ac_cv_lib_tiff_TIFFOpen=yes
16495 else
16496 ac_cv_lib_tiff_TIFFOpen=no
16498 rm -f core conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
16503 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
16504 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
16505 passed=`expr $passed + 1`
16506 else
16507 failed=`expr $failed + 1`
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16511 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16512 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16513 $as_echo_n "(cached) " >&6
16514 else
16515 ac_check_lib_save_LIBS=$LIBS
16516 LIBS="-ltiff $LIBS"
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16520 /* Override any GCC internal prototype to avoid an error.
16521 Use char because int might match the return type of a GCC
16522 builtin and then its argument prototype would still apply. */
16523 #ifdef __cplusplus
16524 extern "C"
16525 #endif
16526 char TIFFClientOpen ();
16528 main ()
16530 return TIFFClientOpen ();
16532 return 0;
16534 _ACEOF
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 ac_cv_lib_tiff_TIFFClientOpen=yes
16537 else
16538 ac_cv_lib_tiff_TIFFClientOpen=no
16540 rm -f core conftest.err conftest.$ac_objext \
16541 conftest$ac_exeext conftest.$ac_ext
16542 LIBS=$ac_check_lib_save_LIBS
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16545 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16546 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16547 passed=`expr $passed + 1`
16548 else
16549 failed=`expr $failed + 1`
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
16553 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
16554 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 ac_check_lib_save_LIBS=$LIBS
16558 LIBS="-ltiff $LIBS"
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char TIFFIsByteSwapped ();
16570 main ()
16572 return TIFFIsByteSwapped ();
16574 return 0;
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
16579 else
16580 ac_cv_lib_tiff_TIFFIsByteSwapped=no
16582 rm -f core conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
16587 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
16588 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
16589 passed=`expr $passed + 1`
16590 else
16591 failed=`expr $failed + 1`
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
16595 $as_echo_n "checking if TIFF package is complete... " >&6; }
16596 if test $passed -gt 0
16597 then
16598 if test $failed -gt 0
16599 then
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16601 $as_echo "no -- some components failed test" >&6; }
16602 have_tiff='no (failed tests)'
16603 else
16604 LIB_TIFF='-ltiff'
16605 LIBS="$LIB_TIFF $LIBS"
16607 $as_echo "#define HasTIFF 1" >>confdefs.h
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16610 $as_echo "yes" >&6; }
16611 have_tiff='yes'
16612 for ac_header in tiffconf.h
16613 do :
16614 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
16615 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_TIFFCONF_H 1
16618 _ACEOF
16622 done
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16627 $as_echo "no" >&6; }
16630 if test "$have_tiff" = 'yes'; then
16631 HasTIFF_TRUE=
16632 HasTIFF_FALSE='#'
16633 else
16634 HasTIFF_TRUE='#'
16635 HasTIFF_FALSE=
16640 # Libraries that the LCMS library depends on
16641 LCMS_LIB_DEPLIBS="$LIB_MATH"
16642 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
16645 # Libraries that the jpegicc program depends on
16646 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH"
16647 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
16650 # Libraries that the tifficc program depends on
16651 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH"
16652 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
16655 LIBS=''
16658 # Perform substitutions
16660 ac_config_files="$ac_config_files Makefile"
16662 ac_config_files="$ac_config_files lcms2.pc"
16664 ac_config_files="$ac_config_files include/Makefile"
16666 ac_config_files="$ac_config_files src/Makefile"
16668 ac_config_files="$ac_config_files utils/tificc/Makefile"
16670 ac_config_files="$ac_config_files utils/transicc/Makefile"
16672 ac_config_files="$ac_config_files utils/linkicc/Makefile"
16674 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
16676 ac_config_files="$ac_config_files utils/psicc/Makefile"
16678 ac_config_files="$ac_config_files testbed/Makefile"
16680 cat >confcache <<\_ACEOF
16681 # This file is a shell script that caches the results of configure
16682 # tests run on this system so they can be shared between configure
16683 # scripts and configure runs, see configure's option --config-cache.
16684 # It is not useful on other systems. If it contains results you don't
16685 # want to keep, you may remove or edit it.
16687 # config.status only pays attention to the cache file if you give it
16688 # the --recheck option to rerun configure.
16690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16692 # following values.
16694 _ACEOF
16696 # The following way of writing the cache mishandles newlines in values,
16697 # but we know of no workaround that is simple, portable, and efficient.
16698 # So, we kill variables containing newlines.
16699 # Ultrix sh set writes to stderr and can't be redirected directly,
16700 # and sets the high bit in the cache file unless we assign to the vars.
16702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16703 eval ac_val=\$$ac_var
16704 case $ac_val in #(
16705 *${as_nl}*)
16706 case $ac_var in #(
16707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16709 esac
16710 case $ac_var in #(
16711 _ | IFS | as_nl) ;; #(
16712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16713 *) { eval $ac_var=; unset $ac_var;} ;;
16714 esac ;;
16715 esac
16716 done
16718 (set) 2>&1 |
16719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16720 *${as_nl}ac_space=\ *)
16721 # `set' does not quote correctly, so add quotes: double-quote
16722 # substitution turns \\\\ into \\, and sed turns \\ into \.
16723 sed -n \
16724 "s/'/'\\\\''/g;
16725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16726 ;; #(
16728 # `set' quotes correctly as required by POSIX, so do not add quotes.
16729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16731 esac |
16732 sort
16734 sed '
16735 /^ac_cv_env_/b end
16736 t clear
16737 :clear
16738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16739 t end
16740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16741 :end' >>confcache
16742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16743 if test -w "$cache_file"; then
16744 if test "x$cache_file" != "x/dev/null"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16746 $as_echo "$as_me: updating cache $cache_file" >&6;}
16747 if test ! -f "$cache_file" || test -h "$cache_file"; then
16748 cat confcache >"$cache_file"
16749 else
16750 case $cache_file in #(
16751 */* | ?:*)
16752 mv -f confcache "$cache_file"$$ &&
16753 mv -f "$cache_file"$$ "$cache_file" ;; #(
16755 mv -f confcache "$cache_file" ;;
16756 esac
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16764 rm -f confcache
16766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16767 # Let make expand exec_prefix.
16768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16770 # Transform confdefs.h into DEFS.
16771 # Protect against shell expansion while executing Makefile rules.
16772 # Protect against Makefile macro expansion.
16774 # If the first sed substitution is executed (which looks for macros that
16775 # take arguments), then branch to the quote section. Otherwise,
16776 # look for a macro that doesn't take arguments.
16777 ac_script='
16778 :mline
16779 /\\$/{
16781 s,\\\n,,
16782 b mline
16784 t clear
16785 :clear
16786 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16787 t quote
16788 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16789 t quote
16790 b any
16791 :quote
16792 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16793 s/\[/\\&/g
16794 s/\]/\\&/g
16795 s/\$/$$/g
16797 :any
16800 s/^\n//
16801 s/\n/ /g
16805 DEFS=`sed -n "$ac_script" confdefs.h`
16808 ac_libobjs=
16809 ac_ltlibobjs=
16811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16812 # 1. Remove the extension, and $U if already installed.
16813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16816 # will be set to the directory where LIBOBJS objects are built.
16817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16819 done
16820 LIBOBJS=$ac_libobjs
16822 LTLIBOBJS=$ac_ltlibobjs
16825 if test -n "$EXEEXT"; then
16826 am__EXEEXT_TRUE=
16827 am__EXEEXT_FALSE='#'
16828 else
16829 am__EXEEXT_TRUE='#'
16830 am__EXEEXT_FALSE=
16833 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16834 as_fn_error $? "conditional \"AMDEP\" was never defined.
16835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16838 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16842 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16845 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16846 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16850 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
16851 as_fn_error $? "conditional \"HasJPEG\" was never defined.
16852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16854 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
16855 as_fn_error $? "conditional \"HasZLIB\" was never defined.
16856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16858 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
16859 as_fn_error $? "conditional \"HasTIFF\" was never defined.
16860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16863 : "${CONFIG_STATUS=./config.status}"
16864 ac_write_fail=0
16865 ac_clean_files_save=$ac_clean_files
16866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16869 as_write_fail=0
16870 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16871 #! $SHELL
16872 # Generated by $as_me.
16873 # Run this file to recreate the current configuration.
16874 # Compiler output produced by configure, useful for debugging
16875 # configure, is in config.log if it exists.
16877 debug=false
16878 ac_cs_recheck=false
16879 ac_cs_silent=false
16881 SHELL=\${CONFIG_SHELL-$SHELL}
16882 export SHELL
16883 _ASEOF
16884 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16885 ## -------------------- ##
16886 ## M4sh Initialization. ##
16887 ## -------------------- ##
16889 # Be more Bourne compatible
16890 DUALCASE=1; export DUALCASE # for MKS sh
16891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16892 emulate sh
16893 NULLCMD=:
16894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16895 # is contrary to our usage. Disable this feature.
16896 alias -g '${1+"$@"}'='"$@"'
16897 setopt NO_GLOB_SUBST
16898 else
16899 case `(set -o) 2>/dev/null` in #(
16900 *posix*) :
16901 set -o posix ;; #(
16902 *) :
16904 esac
16908 as_nl='
16910 export as_nl
16911 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16912 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16915 # Prefer a ksh shell builtin over an external printf program on Solaris,
16916 # but without wasting forks for bash or zsh.
16917 if test -z "$BASH_VERSION$ZSH_VERSION" \
16918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16919 as_echo='print -r --'
16920 as_echo_n='print -rn --'
16921 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16922 as_echo='printf %s\n'
16923 as_echo_n='printf %s'
16924 else
16925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16927 as_echo_n='/usr/ucb/echo -n'
16928 else
16929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16930 as_echo_n_body='eval
16931 arg=$1;
16932 case $arg in #(
16933 *"$as_nl"*)
16934 expr "X$arg" : "X\\(.*\\)$as_nl";
16935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16936 esac;
16937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16939 export as_echo_n_body
16940 as_echo_n='sh -c $as_echo_n_body as_echo'
16942 export as_echo_body
16943 as_echo='sh -c $as_echo_body as_echo'
16946 # The user is always right.
16947 if test "${PATH_SEPARATOR+set}" != set; then
16948 PATH_SEPARATOR=:
16949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16951 PATH_SEPARATOR=';'
16956 # IFS
16957 # We need space, tab and new line, in precisely that order. Quoting is
16958 # there to prevent editors from complaining about space-tab.
16959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16960 # splitting by setting IFS to empty value.)
16961 IFS=" "" $as_nl"
16963 # Find who we are. Look in the path if we contain no directory separator.
16964 as_myself=
16965 case $0 in #((
16966 *[\\/]* ) as_myself=$0 ;;
16967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16968 for as_dir in $PATH
16970 IFS=$as_save_IFS
16971 test -z "$as_dir" && as_dir=.
16972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16973 done
16974 IFS=$as_save_IFS
16977 esac
16978 # We did not find ourselves, most probably we were run as `sh COMMAND'
16979 # in which case we are not to be found in the path.
16980 if test "x$as_myself" = x; then
16981 as_myself=$0
16983 if test ! -f "$as_myself"; then
16984 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16985 exit 1
16988 # Unset variables that we do not need and which cause bugs (e.g. in
16989 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16990 # suppresses any "Segmentation fault" message there. '((' could
16991 # trigger a bug in pdksh 5.2.14.
16992 for as_var in BASH_ENV ENV MAIL MAILPATH
16993 do eval test x\${$as_var+set} = xset \
16994 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16995 done
16996 PS1='$ '
16997 PS2='> '
16998 PS4='+ '
17000 # NLS nuisances.
17001 LC_ALL=C
17002 export LC_ALL
17003 LANGUAGE=C
17004 export LANGUAGE
17006 # CDPATH.
17007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17010 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17011 # ----------------------------------------
17012 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17013 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17014 # script with STATUS, using 1 if that was 0.
17015 as_fn_error ()
17017 as_status=$1; test $as_status -eq 0 && as_status=1
17018 if test "$4"; then
17019 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17020 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17022 $as_echo "$as_me: error: $2" >&2
17023 as_fn_exit $as_status
17024 } # as_fn_error
17027 # as_fn_set_status STATUS
17028 # -----------------------
17029 # Set $? to STATUS, without forking.
17030 as_fn_set_status ()
17032 return $1
17033 } # as_fn_set_status
17035 # as_fn_exit STATUS
17036 # -----------------
17037 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17038 as_fn_exit ()
17040 set +e
17041 as_fn_set_status $1
17042 exit $1
17043 } # as_fn_exit
17045 # as_fn_unset VAR
17046 # ---------------
17047 # Portably unset VAR.
17048 as_fn_unset ()
17050 { eval $1=; unset $1;}
17052 as_unset=as_fn_unset
17053 # as_fn_append VAR VALUE
17054 # ----------------------
17055 # Append the text in VALUE to the end of the definition contained in VAR. Take
17056 # advantage of any shell optimizations that allow amortized linear growth over
17057 # repeated appends, instead of the typical quadratic growth present in naive
17058 # implementations.
17059 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17060 eval 'as_fn_append ()
17062 eval $1+=\$2
17064 else
17065 as_fn_append ()
17067 eval $1=\$$1\$2
17069 fi # as_fn_append
17071 # as_fn_arith ARG...
17072 # ------------------
17073 # Perform arithmetic evaluation on the ARGs, and store the result in the
17074 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17075 # must be portable across $(()) and expr.
17076 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17077 eval 'as_fn_arith ()
17079 as_val=$(( $* ))
17081 else
17082 as_fn_arith ()
17084 as_val=`expr "$@" || test $? -eq 1`
17086 fi # as_fn_arith
17089 if expr a : '\(a\)' >/dev/null 2>&1 &&
17090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17091 as_expr=expr
17092 else
17093 as_expr=false
17096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17097 as_basename=basename
17098 else
17099 as_basename=false
17102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17103 as_dirname=dirname
17104 else
17105 as_dirname=false
17108 as_me=`$as_basename -- "$0" ||
17109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17110 X"$0" : 'X\(//\)$' \| \
17111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17112 $as_echo X/"$0" |
17113 sed '/^.*\/\([^/][^/]*\)\/*$/{
17114 s//\1/
17117 /^X\/\(\/\/\)$/{
17118 s//\1/
17121 /^X\/\(\/\).*/{
17122 s//\1/
17125 s/.*/./; q'`
17127 # Avoid depending upon Character Ranges.
17128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17131 as_cr_digits='0123456789'
17132 as_cr_alnum=$as_cr_Letters$as_cr_digits
17134 ECHO_C= ECHO_N= ECHO_T=
17135 case `echo -n x` in #(((((
17136 -n*)
17137 case `echo 'xy\c'` in
17138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17139 xy) ECHO_C='\c';;
17140 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17141 ECHO_T=' ';;
17142 esac;;
17144 ECHO_N='-n';;
17145 esac
17147 rm -f conf$$ conf$$.exe conf$$.file
17148 if test -d conf$$.dir; then
17149 rm -f conf$$.dir/conf$$.file
17150 else
17151 rm -f conf$$.dir
17152 mkdir conf$$.dir 2>/dev/null
17154 if (echo >conf$$.file) 2>/dev/null; then
17155 if ln -s conf$$.file conf$$ 2>/dev/null; then
17156 as_ln_s='ln -s'
17157 # ... but there are two gotchas:
17158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17160 # In both cases, we have to default to `cp -pR'.
17161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17162 as_ln_s='cp -pR'
17163 elif ln conf$$.file conf$$ 2>/dev/null; then
17164 as_ln_s=ln
17165 else
17166 as_ln_s='cp -pR'
17168 else
17169 as_ln_s='cp -pR'
17171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17172 rmdir conf$$.dir 2>/dev/null
17175 # as_fn_mkdir_p
17176 # -------------
17177 # Create "$as_dir" as a directory, including parents if necessary.
17178 as_fn_mkdir_p ()
17181 case $as_dir in #(
17182 -*) as_dir=./$as_dir;;
17183 esac
17184 test -d "$as_dir" || eval $as_mkdir_p || {
17185 as_dirs=
17186 while :; do
17187 case $as_dir in #(
17188 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17189 *) as_qdir=$as_dir;;
17190 esac
17191 as_dirs="'$as_qdir' $as_dirs"
17192 as_dir=`$as_dirname -- "$as_dir" ||
17193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17194 X"$as_dir" : 'X\(//\)[^/]' \| \
17195 X"$as_dir" : 'X\(//\)$' \| \
17196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17197 $as_echo X"$as_dir" |
17198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17199 s//\1/
17202 /^X\(\/\/\)[^/].*/{
17203 s//\1/
17206 /^X\(\/\/\)$/{
17207 s//\1/
17210 /^X\(\/\).*/{
17211 s//\1/
17214 s/.*/./; q'`
17215 test -d "$as_dir" && break
17216 done
17217 test -z "$as_dirs" || eval "mkdir $as_dirs"
17218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17221 } # as_fn_mkdir_p
17222 if mkdir -p . 2>/dev/null; then
17223 as_mkdir_p='mkdir -p "$as_dir"'
17224 else
17225 test -d ./-p && rmdir ./-p
17226 as_mkdir_p=false
17230 # as_fn_executable_p FILE
17231 # -----------------------
17232 # Test if FILE is an executable regular file.
17233 as_fn_executable_p ()
17235 test -f "$1" && test -x "$1"
17236 } # as_fn_executable_p
17237 as_test_x='test -x'
17238 as_executable_p=as_fn_executable_p
17240 # Sed expression to map a string onto a valid CPP name.
17241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17243 # Sed expression to map a string onto a valid variable name.
17244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17247 exec 6>&1
17248 ## ----------------------------------- ##
17249 ## Main body of $CONFIG_STATUS script. ##
17250 ## ----------------------------------- ##
17251 _ASEOF
17252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17255 # Save the log message, to keep $0 and so on meaningful, and to
17256 # report actual input values of CONFIG_FILES etc. instead of their
17257 # values after options handling.
17258 ac_log="
17259 This file was extended by lcms2 $as_me 2.5, which was
17260 generated by GNU Autoconf 2.69. Invocation command line was
17262 CONFIG_FILES = $CONFIG_FILES
17263 CONFIG_HEADERS = $CONFIG_HEADERS
17264 CONFIG_LINKS = $CONFIG_LINKS
17265 CONFIG_COMMANDS = $CONFIG_COMMANDS
17266 $ $0 $@
17268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17271 _ACEOF
17273 case $ac_config_files in *"
17274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17275 esac
17279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17280 # Files that config.status was made for.
17281 config_files="$ac_config_files"
17282 config_commands="$ac_config_commands"
17284 _ACEOF
17286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287 ac_cs_usage="\
17288 \`$as_me' instantiates files and other configuration actions
17289 from templates according to the current configuration. Unless the files
17290 and actions are specified as TAGs, all are instantiated by default.
17292 Usage: $0 [OPTION]... [TAG]...
17294 -h, --help print this help, then exit
17295 -V, --version print version number and configuration settings, then exit
17296 --config print configuration, then exit
17297 -q, --quiet, --silent
17298 do not print progress messages
17299 -d, --debug don't remove temporary files
17300 --recheck update $as_me by reconfiguring in the same conditions
17301 --file=FILE[:TEMPLATE]
17302 instantiate the configuration file FILE
17304 Configuration files:
17305 $config_files
17307 Configuration commands:
17308 $config_commands
17310 Report bugs to the package provider."
17312 _ACEOF
17313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17314 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17315 ac_cs_version="\\
17316 lcms2 config.status 2.5
17317 configured by $0, generated by GNU Autoconf 2.69,
17318 with options \\"\$ac_cs_config\\"
17320 Copyright (C) 2012 Free Software Foundation, Inc.
17321 This config.status script is free software; the Free Software Foundation
17322 gives unlimited permission to copy, distribute and modify it."
17324 ac_pwd='$ac_pwd'
17325 srcdir='$srcdir'
17326 INSTALL='$INSTALL'
17327 MKDIR_P='$MKDIR_P'
17328 AWK='$AWK'
17329 test -n "\$AWK" || AWK=awk
17330 _ACEOF
17332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17333 # The default lists apply if the user does not specify any file.
17334 ac_need_defaults=:
17335 while test $# != 0
17337 case $1 in
17338 --*=?*)
17339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17341 ac_shift=:
17343 --*=)
17344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17345 ac_optarg=
17346 ac_shift=:
17349 ac_option=$1
17350 ac_optarg=$2
17351 ac_shift=shift
17353 esac
17355 case $ac_option in
17356 # Handling of the options.
17357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17358 ac_cs_recheck=: ;;
17359 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17360 $as_echo "$ac_cs_version"; exit ;;
17361 --config | --confi | --conf | --con | --co | --c )
17362 $as_echo "$ac_cs_config"; exit ;;
17363 --debug | --debu | --deb | --de | --d | -d )
17364 debug=: ;;
17365 --file | --fil | --fi | --f )
17366 $ac_shift
17367 case $ac_optarg in
17368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17369 '') as_fn_error $? "missing file argument" ;;
17370 esac
17371 as_fn_append CONFIG_FILES " '$ac_optarg'"
17372 ac_need_defaults=false;;
17373 --he | --h | --help | --hel | -h )
17374 $as_echo "$ac_cs_usage"; exit ;;
17375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17377 ac_cs_silent=: ;;
17379 # This is an error.
17380 -*) as_fn_error $? "unrecognized option: \`$1'
17381 Try \`$0 --help' for more information." ;;
17383 *) as_fn_append ac_config_targets " $1"
17384 ac_need_defaults=false ;;
17386 esac
17387 shift
17388 done
17390 ac_configure_extra_args=
17392 if $ac_cs_silent; then
17393 exec 6>/dev/null
17394 ac_configure_extra_args="$ac_configure_extra_args --silent"
17397 _ACEOF
17398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17399 if \$ac_cs_recheck; then
17400 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17401 shift
17402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17403 CONFIG_SHELL='$SHELL'
17404 export CONFIG_SHELL
17405 exec "\$@"
17408 _ACEOF
17409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410 exec 5>>config.log
17412 echo
17413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17414 ## Running $as_me. ##
17415 _ASBOX
17416 $as_echo "$ac_log"
17417 } >&5
17419 _ACEOF
17420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17422 # INIT-COMMANDS
17424 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17427 # The HP-UX ksh and POSIX shell print the target directory to stdout
17428 # if CDPATH is set.
17429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17431 sed_quote_subst='$sed_quote_subst'
17432 double_quote_subst='$double_quote_subst'
17433 delay_variable_subst='$delay_variable_subst'
17434 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17435 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17436 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17437 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17438 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17439 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17440 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17441 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17442 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17443 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17444 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17445 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17446 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17447 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17448 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17449 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17450 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17451 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17452 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17453 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17454 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17455 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17456 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17457 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17458 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17459 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17460 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17461 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17462 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17463 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17464 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17465 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17466 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17467 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17468 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17469 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17470 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17471 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17472 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17473 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17474 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17475 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17476 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17477 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17478 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17479 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17480 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17481 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17482 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17483 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17484 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17485 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17486 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17487 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17488 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17489 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17490 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"`'
17491 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17492 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17493 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17494 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17495 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17496 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17497 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17498 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17499 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17500 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17501 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17502 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17503 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17504 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17505 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17506 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17507 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17508 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17509 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17510 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17511 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17512 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17513 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17514 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17515 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17516 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17517 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17518 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17519 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17520 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17521 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17522 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17523 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17524 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17525 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17534 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17535 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17536 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17537 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17538 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17539 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17558 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17559 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17560 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17561 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17562 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17563 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17564 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17565 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17566 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17567 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17568 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17569 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17570 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17571 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17572 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17573 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17574 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17575 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17576 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17577 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17578 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17579 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17580 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17581 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17582 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17583 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17584 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17585 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17586 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17587 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17588 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17589 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17590 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17591 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17592 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17593 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17594 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17595 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17596 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17597 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17598 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17599 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17600 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17601 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17602 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17603 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17604 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17605 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17606 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17607 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17609 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17610 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17611 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17612 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17613 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17614 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17615 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17616 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17617 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17618 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17619 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17621 LTCC='$LTCC'
17622 LTCFLAGS='$LTCFLAGS'
17623 compiler='$compiler_DEFAULT'
17625 # A function that is used when there is no print builtin or printf.
17626 func_fallback_echo ()
17628 eval 'cat <<_LTECHO_EOF
17630 _LTECHO_EOF'
17633 # Quote evaled strings.
17634 for var in AS \
17635 DLLTOOL \
17636 OBJDUMP \
17637 SHELL \
17638 ECHO \
17639 SED \
17640 GREP \
17641 EGREP \
17642 FGREP \
17643 LD \
17644 NM \
17645 LN_S \
17646 lt_SP2NL \
17647 lt_NL2SP \
17648 reload_flag \
17649 deplibs_check_method \
17650 file_magic_cmd \
17651 file_magic_glob \
17652 want_nocaseglob \
17653 sharedlib_from_linklib_cmd \
17654 AR \
17655 AR_FLAGS \
17656 archiver_list_spec \
17657 STRIP \
17658 RANLIB \
17659 CC \
17660 CFLAGS \
17661 compiler \
17662 lt_cv_sys_global_symbol_pipe \
17663 lt_cv_sys_global_symbol_to_cdecl \
17664 lt_cv_sys_global_symbol_to_c_name_address \
17665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17666 nm_file_list_spec \
17667 lt_prog_compiler_no_builtin_flag \
17668 lt_prog_compiler_pic \
17669 lt_prog_compiler_wl \
17670 lt_prog_compiler_static \
17671 lt_cv_prog_compiler_c_o \
17672 need_locks \
17673 MANIFEST_TOOL \
17674 DSYMUTIL \
17675 NMEDIT \
17676 LIPO \
17677 OTOOL \
17678 OTOOL64 \
17679 shrext_cmds \
17680 export_dynamic_flag_spec \
17681 whole_archive_flag_spec \
17682 compiler_needs_object \
17683 with_gnu_ld \
17684 allow_undefined_flag \
17685 no_undefined_flag \
17686 hardcode_libdir_flag_spec \
17687 hardcode_libdir_flag_spec_ld \
17688 hardcode_libdir_separator \
17689 exclude_expsyms \
17690 include_expsyms \
17691 file_list_spec \
17692 variables_saved_for_relink \
17693 libname_spec \
17694 library_names_spec \
17695 soname_spec \
17696 install_override_mode \
17697 finish_eval \
17698 old_striplib \
17699 striplib \
17700 compiler_lib_search_dirs \
17701 predep_objects \
17702 postdep_objects \
17703 predeps \
17704 postdeps \
17705 compiler_lib_search_path \
17706 LD_CXX \
17707 reload_flag_CXX \
17708 compiler_CXX \
17709 lt_prog_compiler_no_builtin_flag_CXX \
17710 lt_prog_compiler_pic_CXX \
17711 lt_prog_compiler_wl_CXX \
17712 lt_prog_compiler_static_CXX \
17713 lt_cv_prog_compiler_c_o_CXX \
17714 export_dynamic_flag_spec_CXX \
17715 whole_archive_flag_spec_CXX \
17716 compiler_needs_object_CXX \
17717 with_gnu_ld_CXX \
17718 allow_undefined_flag_CXX \
17719 no_undefined_flag_CXX \
17720 hardcode_libdir_flag_spec_CXX \
17721 hardcode_libdir_flag_spec_ld_CXX \
17722 hardcode_libdir_separator_CXX \
17723 exclude_expsyms_CXX \
17724 include_expsyms_CXX \
17725 file_list_spec_CXX \
17726 compiler_lib_search_dirs_CXX \
17727 predep_objects_CXX \
17728 postdep_objects_CXX \
17729 predeps_CXX \
17730 postdeps_CXX \
17731 compiler_lib_search_path_CXX; do
17732 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17733 *[\\\\\\\`\\"\\\$]*)
17734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17739 esac
17740 done
17742 # Double-quote double-evaled strings.
17743 for var in reload_cmds \
17744 old_postinstall_cmds \
17745 old_postuninstall_cmds \
17746 old_archive_cmds \
17747 extract_expsyms_cmds \
17748 old_archive_from_new_cmds \
17749 old_archive_from_expsyms_cmds \
17750 archive_cmds \
17751 archive_expsym_cmds \
17752 module_cmds \
17753 module_expsym_cmds \
17754 export_symbols_cmds \
17755 prelink_cmds \
17756 postlink_cmds \
17757 postinstall_cmds \
17758 postuninstall_cmds \
17759 finish_cmds \
17760 sys_lib_search_path_spec \
17761 sys_lib_dlsearch_path_spec \
17762 reload_cmds_CXX \
17763 old_archive_cmds_CXX \
17764 old_archive_from_new_cmds_CXX \
17765 old_archive_from_expsyms_cmds_CXX \
17766 archive_cmds_CXX \
17767 archive_expsym_cmds_CXX \
17768 module_cmds_CXX \
17769 module_expsym_cmds_CXX \
17770 export_symbols_cmds_CXX \
17771 prelink_cmds_CXX \
17772 postlink_cmds_CXX; do
17773 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17774 *[\\\\\\\`\\"\\\$]*)
17775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17780 esac
17781 done
17783 ac_aux_dir='$ac_aux_dir'
17784 xsi_shell='$xsi_shell'
17785 lt_shell_append='$lt_shell_append'
17787 # See if we are running on zsh, and set the options which allow our
17788 # commands through without removal of \ escapes INIT.
17789 if test -n "\${ZSH_VERSION+set}" ; then
17790 setopt NO_GLOB_SUBST
17794 PACKAGE='$PACKAGE'
17795 VERSION='$VERSION'
17796 TIMESTAMP='$TIMESTAMP'
17797 RM='$RM'
17798 ofile='$ofile'
17805 _ACEOF
17807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 # Handling of arguments.
17810 for ac_config_target in $ac_config_targets
17812 case $ac_config_target in
17813 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17814 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17815 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17816 "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
17817 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17818 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17819 "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
17820 "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
17821 "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
17822 "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
17823 "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
17824 "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
17826 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17827 esac
17828 done
17831 # If the user did not use the arguments to specify the items to instantiate,
17832 # then the envvar interface is used. Set only those that are not.
17833 # We use the long form for the default assignment because of an extremely
17834 # bizarre bug on SunOS 4.1.3.
17835 if $ac_need_defaults; then
17836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17840 # Have a temporary directory for convenience. Make it in the build tree
17841 # simply because there is no reason against having it here, and in addition,
17842 # creating and moving files from /tmp can sometimes cause problems.
17843 # Hook for its removal unless debugging.
17844 # Note that there is a small window in which the directory will not be cleaned:
17845 # after its creation but before its name has been assigned to `$tmp'.
17846 $debug ||
17848 tmp= ac_tmp=
17849 trap 'exit_status=$?
17850 : "${ac_tmp:=$tmp}"
17851 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17853 trap 'as_fn_exit 1' 1 2 13 15
17855 # Create a (secure) tmp directory for tmp files.
17858 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17859 test -d "$tmp"
17860 } ||
17862 tmp=./conf$$-$RANDOM
17863 (umask 077 && mkdir "$tmp")
17864 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17865 ac_tmp=$tmp
17867 # Set up the scripts for CONFIG_FILES section.
17868 # No need to generate them if there are no CONFIG_FILES.
17869 # This happens for instance with `./config.status config.h'.
17870 if test -n "$CONFIG_FILES"; then
17873 ac_cr=`echo X | tr X '\015'`
17874 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17875 # But we know of no other shell where ac_cr would be empty at this
17876 # point, so we can use a bashism as a fallback.
17877 if test "x$ac_cr" = x; then
17878 eval ac_cr=\$\'\\r\'
17880 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17881 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17882 ac_cs_awk_cr='\\r'
17883 else
17884 ac_cs_awk_cr=$ac_cr
17887 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17888 _ACEOF
17892 echo "cat >conf$$subs.awk <<_ACEOF" &&
17893 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17894 echo "_ACEOF"
17895 } >conf$$subs.sh ||
17896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17897 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17898 ac_delim='%!_!# '
17899 for ac_last_try in false false false false false :; do
17900 . ./conf$$subs.sh ||
17901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17903 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17904 if test $ac_delim_n = $ac_delim_num; then
17905 break
17906 elif $ac_last_try; then
17907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17908 else
17909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17911 done
17912 rm -f conf$$subs.sh
17914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17915 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17916 _ACEOF
17917 sed -n '
17919 s/^/S["/; s/!.*/"]=/
17922 s/^[^!]*!//
17923 :repl
17924 t repl
17925 s/'"$ac_delim"'$//
17926 t delim
17929 s/\(.\{148\}\)..*/\1/
17930 t more1
17931 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17934 b repl
17935 :more1
17936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17939 s/.\{148\}//
17940 t nl
17941 :delim
17943 s/\(.\{148\}\)..*/\1/
17944 t more2
17945 s/["\\]/\\&/g; s/^/"/; s/$/"/
17948 :more2
17949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17952 s/.\{148\}//
17953 t delim
17954 ' <conf$$subs.awk | sed '
17955 /^[^""]/{
17957 s/\n//
17959 ' >>$CONFIG_STATUS || ac_write_fail=1
17960 rm -f conf$$subs.awk
17961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17962 _ACAWK
17963 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17964 for (key in S) S_is_set[key] = 1
17965 FS = "\a"
17969 line = $ 0
17970 nfields = split(line, field, "@")
17971 substed = 0
17972 len = length(field[1])
17973 for (i = 2; i < nfields; i++) {
17974 key = field[i]
17975 keylen = length(key)
17976 if (S_is_set[key]) {
17977 value = S[key]
17978 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17979 len += length(value) + length(field[++i])
17980 substed = 1
17981 } else
17982 len += 1 + keylen
17985 print line
17988 _ACAWK
17989 _ACEOF
17990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17991 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17992 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17993 else
17995 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17996 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17997 _ACEOF
17999 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18000 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18001 # trailing colons and then remove the whole line if VPATH becomes empty
18002 # (actually we leave an empty line to preserve line numbers).
18003 if test "x$srcdir" = x.; then
18004 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18006 s///
18007 s/^/:/
18008 s/[ ]*$/:/
18009 s/:\$(srcdir):/:/g
18010 s/:\${srcdir}:/:/g
18011 s/:@srcdir@:/:/g
18012 s/^:*//
18013 s/:*$//
18015 s/\(=[ ]*\).*/\1/
18017 s/\n//
18018 s/^[^=]*=[ ]*$//
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 fi # test -n "$CONFIG_FILES"
18026 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18027 shift
18028 for ac_tag
18030 case $ac_tag in
18031 :[FHLC]) ac_mode=$ac_tag; continue;;
18032 esac
18033 case $ac_mode$ac_tag in
18034 :[FHL]*:*);;
18035 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18036 :[FH]-) ac_tag=-:-;;
18037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18038 esac
18039 ac_save_IFS=$IFS
18040 IFS=:
18041 set x $ac_tag
18042 IFS=$ac_save_IFS
18043 shift
18044 ac_file=$1
18045 shift
18047 case $ac_mode in
18048 :L) ac_source=$1;;
18049 :[FH])
18050 ac_file_inputs=
18051 for ac_f
18053 case $ac_f in
18054 -) ac_f="$ac_tmp/stdin";;
18055 *) # Look for the file first in the build tree, then in the source tree
18056 # (if the path is not absolute). The absolute path cannot be DOS-style,
18057 # because $ac_f cannot contain `:'.
18058 test -f "$ac_f" ||
18059 case $ac_f in
18060 [\\/$]*) false;;
18061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18062 esac ||
18063 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18064 esac
18065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18066 as_fn_append ac_file_inputs " '$ac_f'"
18067 done
18069 # Let's still pretend it is `configure' which instantiates (i.e., don't
18070 # use $as_me), people would be surprised to read:
18071 # /* config.h. Generated by config.status. */
18072 configure_input='Generated from '`
18073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18074 `' by configure.'
18075 if test x"$ac_file" != x-; then
18076 configure_input="$ac_file. $configure_input"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18078 $as_echo "$as_me: creating $ac_file" >&6;}
18080 # Neutralize special characters interpreted by sed in replacement strings.
18081 case $configure_input in #(
18082 *\&* | *\|* | *\\* )
18083 ac_sed_conf_input=`$as_echo "$configure_input" |
18084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18085 *) ac_sed_conf_input=$configure_input;;
18086 esac
18088 case $ac_tag in
18089 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18091 esac
18093 esac
18095 ac_dir=`$as_dirname -- "$ac_file" ||
18096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18097 X"$ac_file" : 'X\(//\)[^/]' \| \
18098 X"$ac_file" : 'X\(//\)$' \| \
18099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18100 $as_echo X"$ac_file" |
18101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18102 s//\1/
18105 /^X\(\/\/\)[^/].*/{
18106 s//\1/
18109 /^X\(\/\/\)$/{
18110 s//\1/
18113 /^X\(\/\).*/{
18114 s//\1/
18117 s/.*/./; q'`
18118 as_dir="$ac_dir"; as_fn_mkdir_p
18119 ac_builddir=.
18121 case "$ac_dir" in
18122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18125 # A ".." for each directory in $ac_dir_suffix.
18126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18127 case $ac_top_builddir_sub in
18128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18130 esac ;;
18131 esac
18132 ac_abs_top_builddir=$ac_pwd
18133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18134 # for backward compatibility:
18135 ac_top_builddir=$ac_top_build_prefix
18137 case $srcdir in
18138 .) # We are building in place.
18139 ac_srcdir=.
18140 ac_top_srcdir=$ac_top_builddir_sub
18141 ac_abs_top_srcdir=$ac_pwd ;;
18142 [\\/]* | ?:[\\/]* ) # Absolute name.
18143 ac_srcdir=$srcdir$ac_dir_suffix;
18144 ac_top_srcdir=$srcdir
18145 ac_abs_top_srcdir=$srcdir ;;
18146 *) # Relative name.
18147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18148 ac_top_srcdir=$ac_top_build_prefix$srcdir
18149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18150 esac
18151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18154 case $ac_mode in
18157 # CONFIG_FILE
18160 case $INSTALL in
18161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18163 esac
18164 ac_MKDIR_P=$MKDIR_P
18165 case $MKDIR_P in
18166 [\\/$]* | ?:[\\/]* ) ;;
18167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18168 esac
18169 _ACEOF
18171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18172 # If the template does not know about datarootdir, expand it.
18173 # FIXME: This hack should be removed a few years after 2.60.
18174 ac_datarootdir_hack=; ac_datarootdir_seen=
18175 ac_sed_dataroot='
18176 /datarootdir/ {
18180 /@datadir@/p
18181 /@docdir@/p
18182 /@infodir@/p
18183 /@localedir@/p
18184 /@mandir@/p'
18185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18186 *datarootdir*) ac_datarootdir_seen=yes;;
18187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18190 _ACEOF
18191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18192 ac_datarootdir_hack='
18193 s&@datadir@&$datadir&g
18194 s&@docdir@&$docdir&g
18195 s&@infodir@&$infodir&g
18196 s&@localedir@&$localedir&g
18197 s&@mandir@&$mandir&g
18198 s&\\\${datarootdir}&$datarootdir&g' ;;
18199 esac
18200 _ACEOF
18202 # Neutralize VPATH when `$srcdir' = `.'.
18203 # Shell code in configure.ac might set extrasub.
18204 # FIXME: do we really want to maintain this feature?
18205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18206 ac_sed_extra="$ac_vpsub
18207 $extrasub
18208 _ACEOF
18209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18212 s|@configure_input@|$ac_sed_conf_input|;t t
18213 s&@top_builddir@&$ac_top_builddir_sub&;t t
18214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18215 s&@srcdir@&$ac_srcdir&;t t
18216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18217 s&@top_srcdir@&$ac_top_srcdir&;t t
18218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18219 s&@builddir@&$ac_builddir&;t t
18220 s&@abs_builddir@&$ac_abs_builddir&;t t
18221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18222 s&@INSTALL@&$ac_INSTALL&;t t
18223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18224 $ac_datarootdir_hack
18226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18227 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18232 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18234 which seems to be undefined. Please make sure it is defined" >&5
18235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18236 which seems to be undefined. Please make sure it is defined" >&2;}
18238 rm -f "$ac_tmp/stdin"
18239 case $ac_file in
18240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18242 esac \
18243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18248 $as_echo "$as_me: executing $ac_file commands" >&6;}
18250 esac
18253 case $ac_file$ac_mode in
18254 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18255 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18256 # are listed without --file. Let's play safe and only enable the eval
18257 # if we detect the quoting.
18258 case $CONFIG_FILES in
18259 *\'*) eval set x "$CONFIG_FILES" ;;
18260 *) set x $CONFIG_FILES ;;
18261 esac
18262 shift
18263 for mf
18265 # Strip MF so we end up with the name of the file.
18266 mf=`echo "$mf" | sed -e 's/:.*$//'`
18267 # Check whether this is an Automake generated Makefile or not.
18268 # We used to match only the files named `Makefile.in', but
18269 # some people rename them; so instead we look at the file content.
18270 # Grep'ing the first line is not enough: some people post-process
18271 # each Makefile.in and add a new line on top of each file to say so.
18272 # Grep'ing the whole file is not good either: AIX grep has a line
18273 # limit of 2048, but all sed's we know have understand at least 4000.
18274 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18275 dirpart=`$as_dirname -- "$mf" ||
18276 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18277 X"$mf" : 'X\(//\)[^/]' \| \
18278 X"$mf" : 'X\(//\)$' \| \
18279 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18280 $as_echo X"$mf" |
18281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18282 s//\1/
18285 /^X\(\/\/\)[^/].*/{
18286 s//\1/
18289 /^X\(\/\/\)$/{
18290 s//\1/
18293 /^X\(\/\).*/{
18294 s//\1/
18297 s/.*/./; q'`
18298 else
18299 continue
18301 # Extract the definition of DEPDIR, am__include, and am__quote
18302 # from the Makefile without running `make'.
18303 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18304 test -z "$DEPDIR" && continue
18305 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18306 test -z "am__include" && continue
18307 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18308 # When using ansi2knr, U may be empty or an underscore; expand it
18309 U=`sed -n 's/^U = //p' < "$mf"`
18310 # Find all dependency output files, they are included files with
18311 # $(DEPDIR) in their names. We invoke sed twice because it is the
18312 # simplest approach to changing $(DEPDIR) to its actual value in the
18313 # expansion.
18314 for file in `sed -n "
18315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18317 # Make sure the directory exists.
18318 test -f "$dirpart/$file" && continue
18319 fdir=`$as_dirname -- "$file" ||
18320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18321 X"$file" : 'X\(//\)[^/]' \| \
18322 X"$file" : 'X\(//\)$' \| \
18323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18324 $as_echo X"$file" |
18325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18326 s//\1/
18329 /^X\(\/\/\)[^/].*/{
18330 s//\1/
18333 /^X\(\/\/\)$/{
18334 s//\1/
18337 /^X\(\/\).*/{
18338 s//\1/
18341 s/.*/./; q'`
18342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18343 # echo "creating $dirpart/$file"
18344 echo '# dummy' > "$dirpart/$file"
18345 done
18346 done
18349 "libtool":C)
18351 # See if we are running on zsh, and set the options which allow our
18352 # commands through without removal of \ escapes.
18353 if test -n "${ZSH_VERSION+set}" ; then
18354 setopt NO_GLOB_SUBST
18357 cfgfile="${ofile}T"
18358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18359 $RM "$cfgfile"
18361 cat <<_LT_EOF >> "$cfgfile"
18362 #! $SHELL
18364 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18365 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18370 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18371 # Inc.
18372 # Written by Gordon Matzigkeit, 1996
18374 # This file is part of GNU Libtool.
18376 # GNU Libtool is free software; you can redistribute it and/or
18377 # modify it under the terms of the GNU General Public License as
18378 # published by the Free Software Foundation; either version 2 of
18379 # the License, or (at your option) any later version.
18381 # As a special exception to the GNU General Public License,
18382 # if you distribute this file as part of a program or library that
18383 # is built using GNU Libtool, you may include this file under the
18384 # same distribution terms that you use for the rest of that program.
18386 # GNU Libtool is distributed in the hope that it will be useful,
18387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18389 # GNU General Public License for more details.
18391 # You should have received a copy of the GNU General Public License
18392 # along with GNU Libtool; see the file COPYING. If not, a copy
18393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18394 # obtained by writing to the Free Software Foundation, Inc.,
18395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18398 # The names of the tagged configurations supported by this script.
18399 available_tags="CXX "
18401 # ### BEGIN LIBTOOL CONFIG
18403 # Whether or not to build shared libraries.
18404 build_libtool_libs=$enable_shared
18406 # Whether or not to build static libraries.
18407 build_old_libs=$enable_static
18409 # Assembler program.
18410 AS=$lt_AS
18412 # DLL creation program.
18413 DLLTOOL=$lt_DLLTOOL
18415 # Object dumper program.
18416 OBJDUMP=$lt_OBJDUMP
18418 # Which release of libtool.m4 was used?
18419 macro_version=$macro_version
18420 macro_revision=$macro_revision
18422 # What type of objects to build.
18423 pic_mode=$pic_mode
18425 # Whether or not to optimize for fast installation.
18426 fast_install=$enable_fast_install
18428 # Shell to use when invoking shell scripts.
18429 SHELL=$lt_SHELL
18431 # An echo program that protects backslashes.
18432 ECHO=$lt_ECHO
18434 # The host system.
18435 host_alias=$host_alias
18436 host=$host
18437 host_os=$host_os
18439 # The build system.
18440 build_alias=$build_alias
18441 build=$build
18442 build_os=$build_os
18444 # A sed program that does not truncate output.
18445 SED=$lt_SED
18447 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18448 Xsed="\$SED -e 1s/^X//"
18450 # A grep program that handles long lines.
18451 GREP=$lt_GREP
18453 # An ERE matcher.
18454 EGREP=$lt_EGREP
18456 # A literal string matcher.
18457 FGREP=$lt_FGREP
18459 # A BSD- or MS-compatible name lister.
18460 NM=$lt_NM
18462 # Whether we need soft or hard links.
18463 LN_S=$lt_LN_S
18465 # What is the maximum length of a command?
18466 max_cmd_len=$max_cmd_len
18468 # Object file suffix (normally "o").
18469 objext=$ac_objext
18471 # Executable file suffix (normally "").
18472 exeext=$exeext
18474 # whether the shell understands "unset".
18475 lt_unset=$lt_unset
18477 # turn spaces into newlines.
18478 SP2NL=$lt_lt_SP2NL
18480 # turn newlines into spaces.
18481 NL2SP=$lt_lt_NL2SP
18483 # convert \$build file names to \$host format.
18484 to_host_file_cmd=$lt_cv_to_host_file_cmd
18486 # convert \$build files to toolchain format.
18487 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18489 # Method to check whether dependent libraries are shared objects.
18490 deplibs_check_method=$lt_deplibs_check_method
18492 # Command to use when deplibs_check_method = "file_magic".
18493 file_magic_cmd=$lt_file_magic_cmd
18495 # How to find potential files when deplibs_check_method = "file_magic".
18496 file_magic_glob=$lt_file_magic_glob
18498 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18499 want_nocaseglob=$lt_want_nocaseglob
18501 # Command to associate shared and link libraries.
18502 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18504 # The archiver.
18505 AR=$lt_AR
18507 # Flags to create an archive.
18508 AR_FLAGS=$lt_AR_FLAGS
18510 # How to feed a file listing to the archiver.
18511 archiver_list_spec=$lt_archiver_list_spec
18513 # A symbol stripping program.
18514 STRIP=$lt_STRIP
18516 # Commands used to install an old-style archive.
18517 RANLIB=$lt_RANLIB
18518 old_postinstall_cmds=$lt_old_postinstall_cmds
18519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18521 # Whether to use a lock for old archive extraction.
18522 lock_old_archive_extraction=$lock_old_archive_extraction
18524 # A C compiler.
18525 LTCC=$lt_CC
18527 # LTCC compiler flags.
18528 LTCFLAGS=$lt_CFLAGS
18530 # Take the output of nm and produce a listing of raw symbols and C names.
18531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18533 # Transform the output of nm in a proper C declaration.
18534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18536 # Transform the output of nm in a C name address pair.
18537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18539 # Transform the output of nm in a C name address pair when lib prefix is needed.
18540 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18542 # Specify filename containing input files for \$NM.
18543 nm_file_list_spec=$lt_nm_file_list_spec
18545 # The root where to search for dependent libraries,and in which our libraries should be installed.
18546 lt_sysroot=$lt_sysroot
18548 # The name of the directory that contains temporary libtool files.
18549 objdir=$objdir
18551 # Used to examine libraries when file_magic_cmd begins with "file".
18552 MAGIC_CMD=$MAGIC_CMD
18554 # Must we lock files when doing compilation?
18555 need_locks=$lt_need_locks
18557 # Manifest tool.
18558 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18560 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18561 DSYMUTIL=$lt_DSYMUTIL
18563 # Tool to change global to local symbols on Mac OS X.
18564 NMEDIT=$lt_NMEDIT
18566 # Tool to manipulate fat objects and archives on Mac OS X.
18567 LIPO=$lt_LIPO
18569 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18570 OTOOL=$lt_OTOOL
18572 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18573 OTOOL64=$lt_OTOOL64
18575 # Old archive suffix (normally "a").
18576 libext=$libext
18578 # Shared library suffix (normally ".so").
18579 shrext_cmds=$lt_shrext_cmds
18581 # The commands to extract the exported symbol list from a shared archive.
18582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18584 # Variables whose values should be saved in libtool wrapper scripts and
18585 # restored at link time.
18586 variables_saved_for_relink=$lt_variables_saved_for_relink
18588 # Do we need the "lib" prefix for modules?
18589 need_lib_prefix=$need_lib_prefix
18591 # Do we need a version for libraries?
18592 need_version=$need_version
18594 # Library versioning type.
18595 version_type=$version_type
18597 # Shared library runtime path variable.
18598 runpath_var=$runpath_var
18600 # Shared library path variable.
18601 shlibpath_var=$shlibpath_var
18603 # Is shlibpath searched before the hard-coded library search path?
18604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18606 # Format of library name prefix.
18607 libname_spec=$lt_libname_spec
18609 # List of archive names. First name is the real one, the rest are links.
18610 # The last name is the one that the linker finds with -lNAME
18611 library_names_spec=$lt_library_names_spec
18613 # The coded name of the library, if different from the real name.
18614 soname_spec=$lt_soname_spec
18616 # Permission mode override for installation of shared libraries.
18617 install_override_mode=$lt_install_override_mode
18619 # Command to use after installation of a shared archive.
18620 postinstall_cmds=$lt_postinstall_cmds
18622 # Command to use after uninstallation of a shared archive.
18623 postuninstall_cmds=$lt_postuninstall_cmds
18625 # Commands used to finish a libtool library installation in a directory.
18626 finish_cmds=$lt_finish_cmds
18628 # As "finish_cmds", except a single script fragment to be evaled but
18629 # not shown.
18630 finish_eval=$lt_finish_eval
18632 # Whether we should hardcode library paths into libraries.
18633 hardcode_into_libs=$hardcode_into_libs
18635 # Compile-time system search path for libraries.
18636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18638 # Run-time system search path for libraries.
18639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18641 # Whether dlopen is supported.
18642 dlopen_support=$enable_dlopen
18644 # Whether dlopen of programs is supported.
18645 dlopen_self=$enable_dlopen_self
18647 # Whether dlopen of statically linked programs is supported.
18648 dlopen_self_static=$enable_dlopen_self_static
18650 # Commands to strip libraries.
18651 old_striplib=$lt_old_striplib
18652 striplib=$lt_striplib
18655 # The linker used to build libraries.
18656 LD=$lt_LD
18658 # How to create reloadable object files.
18659 reload_flag=$lt_reload_flag
18660 reload_cmds=$lt_reload_cmds
18662 # Commands used to build an old-style archive.
18663 old_archive_cmds=$lt_old_archive_cmds
18665 # A language specific compiler.
18666 CC=$lt_compiler
18668 # Is the compiler the GNU compiler?
18669 with_gcc=$GCC
18671 # Compiler flag to turn off builtin functions.
18672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18674 # Additional compiler flags for building library objects.
18675 pic_flag=$lt_lt_prog_compiler_pic
18677 # How to pass a linker flag through the compiler.
18678 wl=$lt_lt_prog_compiler_wl
18680 # Compiler flag to prevent dynamic linking.
18681 link_static_flag=$lt_lt_prog_compiler_static
18683 # Does compiler simultaneously support -c and -o options?
18684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18686 # Whether or not to add -lc for building shared libraries.
18687 build_libtool_need_lc=$archive_cmds_need_lc
18689 # Whether or not to disallow shared libs when runtime libs are static.
18690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18692 # Compiler flag to allow reflexive dlopens.
18693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18695 # Compiler flag to generate shared objects directly from archives.
18696 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18698 # Whether the compiler copes with passing no objects directly.
18699 compiler_needs_object=$lt_compiler_needs_object
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18707 # Commands used to build a shared archive.
18708 archive_cmds=$lt_archive_cmds
18709 archive_expsym_cmds=$lt_archive_expsym_cmds
18711 # Commands used to build a loadable module if different from building
18712 # a shared archive.
18713 module_cmds=$lt_module_cmds
18714 module_expsym_cmds=$lt_module_expsym_cmds
18716 # Whether we are building with GNU ld or not.
18717 with_gnu_ld=$lt_with_gnu_ld
18719 # Flag that allows shared libraries with undefined symbols to be built.
18720 allow_undefined_flag=$lt_allow_undefined_flag
18722 # Flag that enforces no undefined symbols.
18723 no_undefined_flag=$lt_no_undefined_flag
18725 # Flag to hardcode \$libdir into a binary during linking.
18726 # This must work even if \$libdir does not exist
18727 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18729 # If ld is used when linking, flag to hardcode \$libdir into a binary
18730 # during linking. This must work even if \$libdir does not exist.
18731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18733 # Whether we need a single "-rpath" flag with a separated argument.
18734 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18737 # DIR into the resulting binary.
18738 hardcode_direct=$hardcode_direct
18740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18741 # DIR into the resulting binary and the resulting library dependency is
18742 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18743 # library is relocated.
18744 hardcode_direct_absolute=$hardcode_direct_absolute
18746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18747 # into the resulting binary.
18748 hardcode_minus_L=$hardcode_minus_L
18750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18751 # into the resulting binary.
18752 hardcode_shlibpath_var=$hardcode_shlibpath_var
18754 # Set to "yes" if building a shared library automatically hardcodes DIR
18755 # into the library and all subsequent libraries and executables linked
18756 # against it.
18757 hardcode_automatic=$hardcode_automatic
18759 # Set to yes if linker adds runtime paths of dependent libraries
18760 # to runtime path list.
18761 inherit_rpath=$inherit_rpath
18763 # Whether libtool must link a program against all its dependency libraries.
18764 link_all_deplibs=$link_all_deplibs
18766 # Set to "yes" if exported symbols are required.
18767 always_export_symbols=$always_export_symbols
18769 # The commands to list exported symbols.
18770 export_symbols_cmds=$lt_export_symbols_cmds
18772 # Symbols that should not be listed in the preloaded symbols.
18773 exclude_expsyms=$lt_exclude_expsyms
18775 # Symbols that must always be exported.
18776 include_expsyms=$lt_include_expsyms
18778 # Commands necessary for linking programs (against libraries) with templates.
18779 prelink_cmds=$lt_prelink_cmds
18781 # Commands necessary for finishing linking programs.
18782 postlink_cmds=$lt_postlink_cmds
18784 # Specify filename containing input files.
18785 file_list_spec=$lt_file_list_spec
18787 # How to hardcode a shared library path into an executable.
18788 hardcode_action=$hardcode_action
18790 # The directories searched by this compiler when creating a shared library.
18791 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18793 # Dependencies to place before and after the objects being linked to
18794 # create a shared library.
18795 predep_objects=$lt_predep_objects
18796 postdep_objects=$lt_postdep_objects
18797 predeps=$lt_predeps
18798 postdeps=$lt_postdeps
18800 # The library search path used internally by the compiler when linking
18801 # a shared library.
18802 compiler_lib_search_path=$lt_compiler_lib_search_path
18804 # ### END LIBTOOL CONFIG
18806 _LT_EOF
18808 case $host_os in
18809 aix3*)
18810 cat <<\_LT_EOF >> "$cfgfile"
18811 # AIX sometimes has problems with the GCC collect2 program. For some
18812 # reason, if we set the COLLECT_NAMES environment variable, the problems
18813 # vanish in a puff of smoke.
18814 if test "X${COLLECT_NAMES+set}" != Xset; then
18815 COLLECT_NAMES=
18816 export COLLECT_NAMES
18818 _LT_EOF
18820 esac
18823 ltmain="$ac_aux_dir/ltmain.sh"
18826 # We use sed instead of cat because bash on DJGPP gets confused if
18827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18828 # text mode, it properly converts lines to CR/LF. This bash problem
18829 # is reportedly fixed, but why not run on old versions too?
18830 sed '$q' "$ltmain" >> "$cfgfile" \
18831 || (rm -f "$cfgfile"; exit 1)
18833 if test x"$xsi_shell" = xyes; then
18834 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18835 func_dirname ()\
18837 \ case ${1} in\
18838 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18839 \ * ) func_dirname_result="${3}" ;;\
18840 \ esac\
18841 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18842 && mv -f "$cfgfile.tmp" "$cfgfile" \
18843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18844 test 0 -eq $? || _lt_function_replace_fail=:
18847 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18848 func_basename ()\
18850 \ func_basename_result="${1##*/}"\
18851 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18852 && mv -f "$cfgfile.tmp" "$cfgfile" \
18853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18854 test 0 -eq $? || _lt_function_replace_fail=:
18857 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18858 func_dirname_and_basename ()\
18860 \ case ${1} in\
18861 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18862 \ * ) func_dirname_result="${3}" ;;\
18863 \ esac\
18864 \ func_basename_result="${1##*/}"\
18865 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18866 && mv -f "$cfgfile.tmp" "$cfgfile" \
18867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18868 test 0 -eq $? || _lt_function_replace_fail=:
18871 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18872 func_stripname ()\
18874 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18875 \ # positional parameters, so assign one to ordinary parameter first.\
18876 \ func_stripname_result=${3}\
18877 \ func_stripname_result=${func_stripname_result#"${1}"}\
18878 \ func_stripname_result=${func_stripname_result%"${2}"}\
18879 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18880 && mv -f "$cfgfile.tmp" "$cfgfile" \
18881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18882 test 0 -eq $? || _lt_function_replace_fail=:
18885 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18886 func_split_long_opt ()\
18888 \ func_split_long_opt_name=${1%%=*}\
18889 \ func_split_long_opt_arg=${1#*=}\
18890 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18891 && mv -f "$cfgfile.tmp" "$cfgfile" \
18892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18893 test 0 -eq $? || _lt_function_replace_fail=:
18896 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18897 func_split_short_opt ()\
18899 \ func_split_short_opt_arg=${1#??}\
18900 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18901 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18902 && mv -f "$cfgfile.tmp" "$cfgfile" \
18903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18904 test 0 -eq $? || _lt_function_replace_fail=:
18907 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18908 func_lo2o ()\
18910 \ case ${1} in\
18911 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18912 \ *) func_lo2o_result=${1} ;;\
18913 \ esac\
18914 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18915 && mv -f "$cfgfile.tmp" "$cfgfile" \
18916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18917 test 0 -eq $? || _lt_function_replace_fail=:
18920 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18921 func_xform ()\
18923 func_xform_result=${1%.*}.lo\
18924 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18925 && mv -f "$cfgfile.tmp" "$cfgfile" \
18926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927 test 0 -eq $? || _lt_function_replace_fail=:
18930 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18931 func_arith ()\
18933 func_arith_result=$(( $* ))\
18934 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18935 && mv -f "$cfgfile.tmp" "$cfgfile" \
18936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18937 test 0 -eq $? || _lt_function_replace_fail=:
18940 sed -e '/^func_len ()$/,/^} # func_len /c\
18941 func_len ()\
18943 func_len_result=${#1}\
18944 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18945 && mv -f "$cfgfile.tmp" "$cfgfile" \
18946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18947 test 0 -eq $? || _lt_function_replace_fail=:
18951 if test x"$lt_shell_append" = xyes; then
18952 sed -e '/^func_append ()$/,/^} # func_append /c\
18953 func_append ()\
18955 eval "${1}+=\\${2}"\
18956 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18957 && mv -f "$cfgfile.tmp" "$cfgfile" \
18958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18959 test 0 -eq $? || _lt_function_replace_fail=:
18962 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18963 func_append_quoted ()\
18965 \ func_quote_for_eval "${2}"\
18966 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18967 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18968 && mv -f "$cfgfile.tmp" "$cfgfile" \
18969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18970 test 0 -eq $? || _lt_function_replace_fail=:
18973 # Save a `func_append' function call where possible by direct use of '+='
18974 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18975 && mv -f "$cfgfile.tmp" "$cfgfile" \
18976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18977 test 0 -eq $? || _lt_function_replace_fail=:
18978 else
18979 # Save a `func_append' function call even when '+=' is not available
18980 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18981 && mv -f "$cfgfile.tmp" "$cfgfile" \
18982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18983 test 0 -eq $? || _lt_function_replace_fail=:
18986 if test x"$_lt_function_replace_fail" = x":"; then
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18988 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18992 mv -f "$cfgfile" "$ofile" ||
18993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18994 chmod +x "$ofile"
18997 cat <<_LT_EOF >> "$ofile"
18999 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19001 # The linker used to build libraries.
19002 LD=$lt_LD_CXX
19004 # How to create reloadable object files.
19005 reload_flag=$lt_reload_flag_CXX
19006 reload_cmds=$lt_reload_cmds_CXX
19008 # Commands used to build an old-style archive.
19009 old_archive_cmds=$lt_old_archive_cmds_CXX
19011 # A language specific compiler.
19012 CC=$lt_compiler_CXX
19014 # Is the compiler the GNU compiler?
19015 with_gcc=$GCC_CXX
19017 # Compiler flag to turn off builtin functions.
19018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19020 # Additional compiler flags for building library objects.
19021 pic_flag=$lt_lt_prog_compiler_pic_CXX
19023 # How to pass a linker flag through the compiler.
19024 wl=$lt_lt_prog_compiler_wl_CXX
19026 # Compiler flag to prevent dynamic linking.
19027 link_static_flag=$lt_lt_prog_compiler_static_CXX
19029 # Does compiler simultaneously support -c and -o options?
19030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19032 # Whether or not to add -lc for building shared libraries.
19033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19035 # Whether or not to disallow shared libs when runtime libs are static.
19036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19038 # Compiler flag to allow reflexive dlopens.
19039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19041 # Compiler flag to generate shared objects directly from archives.
19042 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19044 # Whether the compiler copes with passing no objects directly.
19045 compiler_needs_object=$lt_compiler_needs_object_CXX
19047 # Create an old-style archive from a shared archive.
19048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19050 # Create a temporary old-style archive to link instead of a shared archive.
19051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19053 # Commands used to build a shared archive.
19054 archive_cmds=$lt_archive_cmds_CXX
19055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19057 # Commands used to build a loadable module if different from building
19058 # a shared archive.
19059 module_cmds=$lt_module_cmds_CXX
19060 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19062 # Whether we are building with GNU ld or not.
19063 with_gnu_ld=$lt_with_gnu_ld_CXX
19065 # Flag that allows shared libraries with undefined symbols to be built.
19066 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19068 # Flag that enforces no undefined symbols.
19069 no_undefined_flag=$lt_no_undefined_flag_CXX
19071 # Flag to hardcode \$libdir into a binary during linking.
19072 # This must work even if \$libdir does not exist
19073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19075 # If ld is used when linking, flag to hardcode \$libdir into a binary
19076 # during linking. This must work even if \$libdir does not exist.
19077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19079 # Whether we need a single "-rpath" flag with a separated argument.
19080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19083 # DIR into the resulting binary.
19084 hardcode_direct=$hardcode_direct_CXX
19086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19087 # DIR into the resulting binary and the resulting library dependency is
19088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19089 # library is relocated.
19090 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19093 # into the resulting binary.
19094 hardcode_minus_L=$hardcode_minus_L_CXX
19096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19097 # into the resulting binary.
19098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19100 # Set to "yes" if building a shared library automatically hardcodes DIR
19101 # into the library and all subsequent libraries and executables linked
19102 # against it.
19103 hardcode_automatic=$hardcode_automatic_CXX
19105 # Set to yes if linker adds runtime paths of dependent libraries
19106 # to runtime path list.
19107 inherit_rpath=$inherit_rpath_CXX
19109 # Whether libtool must link a program against all its dependency libraries.
19110 link_all_deplibs=$link_all_deplibs_CXX
19112 # Set to "yes" if exported symbols are required.
19113 always_export_symbols=$always_export_symbols_CXX
19115 # The commands to list exported symbols.
19116 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19118 # Symbols that should not be listed in the preloaded symbols.
19119 exclude_expsyms=$lt_exclude_expsyms_CXX
19121 # Symbols that must always be exported.
19122 include_expsyms=$lt_include_expsyms_CXX
19124 # Commands necessary for linking programs (against libraries) with templates.
19125 prelink_cmds=$lt_prelink_cmds_CXX
19127 # Commands necessary for finishing linking programs.
19128 postlink_cmds=$lt_postlink_cmds_CXX
19130 # Specify filename containing input files.
19131 file_list_spec=$lt_file_list_spec_CXX
19133 # How to hardcode a shared library path into an executable.
19134 hardcode_action=$hardcode_action_CXX
19136 # The directories searched by this compiler when creating a shared library.
19137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19139 # Dependencies to place before and after the objects being linked to
19140 # create a shared library.
19141 predep_objects=$lt_predep_objects_CXX
19142 postdep_objects=$lt_postdep_objects_CXX
19143 predeps=$lt_predeps_CXX
19144 postdeps=$lt_postdeps_CXX
19146 # The library search path used internally by the compiler when linking
19147 # a shared library.
19148 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19150 # ### END LIBTOOL TAG CONFIG: CXX
19151 _LT_EOF
19155 esac
19156 done # for ac_tag
19159 as_fn_exit 0
19160 _ACEOF
19161 ac_clean_files=$ac_clean_files_save
19163 test $ac_write_fail = 0 ||
19164 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19167 # configure is writing to config.log, and then calls config.status.
19168 # config.status does its own redirection, appending to config.log.
19169 # Unfortunately, on DOS this fails, as config.log is still kept open
19170 # by configure, so config.status won't be able to write to it; its
19171 # output is simply discarded. So we exec the FD to /dev/null,
19172 # effectively closing config.log, so it can be properly (re)opened and
19173 # appended to by config.status. When coming back to configure, we
19174 # need to make the FD available again.
19175 if test "$no_create" != yes; then
19176 ac_cs_success=:
19177 ac_config_status_args=
19178 test "$silent" = yes &&
19179 ac_config_status_args="$ac_config_status_args --quiet"
19180 exec 5>/dev/null
19181 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19182 exec 5>>config.log
19183 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19184 # would make configure fail if this is the last instruction.
19185 $ac_cs_success || as_fn_exit 1
19187 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19189 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}