comparison mupdf-source/thirdparty/lcms2/configure @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for lcms2 2.16.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='lcms2mt'
620 PACKAGE_TARNAME='lcms2mt'
621 PACKAGE_VERSION='2.16'
622 PACKAGE_STRING='lcms2mt 2.16'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 COND_THREADED_FALSE
663 COND_THREADED_TRUE
664 COND_FASTFLOAT_FALSE
665 COND_FASTFLOAT_TRUE
666 TIFFICC_DEPLIBS
667 JPEGICC_DEPLIBS
668 LIB_PLUGINS
669 LCMS_LIB_DEPLIBS
670 LIB_TIFF
671 HasTIFF_FALSE
672 HasTIFF_TRUE
673 LIB_ZLIB
674 HasZLIB_FALSE
675 HasZLIB_TRUE
676 LIB_JPEG
677 HasJPEG_FALSE
678 HasJPEG_TRUE
679 LIB_THREAD
680 LIB_MATH
681 PTHREAD_CFLAGS
682 PTHREAD_LIBS
683 PTHREAD_CXX
684 PTHREAD_CC
685 ax_pthread_config
686 inline
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 LIBTOOL_DEPS
691 AS
692 CXXCPP
693 LT_SYS_LIBRARY_PATH
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 DLLTOOL
704 OBJDUMP
705 FILECMD
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 LIBTOOL
716 am__fastdepCXX_FALSE
717 am__fastdepCXX_TRUE
718 CXXDEPMODE
719 ac_ct_CXX
720 CXXFLAGS
721 CXX
722 CPP
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 CSCOPE
745 ETAGS
746 CTAGS
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 LIBRARY_AGE
779 LIBRARY_REVISION
780 LIBRARY_CURRENT
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 runstatedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_dependency_tracking
825 enable_shared
826 enable_static
827 with_pic
828 enable_fast_install
829 with_aix_soname
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 enable_maintainer_mode
834 with_jpeg
835 with_tiff
836 with_zlib
837 with_fastfloat
838 with_threaded
839 with_threads
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP
850 CXX
851 CXXFLAGS
852 CCC
853 LT_SYS_LIBRARY_PATH
854 CXXCPP'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 runstatedir='${localstatedir}/run'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: \`$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: \`$ac_useropt'"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -runstatedir | --runstatedir | --runstatedi | --runstated \
1145 | --runstate | --runstat | --runsta | --runst | --runs \
1146 | --run | --ru | --r)
1147 ac_prev=runstatedir ;;
1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150 | --run=* | --ru=* | --r=*)
1151 runstatedir=$ac_optarg ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: \`$ac_useropt'"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir runstatedir
1291 do
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 printf "%s\n" X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures lcms2mt 2.16 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2mt]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of lcms2mt 2.16:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-maintainer-mode
1494 enable make rules and dependencies not useful (and
1495 sometimes confusing) to the casual installer
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1508 --with-jpeg=DIR use jpeg installed in DIR
1509 --with-tiff=DIR use tiff installed in DIR
1510 --without-zlib disable ZLIB support
1511 --with-fastfloat build and install fast_float plugin, use only if GPL
1512 3.0 is acceptable
1513 --with-threaded build and install multi threaded plugin, use only if
1514 GPL 3.0 is acceptable
1515 --without-pthreads disable POSIX pthreads API support
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1528 LT_SYS_LIBRARY_PATH
1529 User-defined run-time library search path.
1530 CXXCPP C++ preprocessor
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to the package provider.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for configure.gnu first; this name is used for a wrapper for
1582 # Metaconfig's "Configure" on case-insensitive file systems.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 lcms2mt configure 2.16
1600 generated by GNU Autoconf 2.71
1601
1602 Copyright (C) 2021 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest.beam
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 printf "%s\n" "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext
1639 then :
1640 ac_retval=0
1641 else $as_nop
1642 printf "%s\n" "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }
1677 then :
1678 ac_retval=0
1679 else $as_nop
1680 printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_cxx_try_compile LINENO
1691 # ----------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_cxx_try_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam
1697 if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_cxx_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext
1716 then :
1717 ac_retval=0
1718 else $as_nop
1719 printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_cxx_try_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 printf "%s\n" "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 test -x conftest$ac_exeext
1757 }
1758 then :
1759 ac_retval=0
1760 else $as_nop
1761 printf "%s\n" "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765 fi
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_link
1775
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 printf %s "checking for $2... " >&6; }
1785 if eval test \${$3+y}
1786 then :
1787 printf %s "(cached) " >&6
1788 else $as_nop
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"
1795 then :
1796 eval "$3=yes"
1797 else $as_nop
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 printf "%s\n" "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819 printf %s "(cached) " >&6
1820 else $as_nop
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below. */
1829
1830 #include <limits.h>
1831 #undef $2
1832
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1836 #ifdef __cplusplus
1837 extern "C"
1838 #endif
1839 char $2 ();
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1844 choke me
1845 #endif
1846
1847 int
1848 main (void)
1849 {
1850 return $2 ();
1851 ;
1852 return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"
1856 then :
1857 eval "$3=yes"
1858 else $as_nop
1859 eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1862 conftest$ac_exeext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 printf "%s\n" "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_func
1870
1871 # ac_fn_cxx_try_cpp LINENO
1872 # ------------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_cpp ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
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 printf "%s\n" "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 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
1890 fi
1891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 }
1896 then :
1897 ac_retval=0
1898 else $as_nop
1899 printf "%s\n" "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=1
1903 fi
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_cpp
1908
1909 # ac_fn_cxx_try_link LINENO
1910 # -------------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_cxx_try_link ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 printf "%s\n" "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }
1938 then :
1939 ac_retval=0
1940 else $as_nop
1941 printf "%s\n" "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944 ac_retval=1
1945 fi
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_cxx_try_link
1955
1956 # ac_fn_c_try_run LINENO
1957 # ----------------------
1958 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1959 # executables *can* be run.
1960 ac_fn_c_try_run ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 printf "%s\n" "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>&5
1971 ac_status=$?
1972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1974 { { case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 printf "%s\n" "$ac_try_echo"; } >&5
1980 (eval "$ac_try") 2>&5
1981 ac_status=$?
1982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; }; }
1984 then :
1985 ac_retval=0
1986 else $as_nop
1987 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1988 printf "%s\n" "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_retval=$ac_status
1992 fi
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1996
1997 } # ac_fn_c_try_run
1998 ac_configure_args_raw=
1999 for ac_arg
2000 do
2001 case $ac_arg in
2002 *\'*)
2003 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 esac
2005 as_fn_append ac_configure_args_raw " '$ac_arg'"
2006 done
2007
2008 case $ac_configure_args_raw in
2009 *$as_nl*)
2010 ac_safe_unquote= ;;
2011 *)
2012 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2013 ac_unsafe_a="$ac_unsafe_z#~"
2014 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2015 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2016 esac
2017
2018 cat >config.log <<_ACEOF
2019 This file contains any messages produced by compilers while
2020 running configure, to aid debugging if configure makes a mistake.
2021
2022 It was created by lcms2mt $as_me 2.16, which was
2023 generated by GNU Autoconf 2.71. Invocation command line was
2024
2025 $ $0$ac_configure_args_raw
2026
2027 _ACEOF
2028 exec 5>>config.log
2029 {
2030 cat <<_ASUNAME
2031 ## --------- ##
2032 ## Platform. ##
2033 ## --------- ##
2034
2035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040
2041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043
2044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051
2052 _ASUNAME
2053
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057 IFS=$as_save_IFS
2058 case $as_dir in #(((
2059 '') as_dir=./ ;;
2060 */) ;;
2061 *) as_dir=$as_dir/ ;;
2062 esac
2063 printf "%s\n" "PATH: $as_dir"
2064 done
2065 IFS=$as_save_IFS
2066
2067 } >&5
2068
2069 cat >&5 <<_ACEOF
2070
2071
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2075
2076 _ACEOF
2077
2078
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2089 do
2090 for ac_arg
2091 do
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102 2)
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2115 ;;
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2118 fi
2119 as_fn_append ac_configure_args " '$ac_arg'"
2120 ;;
2121 esac
2122 done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2126
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log. We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133 # Sanitize IFS.
2134 IFS=" "" $as_nl"
2135 # Save into config.log some information that might help in debugging.
2136 {
2137 echo
2138
2139 printf "%s\n" "## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##"
2142 echo
2143 # The following way of writing the cache mishandles newlines in values,
2144 (
2145 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in #(
2148 *${as_nl}*)
2149 case $ac_var in #(
2150 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2151 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2152 esac
2153 case $ac_var in #(
2154 _ | IFS | as_nl) ;; #(
2155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2156 *) { eval $ac_var=; unset $ac_var;} ;;
2157 esac ;;
2158 esac
2159 done
2160 (set) 2>&1 |
2161 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2162 *${as_nl}ac_space=\ *)
2163 sed -n \
2164 "s/'\''/'\''\\\\'\'''\''/g;
2165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2166 ;; #(
2167 *)
2168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2169 ;;
2170 esac |
2171 sort
2172 )
2173 echo
2174
2175 printf "%s\n" "## ----------------- ##
2176 ## Output variables. ##
2177 ## ----------------- ##"
2178 echo
2179 for ac_var in $ac_subst_vars
2180 do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in
2183 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184 esac
2185 printf "%s\n" "$ac_var='\''$ac_val'\''"
2186 done | sort
2187 echo
2188
2189 if test -n "$ac_subst_files"; then
2190 printf "%s\n" "## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##"
2193 echo
2194 for ac_var in $ac_subst_files
2195 do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 printf "%s\n" "$ac_var='\''$ac_val'\''"
2201 done | sort
2202 echo
2203 fi
2204
2205 if test -s confdefs.h; then
2206 printf "%s\n" "## ----------- ##
2207 ## confdefs.h. ##
2208 ## ----------- ##"
2209 echo
2210 cat confdefs.h
2211 echo
2212 fi
2213 test "$ac_signal" != 0 &&
2214 printf "%s\n" "$as_me: caught signal $ac_signal"
2215 printf "%s\n" "$as_me: exit $exit_status"
2216 } >&5
2217 rm -f core *.core core.conftest.* &&
2218 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2219 exit $exit_status
2220 ' 0
2221 for ac_signal in 1 2 13 15; do
2222 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2223 done
2224 ac_signal=0
2225
2226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2227 rm -f -r conftest* confdefs.h
2228
2229 printf "%s\n" "/* confdefs.h */" > confdefs.h
2230
2231 # Predefined preprocessor variables.
2232
2233 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2234
2235 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2236
2237 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2238
2239 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2240
2241 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2242
2243 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2244
2245
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2248 if test -n "$CONFIG_SITE"; then
2249 ac_site_files="$CONFIG_SITE"
2250 elif test "x$prefix" != xNONE; then
2251 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2252 else
2253 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2254 fi
2255
2256 for ac_site_file in $ac_site_files
2257 do
2258 case $ac_site_file in #(
2259 */*) :
2260 ;; #(
2261 *) :
2262 ac_site_file=./$ac_site_file ;;
2263 esac
2264 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2267 sed 's/^/| /' "$ac_site_file" >&5
2268 . "$ac_site_file" \
2269 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2271 as_fn_error $? "failed to load site script $ac_site_file
2272 See \`config.log' for more details" "$LINENO" 5; }
2273 fi
2274 done
2275
2276 if test -r "$cache_file"; then
2277 # Some versions of bash will fail to source /dev/null (special files
2278 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2279 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2281 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2282 case $cache_file in
2283 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284 *) . "./$cache_file";;
2285 esac
2286 fi
2287 else
2288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2289 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2290 >$cache_file
2291 fi
2292
2293 # Test code for whether the C compiler supports C89 (global declarations)
2294 ac_c_conftest_c89_globals='
2295 /* Does the compiler advertise C89 conformance?
2296 Do not test the value of __STDC__, because some compilers set it to 0
2297 while being otherwise adequately conformant. */
2298 #if !defined __STDC__
2299 # error "Compiler does not advertise C89 conformance"
2300 #endif
2301
2302 #include <stddef.h>
2303 #include <stdarg.h>
2304 struct stat;
2305 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2306 struct buf { int x; };
2307 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2308 static char *e (p, i)
2309 char **p;
2310 int i;
2311 {
2312 return p[i];
2313 }
2314 static char *f (char * (*g) (char **, int), char **p, ...)
2315 {
2316 char *s;
2317 va_list v;
2318 va_start (v,p);
2319 s = g (p, va_arg (v,int));
2320 va_end (v);
2321 return s;
2322 }
2323
2324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2325 function prototypes and stuff, but not \xHH hex character constants.
2326 These do not provoke an error unfortunately, instead are silently treated
2327 as an "x". The following induces an error, until -std is added to get
2328 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2329 array size at least. It is necessary to write \x00 == 0 to get something
2330 that is true only with -std. */
2331 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2332
2333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2334 inside strings and character constants. */
2335 #define FOO(x) '\''x'\''
2336 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2337
2338 int test (int i, double x);
2339 struct s1 {int (*f) (int a);};
2340 struct s2 {int (*f) (double a);};
2341 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2342 int, int);'
2343
2344 # Test code for whether the C compiler supports C89 (body of main).
2345 ac_c_conftest_c89_main='
2346 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2347 '
2348
2349 # Test code for whether the C compiler supports C99 (global declarations)
2350 ac_c_conftest_c99_globals='
2351 // Does the compiler advertise C99 conformance?
2352 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2353 # error "Compiler does not advertise C99 conformance"
2354 #endif
2355
2356 #include <stdbool.h>
2357 extern int puts (const char *);
2358 extern int printf (const char *, ...);
2359 extern int dprintf (int, const char *, ...);
2360 extern void *malloc (size_t);
2361
2362 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2363 // dprintf is used instead of fprintf to avoid needing to declare
2364 // FILE and stderr.
2365 #define debug(...) dprintf (2, __VA_ARGS__)
2366 #define showlist(...) puts (#__VA_ARGS__)
2367 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2368 static void
2369 test_varargs_macros (void)
2370 {
2371 int x = 1234;
2372 int y = 5678;
2373 debug ("Flag");
2374 debug ("X = %d\n", x);
2375 showlist (The first, second, and third items.);
2376 report (x>y, "x is %d but y is %d", x, y);
2377 }
2378
2379 // Check long long types.
2380 #define BIG64 18446744073709551615ull
2381 #define BIG32 4294967295ul
2382 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2383 #if !BIG_OK
2384 #error "your preprocessor is broken"
2385 #endif
2386 #if BIG_OK
2387 #else
2388 #error "your preprocessor is broken"
2389 #endif
2390 static long long int bignum = -9223372036854775807LL;
2391 static unsigned long long int ubignum = BIG64;
2392
2393 struct incomplete_array
2394 {
2395 int datasize;
2396 double data[];
2397 };
2398
2399 struct named_init {
2400 int number;
2401 const wchar_t *name;
2402 double average;
2403 };
2404
2405 typedef const char *ccp;
2406
2407 static inline int
2408 test_restrict (ccp restrict text)
2409 {
2410 // See if C++-style comments work.
2411 // Iterate through items via the restricted pointer.
2412 // Also check for declarations in for loops.
2413 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2414 continue;
2415 return 0;
2416 }
2417
2418 // Check varargs and va_copy.
2419 static bool
2420 test_varargs (const char *format, ...)
2421 {
2422 va_list args;
2423 va_start (args, format);
2424 va_list args_copy;
2425 va_copy (args_copy, args);
2426
2427 const char *str = "";
2428 int number = 0;
2429 float fnumber = 0;
2430
2431 while (*format)
2432 {
2433 switch (*format++)
2434 {
2435 case '\''s'\'': // string
2436 str = va_arg (args_copy, const char *);
2437 break;
2438 case '\''d'\'': // int
2439 number = va_arg (args_copy, int);
2440 break;
2441 case '\''f'\'': // float
2442 fnumber = va_arg (args_copy, double);
2443 break;
2444 default:
2445 break;
2446 }
2447 }
2448 va_end (args_copy);
2449 va_end (args);
2450
2451 return *str && number && fnumber;
2452 }
2453 '
2454
2455 # Test code for whether the C compiler supports C99 (body of main).
2456 ac_c_conftest_c99_main='
2457 // Check bool.
2458 _Bool success = false;
2459 success |= (argc != 0);
2460
2461 // Check restrict.
2462 if (test_restrict ("String literal") == 0)
2463 success = true;
2464 char *restrict newvar = "Another string";
2465
2466 // Check varargs.
2467 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2468 test_varargs_macros ();
2469
2470 // Check flexible array members.
2471 struct incomplete_array *ia =
2472 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2473 ia->datasize = 10;
2474 for (int i = 0; i < ia->datasize; ++i)
2475 ia->data[i] = i * 1.234;
2476
2477 // Check named initializers.
2478 struct named_init ni = {
2479 .number = 34,
2480 .name = L"Test wide string",
2481 .average = 543.34343,
2482 };
2483
2484 ni.number = 58;
2485
2486 int dynamic_array[ni.number];
2487 dynamic_array[0] = argv[0][0];
2488 dynamic_array[ni.number - 1] = 543;
2489
2490 // work around unused variable warnings
2491 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2492 || dynamic_array[ni.number - 1] != 543);
2493 '
2494
2495 # Test code for whether the C compiler supports C11 (global declarations)
2496 ac_c_conftest_c11_globals='
2497 // Does the compiler advertise C11 conformance?
2498 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2499 # error "Compiler does not advertise C11 conformance"
2500 #endif
2501
2502 // Check _Alignas.
2503 char _Alignas (double) aligned_as_double;
2504 char _Alignas (0) no_special_alignment;
2505 extern char aligned_as_int;
2506 char _Alignas (0) _Alignas (int) aligned_as_int;
2507
2508 // Check _Alignof.
2509 enum
2510 {
2511 int_alignment = _Alignof (int),
2512 int_array_alignment = _Alignof (int[100]),
2513 char_alignment = _Alignof (char)
2514 };
2515 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2516
2517 // Check _Noreturn.
2518 int _Noreturn does_not_return (void) { for (;;) continue; }
2519
2520 // Check _Static_assert.
2521 struct test_static_assert
2522 {
2523 int x;
2524 _Static_assert (sizeof (int) <= sizeof (long int),
2525 "_Static_assert does not work in struct");
2526 long int y;
2527 };
2528
2529 // Check UTF-8 literals.
2530 #define u8 syntax error!
2531 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2532
2533 // Check duplicate typedefs.
2534 typedef long *long_ptr;
2535 typedef long int *long_ptr;
2536 typedef long_ptr long_ptr;
2537
2538 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2539 struct anonymous
2540 {
2541 union {
2542 struct { int i; int j; };
2543 struct { int k; long int l; } w;
2544 };
2545 int m;
2546 } v1;
2547 '
2548
2549 # Test code for whether the C compiler supports C11 (body of main).
2550 ac_c_conftest_c11_main='
2551 _Static_assert ((offsetof (struct anonymous, i)
2552 == offsetof (struct anonymous, w.k)),
2553 "Anonymous union alignment botch");
2554 v1.i = 2;
2555 v1.w.k = 5;
2556 ok |= v1.i != 5;
2557 '
2558
2559 # Test code for whether the C compiler supports C11 (complete).
2560 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2561 ${ac_c_conftest_c99_globals}
2562 ${ac_c_conftest_c11_globals}
2563
2564 int
2565 main (int argc, char **argv)
2566 {
2567 int ok = 0;
2568 ${ac_c_conftest_c89_main}
2569 ${ac_c_conftest_c99_main}
2570 ${ac_c_conftest_c11_main}
2571 return ok;
2572 }
2573 "
2574
2575 # Test code for whether the C compiler supports C99 (complete).
2576 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2577 ${ac_c_conftest_c99_globals}
2578
2579 int
2580 main (int argc, char **argv)
2581 {
2582 int ok = 0;
2583 ${ac_c_conftest_c89_main}
2584 ${ac_c_conftest_c99_main}
2585 return ok;
2586 }
2587 "
2588
2589 # Test code for whether the C compiler supports C89 (complete).
2590 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2591
2592 int
2593 main (int argc, char **argv)
2594 {
2595 int ok = 0;
2596 ${ac_c_conftest_c89_main}
2597 return ok;
2598 }
2599 "
2600
2601 # Test code for whether the C++ compiler supports C++98 (global declarations)
2602 ac_cxx_conftest_cxx98_globals='
2603 // Does the compiler advertise C++98 conformance?
2604 #if !defined __cplusplus || __cplusplus < 199711L
2605 # error "Compiler does not advertise C++98 conformance"
2606 #endif
2607
2608 // These inclusions are to reject old compilers that
2609 // lack the unsuffixed header files.
2610 #include <cstdlib>
2611 #include <exception>
2612
2613 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2614 extern void assert (int);
2615 namespace std {
2616 extern int strcmp (const char *, const char *);
2617 }
2618
2619 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2620 using std::exception;
2621 using std::strcmp;
2622
2623 namespace {
2624
2625 void test_exception_syntax()
2626 {
2627 try {
2628 throw "test";
2629 } catch (const char *s) {
2630 // Extra parentheses suppress a warning when building autoconf itself,
2631 // due to lint rules shared with more typical C programs.
2632 assert (!(strcmp) (s, "test"));
2633 }
2634 }
2635
2636 template <typename T> struct test_template
2637 {
2638 T const val;
2639 explicit test_template(T t) : val(t) {}
2640 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2641 };
2642
2643 } // anonymous namespace
2644 '
2645
2646 # Test code for whether the C++ compiler supports C++98 (body of main)
2647 ac_cxx_conftest_cxx98_main='
2648 assert (argc);
2649 assert (! argv[0]);
2650 {
2651 test_exception_syntax ();
2652 test_template<double> tt (2.0);
2653 assert (tt.add (4) == 6.0);
2654 assert (true && !false);
2655 }
2656 '
2657
2658 # Test code for whether the C++ compiler supports C++11 (global declarations)
2659 ac_cxx_conftest_cxx11_globals='
2660 // Does the compiler advertise C++ 2011 conformance?
2661 #if !defined __cplusplus || __cplusplus < 201103L
2662 # error "Compiler does not advertise C++11 conformance"
2663 #endif
2664
2665 namespace cxx11test
2666 {
2667 constexpr int get_val() { return 20; }
2668
2669 struct testinit
2670 {
2671 int i;
2672 double d;
2673 };
2674
2675 class delegate
2676 {
2677 public:
2678 delegate(int n) : n(n) {}
2679 delegate(): delegate(2354) {}
2680
2681 virtual int getval() { return this->n; };
2682 protected:
2683 int n;
2684 };
2685
2686 class overridden : public delegate
2687 {
2688 public:
2689 overridden(int n): delegate(n) {}
2690 virtual int getval() override final { return this->n * 2; }
2691 };
2692
2693 class nocopy
2694 {
2695 public:
2696 nocopy(int i): i(i) {}
2697 nocopy() = default;
2698 nocopy(const nocopy&) = delete;
2699 nocopy & operator=(const nocopy&) = delete;
2700 private:
2701 int i;
2702 };
2703
2704 // for testing lambda expressions
2705 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2706 {
2707 return f(v);
2708 }
2709
2710 // for testing variadic templates and trailing return types
2711 template <typename V> auto sum(V first) -> V
2712 {
2713 return first;
2714 }
2715 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2716 {
2717 return first + sum(rest...);
2718 }
2719 }
2720 '
2721
2722 # Test code for whether the C++ compiler supports C++11 (body of main)
2723 ac_cxx_conftest_cxx11_main='
2724 {
2725 // Test auto and decltype
2726 auto a1 = 6538;
2727 auto a2 = 48573953.4;
2728 auto a3 = "String literal";
2729
2730 int total = 0;
2731 for (auto i = a3; *i; ++i) { total += *i; }
2732
2733 decltype(a2) a4 = 34895.034;
2734 }
2735 {
2736 // Test constexpr
2737 short sa[cxx11test::get_val()] = { 0 };
2738 }
2739 {
2740 // Test initializer lists
2741 cxx11test::testinit il = { 4323, 435234.23544 };
2742 }
2743 {
2744 // Test range-based for
2745 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2746 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2747 for (auto &x : array) { x += 23; }
2748 }
2749 {
2750 // Test lambda expressions
2751 using cxx11test::eval;
2752 assert (eval ([](int x) { return x*2; }, 21) == 42);
2753 double d = 2.0;
2754 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2755 assert (d == 5.0);
2756 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2757 assert (d == 5.0);
2758 }
2759 {
2760 // Test use of variadic templates
2761 using cxx11test::sum;
2762 auto a = sum(1);
2763 auto b = sum(1, 2);
2764 auto c = sum(1.0, 2.0, 3.0);
2765 }
2766 {
2767 // Test constructor delegation
2768 cxx11test::delegate d1;
2769 cxx11test::delegate d2();
2770 cxx11test::delegate d3(45);
2771 }
2772 {
2773 // Test override and final
2774 cxx11test::overridden o1(55464);
2775 }
2776 {
2777 // Test nullptr
2778 char *c = nullptr;
2779 }
2780 {
2781 // Test template brackets
2782 test_template<::test_template<int>> v(test_template<int>(12));
2783 }
2784 {
2785 // Unicode literals
2786 char const *utf8 = u8"UTF-8 string \u2500";
2787 char16_t const *utf16 = u"UTF-8 string \u2500";
2788 char32_t const *utf32 = U"UTF-32 string \u2500";
2789 }
2790 '
2791
2792 # Test code for whether the C compiler supports C++11 (complete).
2793 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2794 ${ac_cxx_conftest_cxx11_globals}
2795
2796 int
2797 main (int argc, char **argv)
2798 {
2799 int ok = 0;
2800 ${ac_cxx_conftest_cxx98_main}
2801 ${ac_cxx_conftest_cxx11_main}
2802 return ok;
2803 }
2804 "
2805
2806 # Test code for whether the C compiler supports C++98 (complete).
2807 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2808 int
2809 main (int argc, char **argv)
2810 {
2811 int ok = 0;
2812 ${ac_cxx_conftest_cxx98_main}
2813 return ok;
2814 }
2815 "
2816
2817 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2818 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2819 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2820 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2821 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2822 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2823 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2824 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2825 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2826
2827 # Auxiliary files required by this configure script.
2828 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2829
2830 # Locations in which to look for auxiliary files.
2831 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2832
2833 # Search for a directory containing all of the required auxiliary files,
2834 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2835 # If we don't find one directory that contains all the files we need,
2836 # we report the set of missing files from the *first* directory in
2837 # $ac_aux_dir_candidates and give up.
2838 ac_missing_aux_files=""
2839 ac_first_candidate=:
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 as_found=false
2843 for as_dir in $ac_aux_dir_candidates
2844 do
2845 IFS=$as_save_IFS
2846 case $as_dir in #(((
2847 '') as_dir=./ ;;
2848 */) ;;
2849 *) as_dir=$as_dir/ ;;
2850 esac
2851 as_found=:
2852
2853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2854 ac_aux_dir_found=yes
2855 ac_install_sh=
2856 for ac_aux in $ac_aux_files
2857 do
2858 # As a special case, if "install-sh" is required, that requirement
2859 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2860 # and $ac_install_sh is set appropriately for whichever one is found.
2861 if test x"$ac_aux" = x"install-sh"
2862 then
2863 if test -f "${as_dir}install-sh"; then
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2865 ac_install_sh="${as_dir}install-sh -c"
2866 elif test -f "${as_dir}install.sh"; then
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2868 ac_install_sh="${as_dir}install.sh -c"
2869 elif test -f "${as_dir}shtool"; then
2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2871 ac_install_sh="${as_dir}shtool install -c"
2872 else
2873 ac_aux_dir_found=no
2874 if $ac_first_candidate; then
2875 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2876 else
2877 break
2878 fi
2879 fi
2880 else
2881 if test -f "${as_dir}${ac_aux}"; then
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2883 else
2884 ac_aux_dir_found=no
2885 if $ac_first_candidate; then
2886 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2887 else
2888 break
2889 fi
2890 fi
2891 fi
2892 done
2893 if test "$ac_aux_dir_found" = yes; then
2894 ac_aux_dir="$as_dir"
2895 break
2896 fi
2897 ac_first_candidate=false
2898
2899 as_found=false
2900 done
2901 IFS=$as_save_IFS
2902 if $as_found
2903 then :
2904
2905 else $as_nop
2906 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2907 fi
2908
2909
2910 # These three variables are undocumented and unsupported,
2911 # and are intended to be withdrawn in a future Autoconf release.
2912 # They can cause serious problems if a builder's source tree is in a directory
2913 # whose full name contains unusual characters.
2914 if test -f "${ac_aux_dir}config.guess"; then
2915 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2916 fi
2917 if test -f "${ac_aux_dir}config.sub"; then
2918 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2919 fi
2920 if test -f "$ac_aux_dir/configure"; then
2921 ac_configure="$SHELL ${ac_aux_dir}configure"
2922 fi
2923
2924 # Check that the precious variables saved in the cache have kept the same
2925 # value.
2926 ac_cache_corrupted=false
2927 for ac_var in $ac_precious_vars; do
2928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2929 eval ac_new_set=\$ac_env_${ac_var}_set
2930 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2931 eval ac_new_val=\$ac_env_${ac_var}_value
2932 case $ac_old_set,$ac_new_set in
2933 set,)
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2935 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2936 ac_cache_corrupted=: ;;
2937 ,set)
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2939 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2940 ac_cache_corrupted=: ;;
2941 ,);;
2942 *)
2943 if test "x$ac_old_val" != "x$ac_new_val"; then
2944 # differences in whitespace do not lead to failure.
2945 ac_old_val_w=`echo x $ac_old_val`
2946 ac_new_val_w=`echo x $ac_new_val`
2947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2949 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2950 ac_cache_corrupted=:
2951 else
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2953 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2954 eval $ac_var=\$ac_old_val
2955 fi
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2957 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2959 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2960 fi;;
2961 esac
2962 # Pass precious variables to config.status.
2963 if test "$ac_new_set" = set; then
2964 case $ac_new_val in
2965 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2966 *) ac_arg=$ac_var=$ac_new_val ;;
2967 esac
2968 case " $ac_configure_args " in
2969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2970 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2971 esac
2972 fi
2973 done
2974 if $ac_cache_corrupted; then
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2978 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2979 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2980 and start over" "$LINENO" 5
2981 fi
2982 ## -------------------- ##
2983 ## Main body of script. ##
2984 ## -------------------- ##
2985
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991
2992
2993
2994 # Specify directory where m4 macros may be found.
2995
2996
2997 #
2998 # Libtool library revision control info
2999 #
3000 LIBRARY_CURRENT=2
3001 LIBRARY_REVISION=16
3002 LIBRARY_AGE=0
3003
3004
3005 # Obtain system type by running config.guess
3006
3007
3008
3009 # Make sure we can run config.sub.
3010 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3011 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3012
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3014 printf %s "checking build system type... " >&6; }
3015 if test ${ac_cv_build+y}
3016 then :
3017 printf %s "(cached) " >&6
3018 else $as_nop
3019 ac_build_alias=$build_alias
3020 test "x$ac_build_alias" = x &&
3021 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3022 test "x$ac_build_alias" = x &&
3023 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3024 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3026
3027 fi
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3029 printf "%s\n" "$ac_cv_build" >&6; }
3030 case $ac_cv_build in
3031 *-*-*) ;;
3032 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3033 esac
3034 build=$ac_cv_build
3035 ac_save_IFS=$IFS; IFS='-'
3036 set x $ac_cv_build
3037 shift
3038 build_cpu=$1
3039 build_vendor=$2
3040 shift; shift
3041 # Remember, the first character of IFS is used to create $*,
3042 # except with old shells:
3043 build_os=$*
3044 IFS=$ac_save_IFS
3045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3046
3047
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3049 printf %s "checking host system type... " >&6; }
3050 if test ${ac_cv_host+y}
3051 then :
3052 printf %s "(cached) " >&6
3053 else $as_nop
3054 if test "x$host_alias" = x; then
3055 ac_cv_host=$ac_cv_build
3056 else
3057 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3058 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3059 fi
3060
3061 fi
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3063 printf "%s\n" "$ac_cv_host" >&6; }
3064 case $ac_cv_host in
3065 *-*-*) ;;
3066 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3067 esac
3068 host=$ac_cv_host
3069 ac_save_IFS=$IFS; IFS='-'
3070 set x $ac_cv_host
3071 shift
3072 host_cpu=$1
3073 host_vendor=$2
3074 shift; shift
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3077 host_os=$*
3078 IFS=$ac_save_IFS
3079 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3080
3081
3082
3083 am__api_version='1.15'
3084
3085
3086 # Find a good install program. We prefer a C program (faster),
3087 # so one script is as good as another. But avoid the broken or
3088 # incompatible versions:
3089 # SysV /etc/install, /usr/sbin/install
3090 # SunOS /usr/etc/install
3091 # IRIX /sbin/install
3092 # AIX /bin/install
3093 # AmigaOS /C/install, which installs bootblocks on floppy discs
3094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097 # OS/2's system install, which has a completely different semantic
3098 # ./install, which can be erroneously created by make from ./install.sh.
3099 # Reject install programs that cannot install multiple files.
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3101 printf %s "checking for a BSD-compatible install... " >&6; }
3102 if test -z "$INSTALL"; then
3103 if test ${ac_cv_path_install+y}
3104 then :
3105 printf %s "(cached) " >&6
3106 else $as_nop
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 case $as_dir in #(((
3112 '') as_dir=./ ;;
3113 */) ;;
3114 *) as_dir=$as_dir/ ;;
3115 esac
3116 # Account for fact that we put trailing slashes in our PATH walk.
3117 case $as_dir in #((
3118 ./ | /[cC]/* | \
3119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3120 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3121 /usr/ucb/* ) ;;
3122 *)
3123 # OSF1 and SCO ODT 3.0 have their own names for install.
3124 # Don't use installbsd from OSF since it installs stuff as root
3125 # by default.
3126 for ac_prog in ginstall scoinst install; do
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3129 if test $ac_prog = install &&
3130 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3131 # AIX install. It has an incompatible calling convention.
3132 :
3133 elif test $ac_prog = install &&
3134 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135 # program-specific install script used by HP pwplus--don't use.
3136 :
3137 else
3138 rm -rf conftest.one conftest.two conftest.dir
3139 echo one > conftest.one
3140 echo two > conftest.two
3141 mkdir conftest.dir
3142 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3143 test -s conftest.one && test -s conftest.two &&
3144 test -s conftest.dir/conftest.one &&
3145 test -s conftest.dir/conftest.two
3146 then
3147 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3148 break 3
3149 fi
3150 fi
3151 fi
3152 done
3153 done
3154 ;;
3155 esac
3156
3157 done
3158 IFS=$as_save_IFS
3159
3160 rm -rf conftest.one conftest.two conftest.dir
3161
3162 fi
3163 if test ${ac_cv_path_install+y}; then
3164 INSTALL=$ac_cv_path_install
3165 else
3166 # As a last resort, use the slow shell script. Don't cache a
3167 # value for INSTALL within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the value is a relative name.
3170 INSTALL=$ac_install_sh
3171 fi
3172 fi
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3174 printf "%s\n" "$INSTALL" >&6; }
3175
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3179
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3181
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3183
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3185 printf %s "checking whether build environment is sane... " >&6; }
3186 # Reject unsafe characters in $srcdir or the absolute working directory
3187 # name. Accept space and tab only in the latter.
3188 am_lf='
3189 '
3190 case `pwd` in
3191 *[\\\"\#\$\&\'\`$am_lf]*)
3192 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3193 esac
3194 case $srcdir in
3195 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3196 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3197 esac
3198
3199 # Do 'set' in a subshell so we don't clobber the current shell's
3200 # arguments. Must try -L first in case configure is actually a
3201 # symlink; some systems play weird games with the mod time of symlinks
3202 # (eg FreeBSD returns the mod time of the symlink's containing
3203 # directory).
3204 if (
3205 am_has_slept=no
3206 for am_try in 1 2; do
3207 echo "timestamp, slept: $am_has_slept" > conftest.file
3208 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3209 if test "$*" = "X"; then
3210 # -L didn't work.
3211 set X `ls -t "$srcdir/configure" conftest.file`
3212 fi
3213 if test "$*" != "X $srcdir/configure conftest.file" \
3214 && test "$*" != "X conftest.file $srcdir/configure"; then
3215
3216 # If neither matched, then we have a broken ls. This can happen
3217 # if, for instance, CONFIG_SHELL is bash and it inherits a
3218 # broken ls alias from the environment. This has actually
3219 # happened. Such a system could not be considered "sane".
3220 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3221 alias in your environment" "$LINENO" 5
3222 fi
3223 if test "$2" = conftest.file || test $am_try -eq 2; then
3224 break
3225 fi
3226 # Just in case.
3227 sleep 1
3228 am_has_slept=yes
3229 done
3230 test "$2" = conftest.file
3231 )
3232 then
3233 # Ok.
3234 :
3235 else
3236 as_fn_error $? "newly created file is older than distributed files!
3237 Check your system clock" "$LINENO" 5
3238 fi
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 printf "%s\n" "yes" >&6; }
3241 # If we didn't sleep, we still need to ensure time stamps of config.status and
3242 # generated files are strictly newer.
3243 am_sleep_pid=
3244 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3245 ( sleep 1 ) &
3246 am_sleep_pid=$!
3247 fi
3248
3249 rm -f conftest.file
3250
3251 test "$program_prefix" != NONE &&
3252 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3253 # Use a double $ so make ignores it.
3254 test "$program_suffix" != NONE &&
3255 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3256 # Double any \ or $.
3257 # By default was `s,x,x', remove it if useless.
3258 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3259 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3260
3261
3262 # Expand $ac_aux_dir to an absolute path.
3263 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3264
3265
3266 if test x"${MISSING+set}" != xset; then
3267 MISSING="\${SHELL} '$am_aux_dir/missing'"
3268 fi
3269 # Use eval to expand $SHELL
3270 if eval "$MISSING --is-lightweight"; then
3271 am_missing_run="$MISSING "
3272 else
3273 am_missing_run=
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3275 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3276 fi
3277
3278 if test x"${install_sh+set}" != xset; then
3279 case $am_aux_dir in
3280 *\ * | *\ *)
3281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3282 *)
3283 install_sh="\${SHELL} $am_aux_dir/install-sh"
3284 esac
3285 fi
3286
3287 # Installed binaries are usually stripped using 'strip' when the user
3288 # run "make install-strip". However 'strip' might not be the right
3289 # tool to use in cross-compilation environments, therefore Automake
3290 # will honor the 'STRIP' environment variable to overrule this program.
3291 if test "$cross_compiling" != no; then
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}strip; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_STRIP+y}
3298 then :
3299 printf %s "(cached) " >&6
3300 else $as_nop
3301 if test -n "$STRIP"; then
3302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 case $as_dir in #(((
3309 '') as_dir=./ ;;
3310 */) ;;
3311 *) as_dir=$as_dir/ ;;
3312 esac
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 STRIP=$ac_cv_prog_STRIP
3326 if test -n "$STRIP"; then
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3328 printf "%s\n" "$STRIP" >&6; }
3329 else
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$ac_cv_prog_STRIP"; then
3337 ac_ct_STRIP=$STRIP
3338 # Extract the first word of "strip", so it can be a program name with args.
3339 set dummy strip; ac_word=$2
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 printf %s "checking for $ac_word... " >&6; }
3342 if test ${ac_cv_prog_ac_ct_STRIP+y}
3343 then :
3344 printf %s "(cached) " >&6
3345 else $as_nop
3346 if test -n "$ac_ct_STRIP"; then
3347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 case $as_dir in #(((
3354 '') as_dir=./ ;;
3355 */) ;;
3356 *) as_dir=$as_dir/ ;;
3357 esac
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_STRIP="strip"
3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3371 if test -n "$ac_ct_STRIP"; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3373 printf "%s\n" "$ac_ct_STRIP" >&6; }
3374 else
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 fi
3378
3379 if test "x$ac_ct_STRIP" = x; then
3380 STRIP=":"
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388 STRIP=$ac_ct_STRIP
3389 fi
3390 else
3391 STRIP="$ac_cv_prog_STRIP"
3392 fi
3393
3394 fi
3395 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3396
3397
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3399 printf %s "checking for a race-free mkdir -p... " >&6; }
3400 if test -z "$MKDIR_P"; then
3401 if test ${ac_cv_path_mkdir+y}
3402 then :
3403 printf %s "(cached) " >&6
3404 else $as_nop
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3407 do
3408 IFS=$as_save_IFS
3409 case $as_dir in #(((
3410 '') as_dir=./ ;;
3411 */) ;;
3412 *) as_dir=$as_dir/ ;;
3413 esac
3414 for ac_prog in mkdir gmkdir; do
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3417 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3418 'mkdir ('*'coreutils) '* | \
3419 'BusyBox '* | \
3420 'mkdir (fileutils) '4.1*)
3421 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3422 break 3;;
3423 esac
3424 done
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 fi
3430
3431 test -d ./--version && rmdir ./--version
3432 if test ${ac_cv_path_mkdir+y}; then
3433 MKDIR_P="$ac_cv_path_mkdir -p"
3434 else
3435 # As a last resort, use the slow shell script. Don't cache a
3436 # value for MKDIR_P within a source directory, because that will
3437 # break other packages using the cache if that directory is
3438 # removed, or if the value is a relative name.
3439 MKDIR_P="$ac_install_sh -d"
3440 fi
3441 fi
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3443 printf "%s\n" "$MKDIR_P" >&6; }
3444
3445 for ac_prog in gawk mawk nawk awk
3446 do
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 printf %s "checking for $ac_word... " >&6; }
3451 if test ${ac_cv_prog_AWK+y}
3452 then :
3453 printf %s "(cached) " >&6
3454 else $as_nop
3455 if test -n "$AWK"; then
3456 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 case $as_dir in #(((
3463 '') as_dir=./ ;;
3464 */) ;;
3465 *) as_dir=$as_dir/ ;;
3466 esac
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_AWK="$ac_prog"
3470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 AWK=$ac_cv_prog_AWK
3480 if test -n "$AWK"; then
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3482 printf "%s\n" "$AWK" >&6; }
3483 else
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 printf "%s\n" "no" >&6; }
3486 fi
3487
3488
3489 test -n "$AWK" && break
3490 done
3491
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3493 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3494 set x ${MAKE-make}
3495 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3496 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3497 then :
3498 printf %s "(cached) " >&6
3499 else $as_nop
3500 cat >conftest.make <<\_ACEOF
3501 SHELL = /bin/sh
3502 all:
3503 @echo '@@@%%%=$(MAKE)=@@@%%%'
3504 _ACEOF
3505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3507 *@@@%%%=?*=@@@%%%*)
3508 eval ac_cv_prog_make_${ac_make}_set=yes;;
3509 *)
3510 eval ac_cv_prog_make_${ac_make}_set=no;;
3511 esac
3512 rm -f conftest.make
3513 fi
3514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 printf "%s\n" "yes" >&6; }
3517 SET_MAKE=
3518 else
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 printf "%s\n" "no" >&6; }
3521 SET_MAKE="MAKE=${MAKE-make}"
3522 fi
3523
3524 rm -rf .tst 2>/dev/null
3525 mkdir .tst 2>/dev/null
3526 if test -d .tst; then
3527 am__leading_dot=.
3528 else
3529 am__leading_dot=_
3530 fi
3531 rmdir .tst 2>/dev/null
3532
3533 # Check whether --enable-silent-rules was given.
3534 if test ${enable_silent_rules+y}
3535 then :
3536 enableval=$enable_silent_rules;
3537 fi
3538
3539 case $enable_silent_rules in # (((
3540 yes) AM_DEFAULT_VERBOSITY=0;;
3541 no) AM_DEFAULT_VERBOSITY=1;;
3542 *) AM_DEFAULT_VERBOSITY=1;;
3543 esac
3544 am_make=${MAKE-make}
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3546 printf %s "checking whether $am_make supports nested variables... " >&6; }
3547 if test ${am_cv_make_support_nested_variables+y}
3548 then :
3549 printf %s "(cached) " >&6
3550 else $as_nop
3551 if printf "%s\n" 'TRUE=$(BAR$(V))
3552 BAR0=false
3553 BAR1=true
3554 V=1
3555 am__doit:
3556 @$(TRUE)
3557 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3558 am_cv_make_support_nested_variables=yes
3559 else
3560 am_cv_make_support_nested_variables=no
3561 fi
3562 fi
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3564 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3565 if test $am_cv_make_support_nested_variables = yes; then
3566 AM_V='$(V)'
3567 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3568 else
3569 AM_V=$AM_DEFAULT_VERBOSITY
3570 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3571 fi
3572 AM_BACKSLASH='\'
3573
3574 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3575 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3576 # is not polluted with repeated "-I."
3577 am__isrc=' -I$(srcdir)'
3578 # test to see if srcdir already configured
3579 if test -f $srcdir/config.status; then
3580 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3581 fi
3582 fi
3583
3584 # test whether we have cygpath
3585 if test -z "$CYGPATH_W"; then
3586 if (cygpath --version) >/dev/null 2>/dev/null; then
3587 CYGPATH_W='cygpath -w'
3588 else
3589 CYGPATH_W=echo
3590 fi
3591 fi
3592
3593
3594 # Define the identity of the package.
3595 PACKAGE='lcms2mt'
3596 VERSION='2.16'
3597
3598
3599 # Some tools Automake needs.
3600
3601 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3602
3603
3604 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3605
3606
3607 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3608
3609
3610 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3611
3612
3613 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3614
3615 # For better backward compatibility. To be removed once Automake 1.9.x
3616 # dies out for good. For more background, see:
3617 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3618 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3619 mkdir_p='$(MKDIR_P)'
3620
3621 # We need awk for the "check" target (and possibly the TAP driver). The
3622 # system "awk" is bad on some platforms.
3623 # Always define AMTAR for backward compatibility. Yes, it's still used
3624 # in the wild :-( We should find a proper way to deprecate it ...
3625 AMTAR='$${TAR-tar}'
3626
3627
3628 # We'll loop over all known methods to create a tar archive until one works.
3629 _am_tools='gnutar plaintar pax cpio none'
3630
3631 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3632 # There is notably a 21 bits limit for the UID and the GID. In fact,
3633 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3634 # and bug#13588).
3635 am_max_uid=2097151 # 2^21 - 1
3636 am_max_gid=$am_max_uid
3637 # The $UID and $GID variables are not portable, so we need to resort
3638 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3639 # below are definitely unexpected, so allow the users to see them
3640 # (that is, avoid stderr redirection).
3641 am_uid=`id -u || echo unknown`
3642 am_gid=`id -g || echo unknown`
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3644 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3645 if test $am_uid -le $am_max_uid; then
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 printf "%s\n" "yes" >&6; }
3648 else
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 printf "%s\n" "no" >&6; }
3651 _am_tools=none
3652 fi
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3654 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3655 if test $am_gid -le $am_max_gid; then
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657 printf "%s\n" "yes" >&6; }
3658 else
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 printf "%s\n" "no" >&6; }
3661 _am_tools=none
3662 fi
3663
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3665 printf %s "checking how to create a ustar tar archive... " >&6; }
3666
3667 # Go ahead even if we have the value already cached. We do so because we
3668 # need to set the values for the 'am__tar' and 'am__untar' variables.
3669 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3670
3671 for _am_tool in $_am_tools; do
3672 case $_am_tool in
3673 gnutar)
3674 for _am_tar in tar gnutar gtar; do
3675 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3676 ($_am_tar --version) >&5 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && break
3680 done
3681 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3682 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3683 am__untar="$_am_tar -xf -"
3684 ;;
3685 plaintar)
3686 # Must skip GNU tar: if it does not support --format= it doesn't create
3687 # ustar tarball either.
3688 (tar --version) >/dev/null 2>&1 && continue
3689 am__tar='tar chf - "$$tardir"'
3690 am__tar_='tar chf - "$tardir"'
3691 am__untar='tar xf -'
3692 ;;
3693 pax)
3694 am__tar='pax -L -x ustar -w "$$tardir"'
3695 am__tar_='pax -L -x ustar -w "$tardir"'
3696 am__untar='pax -r'
3697 ;;
3698 cpio)
3699 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3700 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3701 am__untar='cpio -i -H ustar -d'
3702 ;;
3703 none)
3704 am__tar=false
3705 am__tar_=false
3706 am__untar=false
3707 ;;
3708 esac
3709
3710 # If the value was cached, stop now. We just wanted to have am__tar
3711 # and am__untar set.
3712 test -n "${am_cv_prog_tar_ustar}" && break
3713
3714 # tar/untar a dummy directory, and stop if the command works.
3715 rm -rf conftest.dir
3716 mkdir conftest.dir
3717 echo GrepMe > conftest.dir/file
3718 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3719 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }
3723 rm -rf conftest.dir
3724 if test -s conftest.tar; then
3725 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3726 ($am__untar <conftest.tar) >&5 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }
3730 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3731 (cat conftest.dir/file) >&5 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }
3735 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3736 fi
3737 done
3738 rm -rf conftest.dir
3739
3740 if test ${am_cv_prog_tar_ustar+y}
3741 then :
3742 printf %s "(cached) " >&6
3743 else $as_nop
3744 am_cv_prog_tar_ustar=$_am_tool
3745 fi
3746
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3748 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3749
3750
3751
3752
3753
3754 # Variables for tags utilities; see am/tags.am
3755 if test -z "$CTAGS"; then
3756 CTAGS=ctags
3757 fi
3758
3759 if test -z "$ETAGS"; then
3760 ETAGS=etags
3761 fi
3762
3763 if test -z "$CSCOPE"; then
3764 CSCOPE=cscope
3765 fi
3766
3767
3768
3769 # POSIX will say in a future version that running "rm -f" with no argument
3770 # is OK; and we want to be able to make that assumption in our Makefile
3771 # recipes. So use an aggressive probe to check that the usage we want is
3772 # actually supported "in the wild" to an acceptable degree.
3773 # See automake bug#10828.
3774 # To make any issue more visible, cause the running configure to be aborted
3775 # by default if the 'rm' program in use doesn't match our expectations; the
3776 # user can still override this though.
3777 if rm -f && rm -fr && rm -rf; then : OK; else
3778 cat >&2 <<'END'
3779 Oops!
3780
3781 Your 'rm' program seems unable to run without file operands specified
3782 on the command line, even when the '-f' option is present. This is contrary
3783 to the behaviour of most rm programs out there, and not conforming with
3784 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3785
3786 Please tell bug-automake@gnu.org about your system, including the value
3787 of your $PATH and any error possibly output before this message. This
3788 can help us improve future automake versions.
3789
3790 END
3791 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3792 echo 'Configuration will proceed anyway, since you have set the' >&2
3793 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3794 echo >&2
3795 else
3796 cat >&2 <<'END'
3797 Aborting the configuration process, to ensure you take notice of the issue.
3798
3799 You can download and install GNU coreutils to get an 'rm' implementation
3800 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3801
3802 If you want to complete the configuration process using your problematic
3803 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3804 to "yes", and re-run configure.
3805
3806 END
3807 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3808 fi
3809 fi
3810
3811
3812
3813 # Check for programs
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 printf %s "checking for $ac_word... " >&6; }
3833 if test ${ac_cv_prog_CC+y}
3834 then :
3835 printf %s "(cached) " >&6
3836 else $as_nop
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3842 do
3843 IFS=$as_save_IFS
3844 case $as_dir in #(((
3845 '') as_dir=./ ;;
3846 */) ;;
3847 *) as_dir=$as_dir/ ;;
3848 esac
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 printf "%s\n" "$CC" >&6; }
3865 else
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 printf "%s\n" "no" >&6; }
3868 fi
3869
3870
3871 fi
3872 if test -z "$ac_cv_prog_CC"; then
3873 ac_ct_CC=$CC
3874 # Extract the first word of "gcc", so it can be a program name with args.
3875 set dummy gcc; ac_word=$2
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 printf %s "checking for $ac_word... " >&6; }
3878 if test ${ac_cv_prog_ac_ct_CC+y}
3879 then :
3880 printf %s "(cached) " >&6
3881 else $as_nop
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888 IFS=$as_save_IFS
3889 case $as_dir in #(((
3890 '') as_dir=./ ;;
3891 */) ;;
3892 *) as_dir=$as_dir/ ;;
3893 esac
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_CC="gcc"
3897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900 done
3901 done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907 if test -n "$ac_ct_CC"; then
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3909 printf "%s\n" "$ac_ct_CC" >&6; }
3910 else
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 printf "%s\n" "no" >&6; }
3913 fi
3914
3915 if test "x$ac_ct_CC" = x; then
3916 CC=""
3917 else
3918 case $cross_compiling:$ac_tool_warned in
3919 yes:)
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3923 esac
3924 CC=$ac_ct_CC
3925 fi
3926 else
3927 CC="$ac_cv_prog_CC"
3928 fi
3929
3930 if test -z "$CC"; then
3931 if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}cc; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_CC+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else $as_nop
3940 if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 case $as_dir in #(((
3948 '') as_dir=./ ;;
3949 */) ;;
3950 *) as_dir=$as_dir/ ;;
3951 esac
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="${ac_tool_prefix}cc"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 printf "%s\n" "$CC" >&6; }
3968 else
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 printf "%s\n" "no" >&6; }
3971 fi
3972
3973
3974 fi
3975 fi
3976 if test -z "$CC"; then
3977 # Extract the first word of "cc", so it can be a program name with args.
3978 set dummy cc; ac_word=$2
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 printf %s "checking for $ac_word... " >&6; }
3981 if test ${ac_cv_prog_CC+y}
3982 then :
3983 printf %s "(cached) " >&6
3984 else $as_nop
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 ac_prog_rejected=no
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001 ac_prog_rejected=yes
4002 continue
4003 fi
4004 ac_cv_prog_CC="cc"
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 if test $ac_prog_rejected = yes; then
4013 # We found a bogon in the path, so make sure we never use it.
4014 set dummy $ac_cv_prog_CC
4015 shift
4016 if test $# != 0; then
4017 # We chose a different compiler from the bogus one.
4018 # However, it has the same basename, so the bogon will be chosen
4019 # first if we set CC to just the basename; use the full file name.
4020 shift
4021 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4022 fi
4023 fi
4024 fi
4025 fi
4026 CC=$ac_cv_prog_CC
4027 if test -n "$CC"; then
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 printf "%s\n" "$CC" >&6; }
4030 else
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 printf "%s\n" "no" >&6; }
4033 fi
4034
4035
4036 fi
4037 if test -z "$CC"; then
4038 if test -n "$ac_tool_prefix"; then
4039 for ac_prog in cl.exe
4040 do
4041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 printf %s "checking for $ac_word... " >&6; }
4045 if test ${ac_cv_prog_CC+y}
4046 then :
4047 printf %s "(cached) " >&6
4048 else $as_nop
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 case $as_dir in #(((
4057 '') as_dir=./ ;;
4058 */) ;;
4059 *) as_dir=$as_dir/ ;;
4060 esac
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 printf "%s\n" "$CC" >&6; }
4077 else
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 printf "%s\n" "no" >&6; }
4080 fi
4081
4082
4083 test -n "$CC" && break
4084 done
4085 fi
4086 if test -z "$CC"; then
4087 ac_ct_CC=$CC
4088 for ac_prog in cl.exe
4089 do
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else $as_nop
4098 if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="$ac_prog"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4125 printf "%s\n" "$ac_ct_CC" >&6; }
4126 else
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 printf "%s\n" "no" >&6; }
4129 fi
4130
4131
4132 test -n "$ac_ct_CC" && break
4133 done
4134
4135 if test "x$ac_ct_CC" = x; then
4136 CC=""
4137 else
4138 case $cross_compiling:$ac_tool_warned in
4139 yes:)
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142 ac_tool_warned=yes ;;
4143 esac
4144 CC=$ac_ct_CC
4145 fi
4146 fi
4147
4148 fi
4149 if test -z "$CC"; then
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}clang; ac_word=$2
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 printf %s "checking for $ac_word... " >&6; }
4155 if test ${ac_cv_prog_CC+y}
4156 then :
4157 printf %s "(cached) " >&6
4158 else $as_nop
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 case $as_dir in #(((
4167 '') as_dir=./ ;;
4168 */) ;;
4169 *) as_dir=$as_dir/ ;;
4170 esac
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CC="${ac_tool_prefix}clang"
4174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177 done
4178 done
4179 IFS=$as_save_IFS
4180
4181 fi
4182 fi
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf "%s\n" "$CC" >&6; }
4187 else
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf "%s\n" "no" >&6; }
4190 fi
4191
4192
4193 fi
4194 if test -z "$ac_cv_prog_CC"; then
4195 ac_ct_CC=$CC
4196 # Extract the first word of "clang", so it can be a program name with args.
4197 set dummy clang; ac_word=$2
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_ac_ct_CC+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else $as_nop
4204 if test -n "$ac_ct_CC"; then
4205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 case $as_dir in #(((
4212 '') as_dir=./ ;;
4213 */) ;;
4214 *) as_dir=$as_dir/ ;;
4215 esac
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_ac_ct_CC="clang"
4219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 printf "%s\n" "$ac_ct_CC" >&6; }
4232 else
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 printf "%s\n" "no" >&6; }
4235 fi
4236
4237 if test "x$ac_ct_CC" = x; then
4238 CC=""
4239 else
4240 case $cross_compiling:$ac_tool_warned in
4241 yes:)
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned=yes ;;
4245 esac
4246 CC=$ac_ct_CC
4247 fi
4248 else
4249 CC="$ac_cv_prog_CC"
4250 fi
4251
4252 fi
4253
4254
4255 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details" "$LINENO" 5; }
4259
4260 # Provide some information about the compiler.
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4262 set X $ac_compile
4263 ac_compiler=$2
4264 for ac_option in --version -v -V -qversion -version; do
4265 { { ac_try="$ac_compiler $ac_option >&5"
4266 case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 printf "%s\n" "$ac_try_echo"; } >&5
4272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4273 ac_status=$?
4274 if test -s conftest.err; then
4275 sed '10a\
4276 ... rest of stderr output deleted ...
4277 10q' conftest.err >conftest.er1
4278 cat conftest.er1 >&5
4279 fi
4280 rm -f conftest.er1 conftest.err
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }
4283 done
4284
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287
4288 int
4289 main (void)
4290 {
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 ac_clean_files_save=$ac_clean_files
4297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4298 # Try to create an executable without -o first, disregard a.out.
4299 # It will help us diagnose broken compilers, and finding out an intuition
4300 # of exeext.
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 printf %s "checking whether the C compiler works... " >&6; }
4303 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4304
4305 # The possible output files:
4306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4307
4308 ac_rmfiles=
4309 for ac_file in $ac_files
4310 do
4311 case $ac_file in
4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4314 esac
4315 done
4316 rm -f $ac_rmfiles
4317
4318 if { { ac_try="$ac_link_default"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 printf "%s\n" "$ac_try_echo"; } >&5
4325 (eval "$ac_link_default") 2>&5
4326 ac_status=$?
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4329 then :
4330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4334 # Autoconf.
4335 for ac_file in $ac_files ''
4336 do
4337 test -f "$ac_file" || continue
4338 case $ac_file in
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4340 ;;
4341 [ab].out )
4342 # We found the default executable, but exeext='' is most
4343 # certainly right.
4344 break;;
4345 *.* )
4346 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4347 then :; else
4348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349 fi
4350 # We set ac_cv_exeext here because the later test for it is not
4351 # safe: cross compilers may not add the suffix if given an `-o'
4352 # argument, so we may need to know it at that point already.
4353 # Even if this section looks crufty: it has the advantage of
4354 # actually working.
4355 break;;
4356 * )
4357 break;;
4358 esac
4359 done
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4361
4362 else $as_nop
4363 ac_file=''
4364 fi
4365 if test -z "$ac_file"
4366 then :
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 printf "%s\n" "no" >&6; }
4369 printf "%s\n" "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4374 as_fn_error 77 "C compiler cannot create executables
4375 See \`config.log' for more details" "$LINENO" 5; }
4376 else $as_nop
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 printf "%s\n" "yes" >&6; }
4379 fi
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4381 printf %s "checking for C compiler default output file name... " >&6; }
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4383 printf "%s\n" "$ac_file" >&6; }
4384 ac_exeext=$ac_cv_exeext
4385
4386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4387 ac_clean_files=$ac_clean_files_save
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4389 printf %s "checking for suffix of executables... " >&6; }
4390 if { { ac_try="$ac_link"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 printf "%s\n" "$ac_try_echo"; } >&5
4397 (eval "$ac_link") 2>&5
4398 ac_status=$?
4399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4401 then :
4402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4404 # work properly (i.e., refer to `conftest.exe'), while it won't with
4405 # `rm'.
4406 for ac_file in conftest.exe conftest conftest.*; do
4407 test -f "$ac_file" || continue
4408 case $ac_file in
4409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411 break;;
4412 * ) break;;
4413 esac
4414 done
4415 else $as_nop
4416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4418 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4419 See \`config.log' for more details" "$LINENO" 5; }
4420 fi
4421 rm -f conftest conftest$ac_cv_exeext
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4423 printf "%s\n" "$ac_cv_exeext" >&6; }
4424
4425 rm -f conftest.$ac_ext
4426 EXEEXT=$ac_cv_exeext
4427 ac_exeext=$EXEEXT
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <stdio.h>
4431 int
4432 main (void)
4433 {
4434 FILE *f = fopen ("conftest.out", "w");
4435 return ferror (f) || fclose (f) != 0;
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 ac_clean_files="$ac_clean_files conftest.out"
4442 # Check that the compiler produces executables we can run. If not, either
4443 # the compiler is broken, or we cross compile.
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4445 printf %s "checking whether we are cross compiling... " >&6; }
4446 if test "$cross_compiling" != yes; then
4447 { { ac_try="$ac_link"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 printf "%s\n" "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
4455 ac_status=$?
4456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458 if { ac_try='./conftest$ac_cv_exeext'
4459 { { case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 printf "%s\n" "$ac_try_echo"; } >&5
4465 (eval "$ac_try") 2>&5
4466 ac_status=$?
4467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; }; then
4469 cross_compiling=no
4470 else
4471 if test "$cross_compiling" = maybe; then
4472 cross_compiling=yes
4473 else
4474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error 77 "cannot run C compiled programs.
4477 If you meant to cross compile, use \`--host'.
4478 See \`config.log' for more details" "$LINENO" 5; }
4479 fi
4480 fi
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4483 printf "%s\n" "$cross_compiling" >&6; }
4484
4485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4486 ac_clean_files=$ac_clean_files_save
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4488 printf %s "checking for suffix of object files... " >&6; }
4489 if test ${ac_cv_objext+y}
4490 then :
4491 printf %s "(cached) " >&6
4492 else $as_nop
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495
4496 int
4497 main (void)
4498 {
4499
4500 ;
4501 return 0;
4502 }
4503 _ACEOF
4504 rm -f conftest.o conftest.obj
4505 if { { ac_try="$ac_compile"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 printf "%s\n" "$ac_try_echo"; } >&5
4512 (eval "$ac_compile") 2>&5
4513 ac_status=$?
4514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 then :
4517 for ac_file in conftest.o conftest.obj conftest.*; do
4518 test -f "$ac_file" || continue;
4519 case $ac_file in
4520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4522 break;;
4523 esac
4524 done
4525 else $as_nop
4526 printf "%s\n" "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot compute suffix of object files: cannot compile
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4535 fi
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4537 printf "%s\n" "$ac_cv_objext" >&6; }
4538 OBJEXT=$ac_cv_objext
4539 ac_objext=$OBJEXT
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4541 printf %s "checking whether the compiler supports GNU C... " >&6; }
4542 if test ${ac_cv_c_compiler_gnu+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else $as_nop
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548
4549 int
4550 main (void)
4551 {
4552 #ifndef __GNUC__
4553 choke me
4554 #endif
4555
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 if ac_fn_c_try_compile "$LINENO"
4561 then :
4562 ac_compiler_gnu=yes
4563 else $as_nop
4564 ac_compiler_gnu=no
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4568
4569 fi
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4571 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574 if test $ac_compiler_gnu = yes; then
4575 GCC=yes
4576 else
4577 GCC=
4578 fi
4579 ac_test_CFLAGS=${CFLAGS+y}
4580 ac_save_CFLAGS=$CFLAGS
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 printf %s "checking whether $CC accepts -g... " >&6; }
4583 if test ${ac_cv_prog_cc_g+y}
4584 then :
4585 printf %s "(cached) " >&6
4586 else $as_nop
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4589 ac_cv_prog_cc_g=no
4590 CFLAGS="-g"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593
4594 int
4595 main (void)
4596 {
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"
4603 then :
4604 ac_cv_prog_cc_g=yes
4605 else $as_nop
4606 CFLAGS=""
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609
4610 int
4611 main (void)
4612 {
4613
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"
4619 then :
4620
4621 else $as_nop
4622 ac_c_werror_flag=$ac_save_c_werror_flag
4623 CFLAGS="-g"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626
4627 int
4628 main (void)
4629 {
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"
4636 then :
4637 ac_cv_prog_cc_g=yes
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4644 ac_c_werror_flag=$ac_save_c_werror_flag
4645 fi
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4647 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4648 if test $ac_test_CFLAGS; then
4649 CFLAGS=$ac_save_CFLAGS
4650 elif test $ac_cv_prog_cc_g = yes; then
4651 if test "$GCC" = yes; then
4652 CFLAGS="-g -O2"
4653 else
4654 CFLAGS="-g"
4655 fi
4656 else
4657 if test "$GCC" = yes; then
4658 CFLAGS="-O2"
4659 else
4660 CFLAGS=
4661 fi
4662 fi
4663 ac_prog_cc_stdc=no
4664 if test x$ac_prog_cc_stdc = xno
4665 then :
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4667 printf %s "checking for $CC option to enable C11 features... " >&6; }
4668 if test ${ac_cv_prog_cc_c11+y}
4669 then :
4670 printf %s "(cached) " >&6
4671 else $as_nop
4672 ac_cv_prog_cc_c11=no
4673 ac_save_CC=$CC
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 $ac_c_conftest_c11_program
4677 _ACEOF
4678 for ac_arg in '' -std=gnu11
4679 do
4680 CC="$ac_save_CC $ac_arg"
4681 if ac_fn_c_try_compile "$LINENO"
4682 then :
4683 ac_cv_prog_cc_c11=$ac_arg
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.beam
4686 test "x$ac_cv_prog_cc_c11" != "xno" && break
4687 done
4688 rm -f conftest.$ac_ext
4689 CC=$ac_save_CC
4690 fi
4691
4692 if test "x$ac_cv_prog_cc_c11" = xno
4693 then :
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4695 printf "%s\n" "unsupported" >&6; }
4696 else $as_nop
4697 if test "x$ac_cv_prog_cc_c11" = x
4698 then :
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4700 printf "%s\n" "none needed" >&6; }
4701 else $as_nop
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4703 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4704 CC="$CC $ac_cv_prog_cc_c11"
4705 fi
4706 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4707 ac_prog_cc_stdc=c11
4708 fi
4709 fi
4710 if test x$ac_prog_cc_stdc = xno
4711 then :
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4713 printf %s "checking for $CC option to enable C99 features... " >&6; }
4714 if test ${ac_cv_prog_cc_c99+y}
4715 then :
4716 printf %s "(cached) " >&6
4717 else $as_nop
4718 ac_cv_prog_cc_c99=no
4719 ac_save_CC=$CC
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 $ac_c_conftest_c99_program
4723 _ACEOF
4724 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4725 do
4726 CC="$ac_save_CC $ac_arg"
4727 if ac_fn_c_try_compile "$LINENO"
4728 then :
4729 ac_cv_prog_cc_c99=$ac_arg
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.beam
4732 test "x$ac_cv_prog_cc_c99" != "xno" && break
4733 done
4734 rm -f conftest.$ac_ext
4735 CC=$ac_save_CC
4736 fi
4737
4738 if test "x$ac_cv_prog_cc_c99" = xno
4739 then :
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 printf "%s\n" "unsupported" >&6; }
4742 else $as_nop
4743 if test "x$ac_cv_prog_cc_c99" = x
4744 then :
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4746 printf "%s\n" "none needed" >&6; }
4747 else $as_nop
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4749 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4750 CC="$CC $ac_cv_prog_cc_c99"
4751 fi
4752 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4753 ac_prog_cc_stdc=c99
4754 fi
4755 fi
4756 if test x$ac_prog_cc_stdc = xno
4757 then :
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4759 printf %s "checking for $CC option to enable C89 features... " >&6; }
4760 if test ${ac_cv_prog_cc_c89+y}
4761 then :
4762 printf %s "(cached) " >&6
4763 else $as_nop
4764 ac_cv_prog_cc_c89=no
4765 ac_save_CC=$CC
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 $ac_c_conftest_c89_program
4769 _ACEOF
4770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 do
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"
4774 then :
4775 ac_cv_prog_cc_c89=$ac_arg
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam
4778 test "x$ac_cv_prog_cc_c89" != "xno" && break
4779 done
4780 rm -f conftest.$ac_ext
4781 CC=$ac_save_CC
4782 fi
4783
4784 if test "x$ac_cv_prog_cc_c89" = xno
4785 then :
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 printf "%s\n" "unsupported" >&6; }
4788 else $as_nop
4789 if test "x$ac_cv_prog_cc_c89" = x
4790 then :
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 printf "%s\n" "none needed" >&6; }
4793 else $as_nop
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4796 CC="$CC $ac_cv_prog_cc_c89"
4797 fi
4798 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4799 ac_prog_cc_stdc=c89
4800 fi
4801 fi
4802
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4816 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4817 if test ${am_cv_prog_cc_c_o+y}
4818 then :
4819 printf %s "(cached) " >&6
4820 else $as_nop
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823
4824 int
4825 main (void)
4826 {
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 # Make sure it works both with $CC and with simple cc.
4833 # Following AC_PROG_CC_C_O, we do the test twice because some
4834 # compilers refuse to overwrite an existing .o file with -o,
4835 # though they will create one.
4836 am_cv_prog_cc_c_o=yes
4837 for am_i in 1 2; do
4838 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4839 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } \
4843 && test -f conftest2.$ac_objext; then
4844 : OK
4845 else
4846 am_cv_prog_cc_c_o=no
4847 break
4848 fi
4849 done
4850 rm -f core conftest*
4851 unset am_i
4852 fi
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4854 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4855 if test "$am_cv_prog_cc_c_o" != yes; then
4856 # Losing compiler, so override with the script.
4857 # FIXME: It is wrong to rewrite CC.
4858 # But if we don't then we get into trouble of one sort or another.
4859 # A longer-term fix would be to have automake use am__CC in this case,
4860 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4861 CC="$am_aux_dir/compile $CC"
4862 fi
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868
4869 DEPDIR="${am__leading_dot}deps"
4870
4871 ac_config_commands="$ac_config_commands depfiles"
4872
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4874 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4875 cat > confinc.mk << 'END'
4876 am__doit:
4877 @echo this is the am__doit target
4878 .PHONY: am__doit
4879 END
4880 # If we don't find an include directive, just comment out the code.
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4882 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4883 am__include="#"
4884 am__quote=
4885 _am_result=none
4886 # First try GNU make style include.
4887 echo "include confinc" > confmf
4888 # Ignore all kinds of additional output from 'make'.
4889 case `$am_make -s -f confmf 2> /dev/null` in #(
4890 *the\ am__doit\ target*)
4891 am__include=include
4892 am__quote=
4893 _am_result=GNU
4894 ;;
4895 esac
4896 if test "$am__include" != "#"; then
4897 _am_result="yes ($s style)"
4898 break
4899 fi
4900 done
4901 rm -f confinc.* confmf.*
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4903 printf "%s\n" "${_am_result}" >&6; }
4904
4905 # Check whether --enable-dependency-tracking was given.
4906 if test ${enable_dependency_tracking+y}
4907 then :
4908 enableval=$enable_dependency_tracking;
4909 fi
4910
4911 if test "x$enable_dependency_tracking" != xno; then
4912 am_depcomp="$ac_aux_dir/depcomp"
4913 AMDEPBACKSLASH='\'
4914 am__nodep='_no'
4915 fi
4916 if test "x$enable_dependency_tracking" != xno; then
4917 AMDEP_TRUE=
4918 AMDEP_FALSE='#'
4919 else
4920 AMDEP_TRUE='#'
4921 AMDEP_FALSE=
4922 fi
4923
4924
4925
4926 depcc="$CC" am_compiler_list=
4927
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4929 printf %s "checking dependency style of $depcc... " >&6; }
4930 if test ${am_cv_CC_dependencies_compiler_type+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else $as_nop
4934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4935 # We make a subdir and do the tests there. Otherwise we can end up
4936 # making bogus files that we don't know about and never remove. For
4937 # instance it was reported that on HP-UX the gcc test will end up
4938 # making a dummy file named 'D' -- because '-MD' means "put the output
4939 # in D".
4940 rm -rf conftest.dir
4941 mkdir conftest.dir
4942 # Copy depcomp to subdir because otherwise we won't find it if we're
4943 # using a relative directory.
4944 cp "$am_depcomp" conftest.dir
4945 cd conftest.dir
4946 # We will build objects and dependencies in a subdirectory because
4947 # it helps to detect inapplicable dependency modes. For instance
4948 # both Tru64's cc and ICC support -MD to output dependencies as a
4949 # side effect of compilation, but ICC will put the dependencies in
4950 # the current directory while Tru64 will put them in the object
4951 # directory.
4952 mkdir sub
4953
4954 am_cv_CC_dependencies_compiler_type=none
4955 if test "$am_compiler_list" = ""; then
4956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4957 fi
4958 am__universal=false
4959 case " $depcc " in #(
4960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4961 esac
4962
4963 for depmode in $am_compiler_list; do
4964 # Setup a source with many dependencies, because some compilers
4965 # like to wrap large dependency lists on column 80 (with \), and
4966 # we should not choose a depcomp mode which is confused by this.
4967 #
4968 # We need to recreate these files for each test, as the compiler may
4969 # overwrite some of them when testing with obscure command lines.
4970 # This happens at least with the AIX C compiler.
4971 : > sub/conftest.c
4972 for i in 1 2 3 4 5 6; do
4973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4975 # Solaris 10 /bin/sh.
4976 echo '/* dummy */' > sub/conftst$i.h
4977 done
4978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4979
4980 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4981 # mode. It turns out that the SunPro C++ compiler does not properly
4982 # handle '-M -o', and we need to detect this. Also, some Intel
4983 # versions had trouble with output in subdirs.
4984 am__obj=sub/conftest.${OBJEXT-o}
4985 am__minus_obj="-o $am__obj"
4986 case $depmode in
4987 gcc)
4988 # This depmode causes a compiler race in universal mode.
4989 test "$am__universal" = false || continue
4990 ;;
4991 nosideeffect)
4992 # After this tag, mechanisms are not by side-effect, so they'll
4993 # only be used when explicitly requested.
4994 if test "x$enable_dependency_tracking" = xyes; then
4995 continue
4996 else
4997 break
4998 fi
4999 ;;
5000 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5001 # This compiler won't grok '-c -o', but also, the minuso test has
5002 # not run yet. These depmodes are late enough in the game, and
5003 # so weak that their functioning should not be impacted.
5004 am__obj=conftest.${OBJEXT-o}
5005 am__minus_obj=
5006 ;;
5007 none) break ;;
5008 esac
5009 if depmode=$depmode \
5010 source=sub/conftest.c object=$am__obj \
5011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013 >/dev/null 2>conftest.err &&
5014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018 # icc doesn't choke on unknown options, it will just issue warnings
5019 # or remarks (even with -Werror). So we grep stderr for any message
5020 # that says an option was ignored or not supported.
5021 # When given -MP, icc 7.0 and 7.1 complain thusly:
5022 # icc: Command line warning: ignoring option '-M'; no argument required
5023 # The diagnosis changed in icc 8.0:
5024 # icc: Command line remark: option '-MP' not supported
5025 if (grep 'ignoring option' conftest.err ||
5026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027 am_cv_CC_dependencies_compiler_type=$depmode
5028 break
5029 fi
5030 fi
5031 done
5032
5033 cd ..
5034 rm -rf conftest.dir
5035 else
5036 am_cv_CC_dependencies_compiler_type=none
5037 fi
5038
5039 fi
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5041 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5043
5044 if
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5047 am__fastdepCC_TRUE=
5048 am__fastdepCC_FALSE='#'
5049 else
5050 am__fastdepCC_TRUE='#'
5051 am__fastdepCC_FALSE=
5052 fi
5053
5054
5055 ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5061 printf %s "checking how to run the C preprocessor... " >&6; }
5062 # On Suns, sometimes $CPP names a directory.
5063 if test -n "$CPP" && test -d "$CPP"; then
5064 CPP=
5065 fi
5066 if test -z "$CPP"; then
5067 if test ${ac_cv_prog_CPP+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 # Double quotes because $CC needs to be expanded
5072 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5073 do
5074 ac_preproc_ok=false
5075 for ac_c_preproc_warn_flag in '' yes
5076 do
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <limits.h>
5084 Syntax error
5085 _ACEOF
5086 if ac_fn_c_try_cpp "$LINENO"
5087 then :
5088
5089 else $as_nop
5090 # Broken: fails on valid input.
5091 continue
5092 fi
5093 rm -f conftest.err conftest.i conftest.$ac_ext
5094
5095 # OK, works on sane cases. Now check whether nonexistent headers
5096 # can be detected and how.
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 #include <ac_nonexistent.h>
5100 _ACEOF
5101 if ac_fn_c_try_cpp "$LINENO"
5102 then :
5103 # Broken: success on invalid input.
5104 continue
5105 else $as_nop
5106 # Passes both tests.
5107 ac_preproc_ok=:
5108 break
5109 fi
5110 rm -f conftest.err conftest.i conftest.$ac_ext
5111
5112 done
5113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114 rm -f conftest.i conftest.err conftest.$ac_ext
5115 if $ac_preproc_ok
5116 then :
5117 break
5118 fi
5119
5120 done
5121 ac_cv_prog_CPP=$CPP
5122
5123 fi
5124 CPP=$ac_cv_prog_CPP
5125 else
5126 ac_cv_prog_CPP=$CPP
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5129 printf "%s\n" "$CPP" >&6; }
5130 ac_preproc_ok=false
5131 for ac_c_preproc_warn_flag in '' yes
5132 do
5133 # Use a header file that comes with gcc, so configuring glibc
5134 # with a fresh cross-compiler works.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <limits.h>
5140 Syntax error
5141 _ACEOF
5142 if ac_fn_c_try_cpp "$LINENO"
5143 then :
5144
5145 else $as_nop
5146 # Broken: fails on valid input.
5147 continue
5148 fi
5149 rm -f conftest.err conftest.i conftest.$ac_ext
5150
5151 # OK, works on sane cases. Now check whether nonexistent headers
5152 # can be detected and how.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <ac_nonexistent.h>
5156 _ACEOF
5157 if ac_fn_c_try_cpp "$LINENO"
5158 then :
5159 # Broken: success on invalid input.
5160 continue
5161 else $as_nop
5162 # Passes both tests.
5163 ac_preproc_ok=:
5164 break
5165 fi
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.i conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok
5172 then :
5173
5174 else $as_nop
5175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5177 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5178 See \`config.log' for more details" "$LINENO" 5; }
5179 fi
5180
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186
5187
5188
5189
5190
5191
5192
5193 ac_ext=cpp
5194 ac_cpp='$CXXCPP $CPPFLAGS'
5195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198 if test -z "$CXX"; then
5199 if test -n "$CCC"; then
5200 CXX=$CCC
5201 else
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5204 do
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 printf %s "checking for $ac_word... " >&6; }
5209 if test ${ac_cv_prog_CXX+y}
5210 then :
5211 printf %s "(cached) " >&6
5212 else $as_nop
5213 if test -n "$CXX"; then
5214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 case $as_dir in #(((
5221 '') as_dir=./ ;;
5222 */) ;;
5223 *) as_dir=$as_dir/ ;;
5224 esac
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 CXX=$ac_cv_prog_CXX
5238 if test -n "$CXX"; then
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5240 printf "%s\n" "$CXX" >&6; }
5241 else
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 printf "%s\n" "no" >&6; }
5244 fi
5245
5246
5247 test -n "$CXX" && break
5248 done
5249 fi
5250 if test -z "$CXX"; then
5251 ac_ct_CXX=$CXX
5252 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5253 do
5254 # Extract the first word of "$ac_prog", so it can be a program name with args.
5255 set dummy $ac_prog; ac_word=$2
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 printf %s "checking for $ac_word... " >&6; }
5258 if test ${ac_cv_prog_ac_ct_CXX+y}
5259 then :
5260 printf %s "(cached) " >&6
5261 else $as_nop
5262 if test -n "$ac_ct_CXX"; then
5263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 case $as_dir in #(((
5270 '') as_dir=./ ;;
5271 */) ;;
5272 *) as_dir=$as_dir/ ;;
5273 esac
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_CXX="$ac_prog"
5277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280 done
5281 done
5282 IFS=$as_save_IFS
5283
5284 fi
5285 fi
5286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5287 if test -n "$ac_ct_CXX"; then
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5289 printf "%s\n" "$ac_ct_CXX" >&6; }
5290 else
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 printf "%s\n" "no" >&6; }
5293 fi
5294
5295
5296 test -n "$ac_ct_CXX" && break
5297 done
5298
5299 if test "x$ac_ct_CXX" = x; then
5300 CXX="g++"
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303 yes:)
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306 ac_tool_warned=yes ;;
5307 esac
5308 CXX=$ac_ct_CXX
5309 fi
5310 fi
5311
5312 fi
5313 fi
5314 # Provide some information about the compiler.
5315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5316 set X $ac_compile
5317 ac_compiler=$2
5318 for ac_option in --version -v -V -qversion; do
5319 { { ac_try="$ac_compiler $ac_option >&5"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5325 printf "%s\n" "$ac_try_echo"; } >&5
5326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5327 ac_status=$?
5328 if test -s conftest.err; then
5329 sed '10a\
5330 ... rest of stderr output deleted ...
5331 10q' conftest.err >conftest.er1
5332 cat conftest.er1 >&5
5333 fi
5334 rm -f conftest.er1 conftest.err
5335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5336 test $ac_status = 0; }
5337 done
5338
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5340 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5341 if test ${ac_cv_cxx_compiler_gnu+y}
5342 then :
5343 printf %s "(cached) " >&6
5344 else $as_nop
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347
5348 int
5349 main (void)
5350 {
5351 #ifndef __GNUC__
5352 choke me
5353 #endif
5354
5355 ;
5356 return 0;
5357 }
5358 _ACEOF
5359 if ac_fn_cxx_try_compile "$LINENO"
5360 then :
5361 ac_compiler_gnu=yes
5362 else $as_nop
5363 ac_compiler_gnu=no
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5366 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5367
5368 fi
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5370 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372
5373 if test $ac_compiler_gnu = yes; then
5374 GXX=yes
5375 else
5376 GXX=
5377 fi
5378 ac_test_CXXFLAGS=${CXXFLAGS+y}
5379 ac_save_CXXFLAGS=$CXXFLAGS
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5381 printf %s "checking whether $CXX accepts -g... " >&6; }
5382 if test ${ac_cv_prog_cxx_g+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else $as_nop
5386 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5387 ac_cxx_werror_flag=yes
5388 ac_cv_prog_cxx_g=no
5389 CXXFLAGS="-g"
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392
5393 int
5394 main (void)
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_cxx_try_compile "$LINENO"
5402 then :
5403 ac_cv_prog_cxx_g=yes
5404 else $as_nop
5405 CXXFLAGS=""
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408
5409 int
5410 main (void)
5411 {
5412
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_cxx_try_compile "$LINENO"
5418 then :
5419
5420 else $as_nop
5421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5422 CXXFLAGS="-g"
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425
5426 int
5427 main (void)
5428 {
5429
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 if ac_fn_cxx_try_compile "$LINENO"
5435 then :
5436 ac_cv_prog_cxx_g=yes
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5441 fi
5442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5443 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5444 fi
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5446 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5447 if test $ac_test_CXXFLAGS; then
5448 CXXFLAGS=$ac_save_CXXFLAGS
5449 elif test $ac_cv_prog_cxx_g = yes; then
5450 if test "$GXX" = yes; then
5451 CXXFLAGS="-g -O2"
5452 else
5453 CXXFLAGS="-g"
5454 fi
5455 else
5456 if test "$GXX" = yes; then
5457 CXXFLAGS="-O2"
5458 else
5459 CXXFLAGS=
5460 fi
5461 fi
5462 ac_prog_cxx_stdcxx=no
5463 if test x$ac_prog_cxx_stdcxx = xno
5464 then :
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5466 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5467 if test ${ac_cv_prog_cxx_cxx11+y}
5468 then :
5469 printf %s "(cached) " >&6
5470 else $as_nop
5471 ac_cv_prog_cxx_cxx11=no
5472 ac_save_CXX=$CXX
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 $ac_cxx_conftest_cxx11_program
5476 _ACEOF
5477 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5478 do
5479 CXX="$ac_save_CXX $ac_arg"
5480 if ac_fn_cxx_try_compile "$LINENO"
5481 then :
5482 ac_cv_prog_cxx_cxx11=$ac_arg
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.beam
5485 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5486 done
5487 rm -f conftest.$ac_ext
5488 CXX=$ac_save_CXX
5489 fi
5490
5491 if test "x$ac_cv_prog_cxx_cxx11" = xno
5492 then :
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5494 printf "%s\n" "unsupported" >&6; }
5495 else $as_nop
5496 if test "x$ac_cv_prog_cxx_cxx11" = x
5497 then :
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5499 printf "%s\n" "none needed" >&6; }
5500 else $as_nop
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5502 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5503 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5504 fi
5505 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5506 ac_prog_cxx_stdcxx=cxx11
5507 fi
5508 fi
5509 if test x$ac_prog_cxx_stdcxx = xno
5510 then :
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5512 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5513 if test ${ac_cv_prog_cxx_cxx98+y}
5514 then :
5515 printf %s "(cached) " >&6
5516 else $as_nop
5517 ac_cv_prog_cxx_cxx98=no
5518 ac_save_CXX=$CXX
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 $ac_cxx_conftest_cxx98_program
5522 _ACEOF
5523 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5524 do
5525 CXX="$ac_save_CXX $ac_arg"
5526 if ac_fn_cxx_try_compile "$LINENO"
5527 then :
5528 ac_cv_prog_cxx_cxx98=$ac_arg
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext conftest.beam
5531 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5532 done
5533 rm -f conftest.$ac_ext
5534 CXX=$ac_save_CXX
5535 fi
5536
5537 if test "x$ac_cv_prog_cxx_cxx98" = xno
5538 then :
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5540 printf "%s\n" "unsupported" >&6; }
5541 else $as_nop
5542 if test "x$ac_cv_prog_cxx_cxx98" = x
5543 then :
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5545 printf "%s\n" "none needed" >&6; }
5546 else $as_nop
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5548 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5549 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5550 fi
5551 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5552 ac_prog_cxx_stdcxx=cxx98
5553 fi
5554 fi
5555
5556 ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561
5562 depcc="$CXX" am_compiler_list=
5563
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5565 printf %s "checking dependency style of $depcc... " >&6; }
5566 if test ${am_cv_CXX_dependencies_compiler_type+y}
5567 then :
5568 printf %s "(cached) " >&6
5569 else $as_nop
5570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5571 # We make a subdir and do the tests there. Otherwise we can end up
5572 # making bogus files that we don't know about and never remove. For
5573 # instance it was reported that on HP-UX the gcc test will end up
5574 # making a dummy file named 'D' -- because '-MD' means "put the output
5575 # in D".
5576 rm -rf conftest.dir
5577 mkdir conftest.dir
5578 # Copy depcomp to subdir because otherwise we won't find it if we're
5579 # using a relative directory.
5580 cp "$am_depcomp" conftest.dir
5581 cd conftest.dir
5582 # We will build objects and dependencies in a subdirectory because
5583 # it helps to detect inapplicable dependency modes. For instance
5584 # both Tru64's cc and ICC support -MD to output dependencies as a
5585 # side effect of compilation, but ICC will put the dependencies in
5586 # the current directory while Tru64 will put them in the object
5587 # directory.
5588 mkdir sub
5589
5590 am_cv_CXX_dependencies_compiler_type=none
5591 if test "$am_compiler_list" = ""; then
5592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5593 fi
5594 am__universal=false
5595 case " $depcc " in #(
5596 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5597 esac
5598
5599 for depmode in $am_compiler_list; do
5600 # Setup a source with many dependencies, because some compilers
5601 # like to wrap large dependency lists on column 80 (with \), and
5602 # we should not choose a depcomp mode which is confused by this.
5603 #
5604 # We need to recreate these files for each test, as the compiler may
5605 # overwrite some of them when testing with obscure command lines.
5606 # This happens at least with the AIX C compiler.
5607 : > sub/conftest.c
5608 for i in 1 2 3 4 5 6; do
5609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5610 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5611 # Solaris 10 /bin/sh.
5612 echo '/* dummy */' > sub/conftst$i.h
5613 done
5614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5615
5616 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5617 # mode. It turns out that the SunPro C++ compiler does not properly
5618 # handle '-M -o', and we need to detect this. Also, some Intel
5619 # versions had trouble with output in subdirs.
5620 am__obj=sub/conftest.${OBJEXT-o}
5621 am__minus_obj="-o $am__obj"
5622 case $depmode in
5623 gcc)
5624 # This depmode causes a compiler race in universal mode.
5625 test "$am__universal" = false || continue
5626 ;;
5627 nosideeffect)
5628 # After this tag, mechanisms are not by side-effect, so they'll
5629 # only be used when explicitly requested.
5630 if test "x$enable_dependency_tracking" = xyes; then
5631 continue
5632 else
5633 break
5634 fi
5635 ;;
5636 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5637 # This compiler won't grok '-c -o', but also, the minuso test has
5638 # not run yet. These depmodes are late enough in the game, and
5639 # so weak that their functioning should not be impacted.
5640 am__obj=conftest.${OBJEXT-o}
5641 am__minus_obj=
5642 ;;
5643 none) break ;;
5644 esac
5645 if depmode=$depmode \
5646 source=sub/conftest.c object=$am__obj \
5647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5648 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5649 >/dev/null 2>conftest.err &&
5650 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5652 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5654 # icc doesn't choke on unknown options, it will just issue warnings
5655 # or remarks (even with -Werror). So we grep stderr for any message
5656 # that says an option was ignored or not supported.
5657 # When given -MP, icc 7.0 and 7.1 complain thusly:
5658 # icc: Command line warning: ignoring option '-M'; no argument required
5659 # The diagnosis changed in icc 8.0:
5660 # icc: Command line remark: option '-MP' not supported
5661 if (grep 'ignoring option' conftest.err ||
5662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5663 am_cv_CXX_dependencies_compiler_type=$depmode
5664 break
5665 fi
5666 fi
5667 done
5668
5669 cd ..
5670 rm -rf conftest.dir
5671 else
5672 am_cv_CXX_dependencies_compiler_type=none
5673 fi
5674
5675 fi
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5677 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5678 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5679
5680 if
5681 test "x$enable_dependency_tracking" != xno \
5682 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5683 am__fastdepCXX_TRUE=
5684 am__fastdepCXX_FALSE='#'
5685 else
5686 am__fastdepCXX_TRUE='#'
5687 am__fastdepCXX_FALSE=
5688 fi
5689
5690
5691 case `pwd` in
5692 *\ * | *\ *)
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5694 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5695 esac
5696
5697
5698
5699 macro_version='2.4.7'
5700 macro_revision='2.4.7'
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 ltmain=$ac_aux_dir/ltmain.sh
5716
5717 # Backslashify metacharacters that are still active within
5718 # double-quoted strings.
5719 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5720
5721 # Same as above, but do not quote variable references.
5722 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5723
5724 # Sed substitution to delay expansion of an escaped shell variable in a
5725 # double_quote_subst'ed string.
5726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5727
5728 # Sed substitution to delay expansion of an escaped single quote.
5729 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5730
5731 # Sed substitution to avoid accidental globbing in evaled expressions
5732 no_glob_subst='s/\*/\\\*/g'
5733
5734 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5735 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5736 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5737
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5739 printf %s "checking how to print strings... " >&6; }
5740 # Test print first, because it will be a builtin if present.
5741 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5742 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5743 ECHO='print -r --'
5744 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5745 ECHO='printf %s\n'
5746 else
5747 # Use this function as a fallback that always works.
5748 func_fallback_echo ()
5749 {
5750 eval 'cat <<_LTECHO_EOF
5751 $1
5752 _LTECHO_EOF'
5753 }
5754 ECHO='func_fallback_echo'
5755 fi
5756
5757 # func_echo_all arg...
5758 # Invoke $ECHO with all args, space-separated.
5759 func_echo_all ()
5760 {
5761 $ECHO ""
5762 }
5763
5764 case $ECHO in
5765 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5766 printf "%s\n" "printf" >&6; } ;;
5767 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5768 printf "%s\n" "print -r" >&6; } ;;
5769 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5770 printf "%s\n" "cat" >&6; } ;;
5771 esac
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5787 printf %s "checking for a sed that does not truncate output... " >&6; }
5788 if test ${ac_cv_path_SED+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else $as_nop
5792 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5793 for ac_i in 1 2 3 4 5 6 7; do
5794 ac_script="$ac_script$as_nl$ac_script"
5795 done
5796 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5797 { ac_script=; unset ac_script;}
5798 if test -z "$SED"; then
5799 ac_path_SED_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 case $as_dir in #(((
5806 '') as_dir=./ ;;
5807 */) ;;
5808 *) as_dir=$as_dir/ ;;
5809 esac
5810 for ac_prog in sed gsed
5811 do
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5814 as_fn_executable_p "$ac_path_SED" || continue
5815 # Check for GNU ac_path_SED and select it if it is found.
5816 # Check for GNU $ac_path_SED
5817 case `"$ac_path_SED" --version 2>&1` in
5818 *GNU*)
5819 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5820 *)
5821 ac_count=0
5822 printf %s 0123456789 >"conftest.in"
5823 while :
5824 do
5825 cat "conftest.in" "conftest.in" >"conftest.tmp"
5826 mv "conftest.tmp" "conftest.in"
5827 cp "conftest.in" "conftest.nl"
5828 printf "%s\n" '' >> "conftest.nl"
5829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5831 as_fn_arith $ac_count + 1 && ac_count=$as_val
5832 if test $ac_count -gt ${ac_path_SED_max-0}; then
5833 # Best one so far, save it but keep looking for a better one
5834 ac_cv_path_SED="$ac_path_SED"
5835 ac_path_SED_max=$ac_count
5836 fi
5837 # 10*(2^10) chars as input seems more than enough
5838 test $ac_count -gt 10 && break
5839 done
5840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5841 esac
5842
5843 $ac_path_SED_found && break 3
5844 done
5845 done
5846 done
5847 IFS=$as_save_IFS
5848 if test -z "$ac_cv_path_SED"; then
5849 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5850 fi
5851 else
5852 ac_cv_path_SED=$SED
5853 fi
5854
5855 fi
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5857 printf "%s\n" "$ac_cv_path_SED" >&6; }
5858 SED="$ac_cv_path_SED"
5859 rm -f conftest.sed
5860
5861 test -z "$SED" && SED=sed
5862 Xsed="$SED -e 1s/^X//"
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5875 printf %s "checking for grep that handles long lines and -e... " >&6; }
5876 if test ${ac_cv_path_GREP+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else $as_nop
5880 if test -z "$GREP"; then
5881 ac_path_GREP_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 do
5886 IFS=$as_save_IFS
5887 case $as_dir in #(((
5888 '') as_dir=./ ;;
5889 */) ;;
5890 *) as_dir=$as_dir/ ;;
5891 esac
5892 for ac_prog in grep ggrep
5893 do
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5896 as_fn_executable_p "$ac_path_GREP" || continue
5897 # Check for GNU ac_path_GREP and select it if it is found.
5898 # Check for GNU $ac_path_GREP
5899 case `"$ac_path_GREP" --version 2>&1` in
5900 *GNU*)
5901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5902 *)
5903 ac_count=0
5904 printf %s 0123456789 >"conftest.in"
5905 while :
5906 do
5907 cat "conftest.in" "conftest.in" >"conftest.tmp"
5908 mv "conftest.tmp" "conftest.in"
5909 cp "conftest.in" "conftest.nl"
5910 printf "%s\n" 'GREP' >> "conftest.nl"
5911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5913 as_fn_arith $ac_count + 1 && ac_count=$as_val
5914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5915 # Best one so far, save it but keep looking for a better one
5916 ac_cv_path_GREP="$ac_path_GREP"
5917 ac_path_GREP_max=$ac_count
5918 fi
5919 # 10*(2^10) chars as input seems more than enough
5920 test $ac_count -gt 10 && break
5921 done
5922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5923 esac
5924
5925 $ac_path_GREP_found && break 3
5926 done
5927 done
5928 done
5929 IFS=$as_save_IFS
5930 if test -z "$ac_cv_path_GREP"; then
5931 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5932 fi
5933 else
5934 ac_cv_path_GREP=$GREP
5935 fi
5936
5937 fi
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5939 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5940 GREP="$ac_cv_path_GREP"
5941
5942
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5944 printf %s "checking for egrep... " >&6; }
5945 if test ${ac_cv_path_EGREP+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else $as_nop
5949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5950 then ac_cv_path_EGREP="$GREP -E"
5951 else
5952 if test -z "$EGREP"; then
5953 ac_path_EGREP_found=false
5954 # Loop through the user's path and test for each of PROGNAME-LIST
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5957 do
5958 IFS=$as_save_IFS
5959 case $as_dir in #(((
5960 '') as_dir=./ ;;
5961 */) ;;
5962 *) as_dir=$as_dir/ ;;
5963 esac
5964 for ac_prog in egrep
5965 do
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5968 as_fn_executable_p "$ac_path_EGREP" || continue
5969 # Check for GNU ac_path_EGREP and select it if it is found.
5970 # Check for GNU $ac_path_EGREP
5971 case `"$ac_path_EGREP" --version 2>&1` in
5972 *GNU*)
5973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5974 *)
5975 ac_count=0
5976 printf %s 0123456789 >"conftest.in"
5977 while :
5978 do
5979 cat "conftest.in" "conftest.in" >"conftest.tmp"
5980 mv "conftest.tmp" "conftest.in"
5981 cp "conftest.in" "conftest.nl"
5982 printf "%s\n" 'EGREP' >> "conftest.nl"
5983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5985 as_fn_arith $ac_count + 1 && ac_count=$as_val
5986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5987 # Best one so far, save it but keep looking for a better one
5988 ac_cv_path_EGREP="$ac_path_EGREP"
5989 ac_path_EGREP_max=$ac_count
5990 fi
5991 # 10*(2^10) chars as input seems more than enough
5992 test $ac_count -gt 10 && break
5993 done
5994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5995 esac
5996
5997 $ac_path_EGREP_found && break 3
5998 done
5999 done
6000 done
6001 IFS=$as_save_IFS
6002 if test -z "$ac_cv_path_EGREP"; then
6003 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6004 fi
6005 else
6006 ac_cv_path_EGREP=$EGREP
6007 fi
6008
6009 fi
6010 fi
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6012 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6013 EGREP="$ac_cv_path_EGREP"
6014
6015
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6017 printf %s "checking for fgrep... " >&6; }
6018 if test ${ac_cv_path_FGREP+y}
6019 then :
6020 printf %s "(cached) " >&6
6021 else $as_nop
6022 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6023 then ac_cv_path_FGREP="$GREP -F"
6024 else
6025 if test -z "$FGREP"; then
6026 ac_path_FGREP_found=false
6027 # Loop through the user's path and test for each of PROGNAME-LIST
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6030 do
6031 IFS=$as_save_IFS
6032 case $as_dir in #(((
6033 '') as_dir=./ ;;
6034 */) ;;
6035 *) as_dir=$as_dir/ ;;
6036 esac
6037 for ac_prog in fgrep
6038 do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6041 as_fn_executable_p "$ac_path_FGREP" || continue
6042 # Check for GNU ac_path_FGREP and select it if it is found.
6043 # Check for GNU $ac_path_FGREP
6044 case `"$ac_path_FGREP" --version 2>&1` in
6045 *GNU*)
6046 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6047 *)
6048 ac_count=0
6049 printf %s 0123456789 >"conftest.in"
6050 while :
6051 do
6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
6053 mv "conftest.tmp" "conftest.in"
6054 cp "conftest.in" "conftest.nl"
6055 printf "%s\n" 'FGREP' >> "conftest.nl"
6056 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6058 as_fn_arith $ac_count + 1 && ac_count=$as_val
6059 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6060 # Best one so far, save it but keep looking for a better one
6061 ac_cv_path_FGREP="$ac_path_FGREP"
6062 ac_path_FGREP_max=$ac_count
6063 fi
6064 # 10*(2^10) chars as input seems more than enough
6065 test $ac_count -gt 10 && break
6066 done
6067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068 esac
6069
6070 $ac_path_FGREP_found && break 3
6071 done
6072 done
6073 done
6074 IFS=$as_save_IFS
6075 if test -z "$ac_cv_path_FGREP"; then
6076 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6077 fi
6078 else
6079 ac_cv_path_FGREP=$FGREP
6080 fi
6081
6082 fi
6083 fi
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6085 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6086 FGREP="$ac_cv_path_FGREP"
6087
6088
6089 test -z "$GREP" && GREP=grep
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 # Check whether --with-gnu-ld was given.
6110 if test ${with_gnu_ld+y}
6111 then :
6112 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6113 else $as_nop
6114 with_gnu_ld=no
6115 fi
6116
6117 ac_prog=ld
6118 if test yes = "$GCC"; then
6119 # Check if gcc -print-prog-name=ld gives a path.
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6121 printf %s "checking for ld used by $CC... " >&6; }
6122 case $host in
6123 *-*-mingw*)
6124 # gcc leaves a trailing carriage return, which upsets mingw
6125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6126 *)
6127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6128 esac
6129 case $ac_prog in
6130 # Accept absolute paths.
6131 [\\/]* | ?:[\\/]*)
6132 re_direlt='/[^/][^/]*/\.\./'
6133 # Canonicalize the pathname of ld
6134 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6135 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6136 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6137 done
6138 test -z "$LD" && LD=$ac_prog
6139 ;;
6140 "")
6141 # If it fails, then pretend we aren't using GCC.
6142 ac_prog=ld
6143 ;;
6144 *)
6145 # If it is relative, then search for the first ld in PATH.
6146 with_gnu_ld=unknown
6147 ;;
6148 esac
6149 elif test yes = "$with_gnu_ld"; then
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6151 printf %s "checking for GNU ld... " >&6; }
6152 else
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6154 printf %s "checking for non-GNU ld... " >&6; }
6155 fi
6156 if test ${lt_cv_path_LD+y}
6157 then :
6158 printf %s "(cached) " >&6
6159 else $as_nop
6160 if test -z "$LD"; then
6161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6162 for ac_dir in $PATH; do
6163 IFS=$lt_save_ifs
6164 test -z "$ac_dir" && ac_dir=.
6165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6166 lt_cv_path_LD=$ac_dir/$ac_prog
6167 # Check to see if the program is GNU ld. I'd rather use --version,
6168 # but apparently some variants of GNU ld only accept -v.
6169 # Break only if it was the GNU/non-GNU ld that we prefer.
6170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6171 *GNU* | *'with BFD'*)
6172 test no != "$with_gnu_ld" && break
6173 ;;
6174 *)
6175 test yes != "$with_gnu_ld" && break
6176 ;;
6177 esac
6178 fi
6179 done
6180 IFS=$lt_save_ifs
6181 else
6182 lt_cv_path_LD=$LD # Let the user override the test with a path.
6183 fi
6184 fi
6185
6186 LD=$lt_cv_path_LD
6187 if test -n "$LD"; then
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6189 printf "%s\n" "$LD" >&6; }
6190 else
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 printf "%s\n" "no" >&6; }
6193 fi
6194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6196 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6197 if test ${lt_cv_prog_gnu_ld+y}
6198 then :
6199 printf %s "(cached) " >&6
6200 else $as_nop
6201 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6202 case `$LD -v 2>&1 </dev/null` in
6203 *GNU* | *'with BFD'*)
6204 lt_cv_prog_gnu_ld=yes
6205 ;;
6206 *)
6207 lt_cv_prog_gnu_ld=no
6208 ;;
6209 esac
6210 fi
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6212 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6213 with_gnu_ld=$lt_cv_prog_gnu_ld
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6224 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6225 if test ${lt_cv_path_NM+y}
6226 then :
6227 printf %s "(cached) " >&6
6228 else $as_nop
6229 if test -n "$NM"; then
6230 # Let the user override the test.
6231 lt_cv_path_NM=$NM
6232 else
6233 lt_nm_to_check=${ac_tool_prefix}nm
6234 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6235 lt_nm_to_check="$lt_nm_to_check nm"
6236 fi
6237 for lt_tmp_nm in $lt_nm_to_check; do
6238 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6239 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6240 IFS=$lt_save_ifs
6241 test -z "$ac_dir" && ac_dir=.
6242 tmp_nm=$ac_dir/$lt_tmp_nm
6243 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6244 # Check to see if the nm accepts a BSD-compat flag.
6245 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6246 # nm: unknown option "B" ignored
6247 # Tru64's nm complains that /dev/null is an invalid object file
6248 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6249 case $build_os in
6250 mingw*) lt_bad_file=conftest.nm/nofile ;;
6251 *) lt_bad_file=/dev/null ;;
6252 esac
6253 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6254 *$lt_bad_file* | *'Invalid file or object type'*)
6255 lt_cv_path_NM="$tmp_nm -B"
6256 break 2
6257 ;;
6258 *)
6259 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6260 */dev/null*)
6261 lt_cv_path_NM="$tmp_nm -p"
6262 break 2
6263 ;;
6264 *)
6265 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6266 continue # so that we can try to find one that supports BSD flags
6267 ;;
6268 esac
6269 ;;
6270 esac
6271 fi
6272 done
6273 IFS=$lt_save_ifs
6274 done
6275 : ${lt_cv_path_NM=no}
6276 fi
6277 fi
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6279 printf "%s\n" "$lt_cv_path_NM" >&6; }
6280 if test no != "$lt_cv_path_NM"; then
6281 NM=$lt_cv_path_NM
6282 else
6283 # Didn't find any BSD compatible name lister, look for dumpbin.
6284 if test -n "$DUMPBIN"; then :
6285 # Let the user override the test.
6286 else
6287 if test -n "$ac_tool_prefix"; then
6288 for ac_prog in dumpbin "link -dump"
6289 do
6290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 printf %s "checking for $ac_word... " >&6; }
6294 if test ${ac_cv_prog_DUMPBIN+y}
6295 then :
6296 printf %s "(cached) " >&6
6297 else $as_nop
6298 if test -n "$DUMPBIN"; then
6299 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 case $as_dir in #(((
6306 '') as_dir=./ ;;
6307 */) ;;
6308 *) as_dir=$as_dir/ ;;
6309 esac
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 DUMPBIN=$ac_cv_prog_DUMPBIN
6323 if test -n "$DUMPBIN"; then
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6325 printf "%s\n" "$DUMPBIN" >&6; }
6326 else
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 printf "%s\n" "no" >&6; }
6329 fi
6330
6331
6332 test -n "$DUMPBIN" && break
6333 done
6334 fi
6335 if test -z "$DUMPBIN"; then
6336 ac_ct_DUMPBIN=$DUMPBIN
6337 for ac_prog in dumpbin "link -dump"
6338 do
6339 # Extract the first word of "$ac_prog", so it can be a program name with args.
6340 set dummy $ac_prog; ac_word=$2
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 printf %s "checking for $ac_word... " >&6; }
6343 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6344 then :
6345 printf %s "(cached) " >&6
6346 else $as_nop
6347 if test -n "$ac_ct_DUMPBIN"; then
6348 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 case $as_dir in #(((
6355 '') as_dir=./ ;;
6356 */) ;;
6357 *) as_dir=$as_dir/ ;;
6358 esac
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6372 if test -n "$ac_ct_DUMPBIN"; then
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6374 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6375 else
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 printf "%s\n" "no" >&6; }
6378 fi
6379
6380
6381 test -n "$ac_ct_DUMPBIN" && break
6382 done
6383
6384 if test "x$ac_ct_DUMPBIN" = x; then
6385 DUMPBIN=":"
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393 DUMPBIN=$ac_ct_DUMPBIN
6394 fi
6395 fi
6396
6397 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6398 *COFF*)
6399 DUMPBIN="$DUMPBIN -symbols -headers"
6400 ;;
6401 *)
6402 DUMPBIN=:
6403 ;;
6404 esac
6405 fi
6406
6407 if test : != "$DUMPBIN"; then
6408 NM=$DUMPBIN
6409 fi
6410 fi
6411 test -z "$NM" && NM=nm
6412
6413
6414
6415
6416
6417
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6419 printf %s "checking the name lister ($NM) interface... " >&6; }
6420 if test ${lt_cv_nm_interface+y}
6421 then :
6422 printf %s "(cached) " >&6
6423 else $as_nop
6424 lt_cv_nm_interface="BSD nm"
6425 echo "int some_variable = 0;" > conftest.$ac_ext
6426 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6427 (eval "$ac_compile" 2>conftest.err)
6428 cat conftest.err >&5
6429 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6430 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6431 cat conftest.err >&5
6432 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6433 cat conftest.out >&5
6434 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6435 lt_cv_nm_interface="MS dumpbin"
6436 fi
6437 rm -f conftest*
6438 fi
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6440 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6441
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6443 printf %s "checking whether ln -s works... " >&6; }
6444 LN_S=$as_ln_s
6445 if test "$LN_S" = "ln -s"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6447 printf "%s\n" "yes" >&6; }
6448 else
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6450 printf "%s\n" "no, using $LN_S" >&6; }
6451 fi
6452
6453 # find the maximum length of command line arguments
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6455 printf %s "checking the maximum length of command line arguments... " >&6; }
6456 if test ${lt_cv_sys_max_cmd_len+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else $as_nop
6460 i=0
6461 teststring=ABCD
6462
6463 case $build_os in
6464 msdosdjgpp*)
6465 # On DJGPP, this test can blow up pretty badly due to problems in libc
6466 # (any single argument exceeding 2000 bytes causes a buffer overrun
6467 # during glob expansion). Even if it were fixed, the result of this
6468 # check would be larger than it should be.
6469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6470 ;;
6471
6472 gnu*)
6473 # Under GNU Hurd, this test is not required because there is
6474 # no limit to the length of command line arguments.
6475 # Libtool will interpret -1 as no limit whatsoever
6476 lt_cv_sys_max_cmd_len=-1;
6477 ;;
6478
6479 cygwin* | mingw* | cegcc*)
6480 # On Win9x/ME, this test blows up -- it succeeds, but takes
6481 # about 5 minutes as the teststring grows exponentially.
6482 # Worse, since 9x/ME are not pre-emptively multitasking,
6483 # you end up with a "frozen" computer, even though with patience
6484 # the test eventually succeeds (with a max line length of 256k).
6485 # Instead, let's just punt: use the minimum linelength reported by
6486 # all of the supported platforms: 8192 (on NT/2K/XP).
6487 lt_cv_sys_max_cmd_len=8192;
6488 ;;
6489
6490 mint*)
6491 # On MiNT this can take a long time and run out of memory.
6492 lt_cv_sys_max_cmd_len=8192;
6493 ;;
6494
6495 amigaos*)
6496 # On AmigaOS with pdksh, this test takes hours, literally.
6497 # So we just punt and use a minimum line length of 8192.
6498 lt_cv_sys_max_cmd_len=8192;
6499 ;;
6500
6501 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6502 # This has been around since 386BSD, at least. Likely further.
6503 if test -x /sbin/sysctl; then
6504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6505 elif test -x /usr/sbin/sysctl; then
6506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6507 else
6508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6509 fi
6510 # And add a safety zone
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6513 ;;
6514
6515 interix*)
6516 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6517 lt_cv_sys_max_cmd_len=196608
6518 ;;
6519
6520 os2*)
6521 # The test takes a long time on OS/2.
6522 lt_cv_sys_max_cmd_len=8192
6523 ;;
6524
6525 osf*)
6526 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6527 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6528 # nice to cause kernel panics so lets avoid the loop below.
6529 # First set a reasonable default.
6530 lt_cv_sys_max_cmd_len=16384
6531 #
6532 if test -x /sbin/sysconfig; then
6533 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6534 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6535 esac
6536 fi
6537 ;;
6538 sco3.2v5*)
6539 lt_cv_sys_max_cmd_len=102400
6540 ;;
6541 sysv5* | sco5v6* | sysv4.2uw2*)
6542 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6543 if test -n "$kargmax"; then
6544 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6545 else
6546 lt_cv_sys_max_cmd_len=32768
6547 fi
6548 ;;
6549 *)
6550 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6551 if test -n "$lt_cv_sys_max_cmd_len" && \
6552 test undefined != "$lt_cv_sys_max_cmd_len"; then
6553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6555 else
6556 # Make teststring a little bigger before we do anything with it.
6557 # a 1K string should be a reasonable start.
6558 for i in 1 2 3 4 5 6 7 8; do
6559 teststring=$teststring$teststring
6560 done
6561 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6562 # If test is not a shell built-in, we'll probably end up computing a
6563 # maximum length that is only half of the actual maximum length, but
6564 # we can't tell.
6565 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6566 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6567 test 17 != "$i" # 1/2 MB should be enough
6568 do
6569 i=`expr $i + 1`
6570 teststring=$teststring$teststring
6571 done
6572 # Only check the string length outside the loop.
6573 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6574 teststring=
6575 # Add a significant safety factor because C++ compilers can tack on
6576 # massive amounts of additional arguments before passing them to the
6577 # linker. It appears as though 1/2 is a usable value.
6578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6579 fi
6580 ;;
6581 esac
6582
6583 fi
6584
6585 if test -n "$lt_cv_sys_max_cmd_len"; then
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6587 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6588 else
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6590 printf "%s\n" "none" >&6; }
6591 fi
6592 max_cmd_len=$lt_cv_sys_max_cmd_len
6593
6594
6595
6596
6597
6598
6599 : ${CP="cp -f"}
6600 : ${MV="mv -f"}
6601 : ${RM="rm -f"}
6602
6603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6604 lt_unset=unset
6605 else
6606 lt_unset=false
6607 fi
6608
6609
6610
6611
6612
6613 # test EBCDIC or ASCII
6614 case `echo X|tr X '\101'` in
6615 A) # ASCII based system
6616 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6617 lt_SP2NL='tr \040 \012'
6618 lt_NL2SP='tr \015\012 \040\040'
6619 ;;
6620 *) # EBCDIC based system
6621 lt_SP2NL='tr \100 \n'
6622 lt_NL2SP='tr \r\n \100\100'
6623 ;;
6624 esac
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6635 printf %s "checking how to convert $build file names to $host format... " >&6; }
6636 if test ${lt_cv_to_host_file_cmd+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 case $host in
6641 *-*-mingw* )
6642 case $build in
6643 *-*-mingw* ) # actually msys
6644 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6645 ;;
6646 *-*-cygwin* )
6647 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6648 ;;
6649 * ) # otherwise, assume *nix
6650 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6651 ;;
6652 esac
6653 ;;
6654 *-*-cygwin* )
6655 case $build in
6656 *-*-mingw* ) # actually msys
6657 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6658 ;;
6659 *-*-cygwin* )
6660 lt_cv_to_host_file_cmd=func_convert_file_noop
6661 ;;
6662 * ) # otherwise, assume *nix
6663 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6664 ;;
6665 esac
6666 ;;
6667 * ) # unhandled hosts (and "normal" native builds)
6668 lt_cv_to_host_file_cmd=func_convert_file_noop
6669 ;;
6670 esac
6671
6672 fi
6673
6674 to_host_file_cmd=$lt_cv_to_host_file_cmd
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6676 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6677
6678
6679
6680
6681
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6683 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6684 if test ${lt_cv_to_tool_file_cmd+y}
6685 then :
6686 printf %s "(cached) " >&6
6687 else $as_nop
6688 #assume ordinary cross tools, or native build.
6689 lt_cv_to_tool_file_cmd=func_convert_file_noop
6690 case $host in
6691 *-*-mingw* )
6692 case $build in
6693 *-*-mingw* ) # actually msys
6694 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6695 ;;
6696 esac
6697 ;;
6698 esac
6699
6700 fi
6701
6702 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6704 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6705
6706
6707
6708
6709
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6711 printf %s "checking for $LD option to reload object files... " >&6; }
6712 if test ${lt_cv_ld_reload_flag+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else $as_nop
6716 lt_cv_ld_reload_flag='-r'
6717 fi
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6719 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6720 reload_flag=$lt_cv_ld_reload_flag
6721 case $reload_flag in
6722 "" | " "*) ;;
6723 *) reload_flag=" $reload_flag" ;;
6724 esac
6725 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6726 case $host_os in
6727 cygwin* | mingw* | pw32* | cegcc*)
6728 if test yes != "$GCC"; then
6729 reload_cmds=false
6730 fi
6731 ;;
6732 darwin*)
6733 if test yes = "$GCC"; then
6734 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6735 else
6736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6737 fi
6738 ;;
6739 esac
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}file; ac_word=$2
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 printf %s "checking for $ac_word... " >&6; }
6754 if test ${ac_cv_prog_FILECMD+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else $as_nop
6758 if test -n "$FILECMD"; then
6759 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 case $as_dir in #(((
6766 '') as_dir=./ ;;
6767 */) ;;
6768 *) as_dir=$as_dir/ ;;
6769 esac
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 FILECMD=$ac_cv_prog_FILECMD
6783 if test -n "$FILECMD"; then
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6785 printf "%s\n" "$FILECMD" >&6; }
6786 else
6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 printf "%s\n" "no" >&6; }
6789 fi
6790
6791
6792 fi
6793 if test -z "$ac_cv_prog_FILECMD"; then
6794 ac_ct_FILECMD=$FILECMD
6795 # Extract the first word of "file", so it can be a program name with args.
6796 set dummy file; ac_word=$2
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 printf %s "checking for $ac_word... " >&6; }
6799 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6800 then :
6801 printf %s "(cached) " >&6
6802 else $as_nop
6803 if test -n "$ac_ct_FILECMD"; then
6804 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 case $as_dir in #(((
6811 '') as_dir=./ ;;
6812 */) ;;
6813 *) as_dir=$as_dir/ ;;
6814 esac
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_ac_ct_FILECMD="file"
6818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6828 if test -n "$ac_ct_FILECMD"; then
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6830 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6831 else
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 printf "%s\n" "no" >&6; }
6834 fi
6835
6836 if test "x$ac_ct_FILECMD" = x; then
6837 FILECMD=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 FILECMD=$ac_ct_FILECMD
6846 fi
6847 else
6848 FILECMD="$ac_cv_prog_FILECMD"
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 printf %s "checking for $ac_word... " >&6; }
6862 if test ${ac_cv_prog_OBJDUMP+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else $as_nop
6866 if test -n "$OBJDUMP"; then
6867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 case $as_dir in #(((
6874 '') as_dir=./ ;;
6875 */) ;;
6876 *) as_dir=$as_dir/ ;;
6877 esac
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 OBJDUMP=$ac_cv_prog_OBJDUMP
6891 if test -n "$OBJDUMP"; then
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6893 printf "%s\n" "$OBJDUMP" >&6; }
6894 else
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 printf "%s\n" "no" >&6; }
6897 fi
6898
6899
6900 fi
6901 if test -z "$ac_cv_prog_OBJDUMP"; then
6902 ac_ct_OBJDUMP=$OBJDUMP
6903 # Extract the first word of "objdump", so it can be a program name with args.
6904 set dummy objdump; ac_word=$2
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 printf %s "checking for $ac_word... " >&6; }
6907 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6908 then :
6909 printf %s "(cached) " >&6
6910 else $as_nop
6911 if test -n "$ac_ct_OBJDUMP"; then
6912 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 case $as_dir in #(((
6919 '') as_dir=./ ;;
6920 */) ;;
6921 *) as_dir=$as_dir/ ;;
6922 esac
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6936 if test -n "$ac_ct_OBJDUMP"; then
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6938 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6939 else
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 printf "%s\n" "no" >&6; }
6942 fi
6943
6944 if test "x$ac_ct_OBJDUMP" = x; then
6945 OBJDUMP="false"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 OBJDUMP=$ac_ct_OBJDUMP
6954 fi
6955 else
6956 OBJDUMP="$ac_cv_prog_OBJDUMP"
6957 fi
6958
6959 test -z "$OBJDUMP" && OBJDUMP=objdump
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6970 printf %s "checking how to recognize dependent libraries... " >&6; }
6971 if test ${lt_cv_deplibs_check_method+y}
6972 then :
6973 printf %s "(cached) " >&6
6974 else $as_nop
6975 lt_cv_file_magic_cmd='$MAGIC_CMD'
6976 lt_cv_file_magic_test_file=
6977 lt_cv_deplibs_check_method='unknown'
6978 # Need to set the preceding variable on all platforms that support
6979 # interlibrary dependencies.
6980 # 'none' -- dependencies not supported.
6981 # 'unknown' -- same as none, but documents that we really don't know.
6982 # 'pass_all' -- all dependencies passed with no checks.
6983 # 'test_compile' -- check by making test program.
6984 # 'file_magic [[regex]]' -- check by looking for files in library path
6985 # that responds to the $file_magic_cmd with a given extended regex.
6986 # If you have 'file' or equivalent on your system and you're not sure
6987 # whether 'pass_all' will *always* work, you probably want this one.
6988
6989 case $host_os in
6990 aix[4-9]*)
6991 lt_cv_deplibs_check_method=pass_all
6992 ;;
6993
6994 beos*)
6995 lt_cv_deplibs_check_method=pass_all
6996 ;;
6997
6998 bsdi[45]*)
6999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7000 lt_cv_file_magic_cmd='$FILECMD -L'
7001 lt_cv_file_magic_test_file=/shlib/libc.so
7002 ;;
7003
7004 cygwin*)
7005 # func_win32_libid is a shell function defined in ltmain.sh
7006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007 lt_cv_file_magic_cmd='func_win32_libid'
7008 ;;
7009
7010 mingw* | pw32*)
7011 # Base MSYS/MinGW do not provide the 'file' command needed by
7012 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7013 # unless we find 'file', for example because we are cross-compiling.
7014 if ( file / ) >/dev/null 2>&1; then
7015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7016 lt_cv_file_magic_cmd='func_win32_libid'
7017 else
7018 # Keep this pattern in sync with the one in func_win32_libid.
7019 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7020 lt_cv_file_magic_cmd='$OBJDUMP -f'
7021 fi
7022 ;;
7023
7024 cegcc*)
7025 # use the weaker test based on 'objdump'. See mingw*.
7026 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7027 lt_cv_file_magic_cmd='$OBJDUMP -f'
7028 ;;
7029
7030 darwin* | rhapsody*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
7033
7034 freebsd* | dragonfly* | midnightbsd*)
7035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7036 case $host_cpu in
7037 i*86 )
7038 # Not sure whether the presence of OpenBSD here was a mistake.
7039 # Let's accept both of them until this is cleared up.
7040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7041 lt_cv_file_magic_cmd=$FILECMD
7042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7043 ;;
7044 esac
7045 else
7046 lt_cv_deplibs_check_method=pass_all
7047 fi
7048 ;;
7049
7050 haiku*)
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7053
7054 hpux10.20* | hpux11*)
7055 lt_cv_file_magic_cmd=$FILECMD
7056 case $host_cpu in
7057 ia64*)
7058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7060 ;;
7061 hppa*64*)
7062 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]'
7063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7064 ;;
7065 *)
7066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7068 ;;
7069 esac
7070 ;;
7071
7072 interix[3-9]*)
7073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7075 ;;
7076
7077 irix5* | irix6* | nonstopux*)
7078 case $LD in
7079 *-32|*"-32 ") libmagic=32-bit;;
7080 *-n32|*"-n32 ") libmagic=N32;;
7081 *-64|*"-64 ") libmagic=64-bit;;
7082 *) libmagic=never-match;;
7083 esac
7084 lt_cv_deplibs_check_method=pass_all
7085 ;;
7086
7087 # This must be glibc/ELF.
7088 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7089 lt_cv_deplibs_check_method=pass_all
7090 ;;
7091
7092 netbsd* | netbsdelf*-gnu)
7093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095 else
7096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7097 fi
7098 ;;
7099
7100 newos6*)
7101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7102 lt_cv_file_magic_cmd=$FILECMD
7103 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7104 ;;
7105
7106 *nto* | *qnx*)
7107 lt_cv_deplibs_check_method=pass_all
7108 ;;
7109
7110 openbsd* | bitrig*)
7111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7113 else
7114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7115 fi
7116 ;;
7117
7118 osf3* | osf4* | osf5*)
7119 lt_cv_deplibs_check_method=pass_all
7120 ;;
7121
7122 rdos*)
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
7125
7126 solaris*)
7127 lt_cv_deplibs_check_method=pass_all
7128 ;;
7129
7130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7131 lt_cv_deplibs_check_method=pass_all
7132 ;;
7133
7134 sysv4 | sysv4.3*)
7135 case $host_vendor in
7136 motorola)
7137 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]'
7138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7139 ;;
7140 ncr)
7141 lt_cv_deplibs_check_method=pass_all
7142 ;;
7143 sequent)
7144 lt_cv_file_magic_cmd='/bin/file'
7145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7146 ;;
7147 sni)
7148 lt_cv_file_magic_cmd='/bin/file'
7149 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7150 lt_cv_file_magic_test_file=/lib/libc.so
7151 ;;
7152 siemens)
7153 lt_cv_deplibs_check_method=pass_all
7154 ;;
7155 pc)
7156 lt_cv_deplibs_check_method=pass_all
7157 ;;
7158 esac
7159 ;;
7160
7161 tpf*)
7162 lt_cv_deplibs_check_method=pass_all
7163 ;;
7164 os2*)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167 esac
7168
7169 fi
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7171 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7172
7173 file_magic_glob=
7174 want_nocaseglob=no
7175 if test "$build" = "$host"; then
7176 case $host_os in
7177 mingw* | pw32*)
7178 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7179 want_nocaseglob=yes
7180 else
7181 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7182 fi
7183 ;;
7184 esac
7185 fi
7186
7187 file_magic_cmd=$lt_cv_file_magic_cmd
7188 deplibs_check_method=$lt_cv_deplibs_check_method
7189 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 printf %s "checking for $ac_word... " >&6; }
7217 if test ${ac_cv_prog_DLLTOOL+y}
7218 then :
7219 printf %s "(cached) " >&6
7220 else $as_nop
7221 if test -n "$DLLTOOL"; then
7222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227 IFS=$as_save_IFS
7228 case $as_dir in #(((
7229 '') as_dir=./ ;;
7230 */) ;;
7231 *) as_dir=$as_dir/ ;;
7232 esac
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 DLLTOOL=$ac_cv_prog_DLLTOOL
7246 if test -n "$DLLTOOL"; then
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7248 printf "%s\n" "$DLLTOOL" >&6; }
7249 else
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 printf "%s\n" "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_DLLTOOL"; then
7257 ac_ct_DLLTOOL=$DLLTOOL
7258 # Extract the first word of "dlltool", so it can be a program name with args.
7259 set dummy dlltool; ac_word=$2
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 printf %s "checking for $ac_word... " >&6; }
7262 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7263 then :
7264 printf %s "(cached) " >&6
7265 else $as_nop
7266 if test -n "$ac_ct_DLLTOOL"; then
7267 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 case $as_dir in #(((
7274 '') as_dir=./ ;;
7275 */) ;;
7276 *) as_dir=$as_dir/ ;;
7277 esac
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7291 if test -n "$ac_ct_DLLTOOL"; then
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7293 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7294 else
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 printf "%s\n" "no" >&6; }
7297 fi
7298
7299 if test "x$ac_ct_DLLTOOL" = x; then
7300 DLLTOOL="false"
7301 else
7302 case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308 DLLTOOL=$ac_ct_DLLTOOL
7309 fi
7310 else
7311 DLLTOOL="$ac_cv_prog_DLLTOOL"
7312 fi
7313
7314 test -z "$DLLTOOL" && DLLTOOL=dlltool
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7326 printf %s "checking how to associate runtime and link libraries... " >&6; }
7327 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7328 then :
7329 printf %s "(cached) " >&6
7330 else $as_nop
7331 lt_cv_sharedlib_from_linklib_cmd='unknown'
7332
7333 case $host_os in
7334 cygwin* | mingw* | pw32* | cegcc*)
7335 # two different shell functions defined in ltmain.sh;
7336 # decide which one to use based on capabilities of $DLLTOOL
7337 case `$DLLTOOL --help 2>&1` in
7338 *--identify-strict*)
7339 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7340 ;;
7341 *)
7342 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7343 ;;
7344 esac
7345 ;;
7346 *)
7347 # fallback: assume linklib IS sharedlib
7348 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7349 ;;
7350 esac
7351
7352 fi
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7354 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7355 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7356 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7357
7358
7359
7360
7361
7362
7363
7364
7365 if test -n "$ac_tool_prefix"; then
7366 for ac_prog in ar
7367 do
7368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 printf %s "checking for $ac_word... " >&6; }
7372 if test ${ac_cv_prog_AR+y}
7373 then :
7374 printf %s "(cached) " >&6
7375 else $as_nop
7376 if test -n "$AR"; then
7377 ac_cv_prog_AR="$AR" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 case $as_dir in #(((
7384 '') as_dir=./ ;;
7385 */) ;;
7386 *) as_dir=$as_dir/ ;;
7387 esac
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 AR=$ac_cv_prog_AR
7401 if test -n "$AR"; then
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7403 printf "%s\n" "$AR" >&6; }
7404 else
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 printf "%s\n" "no" >&6; }
7407 fi
7408
7409
7410 test -n "$AR" && break
7411 done
7412 fi
7413 if test -z "$AR"; then
7414 ac_ct_AR=$AR
7415 for ac_prog in ar
7416 do
7417 # Extract the first word of "$ac_prog", so it can be a program name with args.
7418 set dummy $ac_prog; ac_word=$2
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 printf %s "checking for $ac_word... " >&6; }
7421 if test ${ac_cv_prog_ac_ct_AR+y}
7422 then :
7423 printf %s "(cached) " >&6
7424 else $as_nop
7425 if test -n "$ac_ct_AR"; then
7426 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431 IFS=$as_save_IFS
7432 case $as_dir in #(((
7433 '') as_dir=./ ;;
7434 */) ;;
7435 *) as_dir=$as_dir/ ;;
7436 esac
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_ac_ct_AR="$ac_prog"
7440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7450 if test -n "$ac_ct_AR"; then
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7452 printf "%s\n" "$ac_ct_AR" >&6; }
7453 else
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 printf "%s\n" "no" >&6; }
7456 fi
7457
7458
7459 test -n "$ac_ct_AR" && break
7460 done
7461
7462 if test "x$ac_ct_AR" = x; then
7463 AR="false"
7464 else
7465 case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471 AR=$ac_ct_AR
7472 fi
7473 fi
7474
7475 : ${AR=ar}
7476
7477
7478
7479
7480
7481
7482 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7483 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7484 # higher priority because thats what people were doing historically (setting
7485 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7486 # variable obsoleted/removed.
7487
7488 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7489 lt_ar_flags=$AR_FLAGS
7490
7491
7492
7493
7494
7495
7496 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7497 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7498
7499
7500
7501
7502
7503
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7505 printf %s "checking for archiver @FILE support... " >&6; }
7506 if test ${lt_cv_ar_at_file+y}
7507 then :
7508 printf %s "(cached) " >&6
7509 else $as_nop
7510 lt_cv_ar_at_file=no
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513
7514 int
7515 main (void)
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"
7523 then :
7524 echo conftest.$ac_objext > conftest.lst
7525 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7527 (eval $lt_ar_try) 2>&5
7528 ac_status=$?
7529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }
7531 if test 0 -eq "$ac_status"; then
7532 # Ensure the archiver fails upon bogus file names.
7533 rm -f conftest.$ac_objext libconftest.a
7534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7535 (eval $lt_ar_try) 2>&5
7536 ac_status=$?
7537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; }
7539 if test 0 -ne "$ac_status"; then
7540 lt_cv_ar_at_file=@
7541 fi
7542 fi
7543 rm -f conftest.* libconftest.a
7544
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7547
7548 fi
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7550 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7551
7552 if test no = "$lt_cv_ar_at_file"; then
7553 archiver_list_spec=
7554 else
7555 archiver_list_spec=$lt_cv_ar_at_file
7556 fi
7557
7558
7559
7560
7561
7562
7563
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}strip; ac_word=$2
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 printf %s "checking for $ac_word... " >&6; }
7569 if test ${ac_cv_prog_STRIP+y}
7570 then :
7571 printf %s "(cached) " >&6
7572 else $as_nop
7573 if test -n "$STRIP"; then
7574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579 IFS=$as_save_IFS
7580 case $as_dir in #(((
7581 '') as_dir=./ ;;
7582 */) ;;
7583 *) as_dir=$as_dir/ ;;
7584 esac
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 STRIP=$ac_cv_prog_STRIP
7598 if test -n "$STRIP"; then
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7600 printf "%s\n" "$STRIP" >&6; }
7601 else
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 printf "%s\n" "no" >&6; }
7604 fi
7605
7606
7607 fi
7608 if test -z "$ac_cv_prog_STRIP"; then
7609 ac_ct_STRIP=$STRIP
7610 # Extract the first word of "strip", so it can be a program name with args.
7611 set dummy strip; ac_word=$2
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 printf %s "checking for $ac_word... " >&6; }
7614 if test ${ac_cv_prog_ac_ct_STRIP+y}
7615 then :
7616 printf %s "(cached) " >&6
7617 else $as_nop
7618 if test -n "$ac_ct_STRIP"; then
7619 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624 IFS=$as_save_IFS
7625 case $as_dir in #(((
7626 '') as_dir=./ ;;
7627 */) ;;
7628 *) as_dir=$as_dir/ ;;
7629 esac
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_STRIP="strip"
7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7643 if test -n "$ac_ct_STRIP"; then
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7645 printf "%s\n" "$ac_ct_STRIP" >&6; }
7646 else
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 printf "%s\n" "no" >&6; }
7649 fi
7650
7651 if test "x$ac_ct_STRIP" = x; then
7652 STRIP=":"
7653 else
7654 case $cross_compiling:$ac_tool_warned in
7655 yes:)
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660 STRIP=$ac_ct_STRIP
7661 fi
7662 else
7663 STRIP="$ac_cv_prog_STRIP"
7664 fi
7665
7666 test -z "$STRIP" && STRIP=:
7667
7668
7669
7670
7671
7672
7673 if test -n "$ac_tool_prefix"; then
7674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 printf %s "checking for $ac_word... " >&6; }
7678 if test ${ac_cv_prog_RANLIB+y}
7679 then :
7680 printf %s "(cached) " >&6
7681 else $as_nop
7682 if test -n "$RANLIB"; then
7683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688 IFS=$as_save_IFS
7689 case $as_dir in #(((
7690 '') as_dir=./ ;;
7691 */) ;;
7692 *) as_dir=$as_dir/ ;;
7693 esac
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 RANLIB=$ac_cv_prog_RANLIB
7707 if test -n "$RANLIB"; then
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7709 printf "%s\n" "$RANLIB" >&6; }
7710 else
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 printf "%s\n" "no" >&6; }
7713 fi
7714
7715
7716 fi
7717 if test -z "$ac_cv_prog_RANLIB"; then
7718 ac_ct_RANLIB=$RANLIB
7719 # Extract the first word of "ranlib", so it can be a program name with args.
7720 set dummy ranlib; ac_word=$2
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 printf %s "checking for $ac_word... " >&6; }
7723 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7724 then :
7725 printf %s "(cached) " >&6
7726 else $as_nop
7727 if test -n "$ac_ct_RANLIB"; then
7728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733 IFS=$as_save_IFS
7734 case $as_dir in #(((
7735 '') as_dir=./ ;;
7736 */) ;;
7737 *) as_dir=$as_dir/ ;;
7738 esac
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_ac_ct_RANLIB="ranlib"
7742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7752 if test -n "$ac_ct_RANLIB"; then
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7754 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7755 else
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 printf "%s\n" "no" >&6; }
7758 fi
7759
7760 if test "x$ac_ct_RANLIB" = x; then
7761 RANLIB=":"
7762 else
7763 case $cross_compiling:$ac_tool_warned in
7764 yes:)
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7768 esac
7769 RANLIB=$ac_ct_RANLIB
7770 fi
7771 else
7772 RANLIB="$ac_cv_prog_RANLIB"
7773 fi
7774
7775 test -z "$RANLIB" && RANLIB=:
7776
7777
7778
7779
7780
7781
7782 # Determine commands to create old-style static archives.
7783 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7784 old_postinstall_cmds='chmod 644 $oldlib'
7785 old_postuninstall_cmds=
7786
7787 if test -n "$RANLIB"; then
7788 case $host_os in
7789 bitrig* | openbsd*)
7790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7791 ;;
7792 *)
7793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7794 ;;
7795 esac
7796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7797 fi
7798
7799 case $host_os in
7800 darwin*)
7801 lock_old_archive_extraction=yes ;;
7802 *)
7803 lock_old_archive_extraction=no ;;
7804 esac
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 # If no C compiler was specified, use CC.
7845 LTCC=${LTCC-"$CC"}
7846
7847 # If no C compiler flags were specified, use CFLAGS.
7848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849
7850 # Allow CC to be a program name with arguments.
7851 compiler=$CC
7852
7853
7854 # Check for command to grab the raw symbol name followed by C symbol from nm.
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7856 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7857 if test ${lt_cv_sys_global_symbol_pipe+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else $as_nop
7861
7862 # These are sane defaults that work on at least a few old systems.
7863 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7864
7865 # Character class describing NM global symbol codes.
7866 symcode='[BCDEGRST]'
7867
7868 # Regexp to match symbols that can be accessed directly from C.
7869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7870
7871 # Define system-specific variables.
7872 case $host_os in
7873 aix*)
7874 symcode='[BCDT]'
7875 ;;
7876 cygwin* | mingw* | pw32* | cegcc*)
7877 symcode='[ABCDGISTW]'
7878 ;;
7879 hpux*)
7880 if test ia64 = "$host_cpu"; then
7881 symcode='[ABCDEGRST]'
7882 fi
7883 ;;
7884 irix* | nonstopux*)
7885 symcode='[BCDEGRST]'
7886 ;;
7887 osf*)
7888 symcode='[BCDEGQRST]'
7889 ;;
7890 solaris*)
7891 symcode='[BDRT]'
7892 ;;
7893 sco3.2v5*)
7894 symcode='[DT]'
7895 ;;
7896 sysv4.2uw2*)
7897 symcode='[DT]'
7898 ;;
7899 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7900 symcode='[ABDT]'
7901 ;;
7902 sysv4)
7903 symcode='[DFNSTU]'
7904 ;;
7905 esac
7906
7907 # If we're using GNU nm, then use its standard symbol codes.
7908 case `$NM -V 2>&1` in
7909 *GNU* | *'with BFD'*)
7910 symcode='[ABCDGIRSTW]' ;;
7911 esac
7912
7913 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7914 # Gets list of data symbols to import.
7915 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7916 # Adjust the below global symbol transforms to fixup imported variables.
7917 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7918 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7919 lt_c_name_lib_hook="\
7920 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7921 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7922 else
7923 # Disable hooks by default.
7924 lt_cv_sys_global_symbol_to_import=
7925 lt_cdecl_hook=
7926 lt_c_name_hook=
7927 lt_c_name_lib_hook=
7928 fi
7929
7930 # Transform an extracted symbol line into a proper C declaration.
7931 # Some systems (esp. on ia64) link data and code symbols differently,
7932 # so use this general approach.
7933 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7934 $lt_cdecl_hook\
7935 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7936 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7937
7938 # Transform an extracted symbol line into symbol name and symbol address
7939 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7940 $lt_c_name_hook\
7941 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7942 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7943
7944 # Transform an extracted symbol line into symbol name with lib prefix and
7945 # symbol address.
7946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7947 $lt_c_name_lib_hook\
7948 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7949 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7950 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7951
7952 # Handle CRLF in mingw tool chain
7953 opt_cr=
7954 case $build_os in
7955 mingw*)
7956 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7957 ;;
7958 esac
7959
7960 # Try without a prefix underscore, then with it.
7961 for ac_symprfx in "" "_"; do
7962
7963 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7964 symxfrm="\\1 $ac_symprfx\\2 \\2"
7965
7966 # Write the raw and C identifiers.
7967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7968 # Fake it for dumpbin and say T for any non-static function,
7969 # D for any global variable and I for any imported variable.
7970 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7971 # which start with @ or ?.
7972 lt_cv_sys_global_symbol_pipe="$AWK '"\
7973 " {last_section=section; section=\$ 3};"\
7974 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7975 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7976 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7977 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7978 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7979 " \$ 0!~/External *\|/{next};"\
7980 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7981 " {if(hide[section]) next};"\
7982 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7983 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7984 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7985 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7986 " ' prfx=^$ac_symprfx"
7987 else
7988 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7989 fi
7990 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7991
7992 # Check to see that the pipe works correctly.
7993 pipe_works=no
7994
7995 rm -f conftest*
7996 cat > conftest.$ac_ext <<_LT_EOF
7997 #ifdef __cplusplus
7998 extern "C" {
7999 #endif
8000 char nm_test_var;
8001 void nm_test_func(void);
8002 void nm_test_func(void){}
8003 #ifdef __cplusplus
8004 }
8005 #endif
8006 int main(){nm_test_var='a';nm_test_func();return(0);}
8007 _LT_EOF
8008
8009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8010 (eval $ac_compile) 2>&5
8011 ac_status=$?
8012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013 test $ac_status = 0; }; then
8014 # Now try to grab the symbols.
8015 nlist=conftest.nm
8016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8017 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8018 ac_status=$?
8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020 test $ac_status = 0; } && test -s "$nlist"; then
8021 # Try sorting and uniquifying the output.
8022 if sort "$nlist" | uniq > "$nlist"T; then
8023 mv -f "$nlist"T "$nlist"
8024 else
8025 rm -f "$nlist"T
8026 fi
8027
8028 # Make sure that we snagged all the symbols we need.
8029 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8030 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8031 cat <<_LT_EOF > conftest.$ac_ext
8032 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8033 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8034 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8035 relocations are performed -- see ld's documentation on pseudo-relocs. */
8036 # define LT_DLSYM_CONST
8037 #elif defined __osf__
8038 /* This system does not cope well with relocations in const data. */
8039 # define LT_DLSYM_CONST
8040 #else
8041 # define LT_DLSYM_CONST const
8042 #endif
8043
8044 #ifdef __cplusplus
8045 extern "C" {
8046 #endif
8047
8048 _LT_EOF
8049 # Now generate the symbol file.
8050 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8051
8052 cat <<_LT_EOF >> conftest.$ac_ext
8053
8054 /* The mapping between symbol names and symbols. */
8055 LT_DLSYM_CONST struct {
8056 const char *name;
8057 void *address;
8058 }
8059 lt__PROGRAM__LTX_preloaded_symbols[] =
8060 {
8061 { "@PROGRAM@", (void *) 0 },
8062 _LT_EOF
8063 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8064 cat <<\_LT_EOF >> conftest.$ac_ext
8065 {0, (void *) 0}
8066 };
8067
8068 /* This works around a problem in FreeBSD linker */
8069 #ifdef FREEBSD_WORKAROUND
8070 static const void *lt_preloaded_setup() {
8071 return lt__PROGRAM__LTX_preloaded_symbols;
8072 }
8073 #endif
8074
8075 #ifdef __cplusplus
8076 }
8077 #endif
8078 _LT_EOF
8079 # Now try linking the two files.
8080 mv conftest.$ac_objext conftstm.$ac_objext
8081 lt_globsym_save_LIBS=$LIBS
8082 lt_globsym_save_CFLAGS=$CFLAGS
8083 LIBS=conftstm.$ac_objext
8084 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8086 (eval $ac_link) 2>&5
8087 ac_status=$?
8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8090 pipe_works=yes
8091 fi
8092 LIBS=$lt_globsym_save_LIBS
8093 CFLAGS=$lt_globsym_save_CFLAGS
8094 else
8095 echo "cannot find nm_test_func in $nlist" >&5
8096 fi
8097 else
8098 echo "cannot find nm_test_var in $nlist" >&5
8099 fi
8100 else
8101 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8102 fi
8103 else
8104 echo "$progname: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8106 fi
8107 rm -rf conftest* conftst*
8108
8109 # Do not use the global_symbol_pipe unless it works.
8110 if test yes = "$pipe_works"; then
8111 break
8112 else
8113 lt_cv_sys_global_symbol_pipe=
8114 fi
8115 done
8116
8117 fi
8118
8119 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8120 lt_cv_sys_global_symbol_to_cdecl=
8121 fi
8122 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8124 printf "%s\n" "failed" >&6; }
8125 else
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8127 printf "%s\n" "ok" >&6; }
8128 fi
8129
8130 # Response file support.
8131 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8132 nm_file_list_spec='@'
8133 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8134 nm_file_list_spec='@'
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8174 printf %s "checking for sysroot... " >&6; }
8175
8176 # Check whether --with-sysroot was given.
8177 if test ${with_sysroot+y}
8178 then :
8179 withval=$with_sysroot;
8180 else $as_nop
8181 with_sysroot=no
8182 fi
8183
8184
8185 lt_sysroot=
8186 case $with_sysroot in #(
8187 yes)
8188 if test yes = "$GCC"; then
8189 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8190 fi
8191 ;; #(
8192 /*)
8193 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8194 ;; #(
8195 no|'')
8196 ;; #(
8197 *)
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8199 printf "%s\n" "$with_sysroot" >&6; }
8200 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8201 ;;
8202 esac
8203
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8205 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8206
8207
8208
8209
8210
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8212 printf %s "checking for a working dd... " >&6; }
8213 if test ${ac_cv_path_lt_DD+y}
8214 then :
8215 printf %s "(cached) " >&6
8216 else $as_nop
8217 printf 0123456789abcdef0123456789abcdef >conftest.i
8218 cat conftest.i conftest.i >conftest2.i
8219 : ${lt_DD:=$DD}
8220 if test -z "$lt_DD"; then
8221 ac_path_lt_DD_found=false
8222 # Loop through the user's path and test for each of PROGNAME-LIST
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 case $as_dir in #(((
8228 '') as_dir=./ ;;
8229 */) ;;
8230 *) as_dir=$as_dir/ ;;
8231 esac
8232 for ac_prog in dd
8233 do
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8236 as_fn_executable_p "$ac_path_lt_DD" || continue
8237 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8238 cmp -s conftest.i conftest.out \
8239 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8240 fi
8241 $ac_path_lt_DD_found && break 3
8242 done
8243 done
8244 done
8245 IFS=$as_save_IFS
8246 if test -z "$ac_cv_path_lt_DD"; then
8247 :
8248 fi
8249 else
8250 ac_cv_path_lt_DD=$lt_DD
8251 fi
8252
8253 rm -f conftest.i conftest2.i conftest.out
8254 fi
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8256 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8257
8258
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8260 printf %s "checking how to truncate binary pipes... " >&6; }
8261 if test ${lt_cv_truncate_bin+y}
8262 then :
8263 printf %s "(cached) " >&6
8264 else $as_nop
8265 printf 0123456789abcdef0123456789abcdef >conftest.i
8266 cat conftest.i conftest.i >conftest2.i
8267 lt_cv_truncate_bin=
8268 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8269 cmp -s conftest.i conftest.out \
8270 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8271 fi
8272 rm -f conftest.i conftest2.i conftest.out
8273 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8274 fi
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8276 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8277
8278
8279
8280
8281
8282
8283
8284 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8285 func_cc_basename ()
8286 {
8287 for cc_temp in $*""; do
8288 case $cc_temp in
8289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8291 \-*) ;;
8292 *) break;;
8293 esac
8294 done
8295 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8296 }
8297
8298 # Check whether --enable-libtool-lock was given.
8299 if test ${enable_libtool_lock+y}
8300 then :
8301 enableval=$enable_libtool_lock;
8302 fi
8303
8304 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8305
8306 # Some flags need to be propagated to the compiler or linker for good
8307 # libtool support.
8308 case $host in
8309 ia64-*-hpux*)
8310 # Find out what ABI is being produced by ac_compile, and set mode
8311 # options accordingly.
8312 echo 'int i;' > conftest.$ac_ext
8313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8314 (eval $ac_compile) 2>&5
8315 ac_status=$?
8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8317 test $ac_status = 0; }; then
8318 case `$FILECMD conftest.$ac_objext` in
8319 *ELF-32*)
8320 HPUX_IA64_MODE=32
8321 ;;
8322 *ELF-64*)
8323 HPUX_IA64_MODE=64
8324 ;;
8325 esac
8326 fi
8327 rm -rf conftest*
8328 ;;
8329 *-*-irix6*)
8330 # Find out what ABI is being produced by ac_compile, and set linker
8331 # options accordingly.
8332 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8334 (eval $ac_compile) 2>&5
8335 ac_status=$?
8336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8337 test $ac_status = 0; }; then
8338 if test yes = "$lt_cv_prog_gnu_ld"; then
8339 case `$FILECMD conftest.$ac_objext` in
8340 *32-bit*)
8341 LD="${LD-ld} -melf32bsmip"
8342 ;;
8343 *N32*)
8344 LD="${LD-ld} -melf32bmipn32"
8345 ;;
8346 *64-bit*)
8347 LD="${LD-ld} -melf64bmip"
8348 ;;
8349 esac
8350 else
8351 case `$FILECMD conftest.$ac_objext` in
8352 *32-bit*)
8353 LD="${LD-ld} -32"
8354 ;;
8355 *N32*)
8356 LD="${LD-ld} -n32"
8357 ;;
8358 *64-bit*)
8359 LD="${LD-ld} -64"
8360 ;;
8361 esac
8362 fi
8363 fi
8364 rm -rf conftest*
8365 ;;
8366
8367 mips64*-*linux*)
8368 # Find out what ABI is being produced by ac_compile, and set linker
8369 # options accordingly.
8370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8372 (eval $ac_compile) 2>&5
8373 ac_status=$?
8374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8375 test $ac_status = 0; }; then
8376 emul=elf
8377 case `$FILECMD conftest.$ac_objext` in
8378 *32-bit*)
8379 emul="${emul}32"
8380 ;;
8381 *64-bit*)
8382 emul="${emul}64"
8383 ;;
8384 esac
8385 case `$FILECMD conftest.$ac_objext` in
8386 *MSB*)
8387 emul="${emul}btsmip"
8388 ;;
8389 *LSB*)
8390 emul="${emul}ltsmip"
8391 ;;
8392 esac
8393 case `$FILECMD conftest.$ac_objext` in
8394 *N32*)
8395 emul="${emul}n32"
8396 ;;
8397 esac
8398 LD="${LD-ld} -m $emul"
8399 fi
8400 rm -rf conftest*
8401 ;;
8402
8403 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8404 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8405 # Find out what ABI is being produced by ac_compile, and set linker
8406 # options accordingly. Note that the listed cases only cover the
8407 # situations where additional linker options are needed (such as when
8408 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8409 # vice versa); the common cases where no linker options are needed do
8410 # not appear in the list.
8411 echo 'int i;' > conftest.$ac_ext
8412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8413 (eval $ac_compile) 2>&5
8414 ac_status=$?
8415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8416 test $ac_status = 0; }; then
8417 case `$FILECMD conftest.o` in
8418 *32-bit*)
8419 case $host in
8420 x86_64-*kfreebsd*-gnu)
8421 LD="${LD-ld} -m elf_i386_fbsd"
8422 ;;
8423 x86_64-*linux*)
8424 case `$FILECMD conftest.o` in
8425 *x86-64*)
8426 LD="${LD-ld} -m elf32_x86_64"
8427 ;;
8428 *)
8429 LD="${LD-ld} -m elf_i386"
8430 ;;
8431 esac
8432 ;;
8433 powerpc64le-*linux*)
8434 LD="${LD-ld} -m elf32lppclinux"
8435 ;;
8436 powerpc64-*linux*)
8437 LD="${LD-ld} -m elf32ppclinux"
8438 ;;
8439 s390x-*linux*)
8440 LD="${LD-ld} -m elf_s390"
8441 ;;
8442 sparc64-*linux*)
8443 LD="${LD-ld} -m elf32_sparc"
8444 ;;
8445 esac
8446 ;;
8447 *64-bit*)
8448 case $host in
8449 x86_64-*kfreebsd*-gnu)
8450 LD="${LD-ld} -m elf_x86_64_fbsd"
8451 ;;
8452 x86_64-*linux*)
8453 LD="${LD-ld} -m elf_x86_64"
8454 ;;
8455 powerpcle-*linux*)
8456 LD="${LD-ld} -m elf64lppc"
8457 ;;
8458 powerpc-*linux*)
8459 LD="${LD-ld} -m elf64ppc"
8460 ;;
8461 s390*-*linux*|s390*-*tpf*)
8462 LD="${LD-ld} -m elf64_s390"
8463 ;;
8464 sparc*-*linux*)
8465 LD="${LD-ld} -m elf64_sparc"
8466 ;;
8467 esac
8468 ;;
8469 esac
8470 fi
8471 rm -rf conftest*
8472 ;;
8473
8474 *-*-sco3.2v5*)
8475 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8476 SAVE_CFLAGS=$CFLAGS
8477 CFLAGS="$CFLAGS -belf"
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8479 printf %s "checking whether the C compiler needs -belf... " >&6; }
8480 if test ${lt_cv_cc_needs_belf+y}
8481 then :
8482 printf %s "(cached) " >&6
8483 else $as_nop
8484 ac_ext=c
8485 ac_cpp='$CPP $CPPFLAGS'
8486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492
8493 int
8494 main (void)
8495 {
8496
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"
8502 then :
8503 lt_cv_cc_needs_belf=yes
8504 else $as_nop
8505 lt_cv_cc_needs_belf=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8508 conftest$ac_exeext conftest.$ac_ext
8509 ac_ext=c
8510 ac_cpp='$CPP $CPPFLAGS'
8511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8514
8515 fi
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8517 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8518 if test yes != "$lt_cv_cc_needs_belf"; then
8519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8520 CFLAGS=$SAVE_CFLAGS
8521 fi
8522 ;;
8523 *-*solaris*)
8524 # Find out what ABI is being produced by ac_compile, and set linker
8525 # options accordingly.
8526 echo 'int i;' > conftest.$ac_ext
8527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8528 (eval $ac_compile) 2>&5
8529 ac_status=$?
8530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8531 test $ac_status = 0; }; then
8532 case `$FILECMD conftest.o` in
8533 *64-bit*)
8534 case $lt_cv_prog_gnu_ld in
8535 yes*)
8536 case $host in
8537 i?86-*-solaris*|x86_64-*-solaris*)
8538 LD="${LD-ld} -m elf_x86_64"
8539 ;;
8540 sparc*-*-solaris*)
8541 LD="${LD-ld} -m elf64_sparc"
8542 ;;
8543 esac
8544 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8545 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8546 LD=${LD-ld}_sol2
8547 fi
8548 ;;
8549 *)
8550 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8551 LD="${LD-ld} -64"
8552 fi
8553 ;;
8554 esac
8555 ;;
8556 esac
8557 fi
8558 rm -rf conftest*
8559 ;;
8560 esac
8561
8562 need_locks=$enable_libtool_lock
8563
8564 if test -n "$ac_tool_prefix"; then
8565 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8566 set dummy ${ac_tool_prefix}mt; ac_word=$2
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 printf %s "checking for $ac_word... " >&6; }
8569 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8570 then :
8571 printf %s "(cached) " >&6
8572 else $as_nop
8573 if test -n "$MANIFEST_TOOL"; then
8574 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8575 else
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in $PATH
8578 do
8579 IFS=$as_save_IFS
8580 case $as_dir in #(((
8581 '') as_dir=./ ;;
8582 */) ;;
8583 *) as_dir=$as_dir/ ;;
8584 esac
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591 done
8592 done
8593 IFS=$as_save_IFS
8594
8595 fi
8596 fi
8597 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8598 if test -n "$MANIFEST_TOOL"; then
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8600 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8601 else
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 printf "%s\n" "no" >&6; }
8604 fi
8605
8606
8607 fi
8608 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8609 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8610 # Extract the first word of "mt", so it can be a program name with args.
8611 set dummy mt; ac_word=$2
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 printf %s "checking for $ac_word... " >&6; }
8614 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8615 then :
8616 printf %s "(cached) " >&6
8617 else $as_nop
8618 if test -n "$ac_ct_MANIFEST_TOOL"; then
8619 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8620 else
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624 IFS=$as_save_IFS
8625 case $as_dir in #(((
8626 '') as_dir=./ ;;
8627 */) ;;
8628 *) as_dir=$as_dir/ ;;
8629 esac
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8634 break 2
8635 fi
8636 done
8637 done
8638 IFS=$as_save_IFS
8639
8640 fi
8641 fi
8642 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8643 if test -n "$ac_ct_MANIFEST_TOOL"; then
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8645 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8646 else
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 printf "%s\n" "no" >&6; }
8649 fi
8650
8651 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8652 MANIFEST_TOOL=":"
8653 else
8654 case $cross_compiling:$ac_tool_warned in
8655 yes:)
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8659 esac
8660 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8661 fi
8662 else
8663 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8664 fi
8665
8666 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8668 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8669 if test ${lt_cv_path_mainfest_tool+y}
8670 then :
8671 printf %s "(cached) " >&6
8672 else $as_nop
8673 lt_cv_path_mainfest_tool=no
8674 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8675 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8676 cat conftest.err >&5
8677 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8678 lt_cv_path_mainfest_tool=yes
8679 fi
8680 rm -f conftest*
8681 fi
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8683 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8684 if test yes != "$lt_cv_path_mainfest_tool"; then
8685 MANIFEST_TOOL=:
8686 fi
8687
8688
8689
8690
8691
8692
8693 case $host_os in
8694 rhapsody* | darwin*)
8695 if test -n "$ac_tool_prefix"; then
8696 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8697 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 printf %s "checking for $ac_word... " >&6; }
8700 if test ${ac_cv_prog_DSYMUTIL+y}
8701 then :
8702 printf %s "(cached) " >&6
8703 else $as_nop
8704 if test -n "$DSYMUTIL"; then
8705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8706 else
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710 IFS=$as_save_IFS
8711 case $as_dir in #(((
8712 '') as_dir=./ ;;
8713 */) ;;
8714 *) as_dir=$as_dir/ ;;
8715 esac
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722 done
8723 done
8724 IFS=$as_save_IFS
8725
8726 fi
8727 fi
8728 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8729 if test -n "$DSYMUTIL"; then
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8731 printf "%s\n" "$DSYMUTIL" >&6; }
8732 else
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 printf "%s\n" "no" >&6; }
8735 fi
8736
8737
8738 fi
8739 if test -z "$ac_cv_prog_DSYMUTIL"; then
8740 ac_ct_DSYMUTIL=$DSYMUTIL
8741 # Extract the first word of "dsymutil", so it can be a program name with args.
8742 set dummy dsymutil; ac_word=$2
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 printf %s "checking for $ac_word... " >&6; }
8745 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8746 then :
8747 printf %s "(cached) " >&6
8748 else $as_nop
8749 if test -n "$ac_ct_DSYMUTIL"; then
8750 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755 IFS=$as_save_IFS
8756 case $as_dir in #(((
8757 '') as_dir=./ ;;
8758 */) ;;
8759 *) as_dir=$as_dir/ ;;
8760 esac
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767 done
8768 done
8769 IFS=$as_save_IFS
8770
8771 fi
8772 fi
8773 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8774 if test -n "$ac_ct_DSYMUTIL"; then
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8776 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8777 else
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 printf "%s\n" "no" >&6; }
8780 fi
8781
8782 if test "x$ac_ct_DSYMUTIL" = x; then
8783 DSYMUTIL=":"
8784 else
8785 case $cross_compiling:$ac_tool_warned in
8786 yes:)
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789 ac_tool_warned=yes ;;
8790 esac
8791 DSYMUTIL=$ac_ct_DSYMUTIL
8792 fi
8793 else
8794 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8795 fi
8796
8797 if test -n "$ac_tool_prefix"; then
8798 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 printf %s "checking for $ac_word... " >&6; }
8802 if test ${ac_cv_prog_NMEDIT+y}
8803 then :
8804 printf %s "(cached) " >&6
8805 else $as_nop
8806 if test -n "$NMEDIT"; then
8807 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8808 else
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8811 do
8812 IFS=$as_save_IFS
8813 case $as_dir in #(((
8814 '') as_dir=./ ;;
8815 */) ;;
8816 *) as_dir=$as_dir/ ;;
8817 esac
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824 done
8825 done
8826 IFS=$as_save_IFS
8827
8828 fi
8829 fi
8830 NMEDIT=$ac_cv_prog_NMEDIT
8831 if test -n "$NMEDIT"; then
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8833 printf "%s\n" "$NMEDIT" >&6; }
8834 else
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 printf "%s\n" "no" >&6; }
8837 fi
8838
8839
8840 fi
8841 if test -z "$ac_cv_prog_NMEDIT"; then
8842 ac_ct_NMEDIT=$NMEDIT
8843 # Extract the first word of "nmedit", so it can be a program name with args.
8844 set dummy nmedit; ac_word=$2
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846 printf %s "checking for $ac_word... " >&6; }
8847 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8848 then :
8849 printf %s "(cached) " >&6
8850 else $as_nop
8851 if test -n "$ac_ct_NMEDIT"; then
8852 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8853 else
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8856 do
8857 IFS=$as_save_IFS
8858 case $as_dir in #(((
8859 '') as_dir=./ ;;
8860 */) ;;
8861 *) as_dir=$as_dir/ ;;
8862 esac
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869 done
8870 done
8871 IFS=$as_save_IFS
8872
8873 fi
8874 fi
8875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8876 if test -n "$ac_ct_NMEDIT"; then
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8878 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8879 else
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 printf "%s\n" "no" >&6; }
8882 fi
8883
8884 if test "x$ac_ct_NMEDIT" = x; then
8885 NMEDIT=":"
8886 else
8887 case $cross_compiling:$ac_tool_warned in
8888 yes:)
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8891 ac_tool_warned=yes ;;
8892 esac
8893 NMEDIT=$ac_ct_NMEDIT
8894 fi
8895 else
8896 NMEDIT="$ac_cv_prog_NMEDIT"
8897 fi
8898
8899 if test -n "$ac_tool_prefix"; then
8900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 printf %s "checking for $ac_word... " >&6; }
8904 if test ${ac_cv_prog_LIPO+y}
8905 then :
8906 printf %s "(cached) " >&6
8907 else $as_nop
8908 if test -n "$LIPO"; then
8909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914 IFS=$as_save_IFS
8915 case $as_dir in #(((
8916 '') as_dir=./ ;;
8917 */) ;;
8918 *) as_dir=$as_dir/ ;;
8919 esac
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8924 break 2
8925 fi
8926 done
8927 done
8928 IFS=$as_save_IFS
8929
8930 fi
8931 fi
8932 LIPO=$ac_cv_prog_LIPO
8933 if test -n "$LIPO"; then
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8935 printf "%s\n" "$LIPO" >&6; }
8936 else
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 printf "%s\n" "no" >&6; }
8939 fi
8940
8941
8942 fi
8943 if test -z "$ac_cv_prog_LIPO"; then
8944 ac_ct_LIPO=$LIPO
8945 # Extract the first word of "lipo", so it can be a program name with args.
8946 set dummy lipo; ac_word=$2
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 printf %s "checking for $ac_word... " >&6; }
8949 if test ${ac_cv_prog_ac_ct_LIPO+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else $as_nop
8953 if test -n "$ac_ct_LIPO"; then
8954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959 IFS=$as_save_IFS
8960 case $as_dir in #(((
8961 '') as_dir=./ ;;
8962 */) ;;
8963 *) as_dir=$as_dir/ ;;
8964 esac
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_ac_ct_LIPO="lipo"
8968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8969 break 2
8970 fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 fi
8976 fi
8977 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8978 if test -n "$ac_ct_LIPO"; then
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8980 printf "%s\n" "$ac_ct_LIPO" >&6; }
8981 else
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 printf "%s\n" "no" >&6; }
8984 fi
8985
8986 if test "x$ac_ct_LIPO" = x; then
8987 LIPO=":"
8988 else
8989 case $cross_compiling:$ac_tool_warned in
8990 yes:)
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8992 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8993 ac_tool_warned=yes ;;
8994 esac
8995 LIPO=$ac_ct_LIPO
8996 fi
8997 else
8998 LIPO="$ac_cv_prog_LIPO"
8999 fi
9000
9001 if test -n "$ac_tool_prefix"; then
9002 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}otool; ac_word=$2
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 printf %s "checking for $ac_word... " >&6; }
9006 if test ${ac_cv_prog_OTOOL+y}
9007 then :
9008 printf %s "(cached) " >&6
9009 else $as_nop
9010 if test -n "$OTOOL"; then
9011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016 IFS=$as_save_IFS
9017 case $as_dir in #(((
9018 '') as_dir=./ ;;
9019 */) ;;
9020 *) as_dir=$as_dir/ ;;
9021 esac
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9024 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9026 break 2
9027 fi
9028 done
9029 done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 OTOOL=$ac_cv_prog_OTOOL
9035 if test -n "$OTOOL"; then
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9037 printf "%s\n" "$OTOOL" >&6; }
9038 else
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 printf "%s\n" "no" >&6; }
9041 fi
9042
9043
9044 fi
9045 if test -z "$ac_cv_prog_OTOOL"; then
9046 ac_ct_OTOOL=$OTOOL
9047 # Extract the first word of "otool", so it can be a program name with args.
9048 set dummy otool; ac_word=$2
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050 printf %s "checking for $ac_word... " >&6; }
9051 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9052 then :
9053 printf %s "(cached) " >&6
9054 else $as_nop
9055 if test -n "$ac_ct_OTOOL"; then
9056 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9060 do
9061 IFS=$as_save_IFS
9062 case $as_dir in #(((
9063 '') as_dir=./ ;;
9064 */) ;;
9065 *) as_dir=$as_dir/ ;;
9066 esac
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9069 ac_cv_prog_ac_ct_OTOOL="otool"
9070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9071 break 2
9072 fi
9073 done
9074 done
9075 IFS=$as_save_IFS
9076
9077 fi
9078 fi
9079 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9080 if test -n "$ac_ct_OTOOL"; then
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9082 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9083 else
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 printf "%s\n" "no" >&6; }
9086 fi
9087
9088 if test "x$ac_ct_OTOOL" = x; then
9089 OTOOL=":"
9090 else
9091 case $cross_compiling:$ac_tool_warned in
9092 yes:)
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9095 ac_tool_warned=yes ;;
9096 esac
9097 OTOOL=$ac_ct_OTOOL
9098 fi
9099 else
9100 OTOOL="$ac_cv_prog_OTOOL"
9101 fi
9102
9103 if test -n "$ac_tool_prefix"; then
9104 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9105 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 printf %s "checking for $ac_word... " >&6; }
9108 if test ${ac_cv_prog_OTOOL64+y}
9109 then :
9110 printf %s "(cached) " >&6
9111 else $as_nop
9112 if test -n "$OTOOL64"; then
9113 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9114 else
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9117 do
9118 IFS=$as_save_IFS
9119 case $as_dir in #(((
9120 '') as_dir=./ ;;
9121 */) ;;
9122 *) as_dir=$as_dir/ ;;
9123 esac
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130 done
9131 done
9132 IFS=$as_save_IFS
9133
9134 fi
9135 fi
9136 OTOOL64=$ac_cv_prog_OTOOL64
9137 if test -n "$OTOOL64"; then
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9139 printf "%s\n" "$OTOOL64" >&6; }
9140 else
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 printf "%s\n" "no" >&6; }
9143 fi
9144
9145
9146 fi
9147 if test -z "$ac_cv_prog_OTOOL64"; then
9148 ac_ct_OTOOL64=$OTOOL64
9149 # Extract the first word of "otool64", so it can be a program name with args.
9150 set dummy otool64; ac_word=$2
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 printf %s "checking for $ac_word... " >&6; }
9153 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else $as_nop
9157 if test -n "$ac_ct_OTOOL64"; then
9158 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9159 else
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in $PATH
9162 do
9163 IFS=$as_save_IFS
9164 case $as_dir in #(((
9165 '') as_dir=./ ;;
9166 */) ;;
9167 *) as_dir=$as_dir/ ;;
9168 esac
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_ac_ct_OTOOL64="otool64"
9172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 fi
9180 fi
9181 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9182 if test -n "$ac_ct_OTOOL64"; then
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9184 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9185 else
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 printf "%s\n" "no" >&6; }
9188 fi
9189
9190 if test "x$ac_ct_OTOOL64" = x; then
9191 OTOOL64=":"
9192 else
9193 case $cross_compiling:$ac_tool_warned in
9194 yes:)
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9197 ac_tool_warned=yes ;;
9198 esac
9199 OTOOL64=$ac_ct_OTOOL64
9200 fi
9201 else
9202 OTOOL64="$ac_cv_prog_OTOOL64"
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9232 printf %s "checking for -single_module linker flag... " >&6; }
9233 if test ${lt_cv_apple_cc_single_mod+y}
9234 then :
9235 printf %s "(cached) " >&6
9236 else $as_nop
9237 lt_cv_apple_cc_single_mod=no
9238 if test -z "$LT_MULTI_MODULE"; then
9239 # By default we will add the -single_module flag. You can override
9240 # by either setting the environment variable LT_MULTI_MODULE
9241 # non-empty at configure time, or by adding -multi_module to the
9242 # link flags.
9243 rm -rf libconftest.dylib*
9244 echo "int foo(void){return 1;}" > conftest.c
9245 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9246 -dynamiclib -Wl,-single_module conftest.c" >&5
9247 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9248 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9249 _lt_result=$?
9250 # If there is a non-empty error log, and "single_module"
9251 # appears in it, assume the flag caused a linker warning
9252 if test -s conftest.err && $GREP single_module conftest.err; then
9253 cat conftest.err >&5
9254 # Otherwise, if the output was created with a 0 exit code from
9255 # the compiler, it worked.
9256 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9257 lt_cv_apple_cc_single_mod=yes
9258 else
9259 cat conftest.err >&5
9260 fi
9261 rm -rf libconftest.dylib*
9262 rm -f conftest.*
9263 fi
9264 fi
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9266 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9267
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9269 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9270 if test ${lt_cv_ld_exported_symbols_list+y}
9271 then :
9272 printf %s "(cached) " >&6
9273 else $as_nop
9274 lt_cv_ld_exported_symbols_list=no
9275 save_LDFLAGS=$LDFLAGS
9276 echo "_main" > conftest.sym
9277 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280
9281 int
9282 main (void)
9283 {
9284
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"
9290 then :
9291 lt_cv_ld_exported_symbols_list=yes
9292 else $as_nop
9293 lt_cv_ld_exported_symbols_list=no
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9296 conftest$ac_exeext conftest.$ac_ext
9297 LDFLAGS=$save_LDFLAGS
9298
9299 fi
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9301 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9302
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9304 printf %s "checking for -force_load linker flag... " >&6; }
9305 if test ${lt_cv_ld_force_load+y}
9306 then :
9307 printf %s "(cached) " >&6
9308 else $as_nop
9309 lt_cv_ld_force_load=no
9310 cat > conftest.c << _LT_EOF
9311 int forced_loaded() { return 2;}
9312 _LT_EOF
9313 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9314 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9315 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9316 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9317 echo "$RANLIB libconftest.a" >&5
9318 $RANLIB libconftest.a 2>&5
9319 cat > conftest.c << _LT_EOF
9320 int main() { return 0;}
9321 _LT_EOF
9322 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9323 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9324 _lt_result=$?
9325 if test -s conftest.err && $GREP force_load conftest.err; then
9326 cat conftest.err >&5
9327 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9328 lt_cv_ld_force_load=yes
9329 else
9330 cat conftest.err >&5
9331 fi
9332 rm -f conftest.err libconftest.a conftest conftest.c
9333 rm -rf conftest.dSYM
9334
9335 fi
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9337 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9338 case $host_os in
9339 rhapsody* | darwin1.[012])
9340 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9341 darwin1.*)
9342 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9343 darwin*)
9344 case $MACOSX_DEPLOYMENT_TARGET,$host in
9345 10.[012],*|,*powerpc*-darwin[5-8]*)
9346 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9347 *)
9348 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9349 esac
9350 ;;
9351 esac
9352 if test yes = "$lt_cv_apple_cc_single_mod"; then
9353 _lt_dar_single_mod='$single_module'
9354 fi
9355 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9356 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9357 else
9358 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9359 fi
9360 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9361 _lt_dsymutil='~$DSYMUTIL $lib || :'
9362 else
9363 _lt_dsymutil=
9364 fi
9365 ;;
9366 esac
9367
9368 # func_munge_path_list VARIABLE PATH
9369 # -----------------------------------
9370 # VARIABLE is name of variable containing _space_ separated list of
9371 # directories to be munged by the contents of PATH, which is string
9372 # having a format:
9373 # "DIR[:DIR]:"
9374 # string "DIR[ DIR]" will be prepended to VARIABLE
9375 # ":DIR[:DIR]"
9376 # string "DIR[ DIR]" will be appended to VARIABLE
9377 # "DIRP[:DIRP]::[DIRA:]DIRA"
9378 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9379 # "DIRA[ DIRA]" will be appended to VARIABLE
9380 # "DIR[:DIR]"
9381 # VARIABLE will be replaced by "DIR[ DIR]"
9382 func_munge_path_list ()
9383 {
9384 case x$2 in
9385 x)
9386 ;;
9387 *:)
9388 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9389 ;;
9390 x:*)
9391 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9392 ;;
9393 *::*)
9394 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9395 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9396 ;;
9397 *)
9398 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9399 ;;
9400 esac
9401 }
9402
9403 ac_header= ac_cache=
9404 for ac_item in $ac_header_c_list
9405 do
9406 if test $ac_cache; then
9407 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9408 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9409 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9410 fi
9411 ac_header= ac_cache=
9412 elif test $ac_header; then
9413 ac_cache=$ac_item
9414 else
9415 ac_header=$ac_item
9416 fi
9417 done
9418
9419
9420
9421
9422
9423
9424
9425
9426 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9427 then :
9428
9429 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9430
9431 fi
9432 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9433 "
9434 if test "x$ac_cv_header_dlfcn_h" = xyes
9435 then :
9436 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9437
9438 fi
9439
9440
9441
9442
9443 func_stripname_cnf ()
9444 {
9445 case $2 in
9446 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9447 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9448 esac
9449 } # func_stripname_cnf
9450
9451
9452
9453
9454
9455 # Set options
9456
9457
9458
9459 enable_dlopen=no
9460
9461
9462 enable_win32_dll=no
9463
9464
9465 # Check whether --enable-shared was given.
9466 if test ${enable_shared+y}
9467 then :
9468 enableval=$enable_shared; p=${PACKAGE-default}
9469 case $enableval in
9470 yes) enable_shared=yes ;;
9471 no) enable_shared=no ;;
9472 *)
9473 enable_shared=no
9474 # Look at the argument we got. We use all the common list separators.
9475 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9476 for pkg in $enableval; do
9477 IFS=$lt_save_ifs
9478 if test "X$pkg" = "X$p"; then
9479 enable_shared=yes
9480 fi
9481 done
9482 IFS=$lt_save_ifs
9483 ;;
9484 esac
9485 else $as_nop
9486 enable_shared=yes
9487 fi
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 # Check whether --enable-static was given.
9498 if test ${enable_static+y}
9499 then :
9500 enableval=$enable_static; p=${PACKAGE-default}
9501 case $enableval in
9502 yes) enable_static=yes ;;
9503 no) enable_static=no ;;
9504 *)
9505 enable_static=no
9506 # Look at the argument we got. We use all the common list separators.
9507 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9508 for pkg in $enableval; do
9509 IFS=$lt_save_ifs
9510 if test "X$pkg" = "X$p"; then
9511 enable_static=yes
9512 fi
9513 done
9514 IFS=$lt_save_ifs
9515 ;;
9516 esac
9517 else $as_nop
9518 enable_static=yes
9519 fi
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530 # Check whether --with-pic was given.
9531 if test ${with_pic+y}
9532 then :
9533 withval=$with_pic; lt_p=${PACKAGE-default}
9534 case $withval in
9535 yes|no) pic_mode=$withval ;;
9536 *)
9537 pic_mode=default
9538 # Look at the argument we got. We use all the common list separators.
9539 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9540 for lt_pkg in $withval; do
9541 IFS=$lt_save_ifs
9542 if test "X$lt_pkg" = "X$lt_p"; then
9543 pic_mode=yes
9544 fi
9545 done
9546 IFS=$lt_save_ifs
9547 ;;
9548 esac
9549 else $as_nop
9550 pic_mode=default
9551 fi
9552
9553
9554
9555
9556
9557
9558
9559
9560 # Check whether --enable-fast-install was given.
9561 if test ${enable_fast_install+y}
9562 then :
9563 enableval=$enable_fast_install; p=${PACKAGE-default}
9564 case $enableval in
9565 yes) enable_fast_install=yes ;;
9566 no) enable_fast_install=no ;;
9567 *)
9568 enable_fast_install=no
9569 # Look at the argument we got. We use all the common list separators.
9570 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9571 for pkg in $enableval; do
9572 IFS=$lt_save_ifs
9573 if test "X$pkg" = "X$p"; then
9574 enable_fast_install=yes
9575 fi
9576 done
9577 IFS=$lt_save_ifs
9578 ;;
9579 esac
9580 else $as_nop
9581 enable_fast_install=yes
9582 fi
9583
9584
9585
9586
9587
9588
9589
9590
9591 shared_archive_member_spec=
9592 case $host,$enable_shared in
9593 power*-*-aix[5-9]*,yes)
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9595 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9596
9597 # Check whether --with-aix-soname was given.
9598 if test ${with_aix_soname+y}
9599 then :
9600 withval=$with_aix_soname; case $withval in
9601 aix|svr4|both)
9602 ;;
9603 *)
9604 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9605 ;;
9606 esac
9607 lt_cv_with_aix_soname=$with_aix_soname
9608 else $as_nop
9609 if test ${lt_cv_with_aix_soname+y}
9610 then :
9611 printf %s "(cached) " >&6
9612 else $as_nop
9613 lt_cv_with_aix_soname=aix
9614 fi
9615
9616 with_aix_soname=$lt_cv_with_aix_soname
9617 fi
9618
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9620 printf "%s\n" "$with_aix_soname" >&6; }
9621 if test aix != "$with_aix_soname"; then
9622 # For the AIX way of multilib, we name the shared archive member
9623 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9624 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9625 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9626 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9627 if test 64 = "${OBJECT_MODE-32}"; then
9628 shared_archive_member_spec=shr_64
9629 else
9630 shared_archive_member_spec=shr
9631 fi
9632 fi
9633 ;;
9634 *)
9635 with_aix_soname=aix
9636 ;;
9637 esac
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 # This can be used to rebuild libtool when needed
9649 LIBTOOL_DEPS=$ltmain
9650
9651 # Always use our own libtool.
9652 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683 test -z "$LN_S" && LN_S="ln -s"
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698 if test -n "${ZSH_VERSION+set}"; then
9699 setopt NO_GLOB_SUBST
9700 fi
9701
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9703 printf %s "checking for objdir... " >&6; }
9704 if test ${lt_cv_objdir+y}
9705 then :
9706 printf %s "(cached) " >&6
9707 else $as_nop
9708 rm -f .libs 2>/dev/null
9709 mkdir .libs 2>/dev/null
9710 if test -d .libs; then
9711 lt_cv_objdir=.libs
9712 else
9713 # MS-DOS does not allow filenames that begin with a dot.
9714 lt_cv_objdir=_libs
9715 fi
9716 rmdir .libs 2>/dev/null
9717 fi
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9719 printf "%s\n" "$lt_cv_objdir" >&6; }
9720 objdir=$lt_cv_objdir
9721
9722
9723
9724
9725
9726 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9727
9728
9729
9730
9731 case $host_os in
9732 aix3*)
9733 # AIX sometimes has problems with the GCC collect2 program. For some
9734 # reason, if we set the COLLECT_NAMES environment variable, the problems
9735 # vanish in a puff of smoke.
9736 if test set != "${COLLECT_NAMES+set}"; then
9737 COLLECT_NAMES=
9738 export COLLECT_NAMES
9739 fi
9740 ;;
9741 esac
9742
9743 # Global variables:
9744 ofile=libtool
9745 can_build_shared=yes
9746
9747 # All known linkers require a '.a' archive for static linking (except MSVC and
9748 # ICC, which need '.lib').
9749 libext=a
9750
9751 with_gnu_ld=$lt_cv_prog_gnu_ld
9752
9753 old_CC=$CC
9754 old_CFLAGS=$CFLAGS
9755
9756 # Set sane defaults for various variables
9757 test -z "$CC" && CC=cc
9758 test -z "$LTCC" && LTCC=$CC
9759 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9760 test -z "$LD" && LD=ld
9761 test -z "$ac_objext" && ac_objext=o
9762
9763 func_cc_basename $compiler
9764 cc_basename=$func_cc_basename_result
9765
9766
9767 # Only perform the check for file, if the check method requires it
9768 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9769 case $deplibs_check_method in
9770 file_magic*)
9771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9773 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9774 if test ${lt_cv_path_MAGIC_CMD+y}
9775 then :
9776 printf %s "(cached) " >&6
9777 else $as_nop
9778 case $MAGIC_CMD in
9779 [\\/*] | ?:[\\/]*)
9780 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9781 ;;
9782 *)
9783 lt_save_MAGIC_CMD=$MAGIC_CMD
9784 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9786 for ac_dir in $ac_dummy; do
9787 IFS=$lt_save_ifs
9788 test -z "$ac_dir" && ac_dir=.
9789 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9790 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9791 if test -n "$file_magic_test_file"; then
9792 case $deplibs_check_method in
9793 "file_magic "*)
9794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9795 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9797 $EGREP "$file_magic_regex" > /dev/null; then
9798 :
9799 else
9800 cat <<_LT_EOF 1>&2
9801
9802 *** Warning: the command libtool uses to detect shared libraries,
9803 *** $file_magic_cmd, produces output that libtool cannot recognize.
9804 *** The result is that libtool may fail to recognize shared libraries
9805 *** as such. This will affect the creation of libtool libraries that
9806 *** depend on shared libraries, but programs linked with such libtool
9807 *** libraries will work regardless of this problem. Nevertheless, you
9808 *** may want to report the problem to your system manager and/or to
9809 *** bug-libtool@gnu.org
9810
9811 _LT_EOF
9812 fi ;;
9813 esac
9814 fi
9815 break
9816 fi
9817 done
9818 IFS=$lt_save_ifs
9819 MAGIC_CMD=$lt_save_MAGIC_CMD
9820 ;;
9821 esac
9822 fi
9823
9824 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9825 if test -n "$MAGIC_CMD"; then
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9827 printf "%s\n" "$MAGIC_CMD" >&6; }
9828 else
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 printf "%s\n" "no" >&6; }
9831 fi
9832
9833
9834
9835
9836
9837 if test -z "$lt_cv_path_MAGIC_CMD"; then
9838 if test -n "$ac_tool_prefix"; then
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9840 printf %s "checking for file... " >&6; }
9841 if test ${lt_cv_path_MAGIC_CMD+y}
9842 then :
9843 printf %s "(cached) " >&6
9844 else $as_nop
9845 case $MAGIC_CMD in
9846 [\\/*] | ?:[\\/]*)
9847 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9848 ;;
9849 *)
9850 lt_save_MAGIC_CMD=$MAGIC_CMD
9851 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9853 for ac_dir in $ac_dummy; do
9854 IFS=$lt_save_ifs
9855 test -z "$ac_dir" && ac_dir=.
9856 if test -f "$ac_dir/file"; then
9857 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9858 if test -n "$file_magic_test_file"; then
9859 case $deplibs_check_method in
9860 "file_magic "*)
9861 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9862 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9864 $EGREP "$file_magic_regex" > /dev/null; then
9865 :
9866 else
9867 cat <<_LT_EOF 1>&2
9868
9869 *** Warning: the command libtool uses to detect shared libraries,
9870 *** $file_magic_cmd, produces output that libtool cannot recognize.
9871 *** The result is that libtool may fail to recognize shared libraries
9872 *** as such. This will affect the creation of libtool libraries that
9873 *** depend on shared libraries, but programs linked with such libtool
9874 *** libraries will work regardless of this problem. Nevertheless, you
9875 *** may want to report the problem to your system manager and/or to
9876 *** bug-libtool@gnu.org
9877
9878 _LT_EOF
9879 fi ;;
9880 esac
9881 fi
9882 break
9883 fi
9884 done
9885 IFS=$lt_save_ifs
9886 MAGIC_CMD=$lt_save_MAGIC_CMD
9887 ;;
9888 esac
9889 fi
9890
9891 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9892 if test -n "$MAGIC_CMD"; then
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9894 printf "%s\n" "$MAGIC_CMD" >&6; }
9895 else
9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 printf "%s\n" "no" >&6; }
9898 fi
9899
9900
9901 else
9902 MAGIC_CMD=:
9903 fi
9904 fi
9905
9906 fi
9907 ;;
9908 esac
9909
9910 # Use C for the default configuration in the libtool script
9911
9912 lt_save_CC=$CC
9913 ac_ext=c
9914 ac_cpp='$CPP $CPPFLAGS'
9915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9918
9919
9920 # Source file extension for C test sources.
9921 ac_ext=c
9922
9923 # Object file extension for compiled C test sources.
9924 objext=o
9925 objext=$objext
9926
9927 # Code to be used in simple compile tests
9928 lt_simple_compile_test_code="int some_variable = 0;"
9929
9930 # Code to be used in simple link tests
9931 lt_simple_link_test_code='int main(){return(0);}'
9932
9933
9934
9935
9936
9937
9938
9939 # If no C compiler was specified, use CC.
9940 LTCC=${LTCC-"$CC"}
9941
9942 # If no C compiler flags were specified, use CFLAGS.
9943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9944
9945 # Allow CC to be a program name with arguments.
9946 compiler=$CC
9947
9948 # Save the default compiler, since it gets overwritten when the other
9949 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9950 compiler_DEFAULT=$CC
9951
9952 # save warnings/boilerplate of simple test code
9953 ac_outfile=conftest.$ac_objext
9954 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9956 _lt_compiler_boilerplate=`cat conftest.err`
9957 $RM conftest*
9958
9959 ac_outfile=conftest.$ac_objext
9960 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9962 _lt_linker_boilerplate=`cat conftest.err`
9963 $RM -r conftest*
9964
9965
9966 ## CAVEAT EMPTOR:
9967 ## There is no encapsulation within the following macros, do not change
9968 ## the running order or otherwise move them around unless you know exactly
9969 ## what you are doing...
9970 if test -n "$compiler"; then
9971
9972 lt_prog_compiler_no_builtin_flag=
9973
9974 if test yes = "$GCC"; then
9975 case $cc_basename in
9976 nvcc*)
9977 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9978 *)
9979 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9980 esac
9981
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9983 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9984 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9985 then :
9986 printf %s "(cached) " >&6
9987 else $as_nop
9988 lt_cv_prog_compiler_rtti_exceptions=no
9989 ac_outfile=conftest.$ac_objext
9990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9991 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9992 # Insert the option either (1) after the last *FLAGS variable, or
9993 # (2) before a word containing "conftest.", or (3) at the end.
9994 # Note that $ac_compile itself does not contain backslashes and begins
9995 # with a dollar sign (not a hyphen), so the echo should work correctly.
9996 # The option is referenced via a variable to avoid confusing sed.
9997 lt_compile=`echo "$ac_compile" | $SED \
9998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10000 -e 's:$: $lt_compiler_flag:'`
10001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10002 (eval "$lt_compile" 2>conftest.err)
10003 ac_status=$?
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 if (exit $ac_status) && test -s "$ac_outfile"; then
10007 # The compiler can only warn and ignore the option if not recognized
10008 # So say no if there are warnings other than the usual output.
10009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10012 lt_cv_prog_compiler_rtti_exceptions=yes
10013 fi
10014 fi
10015 $RM conftest*
10016
10017 fi
10018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10019 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10020
10021 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10022 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10023 else
10024 :
10025 fi
10026
10027 fi
10028
10029
10030
10031
10032
10033
10034 lt_prog_compiler_wl=
10035 lt_prog_compiler_pic=
10036 lt_prog_compiler_static=
10037
10038
10039 if test yes = "$GCC"; then
10040 lt_prog_compiler_wl='-Wl,'
10041 lt_prog_compiler_static='-static'
10042
10043 case $host_os in
10044 aix*)
10045 # All AIX code is PIC.
10046 if test ia64 = "$host_cpu"; then
10047 # AIX 5 now supports IA64 processor
10048 lt_prog_compiler_static='-Bstatic'
10049 fi
10050 lt_prog_compiler_pic='-fPIC'
10051 ;;
10052
10053 amigaos*)
10054 case $host_cpu in
10055 powerpc)
10056 # see comment about AmigaOS4 .so support
10057 lt_prog_compiler_pic='-fPIC'
10058 ;;
10059 m68k)
10060 # FIXME: we need at least 68020 code to build shared libraries, but
10061 # adding the '-m68020' flag to GCC prevents building anything better,
10062 # like '-m68040'.
10063 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10064 ;;
10065 esac
10066 ;;
10067
10068 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10069 # PIC is the default for these OSes.
10070 ;;
10071
10072 mingw* | cygwin* | pw32* | os2* | cegcc*)
10073 # This hack is so that the source file can tell whether it is being
10074 # built for inclusion in a dll (and should export symbols for example).
10075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10076 # (--disable-auto-import) libraries
10077 lt_prog_compiler_pic='-DDLL_EXPORT'
10078 case $host_os in
10079 os2*)
10080 lt_prog_compiler_static='$wl-static'
10081 ;;
10082 esac
10083 ;;
10084
10085 darwin* | rhapsody*)
10086 # PIC is the default on this platform
10087 # Common symbols not allowed in MH_DYLIB files
10088 lt_prog_compiler_pic='-fno-common'
10089 ;;
10090
10091 haiku*)
10092 # PIC is the default for Haiku.
10093 # The "-static" flag exists, but is broken.
10094 lt_prog_compiler_static=
10095 ;;
10096
10097 hpux*)
10098 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10099 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10100 # sets the default TLS model and affects inlining.
10101 case $host_cpu in
10102 hppa*64*)
10103 # +Z the default
10104 ;;
10105 *)
10106 lt_prog_compiler_pic='-fPIC'
10107 ;;
10108 esac
10109 ;;
10110
10111 interix[3-9]*)
10112 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10113 # Instead, we relocate shared libraries at runtime.
10114 ;;
10115
10116 msdosdjgpp*)
10117 # Just because we use GCC doesn't mean we suddenly get shared libraries
10118 # on systems that don't support them.
10119 lt_prog_compiler_can_build_shared=no
10120 enable_shared=no
10121 ;;
10122
10123 *nto* | *qnx*)
10124 # QNX uses GNU C++, but need to define -shared option too, otherwise
10125 # it will coredump.
10126 lt_prog_compiler_pic='-fPIC -shared'
10127 ;;
10128
10129 sysv4*MP*)
10130 if test -d /usr/nec; then
10131 lt_prog_compiler_pic=-Kconform_pic
10132 fi
10133 ;;
10134
10135 *)
10136 lt_prog_compiler_pic='-fPIC'
10137 ;;
10138 esac
10139
10140 case $cc_basename in
10141 nvcc*) # Cuda Compiler Driver 2.2
10142 lt_prog_compiler_wl='-Xlinker '
10143 if test -n "$lt_prog_compiler_pic"; then
10144 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10145 fi
10146 ;;
10147 esac
10148 else
10149 # PORTME Check for flag to pass linker flags through the system compiler.
10150 case $host_os in
10151 aix*)
10152 lt_prog_compiler_wl='-Wl,'
10153 if test ia64 = "$host_cpu"; then
10154 # AIX 5 now supports IA64 processor
10155 lt_prog_compiler_static='-Bstatic'
10156 else
10157 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10158 fi
10159 ;;
10160
10161 darwin* | rhapsody*)
10162 # PIC is the default on this platform
10163 # Common symbols not allowed in MH_DYLIB files
10164 lt_prog_compiler_pic='-fno-common'
10165 case $cc_basename in
10166 nagfor*)
10167 # NAG Fortran compiler
10168 lt_prog_compiler_wl='-Wl,-Wl,,'
10169 lt_prog_compiler_pic='-PIC'
10170 lt_prog_compiler_static='-Bstatic'
10171 ;;
10172 esac
10173 ;;
10174
10175 mingw* | cygwin* | pw32* | os2* | cegcc*)
10176 # This hack is so that the source file can tell whether it is being
10177 # built for inclusion in a dll (and should export symbols for example).
10178 lt_prog_compiler_pic='-DDLL_EXPORT'
10179 case $host_os in
10180 os2*)
10181 lt_prog_compiler_static='$wl-static'
10182 ;;
10183 esac
10184 ;;
10185
10186 hpux9* | hpux10* | hpux11*)
10187 lt_prog_compiler_wl='-Wl,'
10188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10189 # not for PA HP-UX.
10190 case $host_cpu in
10191 hppa*64*|ia64*)
10192 # +Z the default
10193 ;;
10194 *)
10195 lt_prog_compiler_pic='+Z'
10196 ;;
10197 esac
10198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10199 lt_prog_compiler_static='$wl-a ${wl}archive'
10200 ;;
10201
10202 irix5* | irix6* | nonstopux*)
10203 lt_prog_compiler_wl='-Wl,'
10204 # PIC (with -KPIC) is the default.
10205 lt_prog_compiler_static='-non_shared'
10206 ;;
10207
10208 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10209 case $cc_basename in
10210 # old Intel for x86_64, which still supported -KPIC.
10211 ecc*)
10212 lt_prog_compiler_wl='-Wl,'
10213 lt_prog_compiler_pic='-KPIC'
10214 lt_prog_compiler_static='-static'
10215 ;;
10216 # flang / f18. f95 an alias for gfortran or flang on Debian
10217 flang* | f18* | f95*)
10218 lt_prog_compiler_wl='-Wl,'
10219 lt_prog_compiler_pic='-fPIC'
10220 lt_prog_compiler_static='-static'
10221 ;;
10222 # icc used to be incompatible with GCC.
10223 # ICC 10 doesn't accept -KPIC any more.
10224 icc* | ifort*)
10225 lt_prog_compiler_wl='-Wl,'
10226 lt_prog_compiler_pic='-fPIC'
10227 lt_prog_compiler_static='-static'
10228 ;;
10229 # Lahey Fortran 8.1.
10230 lf95*)
10231 lt_prog_compiler_wl='-Wl,'
10232 lt_prog_compiler_pic='--shared'
10233 lt_prog_compiler_static='--static'
10234 ;;
10235 nagfor*)
10236 # NAG Fortran compiler
10237 lt_prog_compiler_wl='-Wl,-Wl,,'
10238 lt_prog_compiler_pic='-PIC'
10239 lt_prog_compiler_static='-Bstatic'
10240 ;;
10241 tcc*)
10242 # Fabrice Bellard et al's Tiny C Compiler
10243 lt_prog_compiler_wl='-Wl,'
10244 lt_prog_compiler_pic='-fPIC'
10245 lt_prog_compiler_static='-static'
10246 ;;
10247 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10248 # Portland Group compilers (*not* the Pentium gcc compiler,
10249 # which looks to be a dead project)
10250 lt_prog_compiler_wl='-Wl,'
10251 lt_prog_compiler_pic='-fpic'
10252 lt_prog_compiler_static='-Bstatic'
10253 ;;
10254 ccc*)
10255 lt_prog_compiler_wl='-Wl,'
10256 # All Alpha code is PIC.
10257 lt_prog_compiler_static='-non_shared'
10258 ;;
10259 xl* | bgxl* | bgf* | mpixl*)
10260 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10261 lt_prog_compiler_wl='-Wl,'
10262 lt_prog_compiler_pic='-qpic'
10263 lt_prog_compiler_static='-qstaticlink'
10264 ;;
10265 *)
10266 case `$CC -V 2>&1 | $SED 5q` in
10267 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10268 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10269 lt_prog_compiler_pic='-KPIC'
10270 lt_prog_compiler_static='-Bstatic'
10271 lt_prog_compiler_wl=''
10272 ;;
10273 *Sun\ F* | *Sun*Fortran*)
10274 lt_prog_compiler_pic='-KPIC'
10275 lt_prog_compiler_static='-Bstatic'
10276 lt_prog_compiler_wl='-Qoption ld '
10277 ;;
10278 *Sun\ C*)
10279 # Sun C 5.9
10280 lt_prog_compiler_pic='-KPIC'
10281 lt_prog_compiler_static='-Bstatic'
10282 lt_prog_compiler_wl='-Wl,'
10283 ;;
10284 *Intel*\ [CF]*Compiler*)
10285 lt_prog_compiler_wl='-Wl,'
10286 lt_prog_compiler_pic='-fPIC'
10287 lt_prog_compiler_static='-static'
10288 ;;
10289 *Portland\ Group*)
10290 lt_prog_compiler_wl='-Wl,'
10291 lt_prog_compiler_pic='-fpic'
10292 lt_prog_compiler_static='-Bstatic'
10293 ;;
10294 esac
10295 ;;
10296 esac
10297 ;;
10298
10299 newsos6)
10300 lt_prog_compiler_pic='-KPIC'
10301 lt_prog_compiler_static='-Bstatic'
10302 ;;
10303
10304 *nto* | *qnx*)
10305 # QNX uses GNU C++, but need to define -shared option too, otherwise
10306 # it will coredump.
10307 lt_prog_compiler_pic='-fPIC -shared'
10308 ;;
10309
10310 osf3* | osf4* | osf5*)
10311 lt_prog_compiler_wl='-Wl,'
10312 # All OSF/1 code is PIC.
10313 lt_prog_compiler_static='-non_shared'
10314 ;;
10315
10316 rdos*)
10317 lt_prog_compiler_static='-non_shared'
10318 ;;
10319
10320 solaris*)
10321 lt_prog_compiler_pic='-KPIC'
10322 lt_prog_compiler_static='-Bstatic'
10323 case $cc_basename in
10324 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10325 lt_prog_compiler_wl='-Qoption ld ';;
10326 *)
10327 lt_prog_compiler_wl='-Wl,';;
10328 esac
10329 ;;
10330
10331 sunos4*)
10332 lt_prog_compiler_wl='-Qoption ld '
10333 lt_prog_compiler_pic='-PIC'
10334 lt_prog_compiler_static='-Bstatic'
10335 ;;
10336
10337 sysv4 | sysv4.2uw2* | sysv4.3*)
10338 lt_prog_compiler_wl='-Wl,'
10339 lt_prog_compiler_pic='-KPIC'
10340 lt_prog_compiler_static='-Bstatic'
10341 ;;
10342
10343 sysv4*MP*)
10344 if test -d /usr/nec; then
10345 lt_prog_compiler_pic='-Kconform_pic'
10346 lt_prog_compiler_static='-Bstatic'
10347 fi
10348 ;;
10349
10350 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10351 lt_prog_compiler_wl='-Wl,'
10352 lt_prog_compiler_pic='-KPIC'
10353 lt_prog_compiler_static='-Bstatic'
10354 ;;
10355
10356 unicos*)
10357 lt_prog_compiler_wl='-Wl,'
10358 lt_prog_compiler_can_build_shared=no
10359 ;;
10360
10361 uts4*)
10362 lt_prog_compiler_pic='-pic'
10363 lt_prog_compiler_static='-Bstatic'
10364 ;;
10365
10366 *)
10367 lt_prog_compiler_can_build_shared=no
10368 ;;
10369 esac
10370 fi
10371
10372 case $host_os in
10373 # For platforms that do not support PIC, -DPIC is meaningless:
10374 *djgpp*)
10375 lt_prog_compiler_pic=
10376 ;;
10377 *)
10378 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10379 ;;
10380 esac
10381
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10383 printf %s "checking for $compiler option to produce PIC... " >&6; }
10384 if test ${lt_cv_prog_compiler_pic+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else $as_nop
10388 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10389 fi
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10391 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10392 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10393
10394 #
10395 # Check to make sure the PIC flag actually works.
10396 #
10397 if test -n "$lt_prog_compiler_pic"; then
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10399 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10400 if test ${lt_cv_prog_compiler_pic_works+y}
10401 then :
10402 printf %s "(cached) " >&6
10403 else $as_nop
10404 lt_cv_prog_compiler_pic_works=no
10405 ac_outfile=conftest.$ac_objext
10406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10408 # Insert the option either (1) after the last *FLAGS variable, or
10409 # (2) before a word containing "conftest.", or (3) at the end.
10410 # Note that $ac_compile itself does not contain backslashes and begins
10411 # with a dollar sign (not a hyphen), so the echo should work correctly.
10412 # The option is referenced via a variable to avoid confusing sed.
10413 lt_compile=`echo "$ac_compile" | $SED \
10414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10416 -e 's:$: $lt_compiler_flag:'`
10417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10418 (eval "$lt_compile" 2>conftest.err)
10419 ac_status=$?
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 if (exit $ac_status) && test -s "$ac_outfile"; then
10423 # The compiler can only warn and ignore the option if not recognized
10424 # So say no if there are warnings other than the usual output.
10425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10428 lt_cv_prog_compiler_pic_works=yes
10429 fi
10430 fi
10431 $RM conftest*
10432
10433 fi
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10435 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10436
10437 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10438 case $lt_prog_compiler_pic in
10439 "" | " "*) ;;
10440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10441 esac
10442 else
10443 lt_prog_compiler_pic=
10444 lt_prog_compiler_can_build_shared=no
10445 fi
10446
10447 fi
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459 #
10460 # Check to make sure the static flag actually works.
10461 #
10462 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10464 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10465 if test ${lt_cv_prog_compiler_static_works+y}
10466 then :
10467 printf %s "(cached) " >&6
10468 else $as_nop
10469 lt_cv_prog_compiler_static_works=no
10470 save_LDFLAGS=$LDFLAGS
10471 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10472 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10474 # The linker can only warn and ignore the option if not recognized
10475 # So say no if there are warnings
10476 if test -s conftest.err; then
10477 # Append any errors to the config.log.
10478 cat conftest.err 1>&5
10479 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10481 if diff conftest.exp conftest.er2 >/dev/null; then
10482 lt_cv_prog_compiler_static_works=yes
10483 fi
10484 else
10485 lt_cv_prog_compiler_static_works=yes
10486 fi
10487 fi
10488 $RM -r conftest*
10489 LDFLAGS=$save_LDFLAGS
10490
10491 fi
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10493 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10494
10495 if test yes = "$lt_cv_prog_compiler_static_works"; then
10496 :
10497 else
10498 lt_prog_compiler_static=
10499 fi
10500
10501
10502
10503
10504
10505
10506
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10508 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10509 if test ${lt_cv_prog_compiler_c_o+y}
10510 then :
10511 printf %s "(cached) " >&6
10512 else $as_nop
10513 lt_cv_prog_compiler_c_o=no
10514 $RM -r conftest 2>/dev/null
10515 mkdir conftest
10516 cd conftest
10517 mkdir out
10518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10519
10520 lt_compiler_flag="-o out/conftest2.$ac_objext"
10521 # Insert the option either (1) after the last *FLAGS variable, or
10522 # (2) before a word containing "conftest.", or (3) at the end.
10523 # Note that $ac_compile itself does not contain backslashes and begins
10524 # with a dollar sign (not a hyphen), so the echo should work correctly.
10525 lt_compile=`echo "$ac_compile" | $SED \
10526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10528 -e 's:$: $lt_compiler_flag:'`
10529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10530 (eval "$lt_compile" 2>out/conftest.err)
10531 ac_status=$?
10532 cat out/conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10535 then
10536 # The compiler can only warn and ignore the option if not recognized
10537 # So say no if there are warnings
10538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10541 lt_cv_prog_compiler_c_o=yes
10542 fi
10543 fi
10544 chmod u+w . 2>&5
10545 $RM conftest*
10546 # SGI C++ compiler will create directory out/ii_files/ for
10547 # template instantiation
10548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10549 $RM out/* && rmdir out
10550 cd ..
10551 $RM -r conftest
10552 $RM conftest*
10553
10554 fi
10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10556 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10557
10558
10559
10560
10561
10562
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10564 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10565 if test ${lt_cv_prog_compiler_c_o+y}
10566 then :
10567 printf %s "(cached) " >&6
10568 else $as_nop
10569 lt_cv_prog_compiler_c_o=no
10570 $RM -r conftest 2>/dev/null
10571 mkdir conftest
10572 cd conftest
10573 mkdir out
10574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10575
10576 lt_compiler_flag="-o out/conftest2.$ac_objext"
10577 # Insert the option either (1) after the last *FLAGS variable, or
10578 # (2) before a word containing "conftest.", or (3) at the end.
10579 # Note that $ac_compile itself does not contain backslashes and begins
10580 # with a dollar sign (not a hyphen), so the echo should work correctly.
10581 lt_compile=`echo "$ac_compile" | $SED \
10582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10584 -e 's:$: $lt_compiler_flag:'`
10585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10586 (eval "$lt_compile" 2>out/conftest.err)
10587 ac_status=$?
10588 cat out/conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10591 then
10592 # The compiler can only warn and ignore the option if not recognized
10593 # So say no if there are warnings
10594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10597 lt_cv_prog_compiler_c_o=yes
10598 fi
10599 fi
10600 chmod u+w . 2>&5
10601 $RM conftest*
10602 # SGI C++ compiler will create directory out/ii_files/ for
10603 # template instantiation
10604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10605 $RM out/* && rmdir out
10606 cd ..
10607 $RM -r conftest
10608 $RM conftest*
10609
10610 fi
10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10612 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10613
10614
10615
10616
10617 hard_links=nottested
10618 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10619 # do not overwrite the value of need_locks provided by the user
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10621 printf %s "checking if we can lock with hard links... " >&6; }
10622 hard_links=yes
10623 $RM conftest*
10624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10625 touch conftest.a
10626 ln conftest.a conftest.b 2>&5 || hard_links=no
10627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10629 printf "%s\n" "$hard_links" >&6; }
10630 if test no = "$hard_links"; then
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10632 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10633 need_locks=warn
10634 fi
10635 else
10636 need_locks=no
10637 fi
10638
10639
10640
10641
10642
10643
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10645 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10646
10647 runpath_var=
10648 allow_undefined_flag=
10649 always_export_symbols=no
10650 archive_cmds=
10651 archive_expsym_cmds=
10652 compiler_needs_object=no
10653 enable_shared_with_static_runtimes=no
10654 export_dynamic_flag_spec=
10655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10656 hardcode_automatic=no
10657 hardcode_direct=no
10658 hardcode_direct_absolute=no
10659 hardcode_libdir_flag_spec=
10660 hardcode_libdir_separator=
10661 hardcode_minus_L=no
10662 hardcode_shlibpath_var=unsupported
10663 inherit_rpath=no
10664 link_all_deplibs=unknown
10665 module_cmds=
10666 module_expsym_cmds=
10667 old_archive_from_new_cmds=
10668 old_archive_from_expsyms_cmds=
10669 thread_safe_flag_spec=
10670 whole_archive_flag_spec=
10671 # include_expsyms should be a list of space-separated symbols to be *always*
10672 # included in the symbol list
10673 include_expsyms=
10674 # exclude_expsyms can be an extended regexp of symbols to exclude
10675 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10676 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10677 # as well as any symbol that contains 'd'.
10678 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10680 # platforms (ab)use it in PIC code, but their linkers get confused if
10681 # the symbol is explicitly referenced. Since portable code cannot
10682 # rely on this symbol name, it's probably fine to never include it in
10683 # preloaded symbol tables.
10684 # Exclude shared library initialization/finalization symbols.
10685 extract_expsyms_cmds=
10686
10687 case $host_os in
10688 cygwin* | mingw* | pw32* | cegcc*)
10689 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10690 # When not using gcc, we currently assume that we are using
10691 # Microsoft Visual C++ or Intel C++ Compiler.
10692 if test yes != "$GCC"; then
10693 with_gnu_ld=no
10694 fi
10695 ;;
10696 interix*)
10697 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10698 with_gnu_ld=yes
10699 ;;
10700 openbsd* | bitrig*)
10701 with_gnu_ld=no
10702 ;;
10703 linux* | k*bsd*-gnu | gnu*)
10704 link_all_deplibs=no
10705 ;;
10706 esac
10707
10708 ld_shlibs=yes
10709
10710 # On some targets, GNU ld is compatible enough with the native linker
10711 # that we're better off using the native interface for both.
10712 lt_use_gnu_ld_interface=no
10713 if test yes = "$with_gnu_ld"; then
10714 case $host_os in
10715 aix*)
10716 # The AIX port of GNU ld has always aspired to compatibility
10717 # with the native linker. However, as the warning in the GNU ld
10718 # block says, versions before 2.19.5* couldn't really create working
10719 # shared libraries, regardless of the interface used.
10720 case `$LD -v 2>&1` in
10721 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10722 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10723 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10724 *)
10725 lt_use_gnu_ld_interface=yes
10726 ;;
10727 esac
10728 ;;
10729 *)
10730 lt_use_gnu_ld_interface=yes
10731 ;;
10732 esac
10733 fi
10734
10735 if test yes = "$lt_use_gnu_ld_interface"; then
10736 # If archive_cmds runs LD, not CC, wlarc should be empty
10737 wlarc='$wl'
10738
10739 # Set some defaults for GNU ld with shared library support. These
10740 # are reset later if shared libraries are not supported. Putting them
10741 # here allows them to be overridden if necessary.
10742 runpath_var=LD_RUN_PATH
10743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10744 export_dynamic_flag_spec='$wl--export-dynamic'
10745 # ancient GNU ld didn't support --whole-archive et. al.
10746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10747 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10748 else
10749 whole_archive_flag_spec=
10750 fi
10751 supports_anon_versioning=no
10752 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10753 *GNU\ gold*) supports_anon_versioning=yes ;;
10754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10757 *\ 2.11.*) ;; # other 2.11 versions
10758 *) supports_anon_versioning=yes ;;
10759 esac
10760
10761 # See if GNU ld supports shared libraries.
10762 case $host_os in
10763 aix[3-9]*)
10764 # On AIX/PPC, the GNU linker is very broken
10765 if test ia64 != "$host_cpu"; then
10766 ld_shlibs=no
10767 cat <<_LT_EOF 1>&2
10768
10769 *** Warning: the GNU linker, at least up to release 2.19, is reported
10770 *** to be unable to reliably create shared libraries on AIX.
10771 *** Therefore, libtool is disabling shared libraries support. If you
10772 *** really care for shared libraries, you may want to install binutils
10773 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10774 *** You will then need to restart the configuration process.
10775
10776 _LT_EOF
10777 fi
10778 ;;
10779
10780 amigaos*)
10781 case $host_cpu in
10782 powerpc)
10783 # see comment about AmigaOS4 .so support
10784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10785 archive_expsym_cmds=''
10786 ;;
10787 m68k)
10788 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)'
10789 hardcode_libdir_flag_spec='-L$libdir'
10790 hardcode_minus_L=yes
10791 ;;
10792 esac
10793 ;;
10794
10795 beos*)
10796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10797 allow_undefined_flag=unsupported
10798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10799 # support --undefined. This deserves some investigation. FIXME
10800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10801 else
10802 ld_shlibs=no
10803 fi
10804 ;;
10805
10806 cygwin* | mingw* | pw32* | cegcc*)
10807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10808 # as there is no search path for DLLs.
10809 hardcode_libdir_flag_spec='-L$libdir'
10810 export_dynamic_flag_spec='$wl--export-all-symbols'
10811 allow_undefined_flag=unsupported
10812 always_export_symbols=no
10813 enable_shared_with_static_runtimes=yes
10814 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'
10815 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10816
10817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10819 # If the export-symbols file already is a .def file, use it as
10820 # is; otherwise, prepend EXPORTS...
10821 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10822 cp $export_symbols $output_objdir/$soname.def;
10823 else
10824 echo EXPORTS > $output_objdir/$soname.def;
10825 cat $export_symbols >> $output_objdir/$soname.def;
10826 fi~
10827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10828 else
10829 ld_shlibs=no
10830 fi
10831 ;;
10832
10833 haiku*)
10834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10835 link_all_deplibs=yes
10836 ;;
10837
10838 os2*)
10839 hardcode_libdir_flag_spec='-L$libdir'
10840 hardcode_minus_L=yes
10841 allow_undefined_flag=unsupported
10842 shrext_cmds=.dll
10843 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10844 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10845 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10846 $ECHO EXPORTS >> $output_objdir/$libname.def~
10847 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10848 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10849 emximp -o $lib $output_objdir/$libname.def'
10850 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10851 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10852 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10853 $ECHO EXPORTS >> $output_objdir/$libname.def~
10854 prefix_cmds="$SED"~
10855 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10856 prefix_cmds="$prefix_cmds -e 1d";
10857 fi~
10858 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10859 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10861 emximp -o $lib $output_objdir/$libname.def'
10862 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10863 enable_shared_with_static_runtimes=yes
10864 file_list_spec='@'
10865 ;;
10866
10867 interix[3-9]*)
10868 hardcode_direct=no
10869 hardcode_shlibpath_var=no
10870 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10871 export_dynamic_flag_spec='$wl-E'
10872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10873 # Instead, shared libraries are loaded at an image base (0x10000000 by
10874 # default) and relocated if they conflict, which is a slow very memory
10875 # consuming and fragmenting process. To avoid this, we pick a random,
10876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10879 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'
10880 ;;
10881
10882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10883 tmp_diet=no
10884 if test linux-dietlibc = "$host_os"; then
10885 case $cc_basename in
10886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10887 esac
10888 fi
10889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10890 && test no = "$tmp_diet"
10891 then
10892 tmp_addflag=' $pic_flag'
10893 tmp_sharedflag='-shared'
10894 case $cc_basename,$host_cpu in
10895 pgcc*) # Portland Group C compiler
10896 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'
10897 tmp_addflag=' $pic_flag'
10898 ;;
10899 pgf77* | pgf90* | pgf95* | pgfortran*)
10900 # Portland Group f77 and f90 compilers
10901 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'
10902 tmp_addflag=' $pic_flag -Mnomain' ;;
10903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10904 tmp_addflag=' -i_dynamic' ;;
10905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10906 tmp_addflag=' -i_dynamic -nofor_main' ;;
10907 ifc* | ifort*) # Intel Fortran compiler
10908 tmp_addflag=' -nofor_main' ;;
10909 lf95*) # Lahey Fortran 8.1
10910 whole_archive_flag_spec=
10911 tmp_sharedflag='--shared' ;;
10912 nagfor*) # NAGFOR 5.3
10913 tmp_sharedflag='-Wl,-shared' ;;
10914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10915 tmp_sharedflag='-qmkshrobj'
10916 tmp_addflag= ;;
10917 nvcc*) # Cuda Compiler Driver 2.2
10918 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'
10919 compiler_needs_object=yes
10920 ;;
10921 esac
10922 case `$CC -V 2>&1 | $SED 5q` in
10923 *Sun\ C*) # Sun C 5.9
10924 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'
10925 compiler_needs_object=yes
10926 tmp_sharedflag='-G' ;;
10927 *Sun\ F*) # Sun Fortran 8.3
10928 tmp_sharedflag='-G' ;;
10929 esac
10930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10931
10932 if test yes = "$supports_anon_versioning"; then
10933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10934 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10935 echo "local: *; };" >> $output_objdir/$libname.ver~
10936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10937 fi
10938
10939 case $cc_basename in
10940 tcc*)
10941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10942 export_dynamic_flag_spec='-rdynamic'
10943 ;;
10944 xlf* | bgf* | bgxlf* | mpixlf*)
10945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10948 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10949 if test yes = "$supports_anon_versioning"; then
10950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10951 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10952 echo "local: *; };" >> $output_objdir/$libname.ver~
10953 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10954 fi
10955 ;;
10956 esac
10957 else
10958 ld_shlibs=no
10959 fi
10960 ;;
10961
10962 netbsd* | netbsdelf*-gnu)
10963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10965 wlarc=
10966 else
10967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10968 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10969 fi
10970 ;;
10971
10972 solaris*)
10973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10974 ld_shlibs=no
10975 cat <<_LT_EOF 1>&2
10976
10977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10978 *** create shared libraries on Solaris systems. Therefore, libtool
10979 *** is disabling shared libraries support. We urge you to upgrade GNU
10980 *** binutils to release 2.9.1 or newer. Another option is to modify
10981 *** your PATH or compiler configuration so that the native linker is
10982 *** used, and then restart.
10983
10984 _LT_EOF
10985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10988 else
10989 ld_shlibs=no
10990 fi
10991 ;;
10992
10993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10994 case `$LD -v 2>&1` in
10995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10996 ld_shlibs=no
10997 cat <<_LT_EOF 1>&2
10998
10999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11000 *** reliably create shared libraries on SCO systems. Therefore, libtool
11001 *** is disabling shared libraries support. We urge you to upgrade GNU
11002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11003 *** your PATH or compiler configuration so that the native linker is
11004 *** used, and then restart.
11005
11006 _LT_EOF
11007 ;;
11008 *)
11009 # For security reasons, it is highly recommended that you always
11010 # use absolute paths for naming shared libraries, and exclude the
11011 # DT_RUNPATH tag from executables and libraries. But doing so
11012 # requires that you compile everything twice, which is a pain.
11013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11017 else
11018 ld_shlibs=no
11019 fi
11020 ;;
11021 esac
11022 ;;
11023
11024 sunos4*)
11025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11026 wlarc=
11027 hardcode_direct=yes
11028 hardcode_shlibpath_var=no
11029 ;;
11030
11031 *)
11032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11035 else
11036 ld_shlibs=no
11037 fi
11038 ;;
11039 esac
11040
11041 if test no = "$ld_shlibs"; then
11042 runpath_var=
11043 hardcode_libdir_flag_spec=
11044 export_dynamic_flag_spec=
11045 whole_archive_flag_spec=
11046 fi
11047 else
11048 # PORTME fill in a description of your system's linker (not GNU ld)
11049 case $host_os in
11050 aix3*)
11051 allow_undefined_flag=unsupported
11052 always_export_symbols=yes
11053 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'
11054 # Note: this linker hardcodes the directories in LIBPATH if there
11055 # are no directories specified by -L.
11056 hardcode_minus_L=yes
11057 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11058 # Neither direct hardcoding nor static linking is supported with a
11059 # broken collect2.
11060 hardcode_direct=unsupported
11061 fi
11062 ;;
11063
11064 aix[4-9]*)
11065 if test ia64 = "$host_cpu"; then
11066 # On IA64, the linker does run time linking by default, so we don't
11067 # have to do anything special.
11068 aix_use_runtimelinking=no
11069 exp_sym_flag='-Bexport'
11070 no_entry_flag=
11071 else
11072 # If we're using GNU nm, then we don't want the "-C" option.
11073 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11074 # Without the "-l" option, or with the "-B" option, AIX nm treats
11075 # weak defined symbols like other global defined symbols, whereas
11076 # GNU nm marks them as "W".
11077 # While the 'weak' keyword is ignored in the Export File, we need
11078 # it in the Import File for the 'aix-soname' feature, so we have
11079 # to replace the "-B" option with "-P" for AIX nm.
11080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11081 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11082 else
11083 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11084 fi
11085 aix_use_runtimelinking=no
11086
11087 # Test if we are trying to use run time linking or normal
11088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11089 # have runtime linking enabled, and use it for executables.
11090 # For shared libraries, we enable/disable runtime linking
11091 # depending on the kind of the shared library created -
11092 # when "with_aix_soname,aix_use_runtimelinking" is:
11093 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11094 # "aix,yes" lib.so shared, rtl:yes, for executables
11095 # lib.a static archive
11096 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11097 # lib.a(lib.so.V) shared, rtl:no, for executables
11098 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11099 # lib.a(lib.so.V) shared, rtl:no
11100 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11101 # lib.a static archive
11102 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11103 for ld_flag in $LDFLAGS; do
11104 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11105 aix_use_runtimelinking=yes
11106 break
11107 fi
11108 done
11109 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11110 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11111 # so we don't have lib.a shared libs to link our executables.
11112 # We have to force runtime linking in this case.
11113 aix_use_runtimelinking=yes
11114 LDFLAGS="$LDFLAGS -Wl,-brtl"
11115 fi
11116 ;;
11117 esac
11118
11119 exp_sym_flag='-bexport'
11120 no_entry_flag='-bnoentry'
11121 fi
11122
11123 # When large executables or shared objects are built, AIX ld can
11124 # have problems creating the table of contents. If linking a library
11125 # or program results in "error TOC overflow" add -mminimal-toc to
11126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11128
11129 archive_cmds=''
11130 hardcode_direct=yes
11131 hardcode_direct_absolute=yes
11132 hardcode_libdir_separator=':'
11133 link_all_deplibs=yes
11134 file_list_spec='$wl-f,'
11135 case $with_aix_soname,$aix_use_runtimelinking in
11136 aix,*) ;; # traditional, no import file
11137 svr4,* | *,yes) # use import file
11138 # The Import File defines what to hardcode.
11139 hardcode_direct=no
11140 hardcode_direct_absolute=no
11141 ;;
11142 esac
11143
11144 if test yes = "$GCC"; then
11145 case $host_os in aix4.[012]|aix4.[012].*)
11146 # We only want to do this on AIX 4.2 and lower, the check
11147 # below for broken collect2 doesn't work under 4.3+
11148 collect2name=`$CC -print-prog-name=collect2`
11149 if test -f "$collect2name" &&
11150 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11151 then
11152 # We have reworked collect2
11153 :
11154 else
11155 # We have old collect2
11156 hardcode_direct=unsupported
11157 # It fails to find uninstalled libraries when the uninstalled
11158 # path is not listed in the libpath. Setting hardcode_minus_L
11159 # to unsupported forces relinking
11160 hardcode_minus_L=yes
11161 hardcode_libdir_flag_spec='-L$libdir'
11162 hardcode_libdir_separator=
11163 fi
11164 ;;
11165 esac
11166 shared_flag='-shared'
11167 if test yes = "$aix_use_runtimelinking"; then
11168 shared_flag="$shared_flag "'$wl-G'
11169 fi
11170 # Need to ensure runtime linking is disabled for the traditional
11171 # shared library, or the linker may eventually find shared libraries
11172 # /with/ Import File - we do not want to mix them.
11173 shared_flag_aix='-shared'
11174 shared_flag_svr4='-shared $wl-G'
11175 else
11176 # not using gcc
11177 if test ia64 = "$host_cpu"; then
11178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11179 # chokes on -Wl,-G. The following line is correct:
11180 shared_flag='-G'
11181 else
11182 if test yes = "$aix_use_runtimelinking"; then
11183 shared_flag='$wl-G'
11184 else
11185 shared_flag='$wl-bM:SRE'
11186 fi
11187 shared_flag_aix='$wl-bM:SRE'
11188 shared_flag_svr4='$wl-G'
11189 fi
11190 fi
11191
11192 export_dynamic_flag_spec='$wl-bexpall'
11193 # It seems that -bexpall does not export symbols beginning with
11194 # underscore (_), so it is better to generate a list of symbols to export.
11195 always_export_symbols=yes
11196 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11197 # Warning - without using the other runtime loading flags (-brtl),
11198 # -berok will link without error, but may produce a broken library.
11199 allow_undefined_flag='-berok'
11200 # Determine the default libpath from the value encoded in an
11201 # empty executable.
11202 if test set = "${lt_cv_aix_libpath+set}"; then
11203 aix_libpath=$lt_cv_aix_libpath
11204 else
11205 if test ${lt_cv_aix_libpath_+y}
11206 then :
11207 printf %s "(cached) " >&6
11208 else $as_nop
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211
11212 int
11213 main (void)
11214 {
11215
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"
11221 then :
11222
11223 lt_aix_libpath_sed='
11224 /Import File Strings/,/^$/ {
11225 /^0/ {
11226 s/^0 *\([^ ]*\) *$/\1/
11227 p
11228 }
11229 }'
11230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11231 # Check for a 64-bit object if we didn't find anything.
11232 if test -z "$lt_cv_aix_libpath_"; then
11233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11234 fi
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11237 conftest$ac_exeext conftest.$ac_ext
11238 if test -z "$lt_cv_aix_libpath_"; then
11239 lt_cv_aix_libpath_=/usr/lib:/lib
11240 fi
11241
11242 fi
11243
11244 aix_libpath=$lt_cv_aix_libpath_
11245 fi
11246
11247 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11248 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11249 else
11250 if test ia64 = "$host_cpu"; then
11251 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11252 allow_undefined_flag="-z nodefs"
11253 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"
11254 else
11255 # Determine the default libpath from the value encoded in an
11256 # empty executable.
11257 if test set = "${lt_cv_aix_libpath+set}"; then
11258 aix_libpath=$lt_cv_aix_libpath
11259 else
11260 if test ${lt_cv_aix_libpath_+y}
11261 then :
11262 printf %s "(cached) " >&6
11263 else $as_nop
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266
11267 int
11268 main (void)
11269 {
11270
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 if ac_fn_c_try_link "$LINENO"
11276 then :
11277
11278 lt_aix_libpath_sed='
11279 /Import File Strings/,/^$/ {
11280 /^0/ {
11281 s/^0 *\([^ ]*\) *$/\1/
11282 p
11283 }
11284 }'
11285 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11286 # Check for a 64-bit object if we didn't find anything.
11287 if test -z "$lt_cv_aix_libpath_"; then
11288 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11289 fi
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11292 conftest$ac_exeext conftest.$ac_ext
11293 if test -z "$lt_cv_aix_libpath_"; then
11294 lt_cv_aix_libpath_=/usr/lib:/lib
11295 fi
11296
11297 fi
11298
11299 aix_libpath=$lt_cv_aix_libpath_
11300 fi
11301
11302 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11303 # Warning - without using the other run time loading flags,
11304 # -berok will link without error, but may produce a broken library.
11305 no_undefined_flag=' $wl-bernotok'
11306 allow_undefined_flag=' $wl-berok'
11307 if test yes = "$with_gnu_ld"; then
11308 # We only use this code for GNU lds that support --whole-archive.
11309 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11310 else
11311 # Exported symbols can be pulled into shared objects from archives
11312 whole_archive_flag_spec='$convenience'
11313 fi
11314 archive_cmds_need_lc=yes
11315 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11316 # -brtl affects multiple linker settings, -berok does not and is overridden later
11317 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11318 if test svr4 != "$with_aix_soname"; then
11319 # This is similar to how AIX traditionally builds its shared libraries.
11320 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11321 fi
11322 if test aix != "$with_aix_soname"; then
11323 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11324 else
11325 # used by -dlpreopen to get the symbols
11326 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11327 fi
11328 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11329 fi
11330 fi
11331 ;;
11332
11333 amigaos*)
11334 case $host_cpu in
11335 powerpc)
11336 # see comment about AmigaOS4 .so support
11337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11338 archive_expsym_cmds=''
11339 ;;
11340 m68k)
11341 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)'
11342 hardcode_libdir_flag_spec='-L$libdir'
11343 hardcode_minus_L=yes
11344 ;;
11345 esac
11346 ;;
11347
11348 bsdi[45]*)
11349 export_dynamic_flag_spec=-rdynamic
11350 ;;
11351
11352 cygwin* | mingw* | pw32* | cegcc*)
11353 # When not using gcc, we currently assume that we are using
11354 # Microsoft Visual C++ or Intel C++ Compiler.
11355 # hardcode_libdir_flag_spec is actually meaningless, as there is
11356 # no search path for DLLs.
11357 case $cc_basename in
11358 cl* | icl*)
11359 # Native MSVC or ICC
11360 hardcode_libdir_flag_spec=' '
11361 allow_undefined_flag=unsupported
11362 always_export_symbols=yes
11363 file_list_spec='@'
11364 # Tell ltmain to make .lib files, not .a files.
11365 libext=lib
11366 # Tell ltmain to make .dll files, not .so files.
11367 shrext_cmds=.dll
11368 # FIXME: Setting linknames here is a bad hack.
11369 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11370 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11371 cp "$export_symbols" "$output_objdir/$soname.def";
11372 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11373 else
11374 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11375 fi~
11376 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11377 linknames='
11378 # The linker will not automatically build a static lib if we build a DLL.
11379 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11380 enable_shared_with_static_runtimes=yes
11381 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11383 # Don't use ranlib
11384 old_postinstall_cmds='chmod 644 $oldlib'
11385 postlink_cmds='lt_outputfile="@OUTPUT@"~
11386 lt_tool_outputfile="@TOOL_OUTPUT@"~
11387 case $lt_outputfile in
11388 *.exe|*.EXE) ;;
11389 *)
11390 lt_outputfile=$lt_outputfile.exe
11391 lt_tool_outputfile=$lt_tool_outputfile.exe
11392 ;;
11393 esac~
11394 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11395 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11396 $RM "$lt_outputfile.manifest";
11397 fi'
11398 ;;
11399 *)
11400 # Assume MSVC and ICC wrapper
11401 hardcode_libdir_flag_spec=' '
11402 allow_undefined_flag=unsupported
11403 # Tell ltmain to make .lib files, not .a files.
11404 libext=lib
11405 # Tell ltmain to make .dll files, not .so files.
11406 shrext_cmds=.dll
11407 # FIXME: Setting linknames here is a bad hack.
11408 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11409 # The linker will automatically build a .lib file if we build a DLL.
11410 old_archive_from_new_cmds='true'
11411 # FIXME: Should let the user specify the lib program.
11412 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11413 enable_shared_with_static_runtimes=yes
11414 ;;
11415 esac
11416 ;;
11417
11418 darwin* | rhapsody*)
11419
11420
11421 archive_cmds_need_lc=no
11422 hardcode_direct=no
11423 hardcode_automatic=yes
11424 hardcode_shlibpath_var=unsupported
11425 if test yes = "$lt_cv_ld_force_load"; then
11426 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\"`'
11427
11428 else
11429 whole_archive_flag_spec=''
11430 fi
11431 link_all_deplibs=yes
11432 allow_undefined_flag=$_lt_dar_allow_undefined
11433 case $cc_basename in
11434 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11435 *) _lt_dar_can_shared=$GCC ;;
11436 esac
11437 if test yes = "$_lt_dar_can_shared"; then
11438 output_verbose_link_cmd=func_echo_all
11439 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11440 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11441 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"
11442 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"
11443
11444 else
11445 ld_shlibs=no
11446 fi
11447
11448 ;;
11449
11450 dgux*)
11451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11452 hardcode_libdir_flag_spec='-L$libdir'
11453 hardcode_shlibpath_var=no
11454 ;;
11455
11456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11457 # support. Future versions do this automatically, but an explicit c++rt0.o
11458 # does not break anything, and helps significantly (at the cost of a little
11459 # extra space).
11460 freebsd2.2*)
11461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11462 hardcode_libdir_flag_spec='-R$libdir'
11463 hardcode_direct=yes
11464 hardcode_shlibpath_var=no
11465 ;;
11466
11467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11468 freebsd2.*)
11469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11470 hardcode_direct=yes
11471 hardcode_minus_L=yes
11472 hardcode_shlibpath_var=no
11473 ;;
11474
11475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11476 freebsd* | dragonfly* | midnightbsd*)
11477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11478 hardcode_libdir_flag_spec='-R$libdir'
11479 hardcode_direct=yes
11480 hardcode_shlibpath_var=no
11481 ;;
11482
11483 hpux9*)
11484 if test yes = "$GCC"; then
11485 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11486 else
11487 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11488 fi
11489 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11490 hardcode_libdir_separator=:
11491 hardcode_direct=yes
11492
11493 # hardcode_minus_L: Not really in the search PATH,
11494 # but as the default location of the library.
11495 hardcode_minus_L=yes
11496 export_dynamic_flag_spec='$wl-E'
11497 ;;
11498
11499 hpux10*)
11500 if test yes,no = "$GCC,$with_gnu_ld"; then
11501 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11502 else
11503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11504 fi
11505 if test no = "$with_gnu_ld"; then
11506 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11507 hardcode_libdir_separator=:
11508 hardcode_direct=yes
11509 hardcode_direct_absolute=yes
11510 export_dynamic_flag_spec='$wl-E'
11511 # hardcode_minus_L: Not really in the search PATH,
11512 # but as the default location of the library.
11513 hardcode_minus_L=yes
11514 fi
11515 ;;
11516
11517 hpux11*)
11518 if test yes,no = "$GCC,$with_gnu_ld"; then
11519 case $host_cpu in
11520 hppa*64*)
11521 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11522 ;;
11523 ia64*)
11524 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11525 ;;
11526 *)
11527 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11528 ;;
11529 esac
11530 else
11531 case $host_cpu in
11532 hppa*64*)
11533 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11534 ;;
11535 ia64*)
11536 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11537 ;;
11538 *)
11539
11540 # Older versions of the 11.00 compiler do not understand -b yet
11541 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11543 printf %s "checking if $CC understands -b... " >&6; }
11544 if test ${lt_cv_prog_compiler__b+y}
11545 then :
11546 printf %s "(cached) " >&6
11547 else $as_nop
11548 lt_cv_prog_compiler__b=no
11549 save_LDFLAGS=$LDFLAGS
11550 LDFLAGS="$LDFLAGS -b"
11551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11553 # The linker can only warn and ignore the option if not recognized
11554 # So say no if there are warnings
11555 if test -s conftest.err; then
11556 # Append any errors to the config.log.
11557 cat conftest.err 1>&5
11558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11560 if diff conftest.exp conftest.er2 >/dev/null; then
11561 lt_cv_prog_compiler__b=yes
11562 fi
11563 else
11564 lt_cv_prog_compiler__b=yes
11565 fi
11566 fi
11567 $RM -r conftest*
11568 LDFLAGS=$save_LDFLAGS
11569
11570 fi
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11572 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11573
11574 if test yes = "$lt_cv_prog_compiler__b"; then
11575 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11576 else
11577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11578 fi
11579
11580 ;;
11581 esac
11582 fi
11583 if test no = "$with_gnu_ld"; then
11584 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11585 hardcode_libdir_separator=:
11586
11587 case $host_cpu in
11588 hppa*64*|ia64*)
11589 hardcode_direct=no
11590 hardcode_shlibpath_var=no
11591 ;;
11592 *)
11593 hardcode_direct=yes
11594 hardcode_direct_absolute=yes
11595 export_dynamic_flag_spec='$wl-E'
11596
11597 # hardcode_minus_L: Not really in the search PATH,
11598 # but as the default location of the library.
11599 hardcode_minus_L=yes
11600 ;;
11601 esac
11602 fi
11603 ;;
11604
11605 irix5* | irix6* | nonstopux*)
11606 if test yes = "$GCC"; then
11607 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'
11608 # Try to use the -exported_symbol ld option, if it does not
11609 # work, assume that -exports_file does not work either and
11610 # implicitly export all symbols.
11611 # This should be the same for all languages, so no per-tag cache variable.
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11613 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11614 if test ${lt_cv_irix_exported_symbol+y}
11615 then :
11616 printf %s "(cached) " >&6
11617 else $as_nop
11618 save_LDFLAGS=$LDFLAGS
11619 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 int foo (void) { return 0; }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"
11625 then :
11626 lt_cv_irix_exported_symbol=yes
11627 else $as_nop
11628 lt_cv_irix_exported_symbol=no
11629 fi
11630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11631 conftest$ac_exeext conftest.$ac_ext
11632 LDFLAGS=$save_LDFLAGS
11633 fi
11634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11635 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11636 if test yes = "$lt_cv_irix_exported_symbol"; then
11637 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'
11638 fi
11639 link_all_deplibs=no
11640 else
11641 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'
11642 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'
11643 fi
11644 archive_cmds_need_lc='no'
11645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11646 hardcode_libdir_separator=:
11647 inherit_rpath=yes
11648 link_all_deplibs=yes
11649 ;;
11650
11651 linux*)
11652 case $cc_basename in
11653 tcc*)
11654 # Fabrice Bellard et al's Tiny C Compiler
11655 ld_shlibs=yes
11656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11658 ;;
11659 esac
11660 ;;
11661
11662 netbsd* | netbsdelf*-gnu)
11663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11665 else
11666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11667 fi
11668 hardcode_libdir_flag_spec='-R$libdir'
11669 hardcode_direct=yes
11670 hardcode_shlibpath_var=no
11671 ;;
11672
11673 newsos6)
11674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11675 hardcode_direct=yes
11676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11677 hardcode_libdir_separator=:
11678 hardcode_shlibpath_var=no
11679 ;;
11680
11681 *nto* | *qnx*)
11682 ;;
11683
11684 openbsd* | bitrig*)
11685 if test -f /usr/libexec/ld.so; then
11686 hardcode_direct=yes
11687 hardcode_shlibpath_var=no
11688 hardcode_direct_absolute=yes
11689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11692 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11693 export_dynamic_flag_spec='$wl-E'
11694 else
11695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11696 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11697 fi
11698 else
11699 ld_shlibs=no
11700 fi
11701 ;;
11702
11703 os2*)
11704 hardcode_libdir_flag_spec='-L$libdir'
11705 hardcode_minus_L=yes
11706 allow_undefined_flag=unsupported
11707 shrext_cmds=.dll
11708 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11711 $ECHO EXPORTS >> $output_objdir/$libname.def~
11712 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11713 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11714 emximp -o $lib $output_objdir/$libname.def'
11715 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11718 $ECHO EXPORTS >> $output_objdir/$libname.def~
11719 prefix_cmds="$SED"~
11720 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11721 prefix_cmds="$prefix_cmds -e 1d";
11722 fi~
11723 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11724 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11726 emximp -o $lib $output_objdir/$libname.def'
11727 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11728 enable_shared_with_static_runtimes=yes
11729 file_list_spec='@'
11730 ;;
11731
11732 osf3*)
11733 if test yes = "$GCC"; then
11734 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11735 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'
11736 else
11737 allow_undefined_flag=' -expect_unresolved \*'
11738 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'
11739 fi
11740 archive_cmds_need_lc='no'
11741 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11742 hardcode_libdir_separator=:
11743 ;;
11744
11745 osf4* | osf5*) # as osf3* with the addition of -msym flag
11746 if test yes = "$GCC"; then
11747 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11748 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'
11749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11750 else
11751 allow_undefined_flag=' -expect_unresolved \*'
11752 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'
11753 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~
11754 $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'
11755
11756 # Both c and cxx compiler support -rpath directly
11757 hardcode_libdir_flag_spec='-rpath $libdir'
11758 fi
11759 archive_cmds_need_lc='no'
11760 hardcode_libdir_separator=:
11761 ;;
11762
11763 solaris*)
11764 no_undefined_flag=' -z defs'
11765 if test yes = "$GCC"; then
11766 wlarc='$wl'
11767 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11768 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11769 $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'
11770 else
11771 case `$CC -V 2>&1` in
11772 *"Compilers 5.0"*)
11773 wlarc=''
11774 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11776 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11777 ;;
11778 *)
11779 wlarc='$wl'
11780 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11782 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11783 ;;
11784 esac
11785 fi
11786 hardcode_libdir_flag_spec='-R$libdir'
11787 hardcode_shlibpath_var=no
11788 case $host_os in
11789 solaris2.[0-5] | solaris2.[0-5].*) ;;
11790 *)
11791 # The compiler driver will combine and reorder linker options,
11792 # but understands '-z linker_flag'. GCC discards it without '$wl',
11793 # but is careful enough not to reorder.
11794 # Supported since Solaris 2.6 (maybe 2.5.1?)
11795 if test yes = "$GCC"; then
11796 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11797 else
11798 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11799 fi
11800 ;;
11801 esac
11802 link_all_deplibs=yes
11803 ;;
11804
11805 sunos4*)
11806 if test sequent = "$host_vendor"; then
11807 # Use $CC to link under sequent, because it throws in some extra .o
11808 # files that make .init and .fini sections work.
11809 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11810 else
11811 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11812 fi
11813 hardcode_libdir_flag_spec='-L$libdir'
11814 hardcode_direct=yes
11815 hardcode_minus_L=yes
11816 hardcode_shlibpath_var=no
11817 ;;
11818
11819 sysv4)
11820 case $host_vendor in
11821 sni)
11822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11823 hardcode_direct=yes # is this really true???
11824 ;;
11825 siemens)
11826 ## LD is ld it makes a PLAMLIB
11827 ## CC just makes a GrossModule.
11828 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11829 reload_cmds='$CC -r -o $output$reload_objs'
11830 hardcode_direct=no
11831 ;;
11832 motorola)
11833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11834 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11835 ;;
11836 esac
11837 runpath_var='LD_RUN_PATH'
11838 hardcode_shlibpath_var=no
11839 ;;
11840
11841 sysv4.3*)
11842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11843 hardcode_shlibpath_var=no
11844 export_dynamic_flag_spec='-Bexport'
11845 ;;
11846
11847 sysv4*MP*)
11848 if test -d /usr/nec; then
11849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11850 hardcode_shlibpath_var=no
11851 runpath_var=LD_RUN_PATH
11852 hardcode_runpath_var=yes
11853 ld_shlibs=yes
11854 fi
11855 ;;
11856
11857 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11858 no_undefined_flag='$wl-z,text'
11859 archive_cmds_need_lc=no
11860 hardcode_shlibpath_var=no
11861 runpath_var='LD_RUN_PATH'
11862
11863 if test yes = "$GCC"; then
11864 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11865 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11866 else
11867 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11869 fi
11870 ;;
11871
11872 sysv5* | sco3.2v5* | sco5v6*)
11873 # Note: We CANNOT use -z defs as we might desire, because we do not
11874 # link with -lc, and that would cause any symbols used from libc to
11875 # always be unresolved, which means just about no library would
11876 # ever link correctly. If we're not using GNU ld we use -z text
11877 # though, which does catch some bad symbols but isn't as heavy-handed
11878 # as -z defs.
11879 no_undefined_flag='$wl-z,text'
11880 allow_undefined_flag='$wl-z,nodefs'
11881 archive_cmds_need_lc=no
11882 hardcode_shlibpath_var=no
11883 hardcode_libdir_flag_spec='$wl-R,$libdir'
11884 hardcode_libdir_separator=':'
11885 link_all_deplibs=yes
11886 export_dynamic_flag_spec='$wl-Bexport'
11887 runpath_var='LD_RUN_PATH'
11888
11889 if test yes = "$GCC"; then
11890 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11891 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11892 else
11893 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 fi
11896 ;;
11897
11898 uts4*)
11899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900 hardcode_libdir_flag_spec='-L$libdir'
11901 hardcode_shlibpath_var=no
11902 ;;
11903
11904 *)
11905 ld_shlibs=no
11906 ;;
11907 esac
11908
11909 if test sni = "$host_vendor"; then
11910 case $host in
11911 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11912 export_dynamic_flag_spec='$wl-Blargedynsym'
11913 ;;
11914 esac
11915 fi
11916 fi
11917
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11919 printf "%s\n" "$ld_shlibs" >&6; }
11920 test no = "$ld_shlibs" && can_build_shared=no
11921
11922 with_gnu_ld=$with_gnu_ld
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938 #
11939 # Do we need to explicitly link libc?
11940 #
11941 case "x$archive_cmds_need_lc" in
11942 x|xyes)
11943 # Assume -lc should be added
11944 archive_cmds_need_lc=yes
11945
11946 if test yes,yes = "$GCC,$enable_shared"; then
11947 case $archive_cmds in
11948 *'~'*)
11949 # FIXME: we may have to deal with multi-command sequences.
11950 ;;
11951 '$CC '*)
11952 # Test whether the compiler implicitly links with -lc since on some
11953 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11954 # to ld, don't add -lc before -lgcc.
11955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11956 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11957 if test ${lt_cv_archive_cmds_need_lc+y}
11958 then :
11959 printf %s "(cached) " >&6
11960 else $as_nop
11961 $RM conftest*
11962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11963
11964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11965 (eval $ac_compile) 2>&5
11966 ac_status=$?
11967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; } 2>conftest.err; then
11969 soname=conftest
11970 lib=conftest
11971 libobjs=conftest.$ac_objext
11972 deplibs=
11973 wl=$lt_prog_compiler_wl
11974 pic_flag=$lt_prog_compiler_pic
11975 compiler_flags=-v
11976 linker_flags=-v
11977 verstring=
11978 output_objdir=.
11979 libname=conftest
11980 lt_save_allow_undefined_flag=$allow_undefined_flag
11981 allow_undefined_flag=
11982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11983 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11984 ac_status=$?
11985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986 test $ac_status = 0; }
11987 then
11988 lt_cv_archive_cmds_need_lc=no
11989 else
11990 lt_cv_archive_cmds_need_lc=yes
11991 fi
11992 allow_undefined_flag=$lt_save_allow_undefined_flag
11993 else
11994 cat conftest.err 1>&5
11995 fi
11996 $RM conftest*
11997
11998 fi
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12000 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12001 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12002 ;;
12003 esac
12004 fi
12005 ;;
12006 esac
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12160 printf %s "checking dynamic linker characteristics... " >&6; }
12161
12162 if test yes = "$GCC"; then
12163 case $host_os in
12164 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12165 *) lt_awk_arg='/^libraries:/' ;;
12166 esac
12167 case $host_os in
12168 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12169 *) lt_sed_strip_eq='s|=/|/|g' ;;
12170 esac
12171 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12172 case $lt_search_path_spec in
12173 *\;*)
12174 # if the path contains ";" then we assume it to be the separator
12175 # otherwise default to the standard path separator (i.e. ":") - it is
12176 # assumed that no part of a normal pathname contains ";" but that should
12177 # okay in the real world where ";" in dirpaths is itself problematic.
12178 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12179 ;;
12180 *)
12181 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12182 ;;
12183 esac
12184 # Ok, now we have the path, separated by spaces, we can step through it
12185 # and add multilib dir if necessary...
12186 lt_tmp_lt_search_path_spec=
12187 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12188 # ...but if some path component already ends with the multilib dir we assume
12189 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12190 case "$lt_multi_os_dir; $lt_search_path_spec " in
12191 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12192 lt_multi_os_dir=
12193 ;;
12194 esac
12195 for lt_sys_path in $lt_search_path_spec; do
12196 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12197 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12198 elif test -n "$lt_multi_os_dir"; then
12199 test -d "$lt_sys_path" && \
12200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12201 fi
12202 done
12203 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12204 BEGIN {RS = " "; FS = "/|\n";} {
12205 lt_foo = "";
12206 lt_count = 0;
12207 for (lt_i = NF; lt_i > 0; lt_i--) {
12208 if ($lt_i != "" && $lt_i != ".") {
12209 if ($lt_i == "..") {
12210 lt_count++;
12211 } else {
12212 if (lt_count == 0) {
12213 lt_foo = "/" $lt_i lt_foo;
12214 } else {
12215 lt_count--;
12216 }
12217 }
12218 }
12219 }
12220 if (lt_foo != "") { lt_freq[lt_foo]++; }
12221 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12222 }'`
12223 # AWK program above erroneously prepends '/' to C:/dos/paths
12224 # for these hosts.
12225 case $host_os in
12226 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12227 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12228 esac
12229 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12230 else
12231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12232 fi
12233 library_names_spec=
12234 libname_spec='lib$name'
12235 soname_spec=
12236 shrext_cmds=.so
12237 postinstall_cmds=
12238 postuninstall_cmds=
12239 finish_cmds=
12240 finish_eval=
12241 shlibpath_var=
12242 shlibpath_overrides_runpath=unknown
12243 version_type=none
12244 dynamic_linker="$host_os ld.so"
12245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12246 need_lib_prefix=unknown
12247 hardcode_into_libs=no
12248
12249 # when you set need_version to no, make sure it does not cause -set_version
12250 # flags to be left without arguments
12251 need_version=unknown
12252
12253
12254
12255 case $host_os in
12256 aix3*)
12257 version_type=linux # correct to gnu/linux during the next big refactor
12258 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12259 shlibpath_var=LIBPATH
12260
12261 # AIX 3 has no versioning support, so we append a major version to the name.
12262 soname_spec='$libname$release$shared_ext$major'
12263 ;;
12264
12265 aix[4-9]*)
12266 version_type=linux # correct to gnu/linux during the next big refactor
12267 need_lib_prefix=no
12268 need_version=no
12269 hardcode_into_libs=yes
12270 if test ia64 = "$host_cpu"; then
12271 # AIX 5 supports IA64
12272 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 else
12275 # With GCC up to 2.95.x, collect2 would create an import file
12276 # for dependence libraries. The import file would start with
12277 # the line '#! .'. This would cause the generated library to
12278 # depend on '.', always an invalid library. This was fixed in
12279 # development snapshots of GCC prior to 3.0.
12280 case $host_os in
12281 aix4 | aix4.[01] | aix4.[01].*)
12282 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12283 echo ' yes '
12284 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12285 :
12286 else
12287 can_build_shared=no
12288 fi
12289 ;;
12290 esac
12291 # Using Import Files as archive members, it is possible to support
12292 # filename-based versioning of shared library archives on AIX. While
12293 # this would work for both with and without runtime linking, it will
12294 # prevent static linking of such archives. So we do filename-based
12295 # shared library versioning with .so extension only, which is used
12296 # when both runtime linking and shared linking is enabled.
12297 # Unfortunately, runtime linking may impact performance, so we do
12298 # not want this to be the default eventually. Also, we use the
12299 # versioned .so libs for executables only if there is the -brtl
12300 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12301 # To allow for filename-based versioning support, we need to create
12302 # libNAME.so.V as an archive file, containing:
12303 # *) an Import File, referring to the versioned filename of the
12304 # archive as well as the shared archive member, telling the
12305 # bitwidth (32 or 64) of that shared object, and providing the
12306 # list of exported symbols of that shared object, eventually
12307 # decorated with the 'weak' keyword
12308 # *) the shared object with the F_LOADONLY flag set, to really avoid
12309 # it being seen by the linker.
12310 # At run time we better use the real file rather than another symlink,
12311 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12312
12313 case $with_aix_soname,$aix_use_runtimelinking in
12314 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12315 # soname into executable. Probably we can add versioning support to
12316 # collect2, so additional links can be useful in future.
12317 aix,yes) # traditional libtool
12318 dynamic_linker='AIX unversionable lib.so'
12319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12320 # instead of lib<name>.a to let people know that these are not
12321 # typical AIX shared libraries.
12322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12323 ;;
12324 aix,no) # traditional AIX only
12325 dynamic_linker='AIX lib.a(lib.so.V)'
12326 # We preserve .a as extension for shared libraries through AIX4.2
12327 # and later when we are not doing run time linking.
12328 library_names_spec='$libname$release.a $libname.a'
12329 soname_spec='$libname$release$shared_ext$major'
12330 ;;
12331 svr4,*) # full svr4 only
12332 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12333 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12334 # We do not specify a path in Import Files, so LIBPATH fires.
12335 shlibpath_overrides_runpath=yes
12336 ;;
12337 *,yes) # both, prefer svr4
12338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12340 # unpreferred sharedlib libNAME.a needs extra handling
12341 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12342 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12343 # We do not specify a path in Import Files, so LIBPATH fires.
12344 shlibpath_overrides_runpath=yes
12345 ;;
12346 *,no) # both, prefer aix
12347 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12348 library_names_spec='$libname$release.a $libname.a'
12349 soname_spec='$libname$release$shared_ext$major'
12350 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12351 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12352 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12353 ;;
12354 esac
12355 shlibpath_var=LIBPATH
12356 fi
12357 ;;
12358
12359 amigaos*)
12360 case $host_cpu in
12361 powerpc)
12362 # Since July 2007 AmigaOS4 officially supports .so libraries.
12363 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12365 ;;
12366 m68k)
12367 library_names_spec='$libname.ixlibrary $libname.a'
12368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12369 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12370 ;;
12371 esac
12372 ;;
12373
12374 beos*)
12375 library_names_spec='$libname$shared_ext'
12376 dynamic_linker="$host_os ld.so"
12377 shlibpath_var=LIBRARY_PATH
12378 ;;
12379
12380 bsdi[45]*)
12381 version_type=linux # correct to gnu/linux during the next big refactor
12382 need_version=no
12383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12384 soname_spec='$libname$release$shared_ext$major'
12385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12389 # the default ld.so.conf also contains /usr/contrib/lib and
12390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12391 # libtool to hard-code these into programs
12392 ;;
12393
12394 cygwin* | mingw* | pw32* | cegcc*)
12395 version_type=windows
12396 shrext_cmds=.dll
12397 need_version=no
12398 need_lib_prefix=no
12399
12400 case $GCC,$cc_basename in
12401 yes,*)
12402 # gcc
12403 library_names_spec='$libname.dll.a'
12404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12405 postinstall_cmds='base_file=`basename \$file`~
12406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12407 dldir=$destdir/`dirname \$dlpath`~
12408 test -d \$dldir || mkdir -p \$dldir~
12409 $install_prog $dir/$dlname \$dldir/$dlname~
12410 chmod a+x \$dldir/$dlname~
12411 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12412 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12413 fi'
12414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12415 dlpath=$dir/\$dldll~
12416 $RM \$dlpath'
12417 shlibpath_overrides_runpath=yes
12418
12419 case $host_os in
12420 cygwin*)
12421 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12422 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12423
12424 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12425 ;;
12426 mingw* | cegcc*)
12427 # MinGW DLLs use traditional 'lib' prefix
12428 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12429 ;;
12430 pw32*)
12431 # pw32 DLLs use 'pw' prefix rather than 'lib'
12432 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12433 ;;
12434 esac
12435 dynamic_linker='Win32 ld.exe'
12436 ;;
12437
12438 *,cl* | *,icl*)
12439 # Native MSVC or ICC
12440 libname_spec='$name'
12441 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12442 library_names_spec='$libname.dll.lib'
12443
12444 case $build_os in
12445 mingw*)
12446 sys_lib_search_path_spec=
12447 lt_save_ifs=$IFS
12448 IFS=';'
12449 for lt_path in $LIB
12450 do
12451 IFS=$lt_save_ifs
12452 # Let DOS variable expansion print the short 8.3 style file name.
12453 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12454 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12455 done
12456 IFS=$lt_save_ifs
12457 # Convert to MSYS style.
12458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12459 ;;
12460 cygwin*)
12461 # Convert to unix form, then to dos form, then back to unix form
12462 # but this time dos style (no spaces!) so that the unix form looks
12463 # like /cygdrive/c/PROGRA~1:/cygdr...
12464 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12465 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12466 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12467 ;;
12468 *)
12469 sys_lib_search_path_spec=$LIB
12470 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12471 # It is most probably a Windows format PATH.
12472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12473 else
12474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12475 fi
12476 # FIXME: find the short name or the path components, as spaces are
12477 # common. (e.g. "Program Files" -> "PROGRA~1")
12478 ;;
12479 esac
12480
12481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12482 postinstall_cmds='base_file=`basename \$file`~
12483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12484 dldir=$destdir/`dirname \$dlpath`~
12485 test -d \$dldir || mkdir -p \$dldir~
12486 $install_prog $dir/$dlname \$dldir/$dlname'
12487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12488 dlpath=$dir/\$dldll~
12489 $RM \$dlpath'
12490 shlibpath_overrides_runpath=yes
12491 dynamic_linker='Win32 link.exe'
12492 ;;
12493
12494 *)
12495 # Assume MSVC and ICC wrapper
12496 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12497 dynamic_linker='Win32 ld.exe'
12498 ;;
12499 esac
12500 # FIXME: first we should search . and the directory the executable is in
12501 shlibpath_var=PATH
12502 ;;
12503
12504 darwin* | rhapsody*)
12505 dynamic_linker="$host_os dyld"
12506 version_type=darwin
12507 need_lib_prefix=no
12508 need_version=no
12509 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12510 soname_spec='$libname$release$major$shared_ext'
12511 shlibpath_overrides_runpath=yes
12512 shlibpath_var=DYLD_LIBRARY_PATH
12513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12514
12515 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12517 ;;
12518
12519 dgux*)
12520 version_type=linux # correct to gnu/linux during the next big refactor
12521 need_lib_prefix=no
12522 need_version=no
12523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12524 soname_spec='$libname$release$shared_ext$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 ;;
12527
12528 freebsd* | dragonfly* | midnightbsd*)
12529 # DragonFly does not have aout. When/if they implement a new
12530 # versioning mechanism, adjust this.
12531 if test -x /usr/bin/objformat; then
12532 objformat=`/usr/bin/objformat`
12533 else
12534 case $host_os in
12535 freebsd[23].*) objformat=aout ;;
12536 *) objformat=elf ;;
12537 esac
12538 fi
12539 version_type=freebsd-$objformat
12540 case $version_type in
12541 freebsd-elf*)
12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543 soname_spec='$libname$release$shared_ext$major'
12544 need_version=no
12545 need_lib_prefix=no
12546 ;;
12547 freebsd-*)
12548 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12549 need_version=yes
12550 ;;
12551 esac
12552 shlibpath_var=LD_LIBRARY_PATH
12553 case $host_os in
12554 freebsd2.*)
12555 shlibpath_overrides_runpath=yes
12556 ;;
12557 freebsd3.[01]* | freebsdelf3.[01]*)
12558 shlibpath_overrides_runpath=yes
12559 hardcode_into_libs=yes
12560 ;;
12561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12563 shlibpath_overrides_runpath=no
12564 hardcode_into_libs=yes
12565 ;;
12566 *) # from 4.6 on, and DragonFly
12567 shlibpath_overrides_runpath=yes
12568 hardcode_into_libs=yes
12569 ;;
12570 esac
12571 ;;
12572
12573 haiku*)
12574 version_type=linux # correct to gnu/linux during the next big refactor
12575 need_lib_prefix=no
12576 need_version=no
12577 dynamic_linker="$host_os runtime_loader"
12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12579 soname_spec='$libname$release$shared_ext$major'
12580 shlibpath_var=LIBRARY_PATH
12581 shlibpath_overrides_runpath=no
12582 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12583 hardcode_into_libs=yes
12584 ;;
12585
12586 hpux9* | hpux10* | hpux11*)
12587 # Give a soname corresponding to the major version so that dld.sl refuses to
12588 # link against other versions.
12589 version_type=sunos
12590 need_lib_prefix=no
12591 need_version=no
12592 case $host_cpu in
12593 ia64*)
12594 shrext_cmds='.so'
12595 hardcode_into_libs=yes
12596 dynamic_linker="$host_os dld.so"
12597 shlibpath_var=LD_LIBRARY_PATH
12598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 soname_spec='$libname$release$shared_ext$major'
12601 if test 32 = "$HPUX_IA64_MODE"; then
12602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12603 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12604 else
12605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12606 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12607 fi
12608 ;;
12609 hppa*64*)
12610 shrext_cmds='.sl'
12611 hardcode_into_libs=yes
12612 dynamic_linker="$host_os dld.sl"
12613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12616 soname_spec='$libname$release$shared_ext$major'
12617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12619 ;;
12620 *)
12621 shrext_cmds='.sl'
12622 dynamic_linker="$host_os dld.sl"
12623 shlibpath_var=SHLIB_PATH
12624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12626 soname_spec='$libname$release$shared_ext$major'
12627 ;;
12628 esac
12629 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12630 postinstall_cmds='chmod 555 $lib'
12631 # or fails outright, so override atomically:
12632 install_override_mode=555
12633 ;;
12634
12635 interix[3-9]*)
12636 version_type=linux # correct to gnu/linux during the next big refactor
12637 need_lib_prefix=no
12638 need_version=no
12639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12640 soname_spec='$libname$release$shared_ext$major'
12641 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12642 shlibpath_var=LD_LIBRARY_PATH
12643 shlibpath_overrides_runpath=no
12644 hardcode_into_libs=yes
12645 ;;
12646
12647 irix5* | irix6* | nonstopux*)
12648 case $host_os in
12649 nonstopux*) version_type=nonstopux ;;
12650 *)
12651 if test yes = "$lt_cv_prog_gnu_ld"; then
12652 version_type=linux # correct to gnu/linux during the next big refactor
12653 else
12654 version_type=irix
12655 fi ;;
12656 esac
12657 need_lib_prefix=no
12658 need_version=no
12659 soname_spec='$libname$release$shared_ext$major'
12660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12661 case $host_os in
12662 irix5* | nonstopux*)
12663 libsuff= shlibsuff=
12664 ;;
12665 *)
12666 case $LD in # libtool.m4 will add one of these switches to LD
12667 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12668 libsuff= shlibsuff= libmagic=32-bit;;
12669 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12670 libsuff=32 shlibsuff=N32 libmagic=N32;;
12671 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12672 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12673 *) libsuff= shlibsuff= libmagic=never-match;;
12674 esac
12675 ;;
12676 esac
12677 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12678 shlibpath_overrides_runpath=no
12679 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12680 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12681 hardcode_into_libs=yes
12682 ;;
12683
12684 # No shared lib support for Linux oldld, aout, or coff.
12685 linux*oldld* | linux*aout* | linux*coff*)
12686 dynamic_linker=no
12687 ;;
12688
12689 linux*android*)
12690 version_type=none # Android doesn't support versioned libraries.
12691 need_lib_prefix=no
12692 need_version=no
12693 library_names_spec='$libname$release$shared_ext'
12694 soname_spec='$libname$release$shared_ext'
12695 finish_cmds=
12696 shlibpath_var=LD_LIBRARY_PATH
12697 shlibpath_overrides_runpath=yes
12698
12699 # This implies no fast_install, which is unacceptable.
12700 # Some rework will be needed to allow for fast_install
12701 # before this can be enabled.
12702 hardcode_into_libs=yes
12703
12704 dynamic_linker='Android linker'
12705 # Don't embed -rpath directories since the linker doesn't support them.
12706 hardcode_libdir_flag_spec='-L$libdir'
12707 ;;
12708
12709 # This must be glibc/ELF.
12710 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12711 version_type=linux # correct to gnu/linux during the next big refactor
12712 need_lib_prefix=no
12713 need_version=no
12714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715 soname_spec='$libname$release$shared_ext$major'
12716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12717 shlibpath_var=LD_LIBRARY_PATH
12718 shlibpath_overrides_runpath=no
12719
12720 # Some binutils ld are patched to set DT_RUNPATH
12721 if test ${lt_cv_shlibpath_overrides_runpath+y}
12722 then :
12723 printf %s "(cached) " >&6
12724 else $as_nop
12725 lt_cv_shlibpath_overrides_runpath=no
12726 save_LDFLAGS=$LDFLAGS
12727 save_libdir=$libdir
12728 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12729 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732
12733 int
12734 main (void)
12735 {
12736
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"
12742 then :
12743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12744 then :
12745 lt_cv_shlibpath_overrides_runpath=yes
12746 fi
12747 fi
12748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LDFLAGS=$save_LDFLAGS
12751 libdir=$save_libdir
12752
12753 fi
12754
12755 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12756
12757 # This implies no fast_install, which is unacceptable.
12758 # Some rework will be needed to allow for fast_install
12759 # before this can be enabled.
12760 hardcode_into_libs=yes
12761
12762 # Ideally, we could use ldconfig to report *all* directores which are
12763 # searched for libraries, however this is still not possible. Aside from not
12764 # being certain /sbin/ldconfig is available, command
12765 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12766 # even though it is searched at run-time. Try to do the best guess by
12767 # appending ld.so.conf contents (and includes) to the search path.
12768 if test -f /etc/ld.so.conf; then
12769 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' ' '`
12770 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12771 fi
12772
12773 # We used to test for /lib/ld.so.1 and disable shared libraries on
12774 # powerpc, because MkLinux only supported shared libraries with the
12775 # GNU dynamic linker. Since this was broken with cross compilers,
12776 # most powerpc-linux boxes support dynamic linking these days and
12777 # people can always --disable-shared, the test was removed, and we
12778 # assume the GNU/Linux dynamic linker is in use.
12779 dynamic_linker='GNU/Linux ld.so'
12780 ;;
12781
12782 netbsdelf*-gnu)
12783 version_type=linux
12784 need_lib_prefix=no
12785 need_version=no
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=no
12790 hardcode_into_libs=yes
12791 dynamic_linker='NetBSD ld.elf_so'
12792 ;;
12793
12794 netbsd*)
12795 version_type=sunos
12796 need_lib_prefix=no
12797 need_version=no
12798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12801 dynamic_linker='NetBSD (a.out) ld.so'
12802 else
12803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12804 soname_spec='$libname$release$shared_ext$major'
12805 dynamic_linker='NetBSD ld.elf_so'
12806 fi
12807 shlibpath_var=LD_LIBRARY_PATH
12808 shlibpath_overrides_runpath=yes
12809 hardcode_into_libs=yes
12810 ;;
12811
12812 newsos6)
12813 version_type=linux # correct to gnu/linux during the next big refactor
12814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=yes
12817 ;;
12818
12819 *nto* | *qnx*)
12820 version_type=qnx
12821 need_lib_prefix=no
12822 need_version=no
12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824 soname_spec='$libname$release$shared_ext$major'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 shlibpath_overrides_runpath=no
12827 hardcode_into_libs=yes
12828 dynamic_linker='ldqnx.so'
12829 ;;
12830
12831 openbsd* | bitrig*)
12832 version_type=sunos
12833 sys_lib_dlsearch_path_spec=/usr/lib
12834 need_lib_prefix=no
12835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12836 need_version=no
12837 else
12838 need_version=yes
12839 fi
12840 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 shlibpath_overrides_runpath=yes
12844 ;;
12845
12846 os2*)
12847 libname_spec='$name'
12848 version_type=windows
12849 shrext_cmds=.dll
12850 need_version=no
12851 need_lib_prefix=no
12852 # OS/2 can only load a DLL with a base name of 8 characters or less.
12853 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12854 v=$($ECHO $release$versuffix | tr -d .-);
12855 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12856 $ECHO $n$v`$shared_ext'
12857 library_names_spec='${libname}_dll.$libext'
12858 dynamic_linker='OS/2 ld.exe'
12859 shlibpath_var=BEGINLIBPATH
12860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12862 postinstall_cmds='base_file=`basename \$file`~
12863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12864 dldir=$destdir/`dirname \$dlpath`~
12865 test -d \$dldir || mkdir -p \$dldir~
12866 $install_prog $dir/$dlname \$dldir/$dlname~
12867 chmod a+x \$dldir/$dlname~
12868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12870 fi'
12871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12872 dlpath=$dir/\$dldll~
12873 $RM \$dlpath'
12874 ;;
12875
12876 osf3* | osf4* | osf5*)
12877 version_type=osf
12878 need_lib_prefix=no
12879 need_version=no
12880 soname_spec='$libname$release$shared_ext$major'
12881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12885 ;;
12886
12887 rdos*)
12888 dynamic_linker=no
12889 ;;
12890
12891 solaris*)
12892 version_type=linux # correct to gnu/linux during the next big refactor
12893 need_lib_prefix=no
12894 need_version=no
12895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12896 soname_spec='$libname$release$shared_ext$major'
12897 shlibpath_var=LD_LIBRARY_PATH
12898 shlibpath_overrides_runpath=yes
12899 hardcode_into_libs=yes
12900 # ldd complains unless libraries are executable
12901 postinstall_cmds='chmod +x $lib'
12902 ;;
12903
12904 sunos4*)
12905 version_type=sunos
12906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=yes
12910 if test yes = "$with_gnu_ld"; then
12911 need_lib_prefix=no
12912 fi
12913 need_version=yes
12914 ;;
12915
12916 sysv4 | sysv4.3*)
12917 version_type=linux # correct to gnu/linux during the next big refactor
12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12919 soname_spec='$libname$release$shared_ext$major'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 case $host_vendor in
12922 sni)
12923 shlibpath_overrides_runpath=no
12924 need_lib_prefix=no
12925 runpath_var=LD_RUN_PATH
12926 ;;
12927 siemens)
12928 need_lib_prefix=no
12929 ;;
12930 motorola)
12931 need_lib_prefix=no
12932 need_version=no
12933 shlibpath_overrides_runpath=no
12934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12935 ;;
12936 esac
12937 ;;
12938
12939 sysv4*MP*)
12940 if test -d /usr/nec; then
12941 version_type=linux # correct to gnu/linux during the next big refactor
12942 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12943 soname_spec='$libname$shared_ext.$major'
12944 shlibpath_var=LD_LIBRARY_PATH
12945 fi
12946 ;;
12947
12948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12949 version_type=sco
12950 need_lib_prefix=no
12951 need_version=no
12952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12953 soname_spec='$libname$release$shared_ext$major'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 shlibpath_overrides_runpath=yes
12956 hardcode_into_libs=yes
12957 if test yes = "$with_gnu_ld"; then
12958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12959 else
12960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12961 case $host_os in
12962 sco3.2v5*)
12963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12964 ;;
12965 esac
12966 fi
12967 sys_lib_dlsearch_path_spec='/usr/lib'
12968 ;;
12969
12970 tpf*)
12971 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12972 version_type=linux # correct to gnu/linux during the next big refactor
12973 need_lib_prefix=no
12974 need_version=no
12975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=no
12978 hardcode_into_libs=yes
12979 ;;
12980
12981 uts4*)
12982 version_type=linux # correct to gnu/linux during the next big refactor
12983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12984 soname_spec='$libname$release$shared_ext$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 ;;
12987
12988 *)
12989 dynamic_linker=no
12990 ;;
12991 esac
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12993 printf "%s\n" "$dynamic_linker" >&6; }
12994 test no = "$dynamic_linker" && can_build_shared=no
12995
12996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12997 if test yes = "$GCC"; then
12998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12999 fi
13000
13001 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13002 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13003 fi
13004
13005 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13006 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13007 fi
13008
13009 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13010 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13011
13012 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13013 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13014
13015 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13016 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13115 printf %s "checking how to hardcode library paths into programs... " >&6; }
13116 hardcode_action=
13117 if test -n "$hardcode_libdir_flag_spec" ||
13118 test -n "$runpath_var" ||
13119 test yes = "$hardcode_automatic"; then
13120
13121 # We can hardcode non-existent directories.
13122 if test no != "$hardcode_direct" &&
13123 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13124 # have to relink, otherwise we might link with an installed library
13125 # when we should be linking with a yet-to-be-installed one
13126 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13127 test no != "$hardcode_minus_L"; then
13128 # Linking always hardcodes the temporary library directory.
13129 hardcode_action=relink
13130 else
13131 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13132 hardcode_action=immediate
13133 fi
13134 else
13135 # We cannot hardcode anything, or else we can only hardcode existing
13136 # directories.
13137 hardcode_action=unsupported
13138 fi
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13140 printf "%s\n" "$hardcode_action" >&6; }
13141
13142 if test relink = "$hardcode_action" ||
13143 test yes = "$inherit_rpath"; then
13144 # Fast installation is not supported
13145 enable_fast_install=no
13146 elif test yes = "$shlibpath_overrides_runpath" ||
13147 test no = "$enable_shared"; then
13148 # Fast installation is not necessary
13149 enable_fast_install=needless
13150 fi
13151
13152
13153
13154
13155
13156
13157 if test yes != "$enable_dlopen"; then
13158 enable_dlopen=unknown
13159 enable_dlopen_self=unknown
13160 enable_dlopen_self_static=unknown
13161 else
13162 lt_cv_dlopen=no
13163 lt_cv_dlopen_libs=
13164
13165 case $host_os in
13166 beos*)
13167 lt_cv_dlopen=load_add_on
13168 lt_cv_dlopen_libs=
13169 lt_cv_dlopen_self=yes
13170 ;;
13171
13172 mingw* | pw32* | cegcc*)
13173 lt_cv_dlopen=LoadLibrary
13174 lt_cv_dlopen_libs=
13175 ;;
13176
13177 cygwin*)
13178 lt_cv_dlopen=dlopen
13179 lt_cv_dlopen_libs=
13180 ;;
13181
13182 darwin*)
13183 # if libdl is installed we need to link against it
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13185 printf %s "checking for dlopen in -ldl... " >&6; }
13186 if test ${ac_cv_lib_dl_dlopen+y}
13187 then :
13188 printf %s "(cached) " >&6
13189 else $as_nop
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-ldl $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 char dlopen ();
13199 int
13200 main (void)
13201 {
13202 return dlopen ();
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"
13208 then :
13209 ac_cv_lib_dl_dlopen=yes
13210 else $as_nop
13211 ac_cv_lib_dl_dlopen=no
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS
13216 fi
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13218 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13219 if test "x$ac_cv_lib_dl_dlopen" = xyes
13220 then :
13221 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13222 else $as_nop
13223
13224 lt_cv_dlopen=dyld
13225 lt_cv_dlopen_libs=
13226 lt_cv_dlopen_self=yes
13227
13228 fi
13229
13230 ;;
13231
13232 tpf*)
13233 # Don't try to run any link tests for TPF. We know it's impossible
13234 # because TPF is a cross-compiler, and we know how we open DSOs.
13235 lt_cv_dlopen=dlopen
13236 lt_cv_dlopen_libs=
13237 lt_cv_dlopen_self=no
13238 ;;
13239
13240 *)
13241 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13242 if test "x$ac_cv_func_shl_load" = xyes
13243 then :
13244 lt_cv_dlopen=shl_load
13245 else $as_nop
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13247 printf %s "checking for shl_load in -ldld... " >&6; }
13248 if test ${ac_cv_lib_dld_shl_load+y}
13249 then :
13250 printf %s "(cached) " >&6
13251 else $as_nop
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-ldld $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260 char shl_load ();
13261 int
13262 main (void)
13263 {
13264 return shl_load ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"
13270 then :
13271 ac_cv_lib_dld_shl_load=yes
13272 else $as_nop
13273 ac_cv_lib_dld_shl_load=no
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_lib_save_LIBS
13278 fi
13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13280 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13281 if test "x$ac_cv_lib_dld_shl_load" = xyes
13282 then :
13283 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13284 else $as_nop
13285 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13286 if test "x$ac_cv_func_dlopen" = xyes
13287 then :
13288 lt_cv_dlopen=dlopen
13289 else $as_nop
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13291 printf %s "checking for dlopen in -ldl... " >&6; }
13292 if test ${ac_cv_lib_dl_dlopen+y}
13293 then :
13294 printf %s "(cached) " >&6
13295 else $as_nop
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-ldl $LIBS"
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13304 char dlopen ();
13305 int
13306 main (void)
13307 {
13308 return dlopen ();
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_link "$LINENO"
13314 then :
13315 ac_cv_lib_dl_dlopen=yes
13316 else $as_nop
13317 ac_cv_lib_dl_dlopen=no
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13322 fi
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13324 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13325 if test "x$ac_cv_lib_dl_dlopen" = xyes
13326 then :
13327 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13328 else $as_nop
13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13330 printf %s "checking for dlopen in -lsvld... " >&6; }
13331 if test ${ac_cv_lib_svld_dlopen+y}
13332 then :
13333 printf %s "(cached) " >&6
13334 else $as_nop
13335 ac_check_lib_save_LIBS=$LIBS
13336 LIBS="-lsvld $LIBS"
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339
13340 /* Override any GCC internal prototype to avoid an error.
13341 Use char because int might match the return type of a GCC
13342 builtin and then its argument prototype would still apply. */
13343 char dlopen ();
13344 int
13345 main (void)
13346 {
13347 return dlopen ();
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_link "$LINENO"
13353 then :
13354 ac_cv_lib_svld_dlopen=yes
13355 else $as_nop
13356 ac_cv_lib_svld_dlopen=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13359 conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13361 fi
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13363 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13364 if test "x$ac_cv_lib_svld_dlopen" = xyes
13365 then :
13366 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13367 else $as_nop
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13369 printf %s "checking for dld_link in -ldld... " >&6; }
13370 if test ${ac_cv_lib_dld_dld_link+y}
13371 then :
13372 printf %s "(cached) " >&6
13373 else $as_nop
13374 ac_check_lib_save_LIBS=$LIBS
13375 LIBS="-ldld $LIBS"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378
13379 /* Override any GCC internal prototype to avoid an error.
13380 Use char because int might match the return type of a GCC
13381 builtin and then its argument prototype would still apply. */
13382 char dld_link ();
13383 int
13384 main (void)
13385 {
13386 return dld_link ();
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_link "$LINENO"
13392 then :
13393 ac_cv_lib_dld_dld_link=yes
13394 else $as_nop
13395 ac_cv_lib_dld_dld_link=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13400 fi
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13402 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13403 if test "x$ac_cv_lib_dld_dld_link" = xyes
13404 then :
13405 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13406 fi
13407
13408
13409 fi
13410
13411
13412 fi
13413
13414
13415 fi
13416
13417
13418 fi
13419
13420
13421 fi
13422
13423 ;;
13424 esac
13425
13426 if test no = "$lt_cv_dlopen"; then
13427 enable_dlopen=no
13428 else
13429 enable_dlopen=yes
13430 fi
13431
13432 case $lt_cv_dlopen in
13433 dlopen)
13434 save_CPPFLAGS=$CPPFLAGS
13435 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13436
13437 save_LDFLAGS=$LDFLAGS
13438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13439
13440 save_LIBS=$LIBS
13441 LIBS="$lt_cv_dlopen_libs $LIBS"
13442
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13444 printf %s "checking whether a program can dlopen itself... " >&6; }
13445 if test ${lt_cv_dlopen_self+y}
13446 then :
13447 printf %s "(cached) " >&6
13448 else $as_nop
13449 if test yes = "$cross_compiling"; then :
13450 lt_cv_dlopen_self=cross
13451 else
13452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13453 lt_status=$lt_dlunknown
13454 cat > conftest.$ac_ext <<_LT_EOF
13455 #line $LINENO "configure"
13456 #include "confdefs.h"
13457
13458 #if HAVE_DLFCN_H
13459 #include <dlfcn.h>
13460 #endif
13461
13462 #include <stdio.h>
13463
13464 #ifdef RTLD_GLOBAL
13465 # define LT_DLGLOBAL RTLD_GLOBAL
13466 #else
13467 # ifdef DL_GLOBAL
13468 # define LT_DLGLOBAL DL_GLOBAL
13469 # else
13470 # define LT_DLGLOBAL 0
13471 # endif
13472 #endif
13473
13474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13475 find out it does not work in some platform. */
13476 #ifndef LT_DLLAZY_OR_NOW
13477 # ifdef RTLD_LAZY
13478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13479 # else
13480 # ifdef DL_LAZY
13481 # define LT_DLLAZY_OR_NOW DL_LAZY
13482 # else
13483 # ifdef RTLD_NOW
13484 # define LT_DLLAZY_OR_NOW RTLD_NOW
13485 # else
13486 # ifdef DL_NOW
13487 # define LT_DLLAZY_OR_NOW DL_NOW
13488 # else
13489 # define LT_DLLAZY_OR_NOW 0
13490 # endif
13491 # endif
13492 # endif
13493 # endif
13494 #endif
13495
13496 /* When -fvisibility=hidden is used, assume the code has been annotated
13497 correspondingly for the symbols needed. */
13498 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13499 int fnord () __attribute__((visibility("default")));
13500 #endif
13501
13502 int fnord () { return 42; }
13503 int main ()
13504 {
13505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13506 int status = $lt_dlunknown;
13507
13508 if (self)
13509 {
13510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13511 else
13512 {
13513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13514 else puts (dlerror ());
13515 }
13516 /* dlclose (self); */
13517 }
13518 else
13519 puts (dlerror ());
13520
13521 return status;
13522 }
13523 _LT_EOF
13524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13525 (eval $ac_link) 2>&5
13526 ac_status=$?
13527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13529 (./conftest; exit; ) >&5 2>/dev/null
13530 lt_status=$?
13531 case x$lt_status in
13532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13534 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13535 esac
13536 else :
13537 # compilation failed
13538 lt_cv_dlopen_self=no
13539 fi
13540 fi
13541 rm -fr conftest*
13542
13543
13544 fi
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13546 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13547
13548 if test yes = "$lt_cv_dlopen_self"; then
13549 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13551 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13552 if test ${lt_cv_dlopen_self_static+y}
13553 then :
13554 printf %s "(cached) " >&6
13555 else $as_nop
13556 if test yes = "$cross_compiling"; then :
13557 lt_cv_dlopen_self_static=cross
13558 else
13559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13560 lt_status=$lt_dlunknown
13561 cat > conftest.$ac_ext <<_LT_EOF
13562 #line $LINENO "configure"
13563 #include "confdefs.h"
13564
13565 #if HAVE_DLFCN_H
13566 #include <dlfcn.h>
13567 #endif
13568
13569 #include <stdio.h>
13570
13571 #ifdef RTLD_GLOBAL
13572 # define LT_DLGLOBAL RTLD_GLOBAL
13573 #else
13574 # ifdef DL_GLOBAL
13575 # define LT_DLGLOBAL DL_GLOBAL
13576 # else
13577 # define LT_DLGLOBAL 0
13578 # endif
13579 #endif
13580
13581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13582 find out it does not work in some platform. */
13583 #ifndef LT_DLLAZY_OR_NOW
13584 # ifdef RTLD_LAZY
13585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13586 # else
13587 # ifdef DL_LAZY
13588 # define LT_DLLAZY_OR_NOW DL_LAZY
13589 # else
13590 # ifdef RTLD_NOW
13591 # define LT_DLLAZY_OR_NOW RTLD_NOW
13592 # else
13593 # ifdef DL_NOW
13594 # define LT_DLLAZY_OR_NOW DL_NOW
13595 # else
13596 # define LT_DLLAZY_OR_NOW 0
13597 # endif
13598 # endif
13599 # endif
13600 # endif
13601 #endif
13602
13603 /* When -fvisibility=hidden is used, assume the code has been annotated
13604 correspondingly for the symbols needed. */
13605 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13606 int fnord () __attribute__((visibility("default")));
13607 #endif
13608
13609 int fnord () { return 42; }
13610 int main ()
13611 {
13612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13613 int status = $lt_dlunknown;
13614
13615 if (self)
13616 {
13617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13618 else
13619 {
13620 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13621 else puts (dlerror ());
13622 }
13623 /* dlclose (self); */
13624 }
13625 else
13626 puts (dlerror ());
13627
13628 return status;
13629 }
13630 _LT_EOF
13631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13632 (eval $ac_link) 2>&5
13633 ac_status=$?
13634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13636 (./conftest; exit; ) >&5 2>/dev/null
13637 lt_status=$?
13638 case x$lt_status in
13639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13641 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13642 esac
13643 else :
13644 # compilation failed
13645 lt_cv_dlopen_self_static=no
13646 fi
13647 fi
13648 rm -fr conftest*
13649
13650
13651 fi
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13653 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13654 fi
13655
13656 CPPFLAGS=$save_CPPFLAGS
13657 LDFLAGS=$save_LDFLAGS
13658 LIBS=$save_LIBS
13659 ;;
13660 esac
13661
13662 case $lt_cv_dlopen_self in
13663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13664 *) enable_dlopen_self=unknown ;;
13665 esac
13666
13667 case $lt_cv_dlopen_self_static in
13668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13669 *) enable_dlopen_self_static=unknown ;;
13670 esac
13671 fi
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689 striplib=
13690 old_striplib=
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13692 printf %s "checking whether stripping libraries is possible... " >&6; }
13693 if test -z "$STRIP"; then
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 printf "%s\n" "no" >&6; }
13696 else
13697 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13698 old_striplib="$STRIP --strip-debug"
13699 striplib="$STRIP --strip-unneeded"
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13701 printf "%s\n" "yes" >&6; }
13702 else
13703 case $host_os in
13704 darwin*)
13705 # FIXME - insert some real tests, host_os isn't really good enough
13706 striplib="$STRIP -x"
13707 old_striplib="$STRIP -S"
13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13709 printf "%s\n" "yes" >&6; }
13710 ;;
13711 freebsd*)
13712 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13713 old_striplib="$STRIP --strip-debug"
13714 striplib="$STRIP --strip-unneeded"
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13716 printf "%s\n" "yes" >&6; }
13717 else
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 printf "%s\n" "no" >&6; }
13720 fi
13721 ;;
13722 *)
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 printf "%s\n" "no" >&6; }
13725 ;;
13726 esac
13727 fi
13728 fi
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741 # Report what library types will actually be built
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13743 printf %s "checking if libtool supports shared libraries... " >&6; }
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13745 printf "%s\n" "$can_build_shared" >&6; }
13746
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13748 printf %s "checking whether to build shared libraries... " >&6; }
13749 test no = "$can_build_shared" && enable_shared=no
13750
13751 # On AIX, shared libraries and static libraries use the same namespace, and
13752 # are all built from PIC.
13753 case $host_os in
13754 aix3*)
13755 test yes = "$enable_shared" && enable_static=no
13756 if test -n "$RANLIB"; then
13757 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13758 postinstall_cmds='$RANLIB $lib'
13759 fi
13760 ;;
13761
13762 aix[4-9]*)
13763 if test ia64 != "$host_cpu"; then
13764 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13765 yes,aix,yes) ;; # shared object as lib.so file only
13766 yes,svr4,*) ;; # shared object as lib.so archive member only
13767 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13768 esac
13769 fi
13770 ;;
13771 esac
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13773 printf "%s\n" "$enable_shared" >&6; }
13774
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13776 printf %s "checking whether to build static libraries... " >&6; }
13777 # Make sure either enable_shared or enable_static is yes.
13778 test yes = "$enable_shared" || enable_static=yes
13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13780 printf "%s\n" "$enable_static" >&6; }
13781
13782
13783
13784
13785 fi
13786 ac_ext=c
13787 ac_cpp='$CPP $CPPFLAGS'
13788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13791
13792 CC=$lt_save_CC
13793
13794 if test -n "$CXX" && ( test no != "$CXX" &&
13795 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13796 (test g++ != "$CXX"))); then
13797 ac_ext=cpp
13798 ac_cpp='$CXXCPP $CPPFLAGS'
13799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13803 printf %s "checking how to run the C++ preprocessor... " >&6; }
13804 if test -z "$CXXCPP"; then
13805 if test ${ac_cv_prog_CXXCPP+y}
13806 then :
13807 printf %s "(cached) " >&6
13808 else $as_nop
13809 # Double quotes because $CXX needs to be expanded
13810 for CXXCPP in "$CXX -E" cpp /lib/cpp
13811 do
13812 ac_preproc_ok=false
13813 for ac_cxx_preproc_warn_flag in '' yes
13814 do
13815 # Use a header file that comes with gcc, so configuring glibc
13816 # with a fresh cross-compiler works.
13817 # On the NeXT, cc -E runs the code through the compiler's parser,
13818 # not just through cpp. "Syntax error" is here to catch this case.
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <limits.h>
13822 Syntax error
13823 _ACEOF
13824 if ac_fn_cxx_try_cpp "$LINENO"
13825 then :
13826
13827 else $as_nop
13828 # Broken: fails on valid input.
13829 continue
13830 fi
13831 rm -f conftest.err conftest.i conftest.$ac_ext
13832
13833 # OK, works on sane cases. Now check whether nonexistent headers
13834 # can be detected and how.
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <ac_nonexistent.h>
13838 _ACEOF
13839 if ac_fn_cxx_try_cpp "$LINENO"
13840 then :
13841 # Broken: success on invalid input.
13842 continue
13843 else $as_nop
13844 # Passes both tests.
13845 ac_preproc_ok=:
13846 break
13847 fi
13848 rm -f conftest.err conftest.i conftest.$ac_ext
13849
13850 done
13851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13852 rm -f conftest.i conftest.err conftest.$ac_ext
13853 if $ac_preproc_ok
13854 then :
13855 break
13856 fi
13857
13858 done
13859 ac_cv_prog_CXXCPP=$CXXCPP
13860
13861 fi
13862 CXXCPP=$ac_cv_prog_CXXCPP
13863 else
13864 ac_cv_prog_CXXCPP=$CXXCPP
13865 fi
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13867 printf "%s\n" "$CXXCPP" >&6; }
13868 ac_preproc_ok=false
13869 for ac_cxx_preproc_warn_flag in '' yes
13870 do
13871 # Use a header file that comes with gcc, so configuring glibc
13872 # with a fresh cross-compiler works.
13873 # On the NeXT, cc -E runs the code through the compiler's parser,
13874 # not just through cpp. "Syntax error" is here to catch this case.
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <limits.h>
13878 Syntax error
13879 _ACEOF
13880 if ac_fn_cxx_try_cpp "$LINENO"
13881 then :
13882
13883 else $as_nop
13884 # Broken: fails on valid input.
13885 continue
13886 fi
13887 rm -f conftest.err conftest.i conftest.$ac_ext
13888
13889 # OK, works on sane cases. Now check whether nonexistent headers
13890 # can be detected and how.
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893 #include <ac_nonexistent.h>
13894 _ACEOF
13895 if ac_fn_cxx_try_cpp "$LINENO"
13896 then :
13897 # Broken: success on invalid input.
13898 continue
13899 else $as_nop
13900 # Passes both tests.
13901 ac_preproc_ok=:
13902 break
13903 fi
13904 rm -f conftest.err conftest.i conftest.$ac_ext
13905
13906 done
13907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13908 rm -f conftest.i conftest.err conftest.$ac_ext
13909 if $ac_preproc_ok
13910 then :
13911
13912 else $as_nop
13913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13914 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13915 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13916 See \`config.log' for more details" "$LINENO" 5; }
13917 fi
13918
13919 ac_ext=c
13920 ac_cpp='$CPP $CPPFLAGS'
13921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13924
13925 else
13926 _lt_caught_CXX_error=yes
13927 fi
13928
13929 ac_ext=cpp
13930 ac_cpp='$CXXCPP $CPPFLAGS'
13931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13934
13935 archive_cmds_need_lc_CXX=no
13936 allow_undefined_flag_CXX=
13937 always_export_symbols_CXX=no
13938 archive_expsym_cmds_CXX=
13939 compiler_needs_object_CXX=no
13940 export_dynamic_flag_spec_CXX=
13941 hardcode_direct_CXX=no
13942 hardcode_direct_absolute_CXX=no
13943 hardcode_libdir_flag_spec_CXX=
13944 hardcode_libdir_separator_CXX=
13945 hardcode_minus_L_CXX=no
13946 hardcode_shlibpath_var_CXX=unsupported
13947 hardcode_automatic_CXX=no
13948 inherit_rpath_CXX=no
13949 module_cmds_CXX=
13950 module_expsym_cmds_CXX=
13951 link_all_deplibs_CXX=unknown
13952 old_archive_cmds_CXX=$old_archive_cmds
13953 reload_flag_CXX=$reload_flag
13954 reload_cmds_CXX=$reload_cmds
13955 no_undefined_flag_CXX=
13956 whole_archive_flag_spec_CXX=
13957 enable_shared_with_static_runtimes_CXX=no
13958
13959 # Source file extension for C++ test sources.
13960 ac_ext=cpp
13961
13962 # Object file extension for compiled C++ test sources.
13963 objext=o
13964 objext_CXX=$objext
13965
13966 # No sense in running all these tests if we already determined that
13967 # the CXX compiler isn't working. Some variables (like enable_shared)
13968 # are currently assumed to apply to all compilers on this platform,
13969 # and will be corrupted by setting them based on a non-working compiler.
13970 if test yes != "$_lt_caught_CXX_error"; then
13971 # Code to be used in simple compile tests
13972 lt_simple_compile_test_code="int some_variable = 0;"
13973
13974 # Code to be used in simple link tests
13975 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13976
13977 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13978
13979
13980
13981
13982
13983
13984 # If no C compiler was specified, use CC.
13985 LTCC=${LTCC-"$CC"}
13986
13987 # If no C compiler flags were specified, use CFLAGS.
13988 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13989
13990 # Allow CC to be a program name with arguments.
13991 compiler=$CC
13992
13993
13994 # save warnings/boilerplate of simple test code
13995 ac_outfile=conftest.$ac_objext
13996 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13997 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13998 _lt_compiler_boilerplate=`cat conftest.err`
13999 $RM conftest*
14000
14001 ac_outfile=conftest.$ac_objext
14002 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14003 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14004 _lt_linker_boilerplate=`cat conftest.err`
14005 $RM -r conftest*
14006
14007
14008 # Allow CC to be a program name with arguments.
14009 lt_save_CC=$CC
14010 lt_save_CFLAGS=$CFLAGS
14011 lt_save_LD=$LD
14012 lt_save_GCC=$GCC
14013 GCC=$GXX
14014 lt_save_with_gnu_ld=$with_gnu_ld
14015 lt_save_path_LD=$lt_cv_path_LD
14016 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14017 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14018 else
14019 $as_unset lt_cv_prog_gnu_ld
14020 fi
14021 if test -n "${lt_cv_path_LDCXX+set}"; then
14022 lt_cv_path_LD=$lt_cv_path_LDCXX
14023 else
14024 $as_unset lt_cv_path_LD
14025 fi
14026 test -z "${LDCXX+set}" || LD=$LDCXX
14027 CC=${CXX-"c++"}
14028 CFLAGS=$CXXFLAGS
14029 compiler=$CC
14030 compiler_CXX=$CC
14031 func_cc_basename $compiler
14032 cc_basename=$func_cc_basename_result
14033
14034
14035 if test -n "$compiler"; then
14036 # We don't want -fno-exception when compiling C++ code, so set the
14037 # no_builtin_flag separately
14038 if test yes = "$GXX"; then
14039 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14040 else
14041 lt_prog_compiler_no_builtin_flag_CXX=
14042 fi
14043
14044 if test yes = "$GXX"; then
14045 # Set up default GNU C++ configuration
14046
14047
14048
14049 # Check whether --with-gnu-ld was given.
14050 if test ${with_gnu_ld+y}
14051 then :
14052 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14053 else $as_nop
14054 with_gnu_ld=no
14055 fi
14056
14057 ac_prog=ld
14058 if test yes = "$GCC"; then
14059 # Check if gcc -print-prog-name=ld gives a path.
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14061 printf %s "checking for ld used by $CC... " >&6; }
14062 case $host in
14063 *-*-mingw*)
14064 # gcc leaves a trailing carriage return, which upsets mingw
14065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14066 *)
14067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14068 esac
14069 case $ac_prog in
14070 # Accept absolute paths.
14071 [\\/]* | ?:[\\/]*)
14072 re_direlt='/[^/][^/]*/\.\./'
14073 # Canonicalize the pathname of ld
14074 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14075 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14076 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14077 done
14078 test -z "$LD" && LD=$ac_prog
14079 ;;
14080 "")
14081 # If it fails, then pretend we aren't using GCC.
14082 ac_prog=ld
14083 ;;
14084 *)
14085 # If it is relative, then search for the first ld in PATH.
14086 with_gnu_ld=unknown
14087 ;;
14088 esac
14089 elif test yes = "$with_gnu_ld"; then
14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14091 printf %s "checking for GNU ld... " >&6; }
14092 else
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14094 printf %s "checking for non-GNU ld... " >&6; }
14095 fi
14096 if test ${lt_cv_path_LD+y}
14097 then :
14098 printf %s "(cached) " >&6
14099 else $as_nop
14100 if test -z "$LD"; then
14101 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14102 for ac_dir in $PATH; do
14103 IFS=$lt_save_ifs
14104 test -z "$ac_dir" && ac_dir=.
14105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14106 lt_cv_path_LD=$ac_dir/$ac_prog
14107 # Check to see if the program is GNU ld. I'd rather use --version,
14108 # but apparently some variants of GNU ld only accept -v.
14109 # Break only if it was the GNU/non-GNU ld that we prefer.
14110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14111 *GNU* | *'with BFD'*)
14112 test no != "$with_gnu_ld" && break
14113 ;;
14114 *)
14115 test yes != "$with_gnu_ld" && break
14116 ;;
14117 esac
14118 fi
14119 done
14120 IFS=$lt_save_ifs
14121 else
14122 lt_cv_path_LD=$LD # Let the user override the test with a path.
14123 fi
14124 fi
14125
14126 LD=$lt_cv_path_LD
14127 if test -n "$LD"; then
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14129 printf "%s\n" "$LD" >&6; }
14130 else
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 printf "%s\n" "no" >&6; }
14133 fi
14134 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14136 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14137 if test ${lt_cv_prog_gnu_ld+y}
14138 then :
14139 printf %s "(cached) " >&6
14140 else $as_nop
14141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14142 case `$LD -v 2>&1 </dev/null` in
14143 *GNU* | *'with BFD'*)
14144 lt_cv_prog_gnu_ld=yes
14145 ;;
14146 *)
14147 lt_cv_prog_gnu_ld=no
14148 ;;
14149 esac
14150 fi
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14152 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14153 with_gnu_ld=$lt_cv_prog_gnu_ld
14154
14155
14156
14157
14158
14159
14160
14161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14162 # archiving commands below assume that GNU ld is being used.
14163 if test yes = "$with_gnu_ld"; then
14164 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14165 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'
14166
14167 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14168 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14169
14170 # If archive_cmds runs LD, not CC, wlarc should be empty
14171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14172 # investigate it a little bit more. (MM)
14173 wlarc='$wl'
14174
14175 # ancient GNU ld didn't support --whole-archive et. al.
14176 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14177 $GREP 'no-whole-archive' > /dev/null; then
14178 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14179 else
14180 whole_archive_flag_spec_CXX=
14181 fi
14182 else
14183 with_gnu_ld=no
14184 wlarc=
14185
14186 # A generic and very simple default shared library creation
14187 # command for GNU C++ for the case where it uses the native
14188 # linker, instead of GNU ld. If possible, this setting should
14189 # overridden to take advantage of the native linker features on
14190 # the platform it is being used on.
14191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14192 fi
14193
14194 # Commands to make compiler produce verbose output that lists
14195 # what "hidden" libraries, object files and flags are used when
14196 # linking a shared library.
14197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14198
14199 else
14200 GXX=no
14201 with_gnu_ld=no
14202 wlarc=
14203 fi
14204
14205 # PORTME: fill in a description of your system's C++ link characteristics
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14207 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14208 ld_shlibs_CXX=yes
14209 case $host_os in
14210 aix3*)
14211 # FIXME: insert proper C++ library support
14212 ld_shlibs_CXX=no
14213 ;;
14214 aix[4-9]*)
14215 if test ia64 = "$host_cpu"; then
14216 # On IA64, the linker does run time linking by default, so we don't
14217 # have to do anything special.
14218 aix_use_runtimelinking=no
14219 exp_sym_flag='-Bexport'
14220 no_entry_flag=
14221 else
14222 aix_use_runtimelinking=no
14223
14224 # Test if we are trying to use run time linking or normal
14225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14226 # have runtime linking enabled, and use it for executables.
14227 # For shared libraries, we enable/disable runtime linking
14228 # depending on the kind of the shared library created -
14229 # when "with_aix_soname,aix_use_runtimelinking" is:
14230 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14231 # "aix,yes" lib.so shared, rtl:yes, for executables
14232 # lib.a static archive
14233 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14234 # lib.a(lib.so.V) shared, rtl:no, for executables
14235 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14236 # lib.a(lib.so.V) shared, rtl:no
14237 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14238 # lib.a static archive
14239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14240 for ld_flag in $LDFLAGS; do
14241 case $ld_flag in
14242 *-brtl*)
14243 aix_use_runtimelinking=yes
14244 break
14245 ;;
14246 esac
14247 done
14248 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14249 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14250 # so we don't have lib.a shared libs to link our executables.
14251 # We have to force runtime linking in this case.
14252 aix_use_runtimelinking=yes
14253 LDFLAGS="$LDFLAGS -Wl,-brtl"
14254 fi
14255 ;;
14256 esac
14257
14258 exp_sym_flag='-bexport'
14259 no_entry_flag='-bnoentry'
14260 fi
14261
14262 # When large executables or shared objects are built, AIX ld can
14263 # have problems creating the table of contents. If linking a library
14264 # or program results in "error TOC overflow" add -mminimal-toc to
14265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14267
14268 archive_cmds_CXX=''
14269 hardcode_direct_CXX=yes
14270 hardcode_direct_absolute_CXX=yes
14271 hardcode_libdir_separator_CXX=':'
14272 link_all_deplibs_CXX=yes
14273 file_list_spec_CXX='$wl-f,'
14274 case $with_aix_soname,$aix_use_runtimelinking in
14275 aix,*) ;; # no import file
14276 svr4,* | *,yes) # use import file
14277 # The Import File defines what to hardcode.
14278 hardcode_direct_CXX=no
14279 hardcode_direct_absolute_CXX=no
14280 ;;
14281 esac
14282
14283 if test yes = "$GXX"; then
14284 case $host_os in aix4.[012]|aix4.[012].*)
14285 # We only want to do this on AIX 4.2 and lower, the check
14286 # below for broken collect2 doesn't work under 4.3+
14287 collect2name=`$CC -print-prog-name=collect2`
14288 if test -f "$collect2name" &&
14289 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14290 then
14291 # We have reworked collect2
14292 :
14293 else
14294 # We have old collect2
14295 hardcode_direct_CXX=unsupported
14296 # It fails to find uninstalled libraries when the uninstalled
14297 # path is not listed in the libpath. Setting hardcode_minus_L
14298 # to unsupported forces relinking
14299 hardcode_minus_L_CXX=yes
14300 hardcode_libdir_flag_spec_CXX='-L$libdir'
14301 hardcode_libdir_separator_CXX=
14302 fi
14303 esac
14304 shared_flag='-shared'
14305 if test yes = "$aix_use_runtimelinking"; then
14306 shared_flag=$shared_flag' $wl-G'
14307 fi
14308 # Need to ensure runtime linking is disabled for the traditional
14309 # shared library, or the linker may eventually find shared libraries
14310 # /with/ Import File - we do not want to mix them.
14311 shared_flag_aix='-shared'
14312 shared_flag_svr4='-shared $wl-G'
14313 else
14314 # not using gcc
14315 if test ia64 = "$host_cpu"; then
14316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14317 # chokes on -Wl,-G. The following line is correct:
14318 shared_flag='-G'
14319 else
14320 if test yes = "$aix_use_runtimelinking"; then
14321 shared_flag='$wl-G'
14322 else
14323 shared_flag='$wl-bM:SRE'
14324 fi
14325 shared_flag_aix='$wl-bM:SRE'
14326 shared_flag_svr4='$wl-G'
14327 fi
14328 fi
14329
14330 export_dynamic_flag_spec_CXX='$wl-bexpall'
14331 # It seems that -bexpall does not export symbols beginning with
14332 # underscore (_), so it is better to generate a list of symbols to
14333 # export.
14334 always_export_symbols_CXX=yes
14335 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14336 # Warning - without using the other runtime loading flags (-brtl),
14337 # -berok will link without error, but may produce a broken library.
14338 # The "-G" linker flag allows undefined symbols.
14339 no_undefined_flag_CXX='-bernotok'
14340 # Determine the default libpath from the value encoded in an empty
14341 # executable.
14342 if test set = "${lt_cv_aix_libpath+set}"; then
14343 aix_libpath=$lt_cv_aix_libpath
14344 else
14345 if test ${lt_cv_aix_libpath__CXX+y}
14346 then :
14347 printf %s "(cached) " >&6
14348 else $as_nop
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 int
14353 main (void)
14354 {
14355
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_cxx_try_link "$LINENO"
14361 then :
14362
14363 lt_aix_libpath_sed='
14364 /Import File Strings/,/^$/ {
14365 /^0/ {
14366 s/^0 *\([^ ]*\) *$/\1/
14367 p
14368 }
14369 }'
14370 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14371 # Check for a 64-bit object if we didn't find anything.
14372 if test -z "$lt_cv_aix_libpath__CXX"; then
14373 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14374 fi
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14377 conftest$ac_exeext conftest.$ac_ext
14378 if test -z "$lt_cv_aix_libpath__CXX"; then
14379 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14380 fi
14381
14382 fi
14383
14384 aix_libpath=$lt_cv_aix_libpath__CXX
14385 fi
14386
14387 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14388
14389 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14390 else
14391 if test ia64 = "$host_cpu"; then
14392 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14393 allow_undefined_flag_CXX="-z nodefs"
14394 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"
14395 else
14396 # Determine the default libpath from the value encoded in an
14397 # empty executable.
14398 if test set = "${lt_cv_aix_libpath+set}"; then
14399 aix_libpath=$lt_cv_aix_libpath
14400 else
14401 if test ${lt_cv_aix_libpath__CXX+y}
14402 then :
14403 printf %s "(cached) " >&6
14404 else $as_nop
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407
14408 int
14409 main (void)
14410 {
14411
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_cxx_try_link "$LINENO"
14417 then :
14418
14419 lt_aix_libpath_sed='
14420 /Import File Strings/,/^$/ {
14421 /^0/ {
14422 s/^0 *\([^ ]*\) *$/\1/
14423 p
14424 }
14425 }'
14426 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14427 # Check for a 64-bit object if we didn't find anything.
14428 if test -z "$lt_cv_aix_libpath__CXX"; then
14429 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14430 fi
14431 fi
14432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14433 conftest$ac_exeext conftest.$ac_ext
14434 if test -z "$lt_cv_aix_libpath__CXX"; then
14435 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14436 fi
14437
14438 fi
14439
14440 aix_libpath=$lt_cv_aix_libpath__CXX
14441 fi
14442
14443 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14444 # Warning - without using the other run time loading flags,
14445 # -berok will link without error, but may produce a broken library.
14446 no_undefined_flag_CXX=' $wl-bernotok'
14447 allow_undefined_flag_CXX=' $wl-berok'
14448 if test yes = "$with_gnu_ld"; then
14449 # We only use this code for GNU lds that support --whole-archive.
14450 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14451 else
14452 # Exported symbols can be pulled into shared objects from archives
14453 whole_archive_flag_spec_CXX='$convenience'
14454 fi
14455 archive_cmds_need_lc_CXX=yes
14456 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14457 # -brtl affects multiple linker settings, -berok does not and is overridden later
14458 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14459 if test svr4 != "$with_aix_soname"; then
14460 # This is similar to how AIX traditionally builds its shared
14461 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14462 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14463 fi
14464 if test aix != "$with_aix_soname"; then
14465 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14466 else
14467 # used by -dlpreopen to get the symbols
14468 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14469 fi
14470 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14471 fi
14472 fi
14473 ;;
14474
14475 beos*)
14476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14477 allow_undefined_flag_CXX=unsupported
14478 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14479 # support --undefined. This deserves some investigation. FIXME
14480 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14481 else
14482 ld_shlibs_CXX=no
14483 fi
14484 ;;
14485
14486 chorus*)
14487 case $cc_basename in
14488 *)
14489 # FIXME: insert proper C++ library support
14490 ld_shlibs_CXX=no
14491 ;;
14492 esac
14493 ;;
14494
14495 cygwin* | mingw* | pw32* | cegcc*)
14496 case $GXX,$cc_basename in
14497 ,cl* | no,cl* | ,icl* | no,icl*)
14498 # Native MSVC or ICC
14499 # hardcode_libdir_flag_spec is actually meaningless, as there is
14500 # no search path for DLLs.
14501 hardcode_libdir_flag_spec_CXX=' '
14502 allow_undefined_flag_CXX=unsupported
14503 always_export_symbols_CXX=yes
14504 file_list_spec_CXX='@'
14505 # Tell ltmain to make .lib files, not .a files.
14506 libext=lib
14507 # Tell ltmain to make .dll files, not .so files.
14508 shrext_cmds=.dll
14509 # FIXME: Setting linknames here is a bad hack.
14510 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14511 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14512 cp "$export_symbols" "$output_objdir/$soname.def";
14513 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14514 else
14515 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14516 fi~
14517 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14518 linknames='
14519 # The linker will not automatically build a static lib if we build a DLL.
14520 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14521 enable_shared_with_static_runtimes_CXX=yes
14522 # Don't use ranlib
14523 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14524 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14525 lt_tool_outputfile="@TOOL_OUTPUT@"~
14526 case $lt_outputfile in
14527 *.exe|*.EXE) ;;
14528 *)
14529 lt_outputfile=$lt_outputfile.exe
14530 lt_tool_outputfile=$lt_tool_outputfile.exe
14531 ;;
14532 esac~
14533 func_to_tool_file "$lt_outputfile"~
14534 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14535 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14536 $RM "$lt_outputfile.manifest";
14537 fi'
14538 ;;
14539 *)
14540 # g++
14541 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14542 # as there is no search path for DLLs.
14543 hardcode_libdir_flag_spec_CXX='-L$libdir'
14544 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14545 allow_undefined_flag_CXX=unsupported
14546 always_export_symbols_CXX=no
14547 enable_shared_with_static_runtimes_CXX=yes
14548
14549 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14550 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'
14551 # If the export-symbols file already is a .def file, use it as
14552 # is; otherwise, prepend EXPORTS...
14553 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14554 cp $export_symbols $output_objdir/$soname.def;
14555 else
14556 echo EXPORTS > $output_objdir/$soname.def;
14557 cat $export_symbols >> $output_objdir/$soname.def;
14558 fi~
14559 $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'
14560 else
14561 ld_shlibs_CXX=no
14562 fi
14563 ;;
14564 esac
14565 ;;
14566 darwin* | rhapsody*)
14567
14568
14569 archive_cmds_need_lc_CXX=no
14570 hardcode_direct_CXX=no
14571 hardcode_automatic_CXX=yes
14572 hardcode_shlibpath_var_CXX=unsupported
14573 if test yes = "$lt_cv_ld_force_load"; then
14574 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\"`'
14575
14576 else
14577 whole_archive_flag_spec_CXX=''
14578 fi
14579 link_all_deplibs_CXX=yes
14580 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14581 case $cc_basename in
14582 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14583 *) _lt_dar_can_shared=$GCC ;;
14584 esac
14585 if test yes = "$_lt_dar_can_shared"; then
14586 output_verbose_link_cmd=func_echo_all
14587 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"
14588 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14589 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"
14590 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"
14591 if test yes != "$lt_cv_apple_cc_single_mod"; then
14592 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"
14593 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"
14594 fi
14595
14596 else
14597 ld_shlibs_CXX=no
14598 fi
14599
14600 ;;
14601
14602 os2*)
14603 hardcode_libdir_flag_spec_CXX='-L$libdir'
14604 hardcode_minus_L_CXX=yes
14605 allow_undefined_flag_CXX=unsupported
14606 shrext_cmds=.dll
14607 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14608 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14609 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14610 $ECHO EXPORTS >> $output_objdir/$libname.def~
14611 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14612 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14613 emximp -o $lib $output_objdir/$libname.def'
14614 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14617 $ECHO EXPORTS >> $output_objdir/$libname.def~
14618 prefix_cmds="$SED"~
14619 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14620 prefix_cmds="$prefix_cmds -e 1d";
14621 fi~
14622 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14623 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14624 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14625 emximp -o $lib $output_objdir/$libname.def'
14626 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14627 enable_shared_with_static_runtimes_CXX=yes
14628 file_list_spec_CXX='@'
14629 ;;
14630
14631 dgux*)
14632 case $cc_basename in
14633 ec++*)
14634 # FIXME: insert proper C++ library support
14635 ld_shlibs_CXX=no
14636 ;;
14637 ghcx*)
14638 # Green Hills C++ Compiler
14639 # FIXME: insert proper C++ library support
14640 ld_shlibs_CXX=no
14641 ;;
14642 *)
14643 # FIXME: insert proper C++ library support
14644 ld_shlibs_CXX=no
14645 ;;
14646 esac
14647 ;;
14648
14649 freebsd2.*)
14650 # C++ shared libraries reported to be fairly broken before
14651 # switch to ELF
14652 ld_shlibs_CXX=no
14653 ;;
14654
14655 freebsd-elf*)
14656 archive_cmds_need_lc_CXX=no
14657 ;;
14658
14659 freebsd* | dragonfly* | midnightbsd*)
14660 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14661 # conventions
14662 ld_shlibs_CXX=yes
14663 ;;
14664
14665 haiku*)
14666 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14667 link_all_deplibs_CXX=yes
14668 ;;
14669
14670 hpux9*)
14671 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14672 hardcode_libdir_separator_CXX=:
14673 export_dynamic_flag_spec_CXX='$wl-E'
14674 hardcode_direct_CXX=yes
14675 hardcode_minus_L_CXX=yes # Not in the search PATH,
14676 # but as the default
14677 # location of the library.
14678
14679 case $cc_basename in
14680 CC*)
14681 # FIXME: insert proper C++ library support
14682 ld_shlibs_CXX=no
14683 ;;
14684 aCC*)
14685 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14686 # Commands to make compiler produce verbose output that lists
14687 # what "hidden" libraries, object files and flags are used when
14688 # linking a shared library.
14689 #
14690 # There doesn't appear to be a way to prevent this compiler from
14691 # explicitly linking system object files so we need to strip them
14692 # from the output so that they don't get included in the library
14693 # dependencies.
14694 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"'
14695 ;;
14696 *)
14697 if test yes = "$GXX"; then
14698 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14699 else
14700 # FIXME: insert proper C++ library support
14701 ld_shlibs_CXX=no
14702 fi
14703 ;;
14704 esac
14705 ;;
14706
14707 hpux10*|hpux11*)
14708 if test no = "$with_gnu_ld"; then
14709 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14710 hardcode_libdir_separator_CXX=:
14711
14712 case $host_cpu in
14713 hppa*64*|ia64*)
14714 ;;
14715 *)
14716 export_dynamic_flag_spec_CXX='$wl-E'
14717 ;;
14718 esac
14719 fi
14720 case $host_cpu in
14721 hppa*64*|ia64*)
14722 hardcode_direct_CXX=no
14723 hardcode_shlibpath_var_CXX=no
14724 ;;
14725 *)
14726 hardcode_direct_CXX=yes
14727 hardcode_direct_absolute_CXX=yes
14728 hardcode_minus_L_CXX=yes # Not in the search PATH,
14729 # but as the default
14730 # location of the library.
14731 ;;
14732 esac
14733
14734 case $cc_basename in
14735 CC*)
14736 # FIXME: insert proper C++ library support
14737 ld_shlibs_CXX=no
14738 ;;
14739 aCC*)
14740 case $host_cpu in
14741 hppa*64*)
14742 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14743 ;;
14744 ia64*)
14745 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14746 ;;
14747 *)
14748 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14749 ;;
14750 esac
14751 # Commands to make compiler produce verbose output that lists
14752 # what "hidden" libraries, object files and flags are used when
14753 # linking a shared library.
14754 #
14755 # There doesn't appear to be a way to prevent this compiler from
14756 # explicitly linking system object files so we need to strip them
14757 # from the output so that they don't get included in the library
14758 # dependencies.
14759 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"'
14760 ;;
14761 *)
14762 if test yes = "$GXX"; then
14763 if test no = "$with_gnu_ld"; then
14764 case $host_cpu in
14765 hppa*64*)
14766 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14767 ;;
14768 ia64*)
14769 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14770 ;;
14771 *)
14772 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'
14773 ;;
14774 esac
14775 fi
14776 else
14777 # FIXME: insert proper C++ library support
14778 ld_shlibs_CXX=no
14779 fi
14780 ;;
14781 esac
14782 ;;
14783
14784 interix[3-9]*)
14785 hardcode_direct_CXX=no
14786 hardcode_shlibpath_var_CXX=no
14787 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14788 export_dynamic_flag_spec_CXX='$wl-E'
14789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14790 # Instead, shared libraries are loaded at an image base (0x10000000 by
14791 # default) and relocated if they conflict, which is a slow very memory
14792 # consuming and fragmenting process. To avoid this, we pick a random,
14793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14795 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'
14796 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'
14797 ;;
14798 irix5* | irix6*)
14799 case $cc_basename in
14800 CC*)
14801 # SGI C++
14802 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'
14803
14804 # Archives containing C++ object files must be created using
14805 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14806 # necessary to make sure instantiated templates are included
14807 # in the archive.
14808 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14809 ;;
14810 *)
14811 if test yes = "$GXX"; then
14812 if test no = "$with_gnu_ld"; then
14813 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'
14814 else
14815 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'
14816 fi
14817 fi
14818 link_all_deplibs_CXX=yes
14819 ;;
14820 esac
14821 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14822 hardcode_libdir_separator_CXX=:
14823 inherit_rpath_CXX=yes
14824 ;;
14825
14826 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14827 case $cc_basename in
14828 KCC*)
14829 # Kuck and Associates, Inc. (KAI) C++ Compiler
14830
14831 # KCC will only create a shared library if the output file
14832 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14833 # to its proper name (with version) after linking.
14834 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'
14835 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'
14836 # Commands to make compiler produce verbose output that lists
14837 # what "hidden" libraries, object files and flags are used when
14838 # linking a shared library.
14839 #
14840 # There doesn't appear to be a way to prevent this compiler from
14841 # explicitly linking system object files so we need to strip them
14842 # from the output so that they don't get included in the library
14843 # dependencies.
14844 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"'
14845
14846 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14847 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14848
14849 # Archives containing C++ object files must be created using
14850 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14851 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14852 ;;
14853 icpc* | ecpc* )
14854 # Intel C++
14855 with_gnu_ld=yes
14856 # version 8.0 and above of icpc choke on multiply defined symbols
14857 # if we add $predep_objects and $postdep_objects, however 7.1 and
14858 # earlier do not add the objects themselves.
14859 case `$CC -V 2>&1` in
14860 *"Version 7."*)
14861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14862 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'
14863 ;;
14864 *) # Version 8.0 or newer
14865 tmp_idyn=
14866 case $host_cpu in
14867 ia64*) tmp_idyn=' -i_dynamic';;
14868 esac
14869 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14870 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'
14871 ;;
14872 esac
14873 archive_cmds_need_lc_CXX=no
14874 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14875 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14876 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14877 ;;
14878 pgCC* | pgcpp*)
14879 # Portland Group C++ compiler
14880 case `$CC -V` in
14881 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14882 prelink_cmds_CXX='tpldir=Template.dir~
14883 rm -rf $tpldir~
14884 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14885 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14886 old_archive_cmds_CXX='tpldir=Template.dir~
14887 rm -rf $tpldir~
14888 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14889 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14890 $RANLIB $oldlib'
14891 archive_cmds_CXX='tpldir=Template.dir~
14892 rm -rf $tpldir~
14893 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14894 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14895 archive_expsym_cmds_CXX='tpldir=Template.dir~
14896 rm -rf $tpldir~
14897 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14898 $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'
14899 ;;
14900 *) # Version 6 and above use weak symbols
14901 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14902 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'
14903 ;;
14904 esac
14905
14906 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14907 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14908 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'
14909 ;;
14910 cxx*)
14911 # Compaq C++
14912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14913 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'
14914
14915 runpath_var=LD_RUN_PATH
14916 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14917 hardcode_libdir_separator_CXX=:
14918
14919 # Commands to make compiler produce verbose output that lists
14920 # what "hidden" libraries, object files and flags are used when
14921 # linking a shared library.
14922 #
14923 # There doesn't appear to be a way to prevent this compiler from
14924 # explicitly linking system object files so we need to strip them
14925 # from the output so that they don't get included in the library
14926 # dependencies.
14927 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'
14928 ;;
14929 xl* | mpixl* | bgxl*)
14930 # IBM XL 8.0 on PPC, with GNU ld
14931 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14932 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14933 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14934 if test yes = "$supports_anon_versioning"; then
14935 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14936 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14937 echo "local: *; };" >> $output_objdir/$libname.ver~
14938 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14939 fi
14940 ;;
14941 *)
14942 case `$CC -V 2>&1 | $SED 5q` in
14943 *Sun\ C*)
14944 # Sun C++ 5.9
14945 no_undefined_flag_CXX=' -zdefs'
14946 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14947 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'
14948 hardcode_libdir_flag_spec_CXX='-R$libdir'
14949 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'
14950 compiler_needs_object_CXX=yes
14951
14952 # Not sure whether something based on
14953 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14954 # would be better.
14955 output_verbose_link_cmd='func_echo_all'
14956
14957 # Archives containing C++ object files must be created using
14958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14959 # necessary to make sure instantiated templates are included
14960 # in the archive.
14961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14962 ;;
14963 esac
14964 ;;
14965 esac
14966 ;;
14967
14968 lynxos*)
14969 # FIXME: insert proper C++ library support
14970 ld_shlibs_CXX=no
14971 ;;
14972
14973 m88k*)
14974 # FIXME: insert proper C++ library support
14975 ld_shlibs_CXX=no
14976 ;;
14977
14978 mvs*)
14979 case $cc_basename in
14980 cxx*)
14981 # FIXME: insert proper C++ library support
14982 ld_shlibs_CXX=no
14983 ;;
14984 *)
14985 # FIXME: insert proper C++ library support
14986 ld_shlibs_CXX=no
14987 ;;
14988 esac
14989 ;;
14990
14991 netbsd*)
14992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14993 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14994 wlarc=
14995 hardcode_libdir_flag_spec_CXX='-R$libdir'
14996 hardcode_direct_CXX=yes
14997 hardcode_shlibpath_var_CXX=no
14998 fi
14999 # Workaround some broken pre-1.5 toolchains
15000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15001 ;;
15002
15003 *nto* | *qnx*)
15004 ld_shlibs_CXX=yes
15005 ;;
15006
15007 openbsd* | bitrig*)
15008 if test -f /usr/libexec/ld.so; then
15009 hardcode_direct_CXX=yes
15010 hardcode_shlibpath_var_CXX=no
15011 hardcode_direct_absolute_CXX=yes
15012 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15013 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15015 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15016 export_dynamic_flag_spec_CXX='$wl-E'
15017 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15018 fi
15019 output_verbose_link_cmd=func_echo_all
15020 else
15021 ld_shlibs_CXX=no
15022 fi
15023 ;;
15024
15025 osf3* | osf4* | osf5*)
15026 case $cc_basename in
15027 KCC*)
15028 # Kuck and Associates, Inc. (KAI) C++ Compiler
15029
15030 # KCC will only create a shared library if the output file
15031 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15032 # to its proper name (with version) after linking.
15033 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'
15034
15035 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15036 hardcode_libdir_separator_CXX=:
15037
15038 # Archives containing C++ object files must be created using
15039 # the KAI C++ compiler.
15040 case $host in
15041 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15042 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15043 esac
15044 ;;
15045 RCC*)
15046 # Rational C++ 2.4.1
15047 # FIXME: insert proper C++ library support
15048 ld_shlibs_CXX=no
15049 ;;
15050 cxx*)
15051 case $host in
15052 osf3*)
15053 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15054 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'
15055 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15056 ;;
15057 *)
15058 allow_undefined_flag_CXX=' -expect_unresolved \*'
15059 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'
15060 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15061 echo "-hidden">> $lib.exp~
15062 $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~
15063 $RM $lib.exp'
15064 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15065 ;;
15066 esac
15067
15068 hardcode_libdir_separator_CXX=:
15069
15070 # Commands to make compiler produce verbose output that lists
15071 # what "hidden" libraries, object files and flags are used when
15072 # linking a shared library.
15073 #
15074 # There doesn't appear to be a way to prevent this compiler from
15075 # explicitly linking system object files so we need to strip them
15076 # from the output so that they don't get included in the library
15077 # dependencies.
15078 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"'
15079 ;;
15080 *)
15081 if test yes,no = "$GXX,$with_gnu_ld"; then
15082 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15083 case $host in
15084 osf3*)
15085 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'
15086 ;;
15087 *)
15088 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'
15089 ;;
15090 esac
15091
15092 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15093 hardcode_libdir_separator_CXX=:
15094
15095 # Commands to make compiler produce verbose output that lists
15096 # what "hidden" libraries, object files and flags are used when
15097 # linking a shared library.
15098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15099
15100 else
15101 # FIXME: insert proper C++ library support
15102 ld_shlibs_CXX=no
15103 fi
15104 ;;
15105 esac
15106 ;;
15107
15108 psos*)
15109 # FIXME: insert proper C++ library support
15110 ld_shlibs_CXX=no
15111 ;;
15112
15113 sunos4*)
15114 case $cc_basename in
15115 CC*)
15116 # Sun C++ 4.x
15117 # FIXME: insert proper C++ library support
15118 ld_shlibs_CXX=no
15119 ;;
15120 lcc*)
15121 # Lucid
15122 # FIXME: insert proper C++ library support
15123 ld_shlibs_CXX=no
15124 ;;
15125 *)
15126 # FIXME: insert proper C++ library support
15127 ld_shlibs_CXX=no
15128 ;;
15129 esac
15130 ;;
15131
15132 solaris*)
15133 case $cc_basename in
15134 CC* | sunCC*)
15135 # Sun C++ 4.2, 5.x and Centerline C++
15136 archive_cmds_need_lc_CXX=yes
15137 no_undefined_flag_CXX=' -zdefs'
15138 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15139 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15140 $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'
15141
15142 hardcode_libdir_flag_spec_CXX='-R$libdir'
15143 hardcode_shlibpath_var_CXX=no
15144 case $host_os in
15145 solaris2.[0-5] | solaris2.[0-5].*) ;;
15146 *)
15147 # The compiler driver will combine and reorder linker options,
15148 # but understands '-z linker_flag'.
15149 # Supported since Solaris 2.6 (maybe 2.5.1?)
15150 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15151 ;;
15152 esac
15153 link_all_deplibs_CXX=yes
15154
15155 output_verbose_link_cmd='func_echo_all'
15156
15157 # Archives containing C++ object files must be created using
15158 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15159 # necessary to make sure instantiated templates are included
15160 # in the archive.
15161 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15162 ;;
15163 gcx*)
15164 # Green Hills C++ Compiler
15165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15166
15167 # The C++ compiler must be used to create the archive.
15168 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15169 ;;
15170 *)
15171 # GNU C++ compiler with Solaris linker
15172 if test yes,no = "$GXX,$with_gnu_ld"; then
15173 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15174 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15175 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15176 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15177 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15178
15179 # Commands to make compiler produce verbose output that lists
15180 # what "hidden" libraries, object files and flags are used when
15181 # linking a shared library.
15182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15183 else
15184 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15185 # platform.
15186 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15187 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15188 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15189
15190 # Commands to make compiler produce verbose output that lists
15191 # what "hidden" libraries, object files and flags are used when
15192 # linking a shared library.
15193 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15194 fi
15195
15196 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15197 case $host_os in
15198 solaris2.[0-5] | solaris2.[0-5].*) ;;
15199 *)
15200 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15201 ;;
15202 esac
15203 fi
15204 ;;
15205 esac
15206 ;;
15207
15208 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15209 no_undefined_flag_CXX='$wl-z,text'
15210 archive_cmds_need_lc_CXX=no
15211 hardcode_shlibpath_var_CXX=no
15212 runpath_var='LD_RUN_PATH'
15213
15214 case $cc_basename in
15215 CC*)
15216 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15217 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15218 ;;
15219 *)
15220 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 ;;
15223 esac
15224 ;;
15225
15226 sysv5* | sco3.2v5* | sco5v6*)
15227 # Note: We CANNOT use -z defs as we might desire, because we do not
15228 # link with -lc, and that would cause any symbols used from libc to
15229 # always be unresolved, which means just about no library would
15230 # ever link correctly. If we're not using GNU ld we use -z text
15231 # though, which does catch some bad symbols but isn't as heavy-handed
15232 # as -z defs.
15233 no_undefined_flag_CXX='$wl-z,text'
15234 allow_undefined_flag_CXX='$wl-z,nodefs'
15235 archive_cmds_need_lc_CXX=no
15236 hardcode_shlibpath_var_CXX=no
15237 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15238 hardcode_libdir_separator_CXX=':'
15239 link_all_deplibs_CXX=yes
15240 export_dynamic_flag_spec_CXX='$wl-Bexport'
15241 runpath_var='LD_RUN_PATH'
15242
15243 case $cc_basename in
15244 CC*)
15245 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15246 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15247 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15248 '"$old_archive_cmds_CXX"
15249 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15250 '"$reload_cmds_CXX"
15251 ;;
15252 *)
15253 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15254 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 ;;
15256 esac
15257 ;;
15258
15259 tandem*)
15260 case $cc_basename in
15261 NCC*)
15262 # NonStop-UX NCC 3.20
15263 # FIXME: insert proper C++ library support
15264 ld_shlibs_CXX=no
15265 ;;
15266 *)
15267 # FIXME: insert proper C++ library support
15268 ld_shlibs_CXX=no
15269 ;;
15270 esac
15271 ;;
15272
15273 vxworks*)
15274 # FIXME: insert proper C++ library support
15275 ld_shlibs_CXX=no
15276 ;;
15277
15278 *)
15279 # FIXME: insert proper C++ library support
15280 ld_shlibs_CXX=no
15281 ;;
15282 esac
15283
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15285 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15286 test no = "$ld_shlibs_CXX" && can_build_shared=no
15287
15288 GCC_CXX=$GXX
15289 LD_CXX=$LD
15290
15291 ## CAVEAT EMPTOR:
15292 ## There is no encapsulation within the following macros, do not change
15293 ## the running order or otherwise move them around unless you know exactly
15294 ## what you are doing...
15295 # Dependencies to place before and after the object being linked:
15296 predep_objects_CXX=
15297 postdep_objects_CXX=
15298 predeps_CXX=
15299 postdeps_CXX=
15300 compiler_lib_search_path_CXX=
15301
15302 cat > conftest.$ac_ext <<_LT_EOF
15303 class Foo
15304 {
15305 public:
15306 Foo (void) { a = 0; }
15307 private:
15308 int a;
15309 };
15310 _LT_EOF
15311
15312
15313 _lt_libdeps_save_CFLAGS=$CFLAGS
15314 case "$CC $CFLAGS " in #(
15315 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15316 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15317 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15318 esac
15319
15320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15321 (eval $ac_compile) 2>&5
15322 ac_status=$?
15323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15324 test $ac_status = 0; }; then
15325 # Parse the compiler output and extract the necessary
15326 # objects, libraries and library flags.
15327
15328 # Sentinel used to keep track of whether or not we are before
15329 # the conftest object file.
15330 pre_test_object_deps_done=no
15331
15332 for p in `eval "$output_verbose_link_cmd"`; do
15333 case $prev$p in
15334
15335 -L* | -R* | -l*)
15336 # Some compilers place space between "-{L,R}" and the path.
15337 # Remove the space.
15338 if test x-L = "$p" ||
15339 test x-R = "$p"; then
15340 prev=$p
15341 continue
15342 fi
15343
15344 # Expand the sysroot to ease extracting the directories later.
15345 if test -z "$prev"; then
15346 case $p in
15347 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15348 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15349 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15350 esac
15351 fi
15352 case $p in
15353 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15354 esac
15355 if test no = "$pre_test_object_deps_done"; then
15356 case $prev in
15357 -L | -R)
15358 # Internal compiler library paths should come after those
15359 # provided the user. The postdeps already come after the
15360 # user supplied libs so there is no need to process them.
15361 if test -z "$compiler_lib_search_path_CXX"; then
15362 compiler_lib_search_path_CXX=$prev$p
15363 else
15364 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15365 fi
15366 ;;
15367 # The "-l" case would never come before the object being
15368 # linked, so don't bother handling this case.
15369 esac
15370 else
15371 if test -z "$postdeps_CXX"; then
15372 postdeps_CXX=$prev$p
15373 else
15374 postdeps_CXX="${postdeps_CXX} $prev$p"
15375 fi
15376 fi
15377 prev=
15378 ;;
15379
15380 *.lto.$objext) ;; # Ignore GCC LTO objects
15381 *.$objext)
15382 # This assumes that the test object file only shows up
15383 # once in the compiler output.
15384 if test "$p" = "conftest.$objext"; then
15385 pre_test_object_deps_done=yes
15386 continue
15387 fi
15388
15389 if test no = "$pre_test_object_deps_done"; then
15390 if test -z "$predep_objects_CXX"; then
15391 predep_objects_CXX=$p
15392 else
15393 predep_objects_CXX="$predep_objects_CXX $p"
15394 fi
15395 else
15396 if test -z "$postdep_objects_CXX"; then
15397 postdep_objects_CXX=$p
15398 else
15399 postdep_objects_CXX="$postdep_objects_CXX $p"
15400 fi
15401 fi
15402 ;;
15403
15404 *) ;; # Ignore the rest.
15405
15406 esac
15407 done
15408
15409 # Clean up.
15410 rm -f a.out a.exe
15411 else
15412 echo "libtool.m4: error: problem compiling CXX test program"
15413 fi
15414
15415 $RM -f confest.$objext
15416 CFLAGS=$_lt_libdeps_save_CFLAGS
15417
15418 # PORTME: override above test on systems where it is broken
15419 case $host_os in
15420 interix[3-9]*)
15421 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15422 # hack all around it, let's just trust "g++" to DTRT.
15423 predep_objects_CXX=
15424 postdep_objects_CXX=
15425 postdeps_CXX=
15426 ;;
15427 esac
15428
15429
15430 case " $postdeps_CXX " in
15431 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15432 esac
15433 compiler_lib_search_dirs_CXX=
15434 if test -n "${compiler_lib_search_path_CXX}"; then
15435 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15436 fi
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468 lt_prog_compiler_wl_CXX=
15469 lt_prog_compiler_pic_CXX=
15470 lt_prog_compiler_static_CXX=
15471
15472
15473 # C++ specific cases for pic, static, wl, etc.
15474 if test yes = "$GXX"; then
15475 lt_prog_compiler_wl_CXX='-Wl,'
15476 lt_prog_compiler_static_CXX='-static'
15477
15478 case $host_os in
15479 aix*)
15480 # All AIX code is PIC.
15481 if test ia64 = "$host_cpu"; then
15482 # AIX 5 now supports IA64 processor
15483 lt_prog_compiler_static_CXX='-Bstatic'
15484 fi
15485 lt_prog_compiler_pic_CXX='-fPIC'
15486 ;;
15487
15488 amigaos*)
15489 case $host_cpu in
15490 powerpc)
15491 # see comment about AmigaOS4 .so support
15492 lt_prog_compiler_pic_CXX='-fPIC'
15493 ;;
15494 m68k)
15495 # FIXME: we need at least 68020 code to build shared libraries, but
15496 # adding the '-m68020' flag to GCC prevents building anything better,
15497 # like '-m68040'.
15498 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15499 ;;
15500 esac
15501 ;;
15502
15503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15504 # PIC is the default for these OSes.
15505 ;;
15506 mingw* | cygwin* | os2* | pw32* | cegcc*)
15507 # This hack is so that the source file can tell whether it is being
15508 # built for inclusion in a dll (and should export symbols for example).
15509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15510 # (--disable-auto-import) libraries
15511 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15512 case $host_os in
15513 os2*)
15514 lt_prog_compiler_static_CXX='$wl-static'
15515 ;;
15516 esac
15517 ;;
15518 darwin* | rhapsody*)
15519 # PIC is the default on this platform
15520 # Common symbols not allowed in MH_DYLIB files
15521 lt_prog_compiler_pic_CXX='-fno-common'
15522 ;;
15523 *djgpp*)
15524 # DJGPP does not support shared libraries at all
15525 lt_prog_compiler_pic_CXX=
15526 ;;
15527 haiku*)
15528 # PIC is the default for Haiku.
15529 # The "-static" flag exists, but is broken.
15530 lt_prog_compiler_static_CXX=
15531 ;;
15532 interix[3-9]*)
15533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15534 # Instead, we relocate shared libraries at runtime.
15535 ;;
15536 sysv4*MP*)
15537 if test -d /usr/nec; then
15538 lt_prog_compiler_pic_CXX=-Kconform_pic
15539 fi
15540 ;;
15541 hpux*)
15542 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15543 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15544 # sets the default TLS model and affects inlining.
15545 case $host_cpu in
15546 hppa*64*)
15547 ;;
15548 *)
15549 lt_prog_compiler_pic_CXX='-fPIC'
15550 ;;
15551 esac
15552 ;;
15553 *qnx* | *nto*)
15554 # QNX uses GNU C++, but need to define -shared option too, otherwise
15555 # it will coredump.
15556 lt_prog_compiler_pic_CXX='-fPIC -shared'
15557 ;;
15558 *)
15559 lt_prog_compiler_pic_CXX='-fPIC'
15560 ;;
15561 esac
15562 else
15563 case $host_os in
15564 aix[4-9]*)
15565 # All AIX code is PIC.
15566 if test ia64 = "$host_cpu"; then
15567 # AIX 5 now supports IA64 processor
15568 lt_prog_compiler_static_CXX='-Bstatic'
15569 else
15570 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15571 fi
15572 ;;
15573 chorus*)
15574 case $cc_basename in
15575 cxch68*)
15576 # Green Hills C++ Compiler
15577 # _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"
15578 ;;
15579 esac
15580 ;;
15581 mingw* | cygwin* | os2* | pw32* | cegcc*)
15582 # This hack is so that the source file can tell whether it is being
15583 # built for inclusion in a dll (and should export symbols for example).
15584 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15585 ;;
15586 dgux*)
15587 case $cc_basename in
15588 ec++*)
15589 lt_prog_compiler_pic_CXX='-KPIC'
15590 ;;
15591 ghcx*)
15592 # Green Hills C++ Compiler
15593 lt_prog_compiler_pic_CXX='-pic'
15594 ;;
15595 *)
15596 ;;
15597 esac
15598 ;;
15599 freebsd* | dragonfly* | midnightbsd*)
15600 # FreeBSD uses GNU C++
15601 ;;
15602 hpux9* | hpux10* | hpux11*)
15603 case $cc_basename in
15604 CC*)
15605 lt_prog_compiler_wl_CXX='-Wl,'
15606 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15607 if test ia64 != "$host_cpu"; then
15608 lt_prog_compiler_pic_CXX='+Z'
15609 fi
15610 ;;
15611 aCC*)
15612 lt_prog_compiler_wl_CXX='-Wl,'
15613 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15614 case $host_cpu in
15615 hppa*64*|ia64*)
15616 # +Z the default
15617 ;;
15618 *)
15619 lt_prog_compiler_pic_CXX='+Z'
15620 ;;
15621 esac
15622 ;;
15623 *)
15624 ;;
15625 esac
15626 ;;
15627 interix*)
15628 # This is c89, which is MS Visual C++ (no shared libs)
15629 # Anyone wants to do a port?
15630 ;;
15631 irix5* | irix6* | nonstopux*)
15632 case $cc_basename in
15633 CC*)
15634 lt_prog_compiler_wl_CXX='-Wl,'
15635 lt_prog_compiler_static_CXX='-non_shared'
15636 # CC pic flag -KPIC is the default.
15637 ;;
15638 *)
15639 ;;
15640 esac
15641 ;;
15642 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15643 case $cc_basename in
15644 KCC*)
15645 # KAI C++ Compiler
15646 lt_prog_compiler_wl_CXX='--backend -Wl,'
15647 lt_prog_compiler_pic_CXX='-fPIC'
15648 ;;
15649 ecpc* )
15650 # old Intel C++ for x86_64, which still supported -KPIC.
15651 lt_prog_compiler_wl_CXX='-Wl,'
15652 lt_prog_compiler_pic_CXX='-KPIC'
15653 lt_prog_compiler_static_CXX='-static'
15654 ;;
15655 icpc* )
15656 # Intel C++, used to be incompatible with GCC.
15657 # ICC 10 doesn't accept -KPIC any more.
15658 lt_prog_compiler_wl_CXX='-Wl,'
15659 lt_prog_compiler_pic_CXX='-fPIC'
15660 lt_prog_compiler_static_CXX='-static'
15661 ;;
15662 pgCC* | pgcpp*)
15663 # Portland Group C++ compiler
15664 lt_prog_compiler_wl_CXX='-Wl,'
15665 lt_prog_compiler_pic_CXX='-fpic'
15666 lt_prog_compiler_static_CXX='-Bstatic'
15667 ;;
15668 cxx*)
15669 # Compaq C++
15670 # Make sure the PIC flag is empty. It appears that all Alpha
15671 # Linux and Compaq Tru64 Unix objects are PIC.
15672 lt_prog_compiler_pic_CXX=
15673 lt_prog_compiler_static_CXX='-non_shared'
15674 ;;
15675 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15676 # IBM XL 8.0, 9.0 on PPC and BlueGene
15677 lt_prog_compiler_wl_CXX='-Wl,'
15678 lt_prog_compiler_pic_CXX='-qpic'
15679 lt_prog_compiler_static_CXX='-qstaticlink'
15680 ;;
15681 *)
15682 case `$CC -V 2>&1 | $SED 5q` in
15683 *Sun\ C*)
15684 # Sun C++ 5.9
15685 lt_prog_compiler_pic_CXX='-KPIC'
15686 lt_prog_compiler_static_CXX='-Bstatic'
15687 lt_prog_compiler_wl_CXX='-Qoption ld '
15688 ;;
15689 esac
15690 ;;
15691 esac
15692 ;;
15693 lynxos*)
15694 ;;
15695 m88k*)
15696 ;;
15697 mvs*)
15698 case $cc_basename in
15699 cxx*)
15700 lt_prog_compiler_pic_CXX='-W c,exportall'
15701 ;;
15702 *)
15703 ;;
15704 esac
15705 ;;
15706 netbsd* | netbsdelf*-gnu)
15707 ;;
15708 *qnx* | *nto*)
15709 # QNX uses GNU C++, but need to define -shared option too, otherwise
15710 # it will coredump.
15711 lt_prog_compiler_pic_CXX='-fPIC -shared'
15712 ;;
15713 osf3* | osf4* | osf5*)
15714 case $cc_basename in
15715 KCC*)
15716 lt_prog_compiler_wl_CXX='--backend -Wl,'
15717 ;;
15718 RCC*)
15719 # Rational C++ 2.4.1
15720 lt_prog_compiler_pic_CXX='-pic'
15721 ;;
15722 cxx*)
15723 # Digital/Compaq C++
15724 lt_prog_compiler_wl_CXX='-Wl,'
15725 # Make sure the PIC flag is empty. It appears that all Alpha
15726 # Linux and Compaq Tru64 Unix objects are PIC.
15727 lt_prog_compiler_pic_CXX=
15728 lt_prog_compiler_static_CXX='-non_shared'
15729 ;;
15730 *)
15731 ;;
15732 esac
15733 ;;
15734 psos*)
15735 ;;
15736 solaris*)
15737 case $cc_basename in
15738 CC* | sunCC*)
15739 # Sun C++ 4.2, 5.x and Centerline C++
15740 lt_prog_compiler_pic_CXX='-KPIC'
15741 lt_prog_compiler_static_CXX='-Bstatic'
15742 lt_prog_compiler_wl_CXX='-Qoption ld '
15743 ;;
15744 gcx*)
15745 # Green Hills C++ Compiler
15746 lt_prog_compiler_pic_CXX='-PIC'
15747 ;;
15748 *)
15749 ;;
15750 esac
15751 ;;
15752 sunos4*)
15753 case $cc_basename in
15754 CC*)
15755 # Sun C++ 4.x
15756 lt_prog_compiler_pic_CXX='-pic'
15757 lt_prog_compiler_static_CXX='-Bstatic'
15758 ;;
15759 lcc*)
15760 # Lucid
15761 lt_prog_compiler_pic_CXX='-pic'
15762 ;;
15763 *)
15764 ;;
15765 esac
15766 ;;
15767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15768 case $cc_basename in
15769 CC*)
15770 lt_prog_compiler_wl_CXX='-Wl,'
15771 lt_prog_compiler_pic_CXX='-KPIC'
15772 lt_prog_compiler_static_CXX='-Bstatic'
15773 ;;
15774 esac
15775 ;;
15776 tandem*)
15777 case $cc_basename in
15778 NCC*)
15779 # NonStop-UX NCC 3.20
15780 lt_prog_compiler_pic_CXX='-KPIC'
15781 ;;
15782 *)
15783 ;;
15784 esac
15785 ;;
15786 vxworks*)
15787 ;;
15788 *)
15789 lt_prog_compiler_can_build_shared_CXX=no
15790 ;;
15791 esac
15792 fi
15793
15794 case $host_os in
15795 # For platforms that do not support PIC, -DPIC is meaningless:
15796 *djgpp*)
15797 lt_prog_compiler_pic_CXX=
15798 ;;
15799 *)
15800 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15801 ;;
15802 esac
15803
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15805 printf %s "checking for $compiler option to produce PIC... " >&6; }
15806 if test ${lt_cv_prog_compiler_pic_CXX+y}
15807 then :
15808 printf %s "(cached) " >&6
15809 else $as_nop
15810 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15811 fi
15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15813 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15814 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15815
15816 #
15817 # Check to make sure the PIC flag actually works.
15818 #
15819 if test -n "$lt_prog_compiler_pic_CXX"; then
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15821 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15822 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15823 then :
15824 printf %s "(cached) " >&6
15825 else $as_nop
15826 lt_cv_prog_compiler_pic_works_CXX=no
15827 ac_outfile=conftest.$ac_objext
15828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15829 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15830 # Insert the option either (1) after the last *FLAGS variable, or
15831 # (2) before a word containing "conftest.", or (3) at the end.
15832 # Note that $ac_compile itself does not contain backslashes and begins
15833 # with a dollar sign (not a hyphen), so the echo should work correctly.
15834 # The option is referenced via a variable to avoid confusing sed.
15835 lt_compile=`echo "$ac_compile" | $SED \
15836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15838 -e 's:$: $lt_compiler_flag:'`
15839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15840 (eval "$lt_compile" 2>conftest.err)
15841 ac_status=$?
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 if (exit $ac_status) && test -s "$ac_outfile"; then
15845 # The compiler can only warn and ignore the option if not recognized
15846 # So say no if there are warnings other than the usual output.
15847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15850 lt_cv_prog_compiler_pic_works_CXX=yes
15851 fi
15852 fi
15853 $RM conftest*
15854
15855 fi
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15857 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15858
15859 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15860 case $lt_prog_compiler_pic_CXX in
15861 "" | " "*) ;;
15862 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15863 esac
15864 else
15865 lt_prog_compiler_pic_CXX=
15866 lt_prog_compiler_can_build_shared_CXX=no
15867 fi
15868
15869 fi
15870
15871
15872
15873
15874
15875 #
15876 # Check to make sure the static flag actually works.
15877 #
15878 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15880 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15881 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15882 then :
15883 printf %s "(cached) " >&6
15884 else $as_nop
15885 lt_cv_prog_compiler_static_works_CXX=no
15886 save_LDFLAGS=$LDFLAGS
15887 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15888 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15889 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15890 # The linker can only warn and ignore the option if not recognized
15891 # So say no if there are warnings
15892 if test -s conftest.err; then
15893 # Append any errors to the config.log.
15894 cat conftest.err 1>&5
15895 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15897 if diff conftest.exp conftest.er2 >/dev/null; then
15898 lt_cv_prog_compiler_static_works_CXX=yes
15899 fi
15900 else
15901 lt_cv_prog_compiler_static_works_CXX=yes
15902 fi
15903 fi
15904 $RM -r conftest*
15905 LDFLAGS=$save_LDFLAGS
15906
15907 fi
15908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15909 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15910
15911 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15912 :
15913 else
15914 lt_prog_compiler_static_CXX=
15915 fi
15916
15917
15918
15919
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15921 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15922 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else $as_nop
15926 lt_cv_prog_compiler_c_o_CXX=no
15927 $RM -r conftest 2>/dev/null
15928 mkdir conftest
15929 cd conftest
15930 mkdir out
15931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15932
15933 lt_compiler_flag="-o out/conftest2.$ac_objext"
15934 # Insert the option either (1) after the last *FLAGS variable, or
15935 # (2) before a word containing "conftest.", or (3) at the end.
15936 # Note that $ac_compile itself does not contain backslashes and begins
15937 # with a dollar sign (not a hyphen), so the echo should work correctly.
15938 lt_compile=`echo "$ac_compile" | $SED \
15939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15941 -e 's:$: $lt_compiler_flag:'`
15942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15943 (eval "$lt_compile" 2>out/conftest.err)
15944 ac_status=$?
15945 cat out/conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15948 then
15949 # The compiler can only warn and ignore the option if not recognized
15950 # So say no if there are warnings
15951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15954 lt_cv_prog_compiler_c_o_CXX=yes
15955 fi
15956 fi
15957 chmod u+w . 2>&5
15958 $RM conftest*
15959 # SGI C++ compiler will create directory out/ii_files/ for
15960 # template instantiation
15961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15962 $RM out/* && rmdir out
15963 cd ..
15964 $RM -r conftest
15965 $RM conftest*
15966
15967 fi
15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15969 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15970
15971
15972
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15974 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15975 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15976 then :
15977 printf %s "(cached) " >&6
15978 else $as_nop
15979 lt_cv_prog_compiler_c_o_CXX=no
15980 $RM -r conftest 2>/dev/null
15981 mkdir conftest
15982 cd conftest
15983 mkdir out
15984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15985
15986 lt_compiler_flag="-o out/conftest2.$ac_objext"
15987 # Insert the option either (1) after the last *FLAGS variable, or
15988 # (2) before a word containing "conftest.", or (3) at the end.
15989 # Note that $ac_compile itself does not contain backslashes and begins
15990 # with a dollar sign (not a hyphen), so the echo should work correctly.
15991 lt_compile=`echo "$ac_compile" | $SED \
15992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15994 -e 's:$: $lt_compiler_flag:'`
15995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15996 (eval "$lt_compile" 2>out/conftest.err)
15997 ac_status=$?
15998 cat out/conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16001 then
16002 # The compiler can only warn and ignore the option if not recognized
16003 # So say no if there are warnings
16004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16007 lt_cv_prog_compiler_c_o_CXX=yes
16008 fi
16009 fi
16010 chmod u+w . 2>&5
16011 $RM conftest*
16012 # SGI C++ compiler will create directory out/ii_files/ for
16013 # template instantiation
16014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16015 $RM out/* && rmdir out
16016 cd ..
16017 $RM -r conftest
16018 $RM conftest*
16019
16020 fi
16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16022 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16023
16024
16025
16026
16027 hard_links=nottested
16028 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16029 # do not overwrite the value of need_locks provided by the user
16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16031 printf %s "checking if we can lock with hard links... " >&6; }
16032 hard_links=yes
16033 $RM conftest*
16034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16035 touch conftest.a
16036 ln conftest.a conftest.b 2>&5 || hard_links=no
16037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16039 printf "%s\n" "$hard_links" >&6; }
16040 if test no = "$hard_links"; then
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16042 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16043 need_locks=warn
16044 fi
16045 else
16046 need_locks=no
16047 fi
16048
16049
16050
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16052 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16053
16054 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16055 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16056 case $host_os in
16057 aix[4-9]*)
16058 # If we're using GNU nm, then we don't want the "-C" option.
16059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16060 # Without the "-l" option, or with the "-B" option, AIX nm treats
16061 # weak defined symbols like other global defined symbols, whereas
16062 # GNU nm marks them as "W".
16063 # While the 'weak' keyword is ignored in the Export File, we need
16064 # it in the Import File for the 'aix-soname' feature, so we have
16065 # to replace the "-B" option with "-P" for AIX nm.
16066 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16067 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16068 else
16069 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16070 fi
16071 ;;
16072 pw32*)
16073 export_symbols_cmds_CXX=$ltdll_cmds
16074 ;;
16075 cygwin* | mingw* | cegcc*)
16076 case $cc_basename in
16077 cl* | icl*)
16078 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16079 ;;
16080 *)
16081 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'
16082 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16083 ;;
16084 esac
16085 ;;
16086 linux* | k*bsd*-gnu | gnu*)
16087 link_all_deplibs_CXX=no
16088 ;;
16089 *)
16090 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16091 ;;
16092 esac
16093
16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16095 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16096 test no = "$ld_shlibs_CXX" && can_build_shared=no
16097
16098 with_gnu_ld_CXX=$with_gnu_ld
16099
16100
16101
16102
16103
16104
16105 #
16106 # Do we need to explicitly link libc?
16107 #
16108 case "x$archive_cmds_need_lc_CXX" in
16109 x|xyes)
16110 # Assume -lc should be added
16111 archive_cmds_need_lc_CXX=yes
16112
16113 if test yes,yes = "$GCC,$enable_shared"; then
16114 case $archive_cmds_CXX in
16115 *'~'*)
16116 # FIXME: we may have to deal with multi-command sequences.
16117 ;;
16118 '$CC '*)
16119 # Test whether the compiler implicitly links with -lc since on some
16120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16121 # to ld, don't add -lc before -lgcc.
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16123 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16124 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16125 then :
16126 printf %s "(cached) " >&6
16127 else $as_nop
16128 $RM conftest*
16129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16130
16131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16132 (eval $ac_compile) 2>&5
16133 ac_status=$?
16134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16135 test $ac_status = 0; } 2>conftest.err; then
16136 soname=conftest
16137 lib=conftest
16138 libobjs=conftest.$ac_objext
16139 deplibs=
16140 wl=$lt_prog_compiler_wl_CXX
16141 pic_flag=$lt_prog_compiler_pic_CXX
16142 compiler_flags=-v
16143 linker_flags=-v
16144 verstring=
16145 output_objdir=.
16146 libname=conftest
16147 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16148 allow_undefined_flag_CXX=
16149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16150 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16151 ac_status=$?
16152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16153 test $ac_status = 0; }
16154 then
16155 lt_cv_archive_cmds_need_lc_CXX=no
16156 else
16157 lt_cv_archive_cmds_need_lc_CXX=yes
16158 fi
16159 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16160 else
16161 cat conftest.err 1>&5
16162 fi
16163 $RM conftest*
16164
16165 fi
16166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16167 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16168 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16169 ;;
16170 esac
16171 fi
16172 ;;
16173 esac
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16237 printf %s "checking dynamic linker characteristics... " >&6; }
16238
16239 library_names_spec=
16240 libname_spec='lib$name'
16241 soname_spec=
16242 shrext_cmds=.so
16243 postinstall_cmds=
16244 postuninstall_cmds=
16245 finish_cmds=
16246 finish_eval=
16247 shlibpath_var=
16248 shlibpath_overrides_runpath=unknown
16249 version_type=none
16250 dynamic_linker="$host_os ld.so"
16251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16252 need_lib_prefix=unknown
16253 hardcode_into_libs=no
16254
16255 # when you set need_version to no, make sure it does not cause -set_version
16256 # flags to be left without arguments
16257 need_version=unknown
16258
16259
16260
16261 case $host_os in
16262 aix3*)
16263 version_type=linux # correct to gnu/linux during the next big refactor
16264 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16265 shlibpath_var=LIBPATH
16266
16267 # AIX 3 has no versioning support, so we append a major version to the name.
16268 soname_spec='$libname$release$shared_ext$major'
16269 ;;
16270
16271 aix[4-9]*)
16272 version_type=linux # correct to gnu/linux during the next big refactor
16273 need_lib_prefix=no
16274 need_version=no
16275 hardcode_into_libs=yes
16276 if test ia64 = "$host_cpu"; then
16277 # AIX 5 supports IA64
16278 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16279 shlibpath_var=LD_LIBRARY_PATH
16280 else
16281 # With GCC up to 2.95.x, collect2 would create an import file
16282 # for dependence libraries. The import file would start with
16283 # the line '#! .'. This would cause the generated library to
16284 # depend on '.', always an invalid library. This was fixed in
16285 # development snapshots of GCC prior to 3.0.
16286 case $host_os in
16287 aix4 | aix4.[01] | aix4.[01].*)
16288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16289 echo ' yes '
16290 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16291 :
16292 else
16293 can_build_shared=no
16294 fi
16295 ;;
16296 esac
16297 # Using Import Files as archive members, it is possible to support
16298 # filename-based versioning of shared library archives on AIX. While
16299 # this would work for both with and without runtime linking, it will
16300 # prevent static linking of such archives. So we do filename-based
16301 # shared library versioning with .so extension only, which is used
16302 # when both runtime linking and shared linking is enabled.
16303 # Unfortunately, runtime linking may impact performance, so we do
16304 # not want this to be the default eventually. Also, we use the
16305 # versioned .so libs for executables only if there is the -brtl
16306 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16307 # To allow for filename-based versioning support, we need to create
16308 # libNAME.so.V as an archive file, containing:
16309 # *) an Import File, referring to the versioned filename of the
16310 # archive as well as the shared archive member, telling the
16311 # bitwidth (32 or 64) of that shared object, and providing the
16312 # list of exported symbols of that shared object, eventually
16313 # decorated with the 'weak' keyword
16314 # *) the shared object with the F_LOADONLY flag set, to really avoid
16315 # it being seen by the linker.
16316 # At run time we better use the real file rather than another symlink,
16317 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16318
16319 case $with_aix_soname,$aix_use_runtimelinking in
16320 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16321 # soname into executable. Probably we can add versioning support to
16322 # collect2, so additional links can be useful in future.
16323 aix,yes) # traditional libtool
16324 dynamic_linker='AIX unversionable lib.so'
16325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16326 # instead of lib<name>.a to let people know that these are not
16327 # typical AIX shared libraries.
16328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16329 ;;
16330 aix,no) # traditional AIX only
16331 dynamic_linker='AIX lib.a(lib.so.V)'
16332 # We preserve .a as extension for shared libraries through AIX4.2
16333 # and later when we are not doing run time linking.
16334 library_names_spec='$libname$release.a $libname.a'
16335 soname_spec='$libname$release$shared_ext$major'
16336 ;;
16337 svr4,*) # full svr4 only
16338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16340 # We do not specify a path in Import Files, so LIBPATH fires.
16341 shlibpath_overrides_runpath=yes
16342 ;;
16343 *,yes) # both, prefer svr4
16344 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16345 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16346 # unpreferred sharedlib libNAME.a needs extra handling
16347 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16348 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16349 # We do not specify a path in Import Files, so LIBPATH fires.
16350 shlibpath_overrides_runpath=yes
16351 ;;
16352 *,no) # both, prefer aix
16353 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16354 library_names_spec='$libname$release.a $libname.a'
16355 soname_spec='$libname$release$shared_ext$major'
16356 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16357 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16358 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16359 ;;
16360 esac
16361 shlibpath_var=LIBPATH
16362 fi
16363 ;;
16364
16365 amigaos*)
16366 case $host_cpu in
16367 powerpc)
16368 # Since July 2007 AmigaOS4 officially supports .so libraries.
16369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371 ;;
16372 m68k)
16373 library_names_spec='$libname.ixlibrary $libname.a'
16374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16375 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16376 ;;
16377 esac
16378 ;;
16379
16380 beos*)
16381 library_names_spec='$libname$shared_ext'
16382 dynamic_linker="$host_os ld.so"
16383 shlibpath_var=LIBRARY_PATH
16384 ;;
16385
16386 bsdi[45]*)
16387 version_type=linux # correct to gnu/linux during the next big refactor
16388 need_version=no
16389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16390 soname_spec='$libname$release$shared_ext$major'
16391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16395 # the default ld.so.conf also contains /usr/contrib/lib and
16396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16397 # libtool to hard-code these into programs
16398 ;;
16399
16400 cygwin* | mingw* | pw32* | cegcc*)
16401 version_type=windows
16402 shrext_cmds=.dll
16403 need_version=no
16404 need_lib_prefix=no
16405
16406 case $GCC,$cc_basename in
16407 yes,*)
16408 # gcc
16409 library_names_spec='$libname.dll.a'
16410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16411 postinstall_cmds='base_file=`basename \$file`~
16412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16413 dldir=$destdir/`dirname \$dlpath`~
16414 test -d \$dldir || mkdir -p \$dldir~
16415 $install_prog $dir/$dlname \$dldir/$dlname~
16416 chmod a+x \$dldir/$dlname~
16417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16419 fi'
16420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16421 dlpath=$dir/\$dldll~
16422 $RM \$dlpath'
16423 shlibpath_overrides_runpath=yes
16424
16425 case $host_os in
16426 cygwin*)
16427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16428 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16429
16430 ;;
16431 mingw* | cegcc*)
16432 # MinGW DLLs use traditional 'lib' prefix
16433 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16434 ;;
16435 pw32*)
16436 # pw32 DLLs use 'pw' prefix rather than 'lib'
16437 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16438 ;;
16439 esac
16440 dynamic_linker='Win32 ld.exe'
16441 ;;
16442
16443 *,cl* | *,icl*)
16444 # Native MSVC or ICC
16445 libname_spec='$name'
16446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16447 library_names_spec='$libname.dll.lib'
16448
16449 case $build_os in
16450 mingw*)
16451 sys_lib_search_path_spec=
16452 lt_save_ifs=$IFS
16453 IFS=';'
16454 for lt_path in $LIB
16455 do
16456 IFS=$lt_save_ifs
16457 # Let DOS variable expansion print the short 8.3 style file name.
16458 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16459 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16460 done
16461 IFS=$lt_save_ifs
16462 # Convert to MSYS style.
16463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16464 ;;
16465 cygwin*)
16466 # Convert to unix form, then to dos form, then back to unix form
16467 # but this time dos style (no spaces!) so that the unix form looks
16468 # like /cygdrive/c/PROGRA~1:/cygdr...
16469 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16470 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16471 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16472 ;;
16473 *)
16474 sys_lib_search_path_spec=$LIB
16475 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16476 # It is most probably a Windows format PATH.
16477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16478 else
16479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480 fi
16481 # FIXME: find the short name or the path components, as spaces are
16482 # common. (e.g. "Program Files" -> "PROGRA~1")
16483 ;;
16484 esac
16485
16486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16487 postinstall_cmds='base_file=`basename \$file`~
16488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16489 dldir=$destdir/`dirname \$dlpath`~
16490 test -d \$dldir || mkdir -p \$dldir~
16491 $install_prog $dir/$dlname \$dldir/$dlname'
16492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16493 dlpath=$dir/\$dldll~
16494 $RM \$dlpath'
16495 shlibpath_overrides_runpath=yes
16496 dynamic_linker='Win32 link.exe'
16497 ;;
16498
16499 *)
16500 # Assume MSVC and ICC wrapper
16501 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16502 dynamic_linker='Win32 ld.exe'
16503 ;;
16504 esac
16505 # FIXME: first we should search . and the directory the executable is in
16506 shlibpath_var=PATH
16507 ;;
16508
16509 darwin* | rhapsody*)
16510 dynamic_linker="$host_os dyld"
16511 version_type=darwin
16512 need_lib_prefix=no
16513 need_version=no
16514 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16515 soname_spec='$libname$release$major$shared_ext'
16516 shlibpath_overrides_runpath=yes
16517 shlibpath_var=DYLD_LIBRARY_PATH
16518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16519
16520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16521 ;;
16522
16523 dgux*)
16524 version_type=linux # correct to gnu/linux during the next big refactor
16525 need_lib_prefix=no
16526 need_version=no
16527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16528 soname_spec='$libname$release$shared_ext$major'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 ;;
16531
16532 freebsd* | dragonfly* | midnightbsd*)
16533 # DragonFly does not have aout. When/if they implement a new
16534 # versioning mechanism, adjust this.
16535 if test -x /usr/bin/objformat; then
16536 objformat=`/usr/bin/objformat`
16537 else
16538 case $host_os in
16539 freebsd[23].*) objformat=aout ;;
16540 *) objformat=elf ;;
16541 esac
16542 fi
16543 version_type=freebsd-$objformat
16544 case $version_type in
16545 freebsd-elf*)
16546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16547 soname_spec='$libname$release$shared_ext$major'
16548 need_version=no
16549 need_lib_prefix=no
16550 ;;
16551 freebsd-*)
16552 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16553 need_version=yes
16554 ;;
16555 esac
16556 shlibpath_var=LD_LIBRARY_PATH
16557 case $host_os in
16558 freebsd2.*)
16559 shlibpath_overrides_runpath=yes
16560 ;;
16561 freebsd3.[01]* | freebsdelf3.[01]*)
16562 shlibpath_overrides_runpath=yes
16563 hardcode_into_libs=yes
16564 ;;
16565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 ;;
16570 *) # from 4.6 on, and DragonFly
16571 shlibpath_overrides_runpath=yes
16572 hardcode_into_libs=yes
16573 ;;
16574 esac
16575 ;;
16576
16577 haiku*)
16578 version_type=linux # correct to gnu/linux during the next big refactor
16579 need_lib_prefix=no
16580 need_version=no
16581 dynamic_linker="$host_os runtime_loader"
16582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16583 soname_spec='$libname$release$shared_ext$major'
16584 shlibpath_var=LIBRARY_PATH
16585 shlibpath_overrides_runpath=no
16586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16587 hardcode_into_libs=yes
16588 ;;
16589
16590 hpux9* | hpux10* | hpux11*)
16591 # Give a soname corresponding to the major version so that dld.sl refuses to
16592 # link against other versions.
16593 version_type=sunos
16594 need_lib_prefix=no
16595 need_version=no
16596 case $host_cpu in
16597 ia64*)
16598 shrext_cmds='.so'
16599 hardcode_into_libs=yes
16600 dynamic_linker="$host_os dld.so"
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16604 soname_spec='$libname$release$shared_ext$major'
16605 if test 32 = "$HPUX_IA64_MODE"; then
16606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16607 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16608 else
16609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16610 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16611 fi
16612 ;;
16613 hppa*64*)
16614 shrext_cmds='.sl'
16615 hardcode_into_libs=yes
16616 dynamic_linker="$host_os dld.sl"
16617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16620 soname_spec='$libname$release$shared_ext$major'
16621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16623 ;;
16624 *)
16625 shrext_cmds='.sl'
16626 dynamic_linker="$host_os dld.sl"
16627 shlibpath_var=SHLIB_PATH
16628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16630 soname_spec='$libname$release$shared_ext$major'
16631 ;;
16632 esac
16633 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16634 postinstall_cmds='chmod 555 $lib'
16635 # or fails outright, so override atomically:
16636 install_override_mode=555
16637 ;;
16638
16639 interix[3-9]*)
16640 version_type=linux # correct to gnu/linux during the next big refactor
16641 need_lib_prefix=no
16642 need_version=no
16643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16644 soname_spec='$libname$release$shared_ext$major'
16645 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16646 shlibpath_var=LD_LIBRARY_PATH
16647 shlibpath_overrides_runpath=no
16648 hardcode_into_libs=yes
16649 ;;
16650
16651 irix5* | irix6* | nonstopux*)
16652 case $host_os in
16653 nonstopux*) version_type=nonstopux ;;
16654 *)
16655 if test yes = "$lt_cv_prog_gnu_ld"; then
16656 version_type=linux # correct to gnu/linux during the next big refactor
16657 else
16658 version_type=irix
16659 fi ;;
16660 esac
16661 need_lib_prefix=no
16662 need_version=no
16663 soname_spec='$libname$release$shared_ext$major'
16664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16665 case $host_os in
16666 irix5* | nonstopux*)
16667 libsuff= shlibsuff=
16668 ;;
16669 *)
16670 case $LD in # libtool.m4 will add one of these switches to LD
16671 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16672 libsuff= shlibsuff= libmagic=32-bit;;
16673 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16674 libsuff=32 shlibsuff=N32 libmagic=N32;;
16675 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16676 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16677 *) libsuff= shlibsuff= libmagic=never-match;;
16678 esac
16679 ;;
16680 esac
16681 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16682 shlibpath_overrides_runpath=no
16683 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16684 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16685 hardcode_into_libs=yes
16686 ;;
16687
16688 # No shared lib support for Linux oldld, aout, or coff.
16689 linux*oldld* | linux*aout* | linux*coff*)
16690 dynamic_linker=no
16691 ;;
16692
16693 linux*android*)
16694 version_type=none # Android doesn't support versioned libraries.
16695 need_lib_prefix=no
16696 need_version=no
16697 library_names_spec='$libname$release$shared_ext'
16698 soname_spec='$libname$release$shared_ext'
16699 finish_cmds=
16700 shlibpath_var=LD_LIBRARY_PATH
16701 shlibpath_overrides_runpath=yes
16702
16703 # This implies no fast_install, which is unacceptable.
16704 # Some rework will be needed to allow for fast_install
16705 # before this can be enabled.
16706 hardcode_into_libs=yes
16707
16708 dynamic_linker='Android linker'
16709 # Don't embed -rpath directories since the linker doesn't support them.
16710 hardcode_libdir_flag_spec_CXX='-L$libdir'
16711 ;;
16712
16713 # This must be glibc/ELF.
16714 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16715 version_type=linux # correct to gnu/linux during the next big refactor
16716 need_lib_prefix=no
16717 need_version=no
16718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16719 soname_spec='$libname$release$shared_ext$major'
16720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16721 shlibpath_var=LD_LIBRARY_PATH
16722 shlibpath_overrides_runpath=no
16723
16724 # Some binutils ld are patched to set DT_RUNPATH
16725 if test ${lt_cv_shlibpath_overrides_runpath+y}
16726 then :
16727 printf %s "(cached) " >&6
16728 else $as_nop
16729 lt_cv_shlibpath_overrides_runpath=no
16730 save_LDFLAGS=$LDFLAGS
16731 save_libdir=$libdir
16732 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16733 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16736
16737 int
16738 main (void)
16739 {
16740
16741 ;
16742 return 0;
16743 }
16744 _ACEOF
16745 if ac_fn_cxx_try_link "$LINENO"
16746 then :
16747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16748 then :
16749 lt_cv_shlibpath_overrides_runpath=yes
16750 fi
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16753 conftest$ac_exeext conftest.$ac_ext
16754 LDFLAGS=$save_LDFLAGS
16755 libdir=$save_libdir
16756
16757 fi
16758
16759 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16760
16761 # This implies no fast_install, which is unacceptable.
16762 # Some rework will be needed to allow for fast_install
16763 # before this can be enabled.
16764 hardcode_into_libs=yes
16765
16766 # Ideally, we could use ldconfig to report *all* directores which are
16767 # searched for libraries, however this is still not possible. Aside from not
16768 # being certain /sbin/ldconfig is available, command
16769 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16770 # even though it is searched at run-time. Try to do the best guess by
16771 # appending ld.so.conf contents (and includes) to the search path.
16772 if test -f /etc/ld.so.conf; then
16773 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' ' '`
16774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16775 fi
16776
16777 # We used to test for /lib/ld.so.1 and disable shared libraries on
16778 # powerpc, because MkLinux only supported shared libraries with the
16779 # GNU dynamic linker. Since this was broken with cross compilers,
16780 # most powerpc-linux boxes support dynamic linking these days and
16781 # people can always --disable-shared, the test was removed, and we
16782 # assume the GNU/Linux dynamic linker is in use.
16783 dynamic_linker='GNU/Linux ld.so'
16784 ;;
16785
16786 netbsdelf*-gnu)
16787 version_type=linux
16788 need_lib_prefix=no
16789 need_version=no
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=no
16794 hardcode_into_libs=yes
16795 dynamic_linker='NetBSD ld.elf_so'
16796 ;;
16797
16798 netbsd*)
16799 version_type=sunos
16800 need_lib_prefix=no
16801 need_version=no
16802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16803 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16805 dynamic_linker='NetBSD (a.out) ld.so'
16806 else
16807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16808 soname_spec='$libname$release$shared_ext$major'
16809 dynamic_linker='NetBSD ld.elf_so'
16810 fi
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=yes
16813 hardcode_into_libs=yes
16814 ;;
16815
16816 newsos6)
16817 version_type=linux # correct to gnu/linux during the next big refactor
16818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 shlibpath_overrides_runpath=yes
16821 ;;
16822
16823 *nto* | *qnx*)
16824 version_type=qnx
16825 need_lib_prefix=no
16826 need_version=no
16827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16828 soname_spec='$libname$release$shared_ext$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 shlibpath_overrides_runpath=no
16831 hardcode_into_libs=yes
16832 dynamic_linker='ldqnx.so'
16833 ;;
16834
16835 openbsd* | bitrig*)
16836 version_type=sunos
16837 sys_lib_dlsearch_path_spec=/usr/lib
16838 need_lib_prefix=no
16839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16840 need_version=no
16841 else
16842 need_version=yes
16843 fi
16844 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 shlibpath_overrides_runpath=yes
16848 ;;
16849
16850 os2*)
16851 libname_spec='$name'
16852 version_type=windows
16853 shrext_cmds=.dll
16854 need_version=no
16855 need_lib_prefix=no
16856 # OS/2 can only load a DLL with a base name of 8 characters or less.
16857 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16858 v=$($ECHO $release$versuffix | tr -d .-);
16859 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16860 $ECHO $n$v`$shared_ext'
16861 library_names_spec='${libname}_dll.$libext'
16862 dynamic_linker='OS/2 ld.exe'
16863 shlibpath_var=BEGINLIBPATH
16864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16866 postinstall_cmds='base_file=`basename \$file`~
16867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16868 dldir=$destdir/`dirname \$dlpath`~
16869 test -d \$dldir || mkdir -p \$dldir~
16870 $install_prog $dir/$dlname \$dldir/$dlname~
16871 chmod a+x \$dldir/$dlname~
16872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16874 fi'
16875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16876 dlpath=$dir/\$dldll~
16877 $RM \$dlpath'
16878 ;;
16879
16880 osf3* | osf4* | osf5*)
16881 version_type=osf
16882 need_lib_prefix=no
16883 need_version=no
16884 soname_spec='$libname$release$shared_ext$major'
16885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16889 ;;
16890
16891 rdos*)
16892 dynamic_linker=no
16893 ;;
16894
16895 solaris*)
16896 version_type=linux # correct to gnu/linux during the next big refactor
16897 need_lib_prefix=no
16898 need_version=no
16899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16900 soname_spec='$libname$release$shared_ext$major'
16901 shlibpath_var=LD_LIBRARY_PATH
16902 shlibpath_overrides_runpath=yes
16903 hardcode_into_libs=yes
16904 # ldd complains unless libraries are executable
16905 postinstall_cmds='chmod +x $lib'
16906 ;;
16907
16908 sunos4*)
16909 version_type=sunos
16910 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 shlibpath_overrides_runpath=yes
16914 if test yes = "$with_gnu_ld"; then
16915 need_lib_prefix=no
16916 fi
16917 need_version=yes
16918 ;;
16919
16920 sysv4 | sysv4.3*)
16921 version_type=linux # correct to gnu/linux during the next big refactor
16922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16923 soname_spec='$libname$release$shared_ext$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 case $host_vendor in
16926 sni)
16927 shlibpath_overrides_runpath=no
16928 need_lib_prefix=no
16929 runpath_var=LD_RUN_PATH
16930 ;;
16931 siemens)
16932 need_lib_prefix=no
16933 ;;
16934 motorola)
16935 need_lib_prefix=no
16936 need_version=no
16937 shlibpath_overrides_runpath=no
16938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16939 ;;
16940 esac
16941 ;;
16942
16943 sysv4*MP*)
16944 if test -d /usr/nec; then
16945 version_type=linux # correct to gnu/linux during the next big refactor
16946 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16947 soname_spec='$libname$shared_ext.$major'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 fi
16950 ;;
16951
16952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16953 version_type=sco
16954 need_lib_prefix=no
16955 need_version=no
16956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16957 soname_spec='$libname$release$shared_ext$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=yes
16960 hardcode_into_libs=yes
16961 if test yes = "$with_gnu_ld"; then
16962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16963 else
16964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16965 case $host_os in
16966 sco3.2v5*)
16967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16968 ;;
16969 esac
16970 fi
16971 sys_lib_dlsearch_path_spec='/usr/lib'
16972 ;;
16973
16974 tpf*)
16975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16976 version_type=linux # correct to gnu/linux during the next big refactor
16977 need_lib_prefix=no
16978 need_version=no
16979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=no
16982 hardcode_into_libs=yes
16983 ;;
16984
16985 uts4*)
16986 version_type=linux # correct to gnu/linux during the next big refactor
16987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16988 soname_spec='$libname$release$shared_ext$major'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 ;;
16991
16992 *)
16993 dynamic_linker=no
16994 ;;
16995 esac
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16997 printf "%s\n" "$dynamic_linker" >&6; }
16998 test no = "$dynamic_linker" && can_build_shared=no
16999
17000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17001 if test yes = "$GCC"; then
17002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17003 fi
17004
17005 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17006 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17007 fi
17008
17009 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17010 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17011 fi
17012
17013 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17014 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17015
17016 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17017 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17018
17019 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17020 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17062 printf %s "checking how to hardcode library paths into programs... " >&6; }
17063 hardcode_action_CXX=
17064 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17065 test -n "$runpath_var_CXX" ||
17066 test yes = "$hardcode_automatic_CXX"; then
17067
17068 # We can hardcode non-existent directories.
17069 if test no != "$hardcode_direct_CXX" &&
17070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17071 # have to relink, otherwise we might link with an installed library
17072 # when we should be linking with a yet-to-be-installed one
17073 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17074 test no != "$hardcode_minus_L_CXX"; then
17075 # Linking always hardcodes the temporary library directory.
17076 hardcode_action_CXX=relink
17077 else
17078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17079 hardcode_action_CXX=immediate
17080 fi
17081 else
17082 # We cannot hardcode anything, or else we can only hardcode existing
17083 # directories.
17084 hardcode_action_CXX=unsupported
17085 fi
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17087 printf "%s\n" "$hardcode_action_CXX" >&6; }
17088
17089 if test relink = "$hardcode_action_CXX" ||
17090 test yes = "$inherit_rpath_CXX"; then
17091 # Fast installation is not supported
17092 enable_fast_install=no
17093 elif test yes = "$shlibpath_overrides_runpath" ||
17094 test no = "$enable_shared"; then
17095 # Fast installation is not necessary
17096 enable_fast_install=needless
17097 fi
17098
17099
17100
17101
17102
17103
17104
17105 fi # test -n "$compiler"
17106
17107 CC=$lt_save_CC
17108 CFLAGS=$lt_save_CFLAGS
17109 LDCXX=$LD
17110 LD=$lt_save_LD
17111 GCC=$lt_save_GCC
17112 with_gnu_ld=$lt_save_with_gnu_ld
17113 lt_cv_path_LDCXX=$lt_cv_path_LD
17114 lt_cv_path_LD=$lt_save_path_LD
17115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17117 fi # test yes != "$_lt_caught_CXX_error"
17118
17119 ac_ext=c
17120 ac_cpp='$CPP $CPPFLAGS'
17121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139 ac_config_commands="$ac_config_commands libtool"
17140
17141
17142
17143
17144 # Only expand once:
17145
17146
17147
17148 #AM_PROG_LD
17149 #AC_SUBST(LD)
17150 #AC_PROG_INSTALL
17151 #AC_PROG_MAKE_SET
17152 #AC_PROG_LN_S
17153
17154 #
17155 # Tests for Windows
17156 #
17157
17158
17159
17160 # Configure libtool
17161 # Check whether --enable-shared was given.
17162 if test ${enable_shared+y}
17163 then :
17164 enableval=$enable_shared; p=${PACKAGE-default}
17165 case $enableval in
17166 yes) enable_shared=yes ;;
17167 no) enable_shared=no ;;
17168 *)
17169 enable_shared=no
17170 # Look at the argument we got. We use all the common list separators.
17171 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17172 for pkg in $enableval; do
17173 IFS=$lt_save_ifs
17174 if test "X$pkg" = "X$p"; then
17175 enable_shared=yes
17176 fi
17177 done
17178 IFS=$lt_save_ifs
17179 ;;
17180 esac
17181 else $as_nop
17182 enable_shared=yes
17183 fi
17184
17185
17186
17187
17188
17189
17190 # Check whether --enable-static was given.
17191 if test ${enable_static+y}
17192 then :
17193 enableval=$enable_static; p=${PACKAGE-default}
17194 case $enableval in
17195 yes) enable_static=yes ;;
17196 no) enable_static=no ;;
17197 *)
17198 enable_static=no
17199 # Look at the argument we got. We use all the common list separators.
17200 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17201 for pkg in $enableval; do
17202 IFS=$lt_save_ifs
17203 if test "X$pkg" = "X$p"; then
17204 enable_static=yes
17205 fi
17206 done
17207 IFS=$lt_save_ifs
17208 ;;
17209 esac
17210 else $as_nop
17211 enable_static=yes
17212 fi
17213
17214
17215
17216
17217
17218
17219 enable_win32_dll=yes
17220
17221 case $host in
17222 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17223 if test -n "$ac_tool_prefix"; then
17224 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17225 set dummy ${ac_tool_prefix}as; ac_word=$2
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17227 printf %s "checking for $ac_word... " >&6; }
17228 if test ${ac_cv_prog_AS+y}
17229 then :
17230 printf %s "(cached) " >&6
17231 else $as_nop
17232 if test -n "$AS"; then
17233 ac_cv_prog_AS="$AS" # Let the user override the test.
17234 else
17235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17236 for as_dir in $PATH
17237 do
17238 IFS=$as_save_IFS
17239 case $as_dir in #(((
17240 '') as_dir=./ ;;
17241 */) ;;
17242 *) as_dir=$as_dir/ ;;
17243 esac
17244 for ac_exec_ext in '' $ac_executable_extensions; do
17245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17246 ac_cv_prog_AS="${ac_tool_prefix}as"
17247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17248 break 2
17249 fi
17250 done
17251 done
17252 IFS=$as_save_IFS
17253
17254 fi
17255 fi
17256 AS=$ac_cv_prog_AS
17257 if test -n "$AS"; then
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17259 printf "%s\n" "$AS" >&6; }
17260 else
17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 printf "%s\n" "no" >&6; }
17263 fi
17264
17265
17266 fi
17267 if test -z "$ac_cv_prog_AS"; then
17268 ac_ct_AS=$AS
17269 # Extract the first word of "as", so it can be a program name with args.
17270 set dummy as; ac_word=$2
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 printf %s "checking for $ac_word... " >&6; }
17273 if test ${ac_cv_prog_ac_ct_AS+y}
17274 then :
17275 printf %s "(cached) " >&6
17276 else $as_nop
17277 if test -n "$ac_ct_AS"; then
17278 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17279 else
17280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17281 for as_dir in $PATH
17282 do
17283 IFS=$as_save_IFS
17284 case $as_dir in #(((
17285 '') as_dir=./ ;;
17286 */) ;;
17287 *) as_dir=$as_dir/ ;;
17288 esac
17289 for ac_exec_ext in '' $ac_executable_extensions; do
17290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17291 ac_cv_prog_ac_ct_AS="as"
17292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17293 break 2
17294 fi
17295 done
17296 done
17297 IFS=$as_save_IFS
17298
17299 fi
17300 fi
17301 ac_ct_AS=$ac_cv_prog_ac_ct_AS
17302 if test -n "$ac_ct_AS"; then
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17304 printf "%s\n" "$ac_ct_AS" >&6; }
17305 else
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 printf "%s\n" "no" >&6; }
17308 fi
17309
17310 if test "x$ac_ct_AS" = x; then
17311 AS="false"
17312 else
17313 case $cross_compiling:$ac_tool_warned in
17314 yes:)
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17317 ac_tool_warned=yes ;;
17318 esac
17319 AS=$ac_ct_AS
17320 fi
17321 else
17322 AS="$ac_cv_prog_AS"
17323 fi
17324
17325 if test -n "$ac_tool_prefix"; then
17326 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17327 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17329 printf %s "checking for $ac_word... " >&6; }
17330 if test ${ac_cv_prog_DLLTOOL+y}
17331 then :
17332 printf %s "(cached) " >&6
17333 else $as_nop
17334 if test -n "$DLLTOOL"; then
17335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17336 else
17337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17338 for as_dir in $PATH
17339 do
17340 IFS=$as_save_IFS
17341 case $as_dir in #(((
17342 '') as_dir=./ ;;
17343 */) ;;
17344 *) as_dir=$as_dir/ ;;
17345 esac
17346 for ac_exec_ext in '' $ac_executable_extensions; do
17347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17350 break 2
17351 fi
17352 done
17353 done
17354 IFS=$as_save_IFS
17355
17356 fi
17357 fi
17358 DLLTOOL=$ac_cv_prog_DLLTOOL
17359 if test -n "$DLLTOOL"; then
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17361 printf "%s\n" "$DLLTOOL" >&6; }
17362 else
17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364 printf "%s\n" "no" >&6; }
17365 fi
17366
17367
17368 fi
17369 if test -z "$ac_cv_prog_DLLTOOL"; then
17370 ac_ct_DLLTOOL=$DLLTOOL
17371 # Extract the first word of "dlltool", so it can be a program name with args.
17372 set dummy dlltool; ac_word=$2
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17374 printf %s "checking for $ac_word... " >&6; }
17375 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
17376 then :
17377 printf %s "(cached) " >&6
17378 else $as_nop
17379 if test -n "$ac_ct_DLLTOOL"; then
17380 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17381 else
17382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17383 for as_dir in $PATH
17384 do
17385 IFS=$as_save_IFS
17386 case $as_dir in #(((
17387 '') as_dir=./ ;;
17388 */) ;;
17389 *) as_dir=$as_dir/ ;;
17390 esac
17391 for ac_exec_ext in '' $ac_executable_extensions; do
17392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17393 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17395 break 2
17396 fi
17397 done
17398 done
17399 IFS=$as_save_IFS
17400
17401 fi
17402 fi
17403 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17404 if test -n "$ac_ct_DLLTOOL"; then
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17406 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
17407 else
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409 printf "%s\n" "no" >&6; }
17410 fi
17411
17412 if test "x$ac_ct_DLLTOOL" = x; then
17413 DLLTOOL="false"
17414 else
17415 case $cross_compiling:$ac_tool_warned in
17416 yes:)
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17419 ac_tool_warned=yes ;;
17420 esac
17421 DLLTOOL=$ac_ct_DLLTOOL
17422 fi
17423 else
17424 DLLTOOL="$ac_cv_prog_DLLTOOL"
17425 fi
17426
17427 if test -n "$ac_tool_prefix"; then
17428 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17429 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 printf %s "checking for $ac_word... " >&6; }
17432 if test ${ac_cv_prog_OBJDUMP+y}
17433 then :
17434 printf %s "(cached) " >&6
17435 else $as_nop
17436 if test -n "$OBJDUMP"; then
17437 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17438 else
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17441 do
17442 IFS=$as_save_IFS
17443 case $as_dir in #(((
17444 '') as_dir=./ ;;
17445 */) ;;
17446 *) as_dir=$as_dir/ ;;
17447 esac
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17452 break 2
17453 fi
17454 done
17455 done
17456 IFS=$as_save_IFS
17457
17458 fi
17459 fi
17460 OBJDUMP=$ac_cv_prog_OBJDUMP
17461 if test -n "$OBJDUMP"; then
17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17463 printf "%s\n" "$OBJDUMP" >&6; }
17464 else
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 printf "%s\n" "no" >&6; }
17467 fi
17468
17469
17470 fi
17471 if test -z "$ac_cv_prog_OBJDUMP"; then
17472 ac_ct_OBJDUMP=$OBJDUMP
17473 # Extract the first word of "objdump", so it can be a program name with args.
17474 set dummy objdump; ac_word=$2
17475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17476 printf %s "checking for $ac_word... " >&6; }
17477 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
17478 then :
17479 printf %s "(cached) " >&6
17480 else $as_nop
17481 if test -n "$ac_ct_OBJDUMP"; then
17482 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17483 else
17484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17485 for as_dir in $PATH
17486 do
17487 IFS=$as_save_IFS
17488 case $as_dir in #(((
17489 '') as_dir=./ ;;
17490 */) ;;
17491 *) as_dir=$as_dir/ ;;
17492 esac
17493 for ac_exec_ext in '' $ac_executable_extensions; do
17494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17495 ac_cv_prog_ac_ct_OBJDUMP="objdump"
17496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17497 break 2
17498 fi
17499 done
17500 done
17501 IFS=$as_save_IFS
17502
17503 fi
17504 fi
17505 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17506 if test -n "$ac_ct_OBJDUMP"; then
17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17508 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
17509 else
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17511 printf "%s\n" "no" >&6; }
17512 fi
17513
17514 if test "x$ac_ct_OBJDUMP" = x; then
17515 OBJDUMP="false"
17516 else
17517 case $cross_compiling:$ac_tool_warned in
17518 yes:)
17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17520 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17521 ac_tool_warned=yes ;;
17522 esac
17523 OBJDUMP=$ac_ct_OBJDUMP
17524 fi
17525 else
17526 OBJDUMP="$ac_cv_prog_OBJDUMP"
17527 fi
17528
17529 ;;
17530 esac
17531
17532 test -z "$AS" && AS=as
17533
17534
17535
17536
17537
17538 test -z "$DLLTOOL" && DLLTOOL=dlltool
17539
17540
17541 test -z "$OBJDUMP" && OBJDUMP=objdump
17542
17543
17544
17545
17546
17547
17548
17549
17550 LIB_PLUGINS=''
17551
17552 # Add configure option --enable-maintainer-mode which enables dependency
17553 # checking and generation useful to package maintainers. This is made an
17554 # option to avoid confusing end users.
17555
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17557 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17558 # Check whether --enable-maintainer-mode was given.
17559 if test ${enable_maintainer_mode+y}
17560 then :
17561 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17562 else $as_nop
17563 USE_MAINTAINER_MODE=no
17564 fi
17565
17566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17567 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
17568 if test $USE_MAINTAINER_MODE = yes; then
17569 MAINTAINER_MODE_TRUE=
17570 MAINTAINER_MODE_FALSE='#'
17571 else
17572 MAINTAINER_MODE_TRUE='#'
17573 MAINTAINER_MODE_FALSE=
17574 fi
17575
17576 MAINT=$MAINTAINER_MODE_TRUE
17577
17578
17579
17580 # If the C compiler supports the keyword inline, do nothing. Otherwise
17581 # define inline to __inline__ or __inline if it accepts one of those,
17582 # otherwise define inline to be empty.
17583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17584 printf %s "checking for inline... " >&6; }
17585 if test ${ac_cv_c_inline+y}
17586 then :
17587 printf %s "(cached) " >&6
17588 else $as_nop
17589 ac_cv_c_inline=no
17590 for ac_kw in inline __inline__ __inline; do
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17593 #ifndef __cplusplus
17594 typedef int foo_t;
17595 static $ac_kw foo_t static_foo (void) {return 0; }
17596 $ac_kw foo_t foo (void) {return 0; }
17597 #endif
17598
17599 _ACEOF
17600 if ac_fn_c_try_compile "$LINENO"
17601 then :
17602 ac_cv_c_inline=$ac_kw
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17605 test "$ac_cv_c_inline" != no && break
17606 done
17607
17608 fi
17609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17610 printf "%s\n" "$ac_cv_c_inline" >&6; }
17611
17612 case $ac_cv_c_inline in
17613 inline | yes) ;;
17614 *)
17615 case $ac_cv_c_inline in
17616 no) ac_val=;;
17617 *) ac_val=$ac_cv_c_inline;;
17618 esac
17619 cat >>confdefs.h <<_ACEOF
17620 #ifndef __cplusplus
17621 #define inline $ac_val
17622 #endif
17623 _ACEOF
17624 ;;
17625 esac
17626
17627
17628
17629 # Check if the C compiler supports the "visibility" function attribute
17630 # If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY
17631
17632
17633
17634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
17635 printf %s "checking for __attribute__((visibility))... " >&6; }
17636 if test ${ax_cv_have_func_attribute_visibility+y}
17637 then :
17638 printf %s "(cached) " >&6
17639 else $as_nop
17640
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17643
17644
17645 int foo_def( void ) __attribute__((visibility("default")));
17646 int foo_hid( void ) __attribute__((visibility("hidden")));
17647 int foo_int( void ) __attribute__((visibility("internal")));
17648 int foo_pro( void ) __attribute__((visibility("protected")));
17649
17650 int
17651 main (void)
17652 {
17653
17654 ;
17655 return 0;
17656 }
17657
17658 _ACEOF
17659 if ac_fn_c_try_link "$LINENO"
17660 then :
17661 if grep -- -Wattributes conftest.err
17662 then :
17663 ax_cv_have_func_attribute_visibility=no
17664 else $as_nop
17665 ax_cv_have_func_attribute_visibility=yes
17666 fi
17667 else $as_nop
17668 ax_cv_have_func_attribute_visibility=no
17669 fi
17670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17671 conftest$ac_exeext conftest.$ac_ext
17672
17673 fi
17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
17675 printf "%s\n" "$ax_cv_have_func_attribute_visibility" >&6; }
17676
17677 if test yes = $ax_cv_have_func_attribute_visibility
17678 then :
17679
17680 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
17681
17682 fi
17683
17684
17685
17686
17687 # Check if the compiler supports "-fvisibility=hidden" and if yes, add it to CFLAGS
17688 # This means that symbols that are not marked explicitly for export (CMSAPI)
17689 # will not be reachable in the shared library.
17690
17691
17692
17693
17694 for flag in "-fvisibility=hidden"; do
17695 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17697 printf %s "checking whether C compiler accepts $flag... " >&6; }
17698 if eval test \${$as_CACHEVAR+y}
17699 then :
17700 printf %s "(cached) " >&6
17701 else $as_nop
17702
17703 ax_check_save_flags=$CFLAGS
17704 CFLAGS="$CFLAGS $flag"
17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h. */
17707
17708 int
17709 main (void)
17710 {
17711
17712 ;
17713 return 0;
17714 }
17715 _ACEOF
17716 if ac_fn_c_try_compile "$LINENO"
17717 then :
17718 eval "$as_CACHEVAR=yes"
17719 else $as_nop
17720 eval "$as_CACHEVAR=no"
17721 fi
17722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17723 CFLAGS=$ax_check_save_flags
17724 fi
17725 eval ac_res=\$$as_CACHEVAR
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17727 printf "%s\n" "$ac_res" >&6; }
17728 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17729 then :
17730
17731 if test ${CFLAGS+y}
17732 then :
17733
17734 case " $CFLAGS " in #(
17735 *" $flag "*) :
17736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17737 (: CFLAGS already contains $flag) 2>&5
17738 ac_status=$?
17739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740 test $ac_status = 0; } ;; #(
17741 *) :
17742
17743 as_fn_append CFLAGS " $flag"
17744 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17745 (: CFLAGS="$CFLAGS") 2>&5
17746 ac_status=$?
17747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17748 test $ac_status = 0; }
17749 ;;
17750 esac
17751
17752 else $as_nop
17753
17754 CFLAGS=$flag
17755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17756 (: CFLAGS="$CFLAGS") 2>&5
17757 ac_status=$?
17758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17759 test $ac_status = 0; }
17760
17761 fi
17762
17763 else $as_nop
17764 :
17765 fi
17766
17767 done
17768
17769
17770 # If words are stored with the most significant byte first (like
17771 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17773 printf %s "checking whether byte ordering is bigendian... " >&6; }
17774 if test ${ac_cv_c_bigendian+y}
17775 then :
17776 printf %s "(cached) " >&6
17777 else $as_nop
17778 ac_cv_c_bigendian=unknown
17779 # See if we're dealing with a universal compiler.
17780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781 /* end confdefs.h. */
17782 #ifndef __APPLE_CC__
17783 not a universal capable compiler
17784 #endif
17785 typedef int dummy;
17786
17787 _ACEOF
17788 if ac_fn_c_try_compile "$LINENO"
17789 then :
17790
17791 # Check for potential -arch flags. It is not universal unless
17792 # there are at least two -arch flags with different values.
17793 ac_arch=
17794 ac_prev=
17795 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17796 if test -n "$ac_prev"; then
17797 case $ac_word in
17798 i?86 | x86_64 | ppc | ppc64)
17799 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17800 ac_arch=$ac_word
17801 else
17802 ac_cv_c_bigendian=universal
17803 break
17804 fi
17805 ;;
17806 esac
17807 ac_prev=
17808 elif test "x$ac_word" = "x-arch"; then
17809 ac_prev=arch
17810 fi
17811 done
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17814 if test $ac_cv_c_bigendian = unknown; then
17815 # See if sys/param.h defines the BYTE_ORDER macro.
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818 #include <sys/types.h>
17819 #include <sys/param.h>
17820
17821 int
17822 main (void)
17823 {
17824 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17825 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17826 && LITTLE_ENDIAN)
17827 bogus endian macros
17828 #endif
17829
17830 ;
17831 return 0;
17832 }
17833 _ACEOF
17834 if ac_fn_c_try_compile "$LINENO"
17835 then :
17836 # It does; now see whether it defined to BIG_ENDIAN or not.
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839 #include <sys/types.h>
17840 #include <sys/param.h>
17841
17842 int
17843 main (void)
17844 {
17845 #if BYTE_ORDER != BIG_ENDIAN
17846 not big endian
17847 #endif
17848
17849 ;
17850 return 0;
17851 }
17852 _ACEOF
17853 if ac_fn_c_try_compile "$LINENO"
17854 then :
17855 ac_cv_c_bigendian=yes
17856 else $as_nop
17857 ac_cv_c_bigendian=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17860 fi
17861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17862 fi
17863 if test $ac_cv_c_bigendian = unknown; then
17864 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 #include <limits.h>
17868
17869 int
17870 main (void)
17871 {
17872 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17873 bogus endian macros
17874 #endif
17875
17876 ;
17877 return 0;
17878 }
17879 _ACEOF
17880 if ac_fn_c_try_compile "$LINENO"
17881 then :
17882 # It does; now see whether it defined to _BIG_ENDIAN or not.
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17885 #include <limits.h>
17886
17887 int
17888 main (void)
17889 {
17890 #ifndef _BIG_ENDIAN
17891 not big endian
17892 #endif
17893
17894 ;
17895 return 0;
17896 }
17897 _ACEOF
17898 if ac_fn_c_try_compile "$LINENO"
17899 then :
17900 ac_cv_c_bigendian=yes
17901 else $as_nop
17902 ac_cv_c_bigendian=no
17903 fi
17904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17907 fi
17908 if test $ac_cv_c_bigendian = unknown; then
17909 # Compile a test program.
17910 if test "$cross_compiling" = yes
17911 then :
17912 # Try to guess by grepping values from an object file.
17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914 /* end confdefs.h. */
17915 unsigned short int ascii_mm[] =
17916 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17917 unsigned short int ascii_ii[] =
17918 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17919 int use_ascii (int i) {
17920 return ascii_mm[i] + ascii_ii[i];
17921 }
17922 unsigned short int ebcdic_ii[] =
17923 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17924 unsigned short int ebcdic_mm[] =
17925 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17926 int use_ebcdic (int i) {
17927 return ebcdic_mm[i] + ebcdic_ii[i];
17928 }
17929 extern int foo;
17930
17931 int
17932 main (void)
17933 {
17934 return use_ascii (foo) == use_ebcdic (foo);
17935 ;
17936 return 0;
17937 }
17938 _ACEOF
17939 if ac_fn_c_try_compile "$LINENO"
17940 then :
17941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17942 ac_cv_c_bigendian=yes
17943 fi
17944 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17945 if test "$ac_cv_c_bigendian" = unknown; then
17946 ac_cv_c_bigendian=no
17947 else
17948 # finding both strings is unlikely to happen, but who knows?
17949 ac_cv_c_bigendian=unknown
17950 fi
17951 fi
17952 fi
17953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17954 else $as_nop
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957 $ac_includes_default
17958 int
17959 main (void)
17960 {
17961
17962 /* Are we little or big endian? From Harbison&Steele. */
17963 union
17964 {
17965 long int l;
17966 char c[sizeof (long int)];
17967 } u;
17968 u.l = 1;
17969 return u.c[sizeof (long int) - 1] == 1;
17970
17971 ;
17972 return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_run "$LINENO"
17976 then :
17977 ac_cv_c_bigendian=no
17978 else $as_nop
17979 ac_cv_c_bigendian=yes
17980 fi
17981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17982 conftest.$ac_objext conftest.beam conftest.$ac_ext
17983 fi
17984
17985 fi
17986 fi
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17988 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17989 case $ac_cv_c_bigendian in #(
17990 yes)
17991 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17992 ;; #(
17993 no)
17994 ;; #(
17995 universal)
17996
17997 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17998
17999 ;; #(
18000 *)
18001 as_fn_error $? "unknown endianness
18002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18003 esac
18004
18005
18006 # Check for threadsafe variants of gmtime
18007 # Note: check for gmtime_s is a bit more complex as it is implemented as a macro
18008
18009 for ac_func in gmtime_r
18010 do :
18011 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18012 if test "x$ac_cv_func_gmtime_r" = xyes
18013 then :
18014 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
18015
18016 else $as_nop
18017
18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
18019 printf %s "checking for gmtime_s... " >&6; }
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022
18023 #include <time.h>
18024 int
18025 main (void)
18026 {
18027
18028 time_t t;
18029 struct tm m;
18030 gmtime_s(&m, &t);
18031 return 0;
18032
18033 ;
18034 return 0;
18035 }
18036 _ACEOF
18037 if ac_fn_c_try_link "$LINENO"
18038 then :
18039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18040 printf "%s\n" "yes" >&6; }
18041
18042 printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h
18043
18044 else $as_nop
18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046 printf "%s\n" "no" >&6; }
18047
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18050 conftest$ac_exeext conftest.$ac_ext
18051 fi
18052
18053 done
18054
18055 # Point to JPEG installed in DIR or disable JPEG with --without-jpeg.
18056
18057 # Check whether --with-jpeg was given.
18058 if test ${with_jpeg+y}
18059 then :
18060 withval=$with_jpeg;
18061 if test "x$withval" = "xno" ; then
18062 with_jpeg='no'
18063 else
18064 if test "x$withval" != "xyes" ; then
18065 with_jpeg=$withval
18066 JPEG_DIR=$withval
18067 CPPFLAGS="$CPPFLAGS -I$JPEG_DIR/include"
18068 LDFLAGS="$LDFLAGS -L$JPEG_DIR/lib"
18069 fi
18070 with_jpeg='yes'
18071 fi
18072
18073 else $as_nop
18074 with_jpeg='yes'
18075 fi
18076
18077
18078 # Point to TIFF installed in DIR or disable TIFF with --without-tiff.
18079
18080 # Check whether --with-tiff was given.
18081 if test ${with_tiff+y}
18082 then :
18083 withval=$with_tiff;
18084 if test "x$withval" = "xno" ; then
18085 with_tiff='no'
18086 else
18087 if test "x$withval" != "xyes" ; then
18088 with_tiff=$withval
18089 TIFF_DIR=$withval
18090 CPPFLAGS="$CPPFLAGS -I$TIFF_DIR/include"
18091 LDFLAGS="$LDFLAGS -L$TIFF_DIR/lib"
18092 fi
18093 with_tiff='yes'
18094 fi
18095
18096 else $as_nop
18097 with_tiff='yes'
18098 fi
18099
18100
18101 # Disable ZLIB
18102
18103 # Check whether --with-zlib was given.
18104 if test ${with_zlib+y}
18105 then :
18106 withval=$with_zlib; with_zlib=$withval
18107 else $as_nop
18108 with_zlib='yes'
18109 fi
18110
18111
18112 #fast_float plugin:
18113
18114 # Check whether --with-fastfloat was given.
18115 if test ${with_fastfloat+y}
18116 then :
18117 withval=$with_fastfloat;
18118 with_fastfloat=$withval
18119
18120 else $as_nop
18121
18122 with_fastfloat='no'
18123
18124 fi
18125
18126 if test "x$with_fastfloat" = "xyes"
18127 then
18128 LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float"
18129 fi
18130
18131 #multi threaded plugin:
18132
18133 # Check whether --with-threaded was given.
18134 if test ${with_threaded+y}
18135 then :
18136 withval=$with_threaded;
18137 with_threaded=$withval
18138
18139 else $as_nop
18140
18141 with_threaded='no'
18142
18143 fi
18144
18145 if test "x$with_threaded" = "xyes"
18146 then
18147 LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded"
18148 fi
18149
18150 #
18151 # Determine POSIX threads settings
18152 #
18153 # Enable support for POSIX thread APIs
18154
18155 # Check whether --with-threads was given.
18156 if test ${with_threads+y}
18157 then :
18158 withval=$with_threads; with_threads=$withval
18159 else $as_nop
18160 with_threads='yes'
18161 fi
18162
18163
18164 have_threads=no
18165 if test "$with_threads" != 'no'
18166 then
18167
18168
18169
18170
18171
18172
18173 ac_ext=c
18174 ac_cpp='$CPP $CPPFLAGS'
18175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18178
18179 ax_pthread_ok=no
18180
18181 # We used to check for pthread.h first, but this fails if pthread.h
18182 # requires special compiler flags (e.g. on Tru64 or Sequent).
18183 # It gets checked for in the link test anyway.
18184
18185 # First of all, check if the user has set any of the PTHREAD_LIBS,
18186 # etcetera environment variables, and if threads linking works using
18187 # them:
18188 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
18189 ax_pthread_save_CC="$CC"
18190 ax_pthread_save_CFLAGS="$CFLAGS"
18191 ax_pthread_save_LIBS="$LIBS"
18192 if test "x$PTHREAD_CC" != "x"
18193 then :
18194 CC="$PTHREAD_CC"
18195 fi
18196 if test "x$PTHREAD_CXX" != "x"
18197 then :
18198 CXX="$PTHREAD_CXX"
18199 fi
18200 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18201 LIBS="$PTHREAD_LIBS $LIBS"
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
18203 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18206
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210 char pthread_join ();
18211 int
18212 main (void)
18213 {
18214 return pthread_join ();
18215 ;
18216 return 0;
18217 }
18218 _ACEOF
18219 if ac_fn_c_try_link "$LINENO"
18220 then :
18221 ax_pthread_ok=yes
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18224 conftest$ac_exeext conftest.$ac_ext
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18226 printf "%s\n" "$ax_pthread_ok" >&6; }
18227 if test "x$ax_pthread_ok" = "xno"; then
18228 PTHREAD_LIBS=""
18229 PTHREAD_CFLAGS=""
18230 fi
18231 CC="$ax_pthread_save_CC"
18232 CFLAGS="$ax_pthread_save_CFLAGS"
18233 LIBS="$ax_pthread_save_LIBS"
18234 fi
18235
18236 # We must check for the threads library under a number of different
18237 # names; the ordering is very important because some systems
18238 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18239 # libraries is broken (non-POSIX).
18240
18241 # Create a list of thread flags to try. Items with a "," contain both
18242 # C compiler flags (before ",") and linker flags (after ","). Other items
18243 # starting with a "-" are C compiler flags, and remaining items are
18244 # library names, except for "none" which indicates that we try without
18245 # any flags at all, and "pthread-config" which is a program returning
18246 # the flags for the Pth emulation library.
18247
18248 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18249
18250 # The ordering *is* (sometimes) important. Some notes on the
18251 # individual items follow:
18252
18253 # pthreads: AIX (must check this before -lpthread)
18254 # none: in case threads are in libc; should be tried before -Kthread and
18255 # other compiler flags to prevent continual compiler warnings
18256 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18257 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
18258 # (Note: HP C rejects this with "bad form for `-t' option")
18259 # -pthreads: Solaris/gcc (Note: HP C also rejects)
18260 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18261 # doesn't hurt to check since this sometimes defines pthreads and
18262 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
18263 # is present but should not be used directly; and before -mthreads,
18264 # because the compiler interprets this as "-mt" + "-hreads")
18265 # -mthreads: Mingw32/gcc, Lynx/gcc
18266 # pthread: Linux, etcetera
18267 # --thread-safe: KAI C++
18268 # pthread-config: use pthread-config program (for GNU Pth library)
18269
18270 case $host_os in
18271
18272 freebsd*)
18273
18274 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18275 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18276
18277 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
18278 ;;
18279
18280 hpux*)
18281
18282 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
18283 # multi-threading and also sets -lpthread."
18284
18285 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
18286 ;;
18287
18288 openedition*)
18289
18290 # IBM z/OS requires a feature-test macro to be defined in order to
18291 # enable POSIX threads at all, so give the user a hint if this is
18292 # not set. (We don't define these ourselves, as they can affect
18293 # other portions of the system API in unpredictable ways.)
18294
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297
18298 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
18299 AX_PTHREAD_ZOS_MISSING
18300 # endif
18301
18302 _ACEOF
18303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18304 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
18305 then :
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
18307 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
18308 fi
18309 rm -rf conftest*
18310
18311 ;;
18312
18313 solaris*)
18314
18315 # On Solaris (at least, for some versions), libc contains stubbed
18316 # (non-functional) versions of the pthreads routines, so link-based
18317 # tests will erroneously succeed. (N.B.: The stubs are missing
18318 # pthread_cleanup_push, or rather a function called by this macro,
18319 # so we could check for that, but who knows whether they'll stub
18320 # that too in a future libc.) So we'll check first for the
18321 # standard Solaris way of linking pthreads (-mt -lpthread).
18322
18323 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
18324 ;;
18325 esac
18326
18327 # Are we compiling with Clang?
18328
18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
18330 printf %s "checking whether $CC is Clang... " >&6; }
18331 if test ${ax_cv_PTHREAD_CLANG+y}
18332 then :
18333 printf %s "(cached) " >&6
18334 else $as_nop
18335 ax_cv_PTHREAD_CLANG=no
18336 # Note that Autoconf sets GCC=yes for Clang as well as GCC
18337 if test "x$GCC" = "xyes"; then
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
18341 # if defined(__clang__) && defined(__llvm__)
18342 AX_PTHREAD_CC_IS_CLANG
18343 # endif
18344
18345 _ACEOF
18346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18347 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
18348 then :
18349 ax_cv_PTHREAD_CLANG=yes
18350 fi
18351 rm -rf conftest*
18352
18353 fi
18354
18355 fi
18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
18357 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
18358 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
18359
18360
18361 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
18362
18363 # Note that for GCC and Clang -pthread generally implies -lpthread,
18364 # except when -nostdlib is passed.
18365 # This is problematic using libtool to build C++ shared libraries with pthread:
18366 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
18367 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
18368 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
18369 # To solve this, first try -pthread together with -lpthread for GCC
18370
18371 if test "x$GCC" = "xyes"
18372 then :
18373 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
18374 fi
18375
18376 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
18377
18378 if test "x$ax_pthread_clang" = "xyes"
18379 then :
18380 ax_pthread_flags="-pthread,-lpthread -pthread"
18381 fi
18382
18383
18384 # The presence of a feature test macro requesting re-entrant function
18385 # definitions is, on some systems, a strong hint that pthreads support is
18386 # correctly enabled
18387
18388 case $host_os in
18389 darwin* | hpux* | linux* | osf* | solaris*)
18390 ax_pthread_check_macro="_REENTRANT"
18391 ;;
18392
18393 aix*)
18394 ax_pthread_check_macro="_THREAD_SAFE"
18395 ;;
18396
18397 *)
18398 ax_pthread_check_macro="--"
18399 ;;
18400 esac
18401 if test "x$ax_pthread_check_macro" = "x--"
18402 then :
18403 ax_pthread_check_cond=0
18404 else $as_nop
18405 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
18406 fi
18407
18408
18409 if test "x$ax_pthread_ok" = "xno"; then
18410 for ax_pthread_try_flag in $ax_pthread_flags; do
18411
18412 case $ax_pthread_try_flag in
18413 none)
18414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18415 printf %s "checking whether pthreads work without any flags... " >&6; }
18416 ;;
18417
18418 *,*)
18419 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
18420 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
18422 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
18423 ;;
18424
18425 -*)
18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
18427 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
18428 PTHREAD_CFLAGS="$ax_pthread_try_flag"
18429 ;;
18430
18431 pthread-config)
18432 # Extract the first word of "pthread-config", so it can be a program name with args.
18433 set dummy pthread-config; ac_word=$2
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18435 printf %s "checking for $ac_word... " >&6; }
18436 if test ${ac_cv_prog_ax_pthread_config+y}
18437 then :
18438 printf %s "(cached) " >&6
18439 else $as_nop
18440 if test -n "$ax_pthread_config"; then
18441 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18442 else
18443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18444 for as_dir in $PATH
18445 do
18446 IFS=$as_save_IFS
18447 case $as_dir in #(((
18448 '') as_dir=./ ;;
18449 */) ;;
18450 *) as_dir=$as_dir/ ;;
18451 esac
18452 for ac_exec_ext in '' $ac_executable_extensions; do
18453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18454 ac_cv_prog_ax_pthread_config="yes"
18455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18456 break 2
18457 fi
18458 done
18459 done
18460 IFS=$as_save_IFS
18461
18462 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18463 fi
18464 fi
18465 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18466 if test -n "$ax_pthread_config"; then
18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18468 printf "%s\n" "$ax_pthread_config" >&6; }
18469 else
18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471 printf "%s\n" "no" >&6; }
18472 fi
18473
18474
18475 if test "x$ax_pthread_config" = "xno"
18476 then :
18477 continue
18478 fi
18479 PTHREAD_CFLAGS="`pthread-config --cflags`"
18480 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18481 ;;
18482
18483 *)
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
18485 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
18486 PTHREAD_LIBS="-l$ax_pthread_try_flag"
18487 ;;
18488 esac
18489
18490 ax_pthread_save_CFLAGS="$CFLAGS"
18491 ax_pthread_save_LIBS="$LIBS"
18492 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18493 LIBS="$PTHREAD_LIBS $LIBS"
18494
18495 # Check for various functions. We must include pthread.h,
18496 # since some functions may be macros. (On the Sequent, we
18497 # need a special flag -Kthread to make this header compile.)
18498 # We check for pthread_join because it is in -lpthread on IRIX
18499 # while pthread_create is in libc. We check for pthread_attr_init
18500 # due to DEC craziness with -lpthreads. We check for
18501 # pthread_cleanup_push because it is one of the few pthread
18502 # functions on Solaris that doesn't have a non-functional libc stub.
18503 # We try pthread_create on general principles.
18504
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18507 #include <pthread.h>
18508 # if $ax_pthread_check_cond
18509 # error "$ax_pthread_check_macro must be defined"
18510 # endif
18511 static void *some_global = NULL;
18512 static void routine(void *a)
18513 {
18514 /* To avoid any unused-parameter or
18515 unused-but-set-parameter warning. */
18516 some_global = a;
18517 }
18518 static void *start_routine(void *a) { return a; }
18519 int
18520 main (void)
18521 {
18522 pthread_t th; pthread_attr_t attr;
18523 pthread_create(&th, 0, start_routine, 0);
18524 pthread_join(th, 0);
18525 pthread_attr_init(&attr);
18526 pthread_cleanup_push(routine, 0);
18527 pthread_cleanup_pop(0) /* ; */
18528 ;
18529 return 0;
18530 }
18531 _ACEOF
18532 if ac_fn_c_try_link "$LINENO"
18533 then :
18534 ax_pthread_ok=yes
18535 fi
18536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18537 conftest$ac_exeext conftest.$ac_ext
18538
18539 CFLAGS="$ax_pthread_save_CFLAGS"
18540 LIBS="$ax_pthread_save_LIBS"
18541
18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18543 printf "%s\n" "$ax_pthread_ok" >&6; }
18544 if test "x$ax_pthread_ok" = "xyes"
18545 then :
18546 break
18547 fi
18548
18549 PTHREAD_LIBS=""
18550 PTHREAD_CFLAGS=""
18551 done
18552 fi
18553
18554
18555 # Clang needs special handling, because older versions handle the -pthread
18556 # option in a rather... idiosyncratic way
18557
18558 if test "x$ax_pthread_clang" = "xyes"; then
18559
18560 # Clang takes -pthread; it has never supported any other flag
18561
18562 # (Note 1: This will need to be revisited if a system that Clang
18563 # supports has POSIX threads in a separate library. This tends not
18564 # to be the way of modern systems, but it's conceivable.)
18565
18566 # (Note 2: On some systems, notably Darwin, -pthread is not needed
18567 # to get POSIX threads support; the API is always present and
18568 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
18569 # -pthread does define _REENTRANT, and while the Darwin headers
18570 # ignore this macro, third-party headers might not.)
18571
18572 # However, older versions of Clang make a point of warning the user
18573 # that, in an invocation where only linking and no compilation is
18574 # taking place, the -pthread option has no effect ("argument unused
18575 # during compilation"). They expect -pthread to be passed in only
18576 # when source code is being compiled.
18577 #
18578 # Problem is, this is at odds with the way Automake and most other
18579 # C build frameworks function, which is that the same flags used in
18580 # compilation (CFLAGS) are also used in linking. Many systems
18581 # supported by AX_PTHREAD require exactly this for POSIX threads
18582 # support, and in fact it is often not straightforward to specify a
18583 # flag that is used only in the compilation phase and not in
18584 # linking. Such a scenario is extremely rare in practice.
18585 #
18586 # Even though use of the -pthread flag in linking would only print
18587 # a warning, this can be a nuisance for well-run software projects
18588 # that build with -Werror. So if the active version of Clang has
18589 # this misfeature, we search for an option to squash it.
18590
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
18592 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
18593 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
18594 then :
18595 printf %s "(cached) " >&6
18596 else $as_nop
18597 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
18598 # Create an alternate version of $ac_link that compiles and
18599 # links in two steps (.c -> .o, .o -> exe) instead of one
18600 # (.c -> exe), because the warning occurs only in the second
18601 # step
18602 ax_pthread_save_ac_link="$ac_link"
18603 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
18604 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
18605 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
18606 ax_pthread_save_CFLAGS="$CFLAGS"
18607 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
18608 if test "x$ax_pthread_try" = "xunknown"
18609 then :
18610 break
18611 fi
18612 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
18613 ac_link="$ax_pthread_save_ac_link"
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616 int main(void){return 0;}
18617 _ACEOF
18618 if ac_fn_c_try_link "$LINENO"
18619 then :
18620 ac_link="$ax_pthread_2step_ac_link"
18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h. */
18623 int main(void){return 0;}
18624 _ACEOF
18625 if ac_fn_c_try_link "$LINENO"
18626 then :
18627 break
18628 fi
18629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18630 conftest$ac_exeext conftest.$ac_ext
18631
18632 fi
18633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18634 conftest$ac_exeext conftest.$ac_ext
18635 done
18636 ac_link="$ax_pthread_save_ac_link"
18637 CFLAGS="$ax_pthread_save_CFLAGS"
18638 if test "x$ax_pthread_try" = "x"
18639 then :
18640 ax_pthread_try=no
18641 fi
18642 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
18643
18644 fi
18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
18646 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
18647
18648 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
18649 no | unknown) ;;
18650 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
18651 esac
18652
18653 fi # $ax_pthread_clang = yes
18654
18655
18656
18657 # Various other checks:
18658 if test "x$ax_pthread_ok" = "xyes"; then
18659 ax_pthread_save_CFLAGS="$CFLAGS"
18660 ax_pthread_save_LIBS="$LIBS"
18661 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18662 LIBS="$PTHREAD_LIBS $LIBS"
18663
18664 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18666 printf %s "checking for joinable pthread attribute... " >&6; }
18667 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
18668 then :
18669 printf %s "(cached) " >&6
18670 else $as_nop
18671 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
18672 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18675 #include <pthread.h>
18676 int
18677 main (void)
18678 {
18679 int attr = $ax_pthread_attr; return attr /* ; */
18680 ;
18681 return 0;
18682 }
18683 _ACEOF
18684 if ac_fn_c_try_link "$LINENO"
18685 then :
18686 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
18687 fi
18688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18689 conftest$ac_exeext conftest.$ac_ext
18690 done
18691
18692 fi
18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
18694 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
18695 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
18696 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
18697 test "x$ax_pthread_joinable_attr_defined" != "xyes"
18698 then :
18699
18700 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
18701
18702 ax_pthread_joinable_attr_defined=yes
18703
18704 fi
18705
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
18707 printf %s "checking whether more special flags are required for pthreads... " >&6; }
18708 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
18709 then :
18710 printf %s "(cached) " >&6
18711 else $as_nop
18712 ax_cv_PTHREAD_SPECIAL_FLAGS=no
18713 case $host_os in
18714 solaris*)
18715 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
18716 ;;
18717 esac
18718
18719 fi
18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
18721 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
18722 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
18723 test "x$ax_pthread_special_flags_added" != "xyes"
18724 then :
18725 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
18726 ax_pthread_special_flags_added=yes
18727 fi
18728
18729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18730 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18731 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
18732 then :
18733 printf %s "(cached) " >&6
18734 else $as_nop
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18737 #include <pthread.h>
18738 int
18739 main (void)
18740 {
18741 int i = PTHREAD_PRIO_INHERIT;
18742 return i;
18743 ;
18744 return 0;
18745 }
18746 _ACEOF
18747 if ac_fn_c_try_link "$LINENO"
18748 then :
18749 ax_cv_PTHREAD_PRIO_INHERIT=yes
18750 else $as_nop
18751 ax_cv_PTHREAD_PRIO_INHERIT=no
18752 fi
18753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18754 conftest$ac_exeext conftest.$ac_ext
18755
18756 fi
18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18758 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18759 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
18760 test "x$ax_pthread_prio_inherit_defined" != "xyes"
18761 then :
18762
18763 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18764
18765 ax_pthread_prio_inherit_defined=yes
18766
18767 fi
18768
18769 CFLAGS="$ax_pthread_save_CFLAGS"
18770 LIBS="$ax_pthread_save_LIBS"
18771
18772 # More AIX lossage: compile with *_r variant
18773 if test "x$GCC" != "xyes"; then
18774 case $host_os in
18775 aix*)
18776 case "x/$CC" in #(
18777 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18778 #handle absolute path differently from PATH based program lookup
18779 case "x$CC" in #(
18780 x/*) :
18781
18782 if as_fn_executable_p ${CC}_r
18783 then :
18784 PTHREAD_CC="${CC}_r"
18785 fi
18786 if test "x${CXX}" != "x"
18787 then :
18788 if as_fn_executable_p ${CXX}_r
18789 then :
18790 PTHREAD_CXX="${CXX}_r"
18791 fi
18792 fi
18793 ;; #(
18794 *) :
18795
18796 for ac_prog in ${CC}_r
18797 do
18798 # Extract the first word of "$ac_prog", so it can be a program name with args.
18799 set dummy $ac_prog; ac_word=$2
18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18801 printf %s "checking for $ac_word... " >&6; }
18802 if test ${ac_cv_prog_PTHREAD_CC+y}
18803 then :
18804 printf %s "(cached) " >&6
18805 else $as_nop
18806 if test -n "$PTHREAD_CC"; then
18807 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18808 else
18809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18811 do
18812 IFS=$as_save_IFS
18813 case $as_dir in #(((
18814 '') as_dir=./ ;;
18815 */) ;;
18816 *) as_dir=$as_dir/ ;;
18817 esac
18818 for ac_exec_ext in '' $ac_executable_extensions; do
18819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18820 ac_cv_prog_PTHREAD_CC="$ac_prog"
18821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18822 break 2
18823 fi
18824 done
18825 done
18826 IFS=$as_save_IFS
18827
18828 fi
18829 fi
18830 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18831 if test -n "$PTHREAD_CC"; then
18832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18833 printf "%s\n" "$PTHREAD_CC" >&6; }
18834 else
18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836 printf "%s\n" "no" >&6; }
18837 fi
18838
18839
18840 test -n "$PTHREAD_CC" && break
18841 done
18842 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18843
18844 if test "x${CXX}" != "x"
18845 then :
18846 for ac_prog in ${CXX}_r
18847 do
18848 # Extract the first word of "$ac_prog", so it can be a program name with args.
18849 set dummy $ac_prog; ac_word=$2
18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18851 printf %s "checking for $ac_word... " >&6; }
18852 if test ${ac_cv_prog_PTHREAD_CXX+y}
18853 then :
18854 printf %s "(cached) " >&6
18855 else $as_nop
18856 if test -n "$PTHREAD_CXX"; then
18857 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
18858 else
18859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860 for as_dir in $PATH
18861 do
18862 IFS=$as_save_IFS
18863 case $as_dir in #(((
18864 '') as_dir=./ ;;
18865 */) ;;
18866 *) as_dir=$as_dir/ ;;
18867 esac
18868 for ac_exec_ext in '' $ac_executable_extensions; do
18869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18870 ac_cv_prog_PTHREAD_CXX="$ac_prog"
18871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18872 break 2
18873 fi
18874 done
18875 done
18876 IFS=$as_save_IFS
18877
18878 fi
18879 fi
18880 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
18881 if test -n "$PTHREAD_CXX"; then
18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
18883 printf "%s\n" "$PTHREAD_CXX" >&6; }
18884 else
18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18886 printf "%s\n" "no" >&6; }
18887 fi
18888
18889
18890 test -n "$PTHREAD_CXX" && break
18891 done
18892 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18893
18894 fi
18895
18896 ;;
18897 esac
18898 ;; #(
18899 *) :
18900 ;;
18901 esac
18902 ;;
18903 esac
18904 fi
18905 fi
18906
18907 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18908 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18909
18910
18911
18912
18913
18914
18915 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18916 if test "x$ax_pthread_ok" = "xyes"; then
18917
18918 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
18919
18920 :
18921 else
18922 ax_pthread_ok=no
18923
18924 fi
18925 ac_ext=c
18926 ac_cpp='$CPP $CPPFLAGS'
18927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18930
18931
18932
18933 if test "$ax_pthread_ok" = yes
18934 then
18935 have_threads=yes
18936
18937 DEF_THREAD="$PTHREAD_CFLAGS"
18938 CFLAGS="$CFLAGS $DEF_THREAD"
18939 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
18940
18941 if test "$CC" != "$PTHREAD_CC"
18942 then
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
18944 printf "%s\n" "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
18945 CC="$PTHREAD_CC"
18946 fi
18947 if test "$CXX" != "$PTHREAD_CXX"
18948 then
18949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
18950 printf "%s\n" "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
18951 CXX="$PTHREAD_CXX"
18952 fi
18953 fi
18954 fi
18955
18956 # check if compiler supports SSE2 intrinsics
18957 ac_ext=c
18958 ac_cpp='$CPP $CPPFLAGS'
18959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18962
18963
18964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports SSE2" >&5
18965 printf %s "checking whether compiler supports SSE2... " >&6; }
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18968
18969 #include <emmintrin.h>
18970 int main() { __m128i n = _mm_set1_epi8(42); }
18971 _ACEOF
18972 if ac_fn_c_try_compile "$LINENO"
18973 then :
18974 ac_compiler_supports_sse2=yes
18975 else $as_nop
18976 ac_compiler_supports_sse2=no
18977 fi
18978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_compiler_supports_sse2" >&5
18980 printf "%s\n" "$ac_compiler_supports_sse2" >&6; }
18981 if test "x$ac_compiler_supports_sse2" != "xyes"
18982 then :
18983
18984 printf "%s\n" "#define CMS_DONT_USE_SSE2 1" >>confdefs.h
18985
18986 fi
18987
18988 ac_ext=c
18989 ac_cpp='$CPP $CPPFLAGS'
18990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18993
18994
18995 #
18996 # Find math library
18997 #
18998 LIB_MATH=''
18999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
19000 printf %s "checking for sqrt in -lm... " >&6; }
19001 if test ${ac_cv_lib_m_sqrt+y}
19002 then :
19003 printf %s "(cached) " >&6
19004 else $as_nop
19005 ac_check_lib_save_LIBS=$LIBS
19006 LIBS="-lm $LIBS"
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19009
19010 /* Override any GCC internal prototype to avoid an error.
19011 Use char because int might match the return type of a GCC
19012 builtin and then its argument prototype would still apply. */
19013 char sqrt ();
19014 int
19015 main (void)
19016 {
19017 return sqrt ();
19018 ;
19019 return 0;
19020 }
19021 _ACEOF
19022 if ac_fn_c_try_link "$LINENO"
19023 then :
19024 ac_cv_lib_m_sqrt=yes
19025 else $as_nop
19026 ac_cv_lib_m_sqrt=no
19027 fi
19028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19029 conftest$ac_exeext conftest.$ac_ext
19030 LIBS=$ac_check_lib_save_LIBS
19031 fi
19032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
19033 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
19034 if test "x$ac_cv_lib_m_sqrt" = xyes
19035 then :
19036 LIB_MATH="-lm"
19037 fi
19038
19039 LIBS="$LIB_MATH $LIBS"
19040
19041
19042 #
19043 # Find Posix threads library
19044 #
19045 LIB_THREAD=''
19046 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'
19047 then
19048 for lib in pthread pthreads
19049 do
19050 if test "x$PTHREAD_LIBS" = "x" ; then
19051 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_pthread_mutex_lock" | $as_tr_sh`
19052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -l$lib" >&5
19053 printf %s "checking for pthread_mutex_lock in -l$lib... " >&6; }
19054 if eval test \${$as_ac_Lib+y}
19055 then :
19056 printf %s "(cached) " >&6
19057 else $as_nop
19058 ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-l$lib $LIBS"
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19062
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19066 char pthread_mutex_lock ();
19067 int
19068 main (void)
19069 {
19070 return pthread_mutex_lock ();
19071 ;
19072 return 0;
19073 }
19074 _ACEOF
19075 if ac_fn_c_try_link "$LINENO"
19076 then :
19077 eval "$as_ac_Lib=yes"
19078 else $as_nop
19079 eval "$as_ac_Lib=no"
19080 fi
19081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19082 conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19084 fi
19085 eval ac_res=\$$as_ac_Lib
19086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19087 printf "%s\n" "$ac_res" >&6; }
19088 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
19089 then :
19090 PTHREAD_LIBS=-l$lib
19091 fi
19092
19093 fi
19094 done
19095
19096 LIB_THREAD="$PTHREAD_LIBS"
19097 LIBS="$LIBS $LIB_THREAD"
19098
19099 printf "%s\n" "#define HasTHREADS 1" >>confdefs.h
19100
19101 else
19102
19103 printf "%s\n" "#define HasTHREADS 0" >>confdefs.h
19104
19105 fi
19106
19107
19108 #
19109 # Check for JPEG
19110 #
19111 have_jpeg='no'
19112 LIB_JPEG=''
19113 if test ! "$with_jpeg" = 'no'
19114 then
19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG support" >&5
19116 printf %s "checking for JPEG support... " >&6; }
19117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19118 printf "%s\n" "" >&6; }
19119 failed=0;
19120 passed=0;
19121 ac_fn_c_check_header_compile "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
19122 if test "x$ac_cv_header_jconfig_h" = xyes
19123 then :
19124 passed=`expr $passed + 1`
19125 else $as_nop
19126 failed=`expr $failed + 1`
19127 fi
19128
19129 ac_fn_c_check_header_compile "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
19130 if test "x$ac_cv_header_jerror_h" = xyes
19131 then :
19132 passed=`expr $passed + 1`
19133 else $as_nop
19134 failed=`expr $failed + 1`
19135 fi
19136
19137 ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "#include <jconfig.h>
19138 "
19139 if test "x$ac_cv_header_jmorecfg_h" = xyes
19140 then :
19141 passed=`expr $passed + 1`
19142 else $as_nop
19143 failed=`expr $failed + 1`
19144 fi
19145
19146 ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
19147 if test "x$ac_cv_header_jpeglib_h" = xyes
19148 then :
19149 passed=`expr $passed + 1`
19150 else $as_nop
19151 failed=`expr $failed + 1`
19152 fi
19153
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
19155 printf %s "checking for jpeg_read_header in -ljpeg... " >&6; }
19156 if test ${ac_cv_lib_jpeg_jpeg_read_header+y}
19157 then :
19158 printf %s "(cached) " >&6
19159 else $as_nop
19160 ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-ljpeg $LIBS"
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19164
19165 /* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19168 char jpeg_read_header ();
19169 int
19170 main (void)
19171 {
19172 return jpeg_read_header ();
19173 ;
19174 return 0;
19175 }
19176 _ACEOF
19177 if ac_fn_c_try_link "$LINENO"
19178 then :
19179 ac_cv_lib_jpeg_jpeg_read_header=yes
19180 else $as_nop
19181 ac_cv_lib_jpeg_jpeg_read_header=no
19182 fi
19183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19184 conftest$ac_exeext conftest.$ac_ext
19185 LIBS=$ac_check_lib_save_LIBS
19186 fi
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19188 printf "%s\n" "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
19189 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes
19190 then :
19191 passed=`expr $passed + 1`
19192 else $as_nop
19193 failed=`expr $failed + 1`
19194 fi
19195
19196
19197 # Test for compatible JPEG library
19198 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
19199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
19200 printf %s "checking for JPEG library is version 6b or later... " >&6; }
19201 if test ${ac_cv_jpeg_version_ok+y}
19202 then :
19203 printf %s "(cached) " >&6
19204 else $as_nop
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h. */
19207 #include <stdio.h>
19208 #include <stdlib.h>
19209 #include <jpeglib.h>
19210
19211 int
19212 main (void)
19213 {
19214
19215 #if JPEG_LIB_VERSION < 62
19216 #error IJG JPEG library must be version 6b or newer!
19217 #endif
19218 return 0;
19219
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 if ac_fn_c_try_compile "$LINENO"
19225 then :
19226 ac_cv_jpeg_version_ok='yes'
19227 else $as_nop
19228 ac_cv_jpeg_version_ok='no'
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19231 fi
19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
19233 printf "%s\n" "$ac_cv_jpeg_version_ok" >&6; }
19234 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236 printf "%s\n" "yes" >&6; }
19237 passed=`expr $passed + 1`
19238 else
19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240 printf "%s\n" "no" >&6; }
19241 failed=`expr $failed + 1`
19242 fi
19243 fi
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
19245 printf %s "checking if JPEG package is complete... " >&6; }
19246 if test $passed -gt 0
19247 then
19248 if test $failed -gt 0
19249 then
19250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19251 printf "%s\n" "no -- some components failed test" >&6; }
19252 have_jpeg='no (failed tests)'
19253 else
19254 LIB_JPEG='-ljpeg'
19255 LIBS="$LIB_JPEG $LIBS"
19256
19257 printf "%s\n" "#define HasJPEG 1" >>confdefs.h
19258
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 printf "%s\n" "yes" >&6; }
19261 have_jpeg='yes'
19262 fi
19263 else
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265 printf "%s\n" "no" >&6; }
19266 fi
19267 fi
19268 if test "$have_jpeg" = 'yes'; then
19269 HasJPEG_TRUE=
19270 HasJPEG_FALSE='#'
19271 else
19272 HasJPEG_TRUE='#'
19273 HasJPEG_FALSE=
19274 fi
19275
19276
19277
19278 #
19279 # Check for ZLIB
19280 #
19281 have_zlib='no'
19282 if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no'
19283 then
19284 LIB_ZLIB=''
19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
19286 printf %s "checking for ZLIB support ... " >&6; }
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19288 printf "%s\n" "" >&6; }
19289 failed=0;
19290 passed=0;
19291 ac_fn_c_check_header_compile "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
19292 if test "x$ac_cv_header_zconf_h" = xyes
19293 then :
19294 passed=`expr $passed + 1`
19295 else $as_nop
19296 failed=`expr $failed + 1`
19297 fi
19298
19299 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19300 if test "x$ac_cv_header_zlib_h" = xyes
19301 then :
19302 passed=`expr $passed + 1`
19303 else $as_nop
19304 failed=`expr $failed + 1`
19305 fi
19306
19307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19308 printf %s "checking for compress in -lz... " >&6; }
19309 if test ${ac_cv_lib_z_compress+y}
19310 then :
19311 printf %s "(cached) " >&6
19312 else $as_nop
19313 ac_check_lib_save_LIBS=$LIBS
19314 LIBS="-lz $LIBS"
19315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h. */
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 char compress ();
19322 int
19323 main (void)
19324 {
19325 return compress ();
19326 ;
19327 return 0;
19328 }
19329 _ACEOF
19330 if ac_fn_c_try_link "$LINENO"
19331 then :
19332 ac_cv_lib_z_compress=yes
19333 else $as_nop
19334 ac_cv_lib_z_compress=no
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19337 conftest$ac_exeext conftest.$ac_ext
19338 LIBS=$ac_check_lib_save_LIBS
19339 fi
19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19341 printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
19342 if test "x$ac_cv_lib_z_compress" = xyes
19343 then :
19344 passed=`expr $passed + 1`
19345 else $as_nop
19346 failed=`expr $failed + 1`
19347 fi
19348
19349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
19350 printf %s "checking for uncompress in -lz... " >&6; }
19351 if test ${ac_cv_lib_z_uncompress+y}
19352 then :
19353 printf %s "(cached) " >&6
19354 else $as_nop
19355 ac_check_lib_save_LIBS=$LIBS
19356 LIBS="-lz $LIBS"
19357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h. */
19359
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363 char uncompress ();
19364 int
19365 main (void)
19366 {
19367 return uncompress ();
19368 ;
19369 return 0;
19370 }
19371 _ACEOF
19372 if ac_fn_c_try_link "$LINENO"
19373 then :
19374 ac_cv_lib_z_uncompress=yes
19375 else $as_nop
19376 ac_cv_lib_z_uncompress=no
19377 fi
19378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19379 conftest$ac_exeext conftest.$ac_ext
19380 LIBS=$ac_check_lib_save_LIBS
19381 fi
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
19383 printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; }
19384 if test "x$ac_cv_lib_z_uncompress" = xyes
19385 then :
19386 passed=`expr $passed + 1`
19387 else $as_nop
19388 failed=`expr $failed + 1`
19389 fi
19390
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
19392 printf %s "checking for deflate in -lz... " >&6; }
19393 if test ${ac_cv_lib_z_deflate+y}
19394 then :
19395 printf %s "(cached) " >&6
19396 else $as_nop
19397 ac_check_lib_save_LIBS=$LIBS
19398 LIBS="-lz $LIBS"
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19401
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405 char deflate ();
19406 int
19407 main (void)
19408 {
19409 return deflate ();
19410 ;
19411 return 0;
19412 }
19413 _ACEOF
19414 if ac_fn_c_try_link "$LINENO"
19415 then :
19416 ac_cv_lib_z_deflate=yes
19417 else $as_nop
19418 ac_cv_lib_z_deflate=no
19419 fi
19420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19421 conftest$ac_exeext conftest.$ac_ext
19422 LIBS=$ac_check_lib_save_LIBS
19423 fi
19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
19425 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; }
19426 if test "x$ac_cv_lib_z_deflate" = xyes
19427 then :
19428 passed=`expr $passed + 1`
19429 else $as_nop
19430 failed=`expr $failed + 1`
19431 fi
19432
19433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
19434 printf %s "checking for inflate in -lz... " >&6; }
19435 if test ${ac_cv_lib_z_inflate+y}
19436 then :
19437 printf %s "(cached) " >&6
19438 else $as_nop
19439 ac_check_lib_save_LIBS=$LIBS
19440 LIBS="-lz $LIBS"
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19447 char inflate ();
19448 int
19449 main (void)
19450 {
19451 return inflate ();
19452 ;
19453 return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_link "$LINENO"
19457 then :
19458 ac_cv_lib_z_inflate=yes
19459 else $as_nop
19460 ac_cv_lib_z_inflate=no
19461 fi
19462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19465 fi
19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
19467 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
19468 if test "x$ac_cv_lib_z_inflate" = xyes
19469 then :
19470 passed=`expr $passed + 1`
19471 else $as_nop
19472 failed=`expr $failed + 1`
19473 fi
19474
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
19476 printf %s "checking for gzseek in -lz... " >&6; }
19477 if test ${ac_cv_lib_z_gzseek+y}
19478 then :
19479 printf %s "(cached) " >&6
19480 else $as_nop
19481 ac_check_lib_save_LIBS=$LIBS
19482 LIBS="-lz $LIBS"
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19489 char gzseek ();
19490 int
19491 main (void)
19492 {
19493 return gzseek ();
19494 ;
19495 return 0;
19496 }
19497 _ACEOF
19498 if ac_fn_c_try_link "$LINENO"
19499 then :
19500 ac_cv_lib_z_gzseek=yes
19501 else $as_nop
19502 ac_cv_lib_z_gzseek=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19505 conftest$ac_exeext conftest.$ac_ext
19506 LIBS=$ac_check_lib_save_LIBS
19507 fi
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
19509 printf "%s\n" "$ac_cv_lib_z_gzseek" >&6; }
19510 if test "x$ac_cv_lib_z_gzseek" = xyes
19511 then :
19512 passed=`expr $passed + 1`
19513 else $as_nop
19514 failed=`expr $failed + 1`
19515 fi
19516
19517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
19518 printf %s "checking for gztell in -lz... " >&6; }
19519 if test ${ac_cv_lib_z_gztell+y}
19520 then :
19521 printf %s "(cached) " >&6
19522 else $as_nop
19523 ac_check_lib_save_LIBS=$LIBS
19524 LIBS="-lz $LIBS"
19525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19527
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19531 char gztell ();
19532 int
19533 main (void)
19534 {
19535 return gztell ();
19536 ;
19537 return 0;
19538 }
19539 _ACEOF
19540 if ac_fn_c_try_link "$LINENO"
19541 then :
19542 ac_cv_lib_z_gztell=yes
19543 else $as_nop
19544 ac_cv_lib_z_gztell=no
19545 fi
19546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19547 conftest$ac_exeext conftest.$ac_ext
19548 LIBS=$ac_check_lib_save_LIBS
19549 fi
19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
19551 printf "%s\n" "$ac_cv_lib_z_gztell" >&6; }
19552 if test "x$ac_cv_lib_z_gztell" = xyes
19553 then :
19554 passed=`expr $passed + 1`
19555 else $as_nop
19556 failed=`expr $failed + 1`
19557 fi
19558
19559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
19560 printf %s "checking if ZLIB package is complete... " >&6; }
19561 if test $passed -gt 0
19562 then
19563 if test $failed -gt 0
19564 then
19565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19566 printf "%s\n" "no -- some components failed test" >&6; }
19567 have_zlib='no (failed tests)'
19568 else
19569 LIB_ZLIB='-lz'
19570 LIBS="$LIB_ZLIB $LIBS"
19571
19572 printf "%s\n" "#define HasZLIB 1" >>confdefs.h
19573
19574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19575 printf "%s\n" "yes" >&6; }
19576 have_zlib='yes'
19577 fi
19578 else
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580 printf "%s\n" "no" >&6; }
19581 fi
19582 fi
19583 if test "$have_zlib" = 'yes'; then
19584 HasZLIB_TRUE=
19585 HasZLIB_FALSE='#'
19586 else
19587 HasZLIB_TRUE='#'
19588 HasZLIB_FALSE=
19589 fi
19590
19591
19592
19593 #
19594 # Check for TIFF
19595 #
19596 have_tiff='no'
19597 LIB_TIFF=''
19598 if test ! "$with_tiff" = 'no'
19599 then
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFF support" >&5
19601 printf %s "checking for TIFF support... " >&6; }
19602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19603 printf "%s\n" "" >&6; }
19604 failed=0;
19605 passed=0;
19606 ac_fn_c_check_header_compile "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
19607 if test "x$ac_cv_header_tiff_h" = xyes
19608 then :
19609 passed=`expr $passed + 1`
19610 else $as_nop
19611 failed=`expr $failed + 1`
19612 fi
19613
19614 ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
19615 if test "x$ac_cv_header_tiffio_h" = xyes
19616 then :
19617 passed=`expr $passed + 1`
19618 else $as_nop
19619 failed=`expr $failed + 1`
19620 fi
19621
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
19623 printf %s "checking for TIFFOpen in -ltiff... " >&6; }
19624 if test ${ac_cv_lib_tiff_TIFFOpen+y}
19625 then :
19626 printf %s "(cached) " >&6
19627 else $as_nop
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-ltiff $LIBS"
19630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631 /* end confdefs.h. */
19632
19633 /* Override any GCC internal prototype to avoid an error.
19634 Use char because int might match the return type of a GCC
19635 builtin and then its argument prototype would still apply. */
19636 char TIFFOpen ();
19637 int
19638 main (void)
19639 {
19640 return TIFFOpen ();
19641 ;
19642 return 0;
19643 }
19644 _ACEOF
19645 if ac_fn_c_try_link "$LINENO"
19646 then :
19647 ac_cv_lib_tiff_TIFFOpen=yes
19648 else $as_nop
19649 ac_cv_lib_tiff_TIFFOpen=no
19650 fi
19651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19654 fi
19655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
19656 printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; }
19657 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes
19658 then :
19659 passed=`expr $passed + 1`
19660 else $as_nop
19661 failed=`expr $failed + 1`
19662 fi
19663
19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
19665 printf %s "checking for TIFFClientOpen in -ltiff... " >&6; }
19666 if test ${ac_cv_lib_tiff_TIFFClientOpen+y}
19667 then :
19668 printf %s "(cached) " >&6
19669 else $as_nop
19670 ac_check_lib_save_LIBS=$LIBS
19671 LIBS="-ltiff $LIBS"
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19674
19675 /* Override any GCC internal prototype to avoid an error.
19676 Use char because int might match the return type of a GCC
19677 builtin and then its argument prototype would still apply. */
19678 char TIFFClientOpen ();
19679 int
19680 main (void)
19681 {
19682 return TIFFClientOpen ();
19683 ;
19684 return 0;
19685 }
19686 _ACEOF
19687 if ac_fn_c_try_link "$LINENO"
19688 then :
19689 ac_cv_lib_tiff_TIFFClientOpen=yes
19690 else $as_nop
19691 ac_cv_lib_tiff_TIFFClientOpen=no
19692 fi
19693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19694 conftest$ac_exeext conftest.$ac_ext
19695 LIBS=$ac_check_lib_save_LIBS
19696 fi
19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
19698 printf "%s\n" "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
19699 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes
19700 then :
19701 passed=`expr $passed + 1`
19702 else $as_nop
19703 failed=`expr $failed + 1`
19704 fi
19705
19706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
19707 printf %s "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
19708 if test ${ac_cv_lib_tiff_TIFFIsByteSwapped+y}
19709 then :
19710 printf %s "(cached) " >&6
19711 else $as_nop
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-ltiff $LIBS"
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716
19717 /* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
19720 char TIFFIsByteSwapped ();
19721 int
19722 main (void)
19723 {
19724 return TIFFIsByteSwapped ();
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_c_try_link "$LINENO"
19730 then :
19731 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
19732 else $as_nop
19733 ac_cv_lib_tiff_TIFFIsByteSwapped=no
19734 fi
19735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19736 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19738 fi
19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
19740 printf "%s\n" "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
19741 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes
19742 then :
19743 passed=`expr $passed + 1`
19744 else $as_nop
19745 failed=`expr $failed + 1`
19746 fi
19747
19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
19749 printf %s "checking if TIFF package is complete... " >&6; }
19750 if test $passed -gt 0
19751 then
19752 if test $failed -gt 0
19753 then
19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19755 printf "%s\n" "no -- some components failed test" >&6; }
19756 have_tiff='no (failed tests)'
19757 else
19758 LIB_TIFF='-ltiff'
19759 LIBS="$LIB_TIFF $LIBS"
19760
19761 printf "%s\n" "#define HasTIFF 1" >>confdefs.h
19762
19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19764 printf "%s\n" "yes" >&6; }
19765 have_tiff='yes'
19766 ac_fn_c_check_header_compile "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
19767 if test "x$ac_cv_header_tiffconf_h" = xyes
19768 then :
19769 printf "%s\n" "#define HAVE_TIFFCONF_H 1" >>confdefs.h
19770
19771 fi
19772
19773 fi
19774 else
19775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19776 printf "%s\n" "no" >&6; }
19777 fi
19778 fi
19779 if test "$have_tiff" = 'yes'; then
19780 HasTIFF_TRUE=
19781 HasTIFF_FALSE='#'
19782 else
19783 HasTIFF_TRUE='#'
19784 HasTIFF_FALSE=
19785 fi
19786
19787
19788
19789
19790 # Libraries that the LCMS2MT library depends on
19791 LCMS_LIB_DEPLIBS="$LIB_MATH $LIB_THREAD"
19792 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
19793
19794
19795
19796
19797 # Libraries that the jpegicc program depends on
19798 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH $LIB_THREAD"
19799 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
19800
19801
19802 # Libraries that the tifficc program depends on
19803 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH $LIB_THREAD"
19804 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
19805
19806
19807 LIBS=''
19808
19809 #
19810 # Perform substitutions
19811 #
19812 ac_config_files="$ac_config_files Makefile"
19813
19814 ac_config_files="$ac_config_files lcms2mt.pc"
19815
19816 ac_config_files="$ac_config_files include/Makefile"
19817
19818 ac_config_files="$ac_config_files src/Makefile"
19819
19820 ac_config_files="$ac_config_files utils/tificc/Makefile"
19821
19822 ac_config_files="$ac_config_files utils/transicc/Makefile"
19823
19824 ac_config_files="$ac_config_files utils/linkicc/Makefile"
19825
19826 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
19827
19828 ac_config_files="$ac_config_files utils/psicc/Makefile"
19829
19830 ac_config_files="$ac_config_files testbed/Makefile"
19831
19832 if test "x$with_fastfloat" = "xyes" ; then
19833 COND_FASTFLOAT_TRUE=
19834 COND_FASTFLOAT_FALSE='#'
19835 else
19836 COND_FASTFLOAT_TRUE='#'
19837 COND_FASTFLOAT_FALSE=
19838 fi
19839
19840 if test "x$with_threaded" = "xyes" ; then
19841 COND_THREADED_TRUE=
19842 COND_THREADED_FALSE='#'
19843 else
19844 COND_THREADED_TRUE='#'
19845 COND_THREADED_FALSE=
19846 fi
19847
19848 ac_config_files="$ac_config_files plugins/Makefile"
19849
19850 ac_config_files="$ac_config_files plugins/fast_float/Makefile"
19851
19852 ac_config_files="$ac_config_files plugins/fast_float/src/Makefile"
19853
19854 ac_config_files="$ac_config_files plugins/fast_float/include/Makefile"
19855
19856 ac_config_files="$ac_config_files plugins/fast_float/testbed/Makefile"
19857
19858 ac_config_files="$ac_config_files plugins/threaded/Makefile"
19859
19860 ac_config_files="$ac_config_files plugins/threaded/src/Makefile"
19861
19862 ac_config_files="$ac_config_files plugins/threaded/include/Makefile"
19863
19864 ac_config_files="$ac_config_files plugins/threaded/testbed/Makefile"
19865
19866 cat >confcache <<\_ACEOF
19867 # This file is a shell script that caches the results of configure
19868 # tests run on this system so they can be shared between configure
19869 # scripts and configure runs, see configure's option --config-cache.
19870 # It is not useful on other systems. If it contains results you don't
19871 # want to keep, you may remove or edit it.
19872 #
19873 # config.status only pays attention to the cache file if you give it
19874 # the --recheck option to rerun configure.
19875 #
19876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19878 # following values.
19879
19880 _ACEOF
19881
19882 # The following way of writing the cache mishandles newlines in values,
19883 # but we know of no workaround that is simple, portable, and efficient.
19884 # So, we kill variables containing newlines.
19885 # Ultrix sh set writes to stderr and can't be redirected directly,
19886 # and sets the high bit in the cache file unless we assign to the vars.
19887 (
19888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19889 eval ac_val=\$$ac_var
19890 case $ac_val in #(
19891 *${as_nl}*)
19892 case $ac_var in #(
19893 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19894 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19895 esac
19896 case $ac_var in #(
19897 _ | IFS | as_nl) ;; #(
19898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19899 *) { eval $ac_var=; unset $ac_var;} ;;
19900 esac ;;
19901 esac
19902 done
19903
19904 (set) 2>&1 |
19905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19906 *${as_nl}ac_space=\ *)
19907 # `set' does not quote correctly, so add quotes: double-quote
19908 # substitution turns \\\\ into \\, and sed turns \\ into \.
19909 sed -n \
19910 "s/'/'\\\\''/g;
19911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19912 ;; #(
19913 *)
19914 # `set' quotes correctly as required by POSIX, so do not add quotes.
19915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19916 ;;
19917 esac |
19918 sort
19919 ) |
19920 sed '
19921 /^ac_cv_env_/b end
19922 t clear
19923 :clear
19924 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19925 t end
19926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19927 :end' >>confcache
19928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19929 if test -w "$cache_file"; then
19930 if test "x$cache_file" != "x/dev/null"; then
19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19932 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19933 if test ! -f "$cache_file" || test -h "$cache_file"; then
19934 cat confcache >"$cache_file"
19935 else
19936 case $cache_file in #(
19937 */* | ?:*)
19938 mv -f confcache "$cache_file"$$ &&
19939 mv -f "$cache_file"$$ "$cache_file" ;; #(
19940 *)
19941 mv -f confcache "$cache_file" ;;
19942 esac
19943 fi
19944 fi
19945 else
19946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19947 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19948 fi
19949 fi
19950 rm -f confcache
19951
19952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19953 # Let make expand exec_prefix.
19954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19955
19956 # Transform confdefs.h into DEFS.
19957 # Protect against shell expansion while executing Makefile rules.
19958 # Protect against Makefile macro expansion.
19959 #
19960 # If the first sed substitution is executed (which looks for macros that
19961 # take arguments), then branch to the quote section. Otherwise,
19962 # look for a macro that doesn't take arguments.
19963 ac_script='
19964 :mline
19965 /\\$/{
19966 N
19967 s,\\\n,,
19968 b mline
19969 }
19970 t clear
19971 :clear
19972 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19973 t quote
19974 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19975 t quote
19976 b any
19977 :quote
19978 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19979 s/\[/\\&/g
19980 s/\]/\\&/g
19981 s/\$/$$/g
19982 H
19983 :any
19984 ${
19985 g
19986 s/^\n//
19987 s/\n/ /g
19988 p
19989 }
19990 '
19991 DEFS=`sed -n "$ac_script" confdefs.h`
19992
19993
19994 ac_libobjs=
19995 ac_ltlibobjs=
19996 U=
19997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19998 # 1. Remove the extension, and $U if already installed.
19999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20000 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20002 # will be set to the directory where LIBOBJS objects are built.
20003 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20004 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20005 done
20006 LIBOBJS=$ac_libobjs
20007
20008 LTLIBOBJS=$ac_ltlibobjs
20009
20010
20011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20012 printf %s "checking that generated files are newer than configure... " >&6; }
20013 if test -n "$am_sleep_pid"; then
20014 # Hide warnings about reused PIDs.
20015 wait $am_sleep_pid 2>/dev/null
20016 fi
20017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20018 printf "%s\n" "done" >&6; }
20019 if test -n "$EXEEXT"; then
20020 am__EXEEXT_TRUE=
20021 am__EXEEXT_FALSE='#'
20022 else
20023 am__EXEEXT_TRUE='#'
20024 am__EXEEXT_FALSE=
20025 fi
20026
20027 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20028 as_fn_error $? "conditional \"AMDEP\" was never defined.
20029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20030 fi
20031 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20032 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20034 fi
20035 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20036 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20038 fi
20039 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20040 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20042 fi
20043
20044 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
20045 as_fn_error $? "conditional \"HasJPEG\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20047 fi
20048 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
20049 as_fn_error $? "conditional \"HasZLIB\" was never defined.
20050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20051 fi
20052 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
20053 as_fn_error $? "conditional \"HasTIFF\" was never defined.
20054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20055 fi
20056 if test -z "${COND_FASTFLOAT_TRUE}" && test -z "${COND_FASTFLOAT_FALSE}"; then
20057 as_fn_error $? "conditional \"COND_FASTFLOAT\" was never defined.
20058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20059 fi
20060 if test -z "${COND_THREADED_TRUE}" && test -z "${COND_THREADED_FALSE}"; then
20061 as_fn_error $? "conditional \"COND_THREADED\" was never defined.
20062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20063 fi
20064
20065 : "${CONFIG_STATUS=./config.status}"
20066 ac_write_fail=0
20067 ac_clean_files_save=$ac_clean_files
20068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20070 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20071 as_write_fail=0
20072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20073 #! $SHELL
20074 # Generated by $as_me.
20075 # Run this file to recreate the current configuration.
20076 # Compiler output produced by configure, useful for debugging
20077 # configure, is in config.log if it exists.
20078
20079 debug=false
20080 ac_cs_recheck=false
20081 ac_cs_silent=false
20082
20083 SHELL=\${CONFIG_SHELL-$SHELL}
20084 export SHELL
20085 _ASEOF
20086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20087 ## -------------------- ##
20088 ## M4sh Initialization. ##
20089 ## -------------------- ##
20090
20091 # Be more Bourne compatible
20092 DUALCASE=1; export DUALCASE # for MKS sh
20093 as_nop=:
20094 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20095 then :
20096 emulate sh
20097 NULLCMD=:
20098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20099 # is contrary to our usage. Disable this feature.
20100 alias -g '${1+"$@"}'='"$@"'
20101 setopt NO_GLOB_SUBST
20102 else $as_nop
20103 case `(set -o) 2>/dev/null` in #(
20104 *posix*) :
20105 set -o posix ;; #(
20106 *) :
20107 ;;
20108 esac
20109 fi
20110
20111
20112
20113 # Reset variables that may have inherited troublesome values from
20114 # the environment.
20115
20116 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20117 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20118 # side effect of setting IFS to empty, thus disabling word splitting.)
20119 # Quoting is to prevent editors from complaining about space-tab.
20120 as_nl='
20121 '
20122 export as_nl
20123 IFS=" "" $as_nl"
20124
20125 PS1='$ '
20126 PS2='> '
20127 PS4='+ '
20128
20129 # Ensure predictable behavior from utilities with locale-dependent output.
20130 LC_ALL=C
20131 export LC_ALL
20132 LANGUAGE=C
20133 export LANGUAGE
20134
20135 # We cannot yet rely on "unset" to work, but we need these variables
20136 # to be unset--not just set to an empty or harmless value--now, to
20137 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20138 # also avoids known problems related to "unset" and subshell syntax
20139 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20140 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20141 do eval test \${$as_var+y} \
20142 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20143 done
20144
20145 # Ensure that fds 0, 1, and 2 are open.
20146 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20147 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20148 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20149
20150 # The user is always right.
20151 if ${PATH_SEPARATOR+false} :; then
20152 PATH_SEPARATOR=:
20153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20155 PATH_SEPARATOR=';'
20156 }
20157 fi
20158
20159
20160 # Find who we are. Look in the path if we contain no directory separator.
20161 as_myself=
20162 case $0 in #((
20163 *[\\/]* ) as_myself=$0 ;;
20164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20166 do
20167 IFS=$as_save_IFS
20168 case $as_dir in #(((
20169 '') as_dir=./ ;;
20170 */) ;;
20171 *) as_dir=$as_dir/ ;;
20172 esac
20173 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20174 done
20175 IFS=$as_save_IFS
20176
20177 ;;
20178 esac
20179 # We did not find ourselves, most probably we were run as `sh COMMAND'
20180 # in which case we are not to be found in the path.
20181 if test "x$as_myself" = x; then
20182 as_myself=$0
20183 fi
20184 if test ! -f "$as_myself"; then
20185 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20186 exit 1
20187 fi
20188
20189
20190
20191 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20192 # ----------------------------------------
20193 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20194 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20195 # script with STATUS, using 1 if that was 0.
20196 as_fn_error ()
20197 {
20198 as_status=$1; test $as_status -eq 0 && as_status=1
20199 if test "$4"; then
20200 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20202 fi
20203 printf "%s\n" "$as_me: error: $2" >&2
20204 as_fn_exit $as_status
20205 } # as_fn_error
20206
20207
20208
20209 # as_fn_set_status STATUS
20210 # -----------------------
20211 # Set $? to STATUS, without forking.
20212 as_fn_set_status ()
20213 {
20214 return $1
20215 } # as_fn_set_status
20216
20217 # as_fn_exit STATUS
20218 # -----------------
20219 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20220 as_fn_exit ()
20221 {
20222 set +e
20223 as_fn_set_status $1
20224 exit $1
20225 } # as_fn_exit
20226
20227 # as_fn_unset VAR
20228 # ---------------
20229 # Portably unset VAR.
20230 as_fn_unset ()
20231 {
20232 { eval $1=; unset $1;}
20233 }
20234 as_unset=as_fn_unset
20235
20236 # as_fn_append VAR VALUE
20237 # ----------------------
20238 # Append the text in VALUE to the end of the definition contained in VAR. Take
20239 # advantage of any shell optimizations that allow amortized linear growth over
20240 # repeated appends, instead of the typical quadratic growth present in naive
20241 # implementations.
20242 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20243 then :
20244 eval 'as_fn_append ()
20245 {
20246 eval $1+=\$2
20247 }'
20248 else $as_nop
20249 as_fn_append ()
20250 {
20251 eval $1=\$$1\$2
20252 }
20253 fi # as_fn_append
20254
20255 # as_fn_arith ARG...
20256 # ------------------
20257 # Perform arithmetic evaluation on the ARGs, and store the result in the
20258 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20259 # must be portable across $(()) and expr.
20260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20261 then :
20262 eval 'as_fn_arith ()
20263 {
20264 as_val=$(( $* ))
20265 }'
20266 else $as_nop
20267 as_fn_arith ()
20268 {
20269 as_val=`expr "$@" || test $? -eq 1`
20270 }
20271 fi # as_fn_arith
20272
20273
20274 if expr a : '\(a\)' >/dev/null 2>&1 &&
20275 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20276 as_expr=expr
20277 else
20278 as_expr=false
20279 fi
20280
20281 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20282 as_basename=basename
20283 else
20284 as_basename=false
20285 fi
20286
20287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20288 as_dirname=dirname
20289 else
20290 as_dirname=false
20291 fi
20292
20293 as_me=`$as_basename -- "$0" ||
20294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20295 X"$0" : 'X\(//\)$' \| \
20296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20297 printf "%s\n" X/"$0" |
20298 sed '/^.*\/\([^/][^/]*\)\/*$/{
20299 s//\1/
20300 q
20301 }
20302 /^X\/\(\/\/\)$/{
20303 s//\1/
20304 q
20305 }
20306 /^X\/\(\/\).*/{
20307 s//\1/
20308 q
20309 }
20310 s/.*/./; q'`
20311
20312 # Avoid depending upon Character Ranges.
20313 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20314 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20315 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20316 as_cr_digits='0123456789'
20317 as_cr_alnum=$as_cr_Letters$as_cr_digits
20318
20319
20320 # Determine whether it's possible to make 'echo' print without a newline.
20321 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20322 # for compatibility with existing Makefiles.
20323 ECHO_C= ECHO_N= ECHO_T=
20324 case `echo -n x` in #(((((
20325 -n*)
20326 case `echo 'xy\c'` in
20327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20328 xy) ECHO_C='\c';;
20329 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20330 ECHO_T=' ';;
20331 esac;;
20332 *)
20333 ECHO_N='-n';;
20334 esac
20335
20336 # For backward compatibility with old third-party macros, we provide
20337 # the shell variables $as_echo and $as_echo_n. New code should use
20338 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20339 as_echo='printf %s\n'
20340 as_echo_n='printf %s'
20341
20342 rm -f conf$$ conf$$.exe conf$$.file
20343 if test -d conf$$.dir; then
20344 rm -f conf$$.dir/conf$$.file
20345 else
20346 rm -f conf$$.dir
20347 mkdir conf$$.dir 2>/dev/null
20348 fi
20349 if (echo >conf$$.file) 2>/dev/null; then
20350 if ln -s conf$$.file conf$$ 2>/dev/null; then
20351 as_ln_s='ln -s'
20352 # ... but there are two gotchas:
20353 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20354 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20355 # In both cases, we have to default to `cp -pR'.
20356 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20357 as_ln_s='cp -pR'
20358 elif ln conf$$.file conf$$ 2>/dev/null; then
20359 as_ln_s=ln
20360 else
20361 as_ln_s='cp -pR'
20362 fi
20363 else
20364 as_ln_s='cp -pR'
20365 fi
20366 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20367 rmdir conf$$.dir 2>/dev/null
20368
20369
20370 # as_fn_mkdir_p
20371 # -------------
20372 # Create "$as_dir" as a directory, including parents if necessary.
20373 as_fn_mkdir_p ()
20374 {
20375
20376 case $as_dir in #(
20377 -*) as_dir=./$as_dir;;
20378 esac
20379 test -d "$as_dir" || eval $as_mkdir_p || {
20380 as_dirs=
20381 while :; do
20382 case $as_dir in #(
20383 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20384 *) as_qdir=$as_dir;;
20385 esac
20386 as_dirs="'$as_qdir' $as_dirs"
20387 as_dir=`$as_dirname -- "$as_dir" ||
20388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20389 X"$as_dir" : 'X\(//\)[^/]' \| \
20390 X"$as_dir" : 'X\(//\)$' \| \
20391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20392 printf "%s\n" X"$as_dir" |
20393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20394 s//\1/
20395 q
20396 }
20397 /^X\(\/\/\)[^/].*/{
20398 s//\1/
20399 q
20400 }
20401 /^X\(\/\/\)$/{
20402 s//\1/
20403 q
20404 }
20405 /^X\(\/\).*/{
20406 s//\1/
20407 q
20408 }
20409 s/.*/./; q'`
20410 test -d "$as_dir" && break
20411 done
20412 test -z "$as_dirs" || eval "mkdir $as_dirs"
20413 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20414
20415
20416 } # as_fn_mkdir_p
20417 if mkdir -p . 2>/dev/null; then
20418 as_mkdir_p='mkdir -p "$as_dir"'
20419 else
20420 test -d ./-p && rmdir ./-p
20421 as_mkdir_p=false
20422 fi
20423
20424
20425 # as_fn_executable_p FILE
20426 # -----------------------
20427 # Test if FILE is an executable regular file.
20428 as_fn_executable_p ()
20429 {
20430 test -f "$1" && test -x "$1"
20431 } # as_fn_executable_p
20432 as_test_x='test -x'
20433 as_executable_p=as_fn_executable_p
20434
20435 # Sed expression to map a string onto a valid CPP name.
20436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20437
20438 # Sed expression to map a string onto a valid variable name.
20439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20440
20441
20442 exec 6>&1
20443 ## ----------------------------------- ##
20444 ## Main body of $CONFIG_STATUS script. ##
20445 ## ----------------------------------- ##
20446 _ASEOF
20447 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20448
20449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20450 # Save the log message, to keep $0 and so on meaningful, and to
20451 # report actual input values of CONFIG_FILES etc. instead of their
20452 # values after options handling.
20453 ac_log="
20454 This file was extended by lcms2mt $as_me 2.16, which was
20455 generated by GNU Autoconf 2.71. Invocation command line was
20456
20457 CONFIG_FILES = $CONFIG_FILES
20458 CONFIG_HEADERS = $CONFIG_HEADERS
20459 CONFIG_LINKS = $CONFIG_LINKS
20460 CONFIG_COMMANDS = $CONFIG_COMMANDS
20461 $ $0 $@
20462
20463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20464 "
20465
20466 _ACEOF
20467
20468 case $ac_config_files in *"
20469 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20470 esac
20471
20472
20473
20474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20475 # Files that config.status was made for.
20476 config_files="$ac_config_files"
20477 config_commands="$ac_config_commands"
20478
20479 _ACEOF
20480
20481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20482 ac_cs_usage="\
20483 \`$as_me' instantiates files and other configuration actions
20484 from templates according to the current configuration. Unless the files
20485 and actions are specified as TAGs, all are instantiated by default.
20486
20487 Usage: $0 [OPTION]... [TAG]...
20488
20489 -h, --help print this help, then exit
20490 -V, --version print version number and configuration settings, then exit
20491 --config print configuration, then exit
20492 -q, --quiet, --silent
20493 do not print progress messages
20494 -d, --debug don't remove temporary files
20495 --recheck update $as_me by reconfiguring in the same conditions
20496 --file=FILE[:TEMPLATE]
20497 instantiate the configuration file FILE
20498
20499 Configuration files:
20500 $config_files
20501
20502 Configuration commands:
20503 $config_commands
20504
20505 Report bugs to the package provider."
20506
20507 _ACEOF
20508 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20509 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20511 ac_cs_config='$ac_cs_config_escaped'
20512 ac_cs_version="\\
20513 lcms2mt config.status 2.16
20514 configured by $0, generated by GNU Autoconf 2.71,
20515 with options \\"\$ac_cs_config\\"
20516
20517 Copyright (C) 2021 Free Software Foundation, Inc.
20518 This config.status script is free software; the Free Software Foundation
20519 gives unlimited permission to copy, distribute and modify it."
20520
20521 ac_pwd='$ac_pwd'
20522 srcdir='$srcdir'
20523 INSTALL='$INSTALL'
20524 MKDIR_P='$MKDIR_P'
20525 AWK='$AWK'
20526 test -n "\$AWK" || AWK=awk
20527 _ACEOF
20528
20529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20530 # The default lists apply if the user does not specify any file.
20531 ac_need_defaults=:
20532 while test $# != 0
20533 do
20534 case $1 in
20535 --*=?*)
20536 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20538 ac_shift=:
20539 ;;
20540 --*=)
20541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20542 ac_optarg=
20543 ac_shift=:
20544 ;;
20545 *)
20546 ac_option=$1
20547 ac_optarg=$2
20548 ac_shift=shift
20549 ;;
20550 esac
20551
20552 case $ac_option in
20553 # Handling of the options.
20554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20555 ac_cs_recheck=: ;;
20556 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20557 printf "%s\n" "$ac_cs_version"; exit ;;
20558 --config | --confi | --conf | --con | --co | --c )
20559 printf "%s\n" "$ac_cs_config"; exit ;;
20560 --debug | --debu | --deb | --de | --d | -d )
20561 debug=: ;;
20562 --file | --fil | --fi | --f )
20563 $ac_shift
20564 case $ac_optarg in
20565 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20566 '') as_fn_error $? "missing file argument" ;;
20567 esac
20568 as_fn_append CONFIG_FILES " '$ac_optarg'"
20569 ac_need_defaults=false;;
20570 --he | --h | --help | --hel | -h )
20571 printf "%s\n" "$ac_cs_usage"; exit ;;
20572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20573 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20574 ac_cs_silent=: ;;
20575
20576 # This is an error.
20577 -*) as_fn_error $? "unrecognized option: \`$1'
20578 Try \`$0 --help' for more information." ;;
20579
20580 *) as_fn_append ac_config_targets " $1"
20581 ac_need_defaults=false ;;
20582
20583 esac
20584 shift
20585 done
20586
20587 ac_configure_extra_args=
20588
20589 if $ac_cs_silent; then
20590 exec 6>/dev/null
20591 ac_configure_extra_args="$ac_configure_extra_args --silent"
20592 fi
20593
20594 _ACEOF
20595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20596 if \$ac_cs_recheck; then
20597 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20598 shift
20599 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20600 CONFIG_SHELL='$SHELL'
20601 export CONFIG_SHELL
20602 exec "\$@"
20603 fi
20604
20605 _ACEOF
20606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607 exec 5>>config.log
20608 {
20609 echo
20610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20611 ## Running $as_me. ##
20612 _ASBOX
20613 printf "%s\n" "$ac_log"
20614 } >&5
20615
20616 _ACEOF
20617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20618 #
20619 # INIT-COMMANDS
20620 #
20621 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20622
20623
20624 # The HP-UX ksh and POSIX shell print the target directory to stdout
20625 # if CDPATH is set.
20626 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20627
20628 sed_quote_subst='$sed_quote_subst'
20629 double_quote_subst='$double_quote_subst'
20630 delay_variable_subst='$delay_variable_subst'
20631 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20632 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20633 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20634 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20635 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20636 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20637 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20638 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20639 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20640 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20641 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20642 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20643 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20644 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20645 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20646 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20647 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20648 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20649 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20650 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20651 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20652 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20653 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20654 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20655 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20656 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20657 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20658 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20659 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20660 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20661 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20662 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20663 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20664 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20665 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20666 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20667 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20668 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20669 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20670 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20671 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20672 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20673 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20674 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20675 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20676 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20677 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20678 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20679 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20680 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20681 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20682 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20683 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20684 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20685 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20686 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20687 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20688 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20689 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20690 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20691 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"`'
20692 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20693 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20694 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20695 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20696 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20697 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20698 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20699 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20700 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20701 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20702 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20703 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20704 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20705 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20706 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20707 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20708 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20709 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20710 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20711 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20712 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20713 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20714 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20715 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20716 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20717 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20718 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20719 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20720 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20721 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20722 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20723 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20724 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20725 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20726 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20727 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20728 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20729 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20730 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20731 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20732 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20733 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20734 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20735 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20736 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20737 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20738 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20739 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20740 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20741 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20742 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20743 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20744 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20745 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20746 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20747 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20748 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20749 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20750 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20751 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20752 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20753 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20754 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20755 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20756 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20757 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20758 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20759 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20760 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20761 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20762 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20763 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20764 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20765 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20766 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20767 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20768 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20769 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20770 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20771 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20772 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20773 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20774 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20775 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20776 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20777 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20778 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20779 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20780 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20781 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20782 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20783 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20784 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20785 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20786 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20787 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20788 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20789 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20790 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20791 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20792 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20793 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20794 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20795 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20796 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20797 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20798 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20799 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20800 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20801 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20802 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20803 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20804 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20805 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20806 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20807 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20808 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20809 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20810 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20811 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20812 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20813 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20814 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20815 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20816 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20817 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20818 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20819 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20820 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20821 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20822 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20823
20824 LTCC='$LTCC'
20825 LTCFLAGS='$LTCFLAGS'
20826 compiler='$compiler_DEFAULT'
20827
20828 # A function that is used when there is no print builtin or printf.
20829 func_fallback_echo ()
20830 {
20831 eval 'cat <<_LTECHO_EOF
20832 \$1
20833 _LTECHO_EOF'
20834 }
20835
20836 # Quote evaled strings.
20837 for var in SHELL \
20838 ECHO \
20839 PATH_SEPARATOR \
20840 SED \
20841 GREP \
20842 EGREP \
20843 FGREP \
20844 LD \
20845 NM \
20846 LN_S \
20847 lt_SP2NL \
20848 lt_NL2SP \
20849 reload_flag \
20850 FILECMD \
20851 OBJDUMP \
20852 deplibs_check_method \
20853 file_magic_cmd \
20854 file_magic_glob \
20855 want_nocaseglob \
20856 DLLTOOL \
20857 sharedlib_from_linklib_cmd \
20858 AR \
20859 archiver_list_spec \
20860 STRIP \
20861 RANLIB \
20862 CC \
20863 CFLAGS \
20864 compiler \
20865 lt_cv_sys_global_symbol_pipe \
20866 lt_cv_sys_global_symbol_to_cdecl \
20867 lt_cv_sys_global_symbol_to_import \
20868 lt_cv_sys_global_symbol_to_c_name_address \
20869 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20870 lt_cv_nm_interface \
20871 nm_file_list_spec \
20872 lt_cv_truncate_bin \
20873 lt_prog_compiler_no_builtin_flag \
20874 lt_prog_compiler_pic \
20875 lt_prog_compiler_wl \
20876 lt_prog_compiler_static \
20877 lt_cv_prog_compiler_c_o \
20878 need_locks \
20879 MANIFEST_TOOL \
20880 DSYMUTIL \
20881 NMEDIT \
20882 LIPO \
20883 OTOOL \
20884 OTOOL64 \
20885 shrext_cmds \
20886 export_dynamic_flag_spec \
20887 whole_archive_flag_spec \
20888 compiler_needs_object \
20889 with_gnu_ld \
20890 allow_undefined_flag \
20891 no_undefined_flag \
20892 hardcode_libdir_flag_spec \
20893 hardcode_libdir_separator \
20894 exclude_expsyms \
20895 include_expsyms \
20896 file_list_spec \
20897 variables_saved_for_relink \
20898 libname_spec \
20899 library_names_spec \
20900 soname_spec \
20901 install_override_mode \
20902 finish_eval \
20903 old_striplib \
20904 striplib \
20905 compiler_lib_search_dirs \
20906 predep_objects \
20907 postdep_objects \
20908 predeps \
20909 postdeps \
20910 compiler_lib_search_path \
20911 AS \
20912 LD_CXX \
20913 reload_flag_CXX \
20914 compiler_CXX \
20915 lt_prog_compiler_no_builtin_flag_CXX \
20916 lt_prog_compiler_pic_CXX \
20917 lt_prog_compiler_wl_CXX \
20918 lt_prog_compiler_static_CXX \
20919 lt_cv_prog_compiler_c_o_CXX \
20920 export_dynamic_flag_spec_CXX \
20921 whole_archive_flag_spec_CXX \
20922 compiler_needs_object_CXX \
20923 with_gnu_ld_CXX \
20924 allow_undefined_flag_CXX \
20925 no_undefined_flag_CXX \
20926 hardcode_libdir_flag_spec_CXX \
20927 hardcode_libdir_separator_CXX \
20928 exclude_expsyms_CXX \
20929 include_expsyms_CXX \
20930 file_list_spec_CXX \
20931 compiler_lib_search_dirs_CXX \
20932 predep_objects_CXX \
20933 postdep_objects_CXX \
20934 predeps_CXX \
20935 postdeps_CXX \
20936 compiler_lib_search_path_CXX; do
20937 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20938 *[\\\\\\\`\\"\\\$]*)
20939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20940 ;;
20941 *)
20942 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20943 ;;
20944 esac
20945 done
20946
20947 # Double-quote double-evaled strings.
20948 for var in reload_cmds \
20949 old_postinstall_cmds \
20950 old_postuninstall_cmds \
20951 old_archive_cmds \
20952 extract_expsyms_cmds \
20953 old_archive_from_new_cmds \
20954 old_archive_from_expsyms_cmds \
20955 archive_cmds \
20956 archive_expsym_cmds \
20957 module_cmds \
20958 module_expsym_cmds \
20959 export_symbols_cmds \
20960 prelink_cmds \
20961 postlink_cmds \
20962 postinstall_cmds \
20963 postuninstall_cmds \
20964 finish_cmds \
20965 sys_lib_search_path_spec \
20966 configure_time_dlsearch_path \
20967 configure_time_lt_sys_library_path \
20968 reload_cmds_CXX \
20969 old_archive_cmds_CXX \
20970 old_archive_from_new_cmds_CXX \
20971 old_archive_from_expsyms_cmds_CXX \
20972 archive_cmds_CXX \
20973 archive_expsym_cmds_CXX \
20974 module_cmds_CXX \
20975 module_expsym_cmds_CXX \
20976 export_symbols_cmds_CXX \
20977 prelink_cmds_CXX \
20978 postlink_cmds_CXX; do
20979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20980 *[\\\\\\\`\\"\\\$]*)
20981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20982 ;;
20983 *)
20984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20985 ;;
20986 esac
20987 done
20988
20989 ac_aux_dir='$ac_aux_dir'
20990
20991 # See if we are running on zsh, and set the options that allow our
20992 # commands through without removal of \ escapes INIT.
20993 if test -n "\${ZSH_VERSION+set}"; then
20994 setopt NO_GLOB_SUBST
20995 fi
20996
20997
20998 PACKAGE='$PACKAGE'
20999 VERSION='$VERSION'
21000 RM='$RM'
21001 ofile='$ofile'
21002
21003
21004
21005
21006
21007
21008 _ACEOF
21009
21010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21011
21012 # Handling of arguments.
21013 for ac_config_target in $ac_config_targets
21014 do
21015 case $ac_config_target in
21016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21017 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21018 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21019 "lcms2mt.pc") CONFIG_FILES="$CONFIG_FILES lcms2mt.pc" ;;
21020 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21021 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21022 "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
21023 "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
21024 "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
21025 "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
21026 "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
21027 "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
21028 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
21029 "plugins/fast_float/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/Makefile" ;;
21030 "plugins/fast_float/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/src/Makefile" ;;
21031 "plugins/fast_float/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/include/Makefile" ;;
21032 "plugins/fast_float/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/testbed/Makefile" ;;
21033 "plugins/threaded/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/Makefile" ;;
21034 "plugins/threaded/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/src/Makefile" ;;
21035 "plugins/threaded/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/include/Makefile" ;;
21036 "plugins/threaded/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/testbed/Makefile" ;;
21037
21038 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21039 esac
21040 done
21041
21042
21043 # If the user did not use the arguments to specify the items to instantiate,
21044 # then the envvar interface is used. Set only those that are not.
21045 # We use the long form for the default assignment because of an extremely
21046 # bizarre bug on SunOS 4.1.3.
21047 if $ac_need_defaults; then
21048 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21049 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21050 fi
21051
21052 # Have a temporary directory for convenience. Make it in the build tree
21053 # simply because there is no reason against having it here, and in addition,
21054 # creating and moving files from /tmp can sometimes cause problems.
21055 # Hook for its removal unless debugging.
21056 # Note that there is a small window in which the directory will not be cleaned:
21057 # after its creation but before its name has been assigned to `$tmp'.
21058 $debug ||
21059 {
21060 tmp= ac_tmp=
21061 trap 'exit_status=$?
21062 : "${ac_tmp:=$tmp}"
21063 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21064 ' 0
21065 trap 'as_fn_exit 1' 1 2 13 15
21066 }
21067 # Create a (secure) tmp directory for tmp files.
21068
21069 {
21070 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21071 test -d "$tmp"
21072 } ||
21073 {
21074 tmp=./conf$$-$RANDOM
21075 (umask 077 && mkdir "$tmp")
21076 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21077 ac_tmp=$tmp
21078
21079 # Set up the scripts for CONFIG_FILES section.
21080 # No need to generate them if there are no CONFIG_FILES.
21081 # This happens for instance with `./config.status config.h'.
21082 if test -n "$CONFIG_FILES"; then
21083
21084
21085 ac_cr=`echo X | tr X '\015'`
21086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21087 # But we know of no other shell where ac_cr would be empty at this
21088 # point, so we can use a bashism as a fallback.
21089 if test "x$ac_cr" = x; then
21090 eval ac_cr=\$\'\\r\'
21091 fi
21092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21094 ac_cs_awk_cr='\\r'
21095 else
21096 ac_cs_awk_cr=$ac_cr
21097 fi
21098
21099 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21100 _ACEOF
21101
21102
21103 {
21104 echo "cat >conf$$subs.awk <<_ACEOF" &&
21105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21106 echo "_ACEOF"
21107 } >conf$$subs.sh ||
21108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21110 ac_delim='%!_!# '
21111 for ac_last_try in false false false false false :; do
21112 . ./conf$$subs.sh ||
21113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21114
21115 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21116 if test $ac_delim_n = $ac_delim_num; then
21117 break
21118 elif $ac_last_try; then
21119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21120 else
21121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21122 fi
21123 done
21124 rm -f conf$$subs.sh
21125
21126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21128 _ACEOF
21129 sed -n '
21130 h
21131 s/^/S["/; s/!.*/"]=/
21132 p
21133 g
21134 s/^[^!]*!//
21135 :repl
21136 t repl
21137 s/'"$ac_delim"'$//
21138 t delim
21139 :nl
21140 h
21141 s/\(.\{148\}\)..*/\1/
21142 t more1
21143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21144 p
21145 n
21146 b repl
21147 :more1
21148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21149 p
21150 g
21151 s/.\{148\}//
21152 t nl
21153 :delim
21154 h
21155 s/\(.\{148\}\)..*/\1/
21156 t more2
21157 s/["\\]/\\&/g; s/^/"/; s/$/"/
21158 p
21159 b
21160 :more2
21161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21162 p
21163 g
21164 s/.\{148\}//
21165 t delim
21166 ' <conf$$subs.awk | sed '
21167 /^[^""]/{
21168 N
21169 s/\n//
21170 }
21171 ' >>$CONFIG_STATUS || ac_write_fail=1
21172 rm -f conf$$subs.awk
21173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21174 _ACAWK
21175 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21176 for (key in S) S_is_set[key] = 1
21177 FS = ""
21178
21179 }
21180 {
21181 line = $ 0
21182 nfields = split(line, field, "@")
21183 substed = 0
21184 len = length(field[1])
21185 for (i = 2; i < nfields; i++) {
21186 key = field[i]
21187 keylen = length(key)
21188 if (S_is_set[key]) {
21189 value = S[key]
21190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21191 len += length(value) + length(field[++i])
21192 substed = 1
21193 } else
21194 len += 1 + keylen
21195 }
21196
21197 print line
21198 }
21199
21200 _ACAWK
21201 _ACEOF
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21205 else
21206 cat
21207 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21208 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21209 _ACEOF
21210
21211 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21212 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21213 # trailing colons and then remove the whole line if VPATH becomes empty
21214 # (actually we leave an empty line to preserve line numbers).
21215 if test "x$srcdir" = x.; then
21216 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21217 h
21218 s///
21219 s/^/:/
21220 s/[ ]*$/:/
21221 s/:\$(srcdir):/:/g
21222 s/:\${srcdir}:/:/g
21223 s/:@srcdir@:/:/g
21224 s/^:*//
21225 s/:*$//
21226 x
21227 s/\(=[ ]*\).*/\1/
21228 G
21229 s/\n//
21230 s/^[^=]*=[ ]*$//
21231 }'
21232 fi
21233
21234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21235 fi # test -n "$CONFIG_FILES"
21236
21237
21238 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21239 shift
21240 for ac_tag
21241 do
21242 case $ac_tag in
21243 :[FHLC]) ac_mode=$ac_tag; continue;;
21244 esac
21245 case $ac_mode$ac_tag in
21246 :[FHL]*:*);;
21247 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21248 :[FH]-) ac_tag=-:-;;
21249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21250 esac
21251 ac_save_IFS=$IFS
21252 IFS=:
21253 set x $ac_tag
21254 IFS=$ac_save_IFS
21255 shift
21256 ac_file=$1
21257 shift
21258
21259 case $ac_mode in
21260 :L) ac_source=$1;;
21261 :[FH])
21262 ac_file_inputs=
21263 for ac_f
21264 do
21265 case $ac_f in
21266 -) ac_f="$ac_tmp/stdin";;
21267 *) # Look for the file first in the build tree, then in the source tree
21268 # (if the path is not absolute). The absolute path cannot be DOS-style,
21269 # because $ac_f cannot contain `:'.
21270 test -f "$ac_f" ||
21271 case $ac_f in
21272 [\\/$]*) false;;
21273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21274 esac ||
21275 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21276 esac
21277 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21278 as_fn_append ac_file_inputs " '$ac_f'"
21279 done
21280
21281 # Let's still pretend it is `configure' which instantiates (i.e., don't
21282 # use $as_me), people would be surprised to read:
21283 # /* config.h. Generated by config.status. */
21284 configure_input='Generated from '`
21285 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21286 `' by configure.'
21287 if test x"$ac_file" != x-; then
21288 configure_input="$ac_file. $configure_input"
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21290 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21291 fi
21292 # Neutralize special characters interpreted by sed in replacement strings.
21293 case $configure_input in #(
21294 *\&* | *\|* | *\\* )
21295 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21297 *) ac_sed_conf_input=$configure_input;;
21298 esac
21299
21300 case $ac_tag in
21301 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21303 esac
21304 ;;
21305 esac
21306
21307 ac_dir=`$as_dirname -- "$ac_file" ||
21308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21309 X"$ac_file" : 'X\(//\)[^/]' \| \
21310 X"$ac_file" : 'X\(//\)$' \| \
21311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21312 printf "%s\n" X"$ac_file" |
21313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21314 s//\1/
21315 q
21316 }
21317 /^X\(\/\/\)[^/].*/{
21318 s//\1/
21319 q
21320 }
21321 /^X\(\/\/\)$/{
21322 s//\1/
21323 q
21324 }
21325 /^X\(\/\).*/{
21326 s//\1/
21327 q
21328 }
21329 s/.*/./; q'`
21330 as_dir="$ac_dir"; as_fn_mkdir_p
21331 ac_builddir=.
21332
21333 case "$ac_dir" in
21334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21335 *)
21336 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21337 # A ".." for each directory in $ac_dir_suffix.
21338 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21339 case $ac_top_builddir_sub in
21340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21342 esac ;;
21343 esac
21344 ac_abs_top_builddir=$ac_pwd
21345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21346 # for backward compatibility:
21347 ac_top_builddir=$ac_top_build_prefix
21348
21349 case $srcdir in
21350 .) # We are building in place.
21351 ac_srcdir=.
21352 ac_top_srcdir=$ac_top_builddir_sub
21353 ac_abs_top_srcdir=$ac_pwd ;;
21354 [\\/]* | ?:[\\/]* ) # Absolute name.
21355 ac_srcdir=$srcdir$ac_dir_suffix;
21356 ac_top_srcdir=$srcdir
21357 ac_abs_top_srcdir=$srcdir ;;
21358 *) # Relative name.
21359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21360 ac_top_srcdir=$ac_top_build_prefix$srcdir
21361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21362 esac
21363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21364
21365
21366 case $ac_mode in
21367 :F)
21368 #
21369 # CONFIG_FILE
21370 #
21371
21372 case $INSTALL in
21373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21375 esac
21376 ac_MKDIR_P=$MKDIR_P
21377 case $MKDIR_P in
21378 [\\/$]* | ?:[\\/]* ) ;;
21379 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21380 esac
21381 _ACEOF
21382
21383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384 # If the template does not know about datarootdir, expand it.
21385 # FIXME: This hack should be removed a few years after 2.60.
21386 ac_datarootdir_hack=; ac_datarootdir_seen=
21387 ac_sed_dataroot='
21388 /datarootdir/ {
21389 p
21390 q
21391 }
21392 /@datadir@/p
21393 /@docdir@/p
21394 /@infodir@/p
21395 /@localedir@/p
21396 /@mandir@/p'
21397 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21398 *datarootdir*) ac_datarootdir_seen=yes;;
21399 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21401 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21402 _ACEOF
21403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21404 ac_datarootdir_hack='
21405 s&@datadir@&$datadir&g
21406 s&@docdir@&$docdir&g
21407 s&@infodir@&$infodir&g
21408 s&@localedir@&$localedir&g
21409 s&@mandir@&$mandir&g
21410 s&\\\${datarootdir}&$datarootdir&g' ;;
21411 esac
21412 _ACEOF
21413
21414 # Neutralize VPATH when `$srcdir' = `.'.
21415 # Shell code in configure.ac might set extrasub.
21416 # FIXME: do we really want to maintain this feature?
21417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21418 ac_sed_extra="$ac_vpsub
21419 $extrasub
21420 _ACEOF
21421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21422 :t
21423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21424 s|@configure_input@|$ac_sed_conf_input|;t t
21425 s&@top_builddir@&$ac_top_builddir_sub&;t t
21426 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21427 s&@srcdir@&$ac_srcdir&;t t
21428 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21429 s&@top_srcdir@&$ac_top_srcdir&;t t
21430 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21431 s&@builddir@&$ac_builddir&;t t
21432 s&@abs_builddir@&$ac_abs_builddir&;t t
21433 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21434 s&@INSTALL@&$ac_INSTALL&;t t
21435 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21436 $ac_datarootdir_hack
21437 "
21438 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21439 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21440
21441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21444 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21446 which seems to be undefined. Please make sure it is defined" >&5
21447 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21448 which seems to be undefined. Please make sure it is defined" >&2;}
21449
21450 rm -f "$ac_tmp/stdin"
21451 case $ac_file in
21452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21454 esac \
21455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21456 ;;
21457
21458
21459 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21460 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21461 ;;
21462 esac
21463
21464
21465 case $ac_file$ac_mode in
21466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21467 # Older Autoconf quotes --file arguments for eval, but not when files
21468 # are listed without --file. Let's play safe and only enable the eval
21469 # if we detect the quoting.
21470 case $CONFIG_FILES in
21471 *\'*) eval set x "$CONFIG_FILES" ;;
21472 *) set x $CONFIG_FILES ;;
21473 esac
21474 shift
21475 for mf
21476 do
21477 # Strip MF so we end up with the name of the file.
21478 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21479 # Check whether this is an Automake generated Makefile which includes
21480 # dependency-tracking related rules and includes.
21481 # Grep'ing the whole file directly is not great: AIX grep has a line
21482 # limit of 2048, but all sed's we know have understand at least 4000.
21483 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21484 || continue
21485 am_dirpart=`$as_dirname -- "$am_mf" ||
21486 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487 X"$am_mf" : 'X\(//\)[^/]' \| \
21488 X"$am_mf" : 'X\(//\)$' \| \
21489 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21490 printf "%s\n" X"$am_mf" |
21491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21492 s//\1/
21493 q
21494 }
21495 /^X\(\/\/\)[^/].*/{
21496 s//\1/
21497 q
21498 }
21499 /^X\(\/\/\)$/{
21500 s//\1/
21501 q
21502 }
21503 /^X\(\/\).*/{
21504 s//\1/
21505 q
21506 }
21507 s/.*/./; q'`
21508 am_filepart=`$as_basename -- "$am_mf" ||
21509 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21510 X"$am_mf" : 'X\(//\)$' \| \
21511 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21512 printf "%s\n" X/"$am_mf" |
21513 sed '/^.*\/\([^/][^/]*\)\/*$/{
21514 s//\1/
21515 q
21516 }
21517 /^X\(\/\/\)[^/].*/{
21518 s//\1/
21519 q
21520 }
21521 /^X\(\/\/\)$/{
21522 s//\1/
21523 q
21524 }
21525 /^X\(\/\).*/{
21526 s//\1/
21527 q
21528 }
21529 s/.*/./; q'`
21530 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21531 # echo "creating $dirpart/$file"
21532 echo '# dummy' > "$dirpart/$file"
21533 done
21534 done
21535 if test $am_rc -ne 0; then
21536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21537 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21538 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21539 for automatic dependency tracking. If GNU make was not used, consider
21540 re-running the configure script with MAKE=\"gmake\" (or whatever is
21541 necessary). You can also try re-running configure with the
21542 '--disable-dependency-tracking' option to at least be able to build
21543 the package (albeit without support for automatic dependency tracking).
21544 See \`config.log' for more details" "$LINENO" 5; }
21545 fi
21546 { am_dirpart=; unset am_dirpart;}
21547 { am_filepart=; unset am_filepart;}
21548 { am_mf=; unset am_mf;}
21549 { am_rc=; unset am_rc;}
21550 rm -f conftest-deps.mk
21551 }
21552 ;;
21553 "libtool":C)
21554
21555 # See if we are running on zsh, and set the options that allow our
21556 # commands through without removal of \ escapes.
21557 if test -n "${ZSH_VERSION+set}"; then
21558 setopt NO_GLOB_SUBST
21559 fi
21560
21561 cfgfile=${ofile}T
21562 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21563 $RM "$cfgfile"
21564
21565 cat <<_LT_EOF >> "$cfgfile"
21566 #! $SHELL
21567 # Generated automatically by $as_me ($PACKAGE) $VERSION
21568 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21569
21570 # Provide generalized library-building support services.
21571 # Written by Gordon Matzigkeit, 1996
21572
21573 # Copyright (C) 2014 Free Software Foundation, Inc.
21574 # This is free software; see the source for copying conditions. There is NO
21575 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21576
21577 # GNU Libtool is free software; you can redistribute it and/or modify
21578 # it under the terms of the GNU General Public License as published by
21579 # the Free Software Foundation; either version 2 of of the License, or
21580 # (at your option) any later version.
21581 #
21582 # As a special exception to the GNU General Public License, if you
21583 # distribute this file as part of a program or library that is built
21584 # using GNU Libtool, you may include this file under the same
21585 # distribution terms that you use for the rest of that program.
21586 #
21587 # GNU Libtool is distributed in the hope that it will be useful, but
21588 # WITHOUT ANY WARRANTY; without even the implied warranty of
21589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21590 # GNU General Public License for more details.
21591 #
21592 # You should have received a copy of the GNU General Public License
21593 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21594
21595
21596 # The names of the tagged configurations supported by this script.
21597 available_tags='CXX '
21598
21599 # Configured defaults for sys_lib_dlsearch_path munging.
21600 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21601
21602 # ### BEGIN LIBTOOL CONFIG
21603
21604 # Which release of libtool.m4 was used?
21605 macro_version=$macro_version
21606 macro_revision=$macro_revision
21607
21608 # Whether or not to build shared libraries.
21609 build_libtool_libs=$enable_shared
21610
21611 # Whether or not to build static libraries.
21612 build_old_libs=$enable_static
21613
21614 # What type of objects to build.
21615 pic_mode=$pic_mode
21616
21617 # Whether or not to optimize for fast installation.
21618 fast_install=$enable_fast_install
21619
21620 # Shared archive member basename,for filename based shared library versioning on AIX.
21621 shared_archive_member_spec=$shared_archive_member_spec
21622
21623 # Shell to use when invoking shell scripts.
21624 SHELL=$lt_SHELL
21625
21626 # An echo program that protects backslashes.
21627 ECHO=$lt_ECHO
21628
21629 # The PATH separator for the build system.
21630 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21631
21632 # The host system.
21633 host_alias=$host_alias
21634 host=$host
21635 host_os=$host_os
21636
21637 # The build system.
21638 build_alias=$build_alias
21639 build=$build
21640 build_os=$build_os
21641
21642 # A sed program that does not truncate output.
21643 SED=$lt_SED
21644
21645 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21646 Xsed="\$SED -e 1s/^X//"
21647
21648 # A grep program that handles long lines.
21649 GREP=$lt_GREP
21650
21651 # An ERE matcher.
21652 EGREP=$lt_EGREP
21653
21654 # A literal string matcher.
21655 FGREP=$lt_FGREP
21656
21657 # A BSD- or MS-compatible name lister.
21658 NM=$lt_NM
21659
21660 # Whether we need soft or hard links.
21661 LN_S=$lt_LN_S
21662
21663 # What is the maximum length of a command?
21664 max_cmd_len=$max_cmd_len
21665
21666 # Object file suffix (normally "o").
21667 objext=$ac_objext
21668
21669 # Executable file suffix (normally "").
21670 exeext=$exeext
21671
21672 # whether the shell understands "unset".
21673 lt_unset=$lt_unset
21674
21675 # turn spaces into newlines.
21676 SP2NL=$lt_lt_SP2NL
21677
21678 # turn newlines into spaces.
21679 NL2SP=$lt_lt_NL2SP
21680
21681 # convert \$build file names to \$host format.
21682 to_host_file_cmd=$lt_cv_to_host_file_cmd
21683
21684 # convert \$build files to toolchain format.
21685 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21686
21687 # A file(cmd) program that detects file types.
21688 FILECMD=$lt_FILECMD
21689
21690 # An object symbol dumper.
21691 OBJDUMP=$lt_OBJDUMP
21692
21693 # Method to check whether dependent libraries are shared objects.
21694 deplibs_check_method=$lt_deplibs_check_method
21695
21696 # Command to use when deplibs_check_method = "file_magic".
21697 file_magic_cmd=$lt_file_magic_cmd
21698
21699 # How to find potential files when deplibs_check_method = "file_magic".
21700 file_magic_glob=$lt_file_magic_glob
21701
21702 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21703 want_nocaseglob=$lt_want_nocaseglob
21704
21705 # DLL creation program.
21706 DLLTOOL=$lt_DLLTOOL
21707
21708 # Command to associate shared and link libraries.
21709 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21710
21711 # The archiver.
21712 AR=$lt_AR
21713
21714 # Flags to create an archive (by configure).
21715 lt_ar_flags=$lt_ar_flags
21716
21717 # Flags to create an archive.
21718 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21719
21720 # How to feed a file listing to the archiver.
21721 archiver_list_spec=$lt_archiver_list_spec
21722
21723 # A symbol stripping program.
21724 STRIP=$lt_STRIP
21725
21726 # Commands used to install an old-style archive.
21727 RANLIB=$lt_RANLIB
21728 old_postinstall_cmds=$lt_old_postinstall_cmds
21729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21730
21731 # Whether to use a lock for old archive extraction.
21732 lock_old_archive_extraction=$lock_old_archive_extraction
21733
21734 # A C compiler.
21735 LTCC=$lt_CC
21736
21737 # LTCC compiler flags.
21738 LTCFLAGS=$lt_CFLAGS
21739
21740 # Take the output of nm and produce a listing of raw symbols and C names.
21741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21742
21743 # Transform the output of nm in a proper C declaration.
21744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21745
21746 # Transform the output of nm into a list of symbols to manually relocate.
21747 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21748
21749 # Transform the output of nm in a C name address pair.
21750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21751
21752 # Transform the output of nm in a C name address pair when lib prefix is needed.
21753 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21754
21755 # The name lister interface.
21756 nm_interface=$lt_lt_cv_nm_interface
21757
21758 # Specify filename containing input files for \$NM.
21759 nm_file_list_spec=$lt_nm_file_list_spec
21760
21761 # The root where to search for dependent libraries,and where our libraries should be installed.
21762 lt_sysroot=$lt_sysroot
21763
21764 # Command to truncate a binary pipe.
21765 lt_truncate_bin=$lt_lt_cv_truncate_bin
21766
21767 # The name of the directory that contains temporary libtool files.
21768 objdir=$objdir
21769
21770 # Used to examine libraries when file_magic_cmd begins with "file".
21771 MAGIC_CMD=$MAGIC_CMD
21772
21773 # Must we lock files when doing compilation?
21774 need_locks=$lt_need_locks
21775
21776 # Manifest tool.
21777 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21778
21779 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21780 DSYMUTIL=$lt_DSYMUTIL
21781
21782 # Tool to change global to local symbols on Mac OS X.
21783 NMEDIT=$lt_NMEDIT
21784
21785 # Tool to manipulate fat objects and archives on Mac OS X.
21786 LIPO=$lt_LIPO
21787
21788 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21789 OTOOL=$lt_OTOOL
21790
21791 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21792 OTOOL64=$lt_OTOOL64
21793
21794 # Old archive suffix (normally "a").
21795 libext=$libext
21796
21797 # Shared library suffix (normally ".so").
21798 shrext_cmds=$lt_shrext_cmds
21799
21800 # The commands to extract the exported symbol list from a shared archive.
21801 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21802
21803 # Variables whose values should be saved in libtool wrapper scripts and
21804 # restored at link time.
21805 variables_saved_for_relink=$lt_variables_saved_for_relink
21806
21807 # Do we need the "lib" prefix for modules?
21808 need_lib_prefix=$need_lib_prefix
21809
21810 # Do we need a version for libraries?
21811 need_version=$need_version
21812
21813 # Library versioning type.
21814 version_type=$version_type
21815
21816 # Shared library runtime path variable.
21817 runpath_var=$runpath_var
21818
21819 # Shared library path variable.
21820 shlibpath_var=$shlibpath_var
21821
21822 # Is shlibpath searched before the hard-coded library search path?
21823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21824
21825 # Format of library name prefix.
21826 libname_spec=$lt_libname_spec
21827
21828 # List of archive names. First name is the real one, the rest are links.
21829 # The last name is the one that the linker finds with -lNAME
21830 library_names_spec=$lt_library_names_spec
21831
21832 # The coded name of the library, if different from the real name.
21833 soname_spec=$lt_soname_spec
21834
21835 # Permission mode override for installation of shared libraries.
21836 install_override_mode=$lt_install_override_mode
21837
21838 # Command to use after installation of a shared archive.
21839 postinstall_cmds=$lt_postinstall_cmds
21840
21841 # Command to use after uninstallation of a shared archive.
21842 postuninstall_cmds=$lt_postuninstall_cmds
21843
21844 # Commands used to finish a libtool library installation in a directory.
21845 finish_cmds=$lt_finish_cmds
21846
21847 # As "finish_cmds", except a single script fragment to be evaled but
21848 # not shown.
21849 finish_eval=$lt_finish_eval
21850
21851 # Whether we should hardcode library paths into libraries.
21852 hardcode_into_libs=$hardcode_into_libs
21853
21854 # Compile-time system search path for libraries.
21855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21856
21857 # Detected run-time system search path for libraries.
21858 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21859
21860 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21861 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21862
21863 # Whether dlopen is supported.
21864 dlopen_support=$enable_dlopen
21865
21866 # Whether dlopen of programs is supported.
21867 dlopen_self=$enable_dlopen_self
21868
21869 # Whether dlopen of statically linked programs is supported.
21870 dlopen_self_static=$enable_dlopen_self_static
21871
21872 # Commands to strip libraries.
21873 old_striplib=$lt_old_striplib
21874 striplib=$lt_striplib
21875
21876 # Assembler program.
21877 AS=$lt_AS
21878
21879
21880 # The linker used to build libraries.
21881 LD=$lt_LD
21882
21883 # How to create reloadable object files.
21884 reload_flag=$lt_reload_flag
21885 reload_cmds=$lt_reload_cmds
21886
21887 # Commands used to build an old-style archive.
21888 old_archive_cmds=$lt_old_archive_cmds
21889
21890 # A language specific compiler.
21891 CC=$lt_compiler
21892
21893 # Is the compiler the GNU compiler?
21894 with_gcc=$GCC
21895
21896 # Compiler flag to turn off builtin functions.
21897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21898
21899 # Additional compiler flags for building library objects.
21900 pic_flag=$lt_lt_prog_compiler_pic
21901
21902 # How to pass a linker flag through the compiler.
21903 wl=$lt_lt_prog_compiler_wl
21904
21905 # Compiler flag to prevent dynamic linking.
21906 link_static_flag=$lt_lt_prog_compiler_static
21907
21908 # Does compiler simultaneously support -c and -o options?
21909 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21910
21911 # Whether or not to add -lc for building shared libraries.
21912 build_libtool_need_lc=$archive_cmds_need_lc
21913
21914 # Whether or not to disallow shared libs when runtime libs are static.
21915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21916
21917 # Compiler flag to allow reflexive dlopens.
21918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21919
21920 # Compiler flag to generate shared objects directly from archives.
21921 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21922
21923 # Whether the compiler copes with passing no objects directly.
21924 compiler_needs_object=$lt_compiler_needs_object
21925
21926 # Create an old-style archive from a shared archive.
21927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21928
21929 # Create a temporary old-style archive to link instead of a shared archive.
21930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21931
21932 # Commands used to build a shared archive.
21933 archive_cmds=$lt_archive_cmds
21934 archive_expsym_cmds=$lt_archive_expsym_cmds
21935
21936 # Commands used to build a loadable module if different from building
21937 # a shared archive.
21938 module_cmds=$lt_module_cmds
21939 module_expsym_cmds=$lt_module_expsym_cmds
21940
21941 # Whether we are building with GNU ld or not.
21942 with_gnu_ld=$lt_with_gnu_ld
21943
21944 # Flag that allows shared libraries with undefined symbols to be built.
21945 allow_undefined_flag=$lt_allow_undefined_flag
21946
21947 # Flag that enforces no undefined symbols.
21948 no_undefined_flag=$lt_no_undefined_flag
21949
21950 # Flag to hardcode \$libdir into a binary during linking.
21951 # This must work even if \$libdir does not exist
21952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21953
21954 # Whether we need a single "-rpath" flag with a separated argument.
21955 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21956
21957 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21958 # DIR into the resulting binary.
21959 hardcode_direct=$hardcode_direct
21960
21961 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21962 # DIR into the resulting binary and the resulting library dependency is
21963 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21964 # library is relocated.
21965 hardcode_direct_absolute=$hardcode_direct_absolute
21966
21967 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21968 # into the resulting binary.
21969 hardcode_minus_L=$hardcode_minus_L
21970
21971 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21972 # into the resulting binary.
21973 hardcode_shlibpath_var=$hardcode_shlibpath_var
21974
21975 # Set to "yes" if building a shared library automatically hardcodes DIR
21976 # into the library and all subsequent libraries and executables linked
21977 # against it.
21978 hardcode_automatic=$hardcode_automatic
21979
21980 # Set to yes if linker adds runtime paths of dependent libraries
21981 # to runtime path list.
21982 inherit_rpath=$inherit_rpath
21983
21984 # Whether libtool must link a program against all its dependency libraries.
21985 link_all_deplibs=$link_all_deplibs
21986
21987 # Set to "yes" if exported symbols are required.
21988 always_export_symbols=$always_export_symbols
21989
21990 # The commands to list exported symbols.
21991 export_symbols_cmds=$lt_export_symbols_cmds
21992
21993 # Symbols that should not be listed in the preloaded symbols.
21994 exclude_expsyms=$lt_exclude_expsyms
21995
21996 # Symbols that must always be exported.
21997 include_expsyms=$lt_include_expsyms
21998
21999 # Commands necessary for linking programs (against libraries) with templates.
22000 prelink_cmds=$lt_prelink_cmds
22001
22002 # Commands necessary for finishing linking programs.
22003 postlink_cmds=$lt_postlink_cmds
22004
22005 # Specify filename containing input files.
22006 file_list_spec=$lt_file_list_spec
22007
22008 # How to hardcode a shared library path into an executable.
22009 hardcode_action=$hardcode_action
22010
22011 # The directories searched by this compiler when creating a shared library.
22012 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22013
22014 # Dependencies to place before and after the objects being linked to
22015 # create a shared library.
22016 predep_objects=$lt_predep_objects
22017 postdep_objects=$lt_postdep_objects
22018 predeps=$lt_predeps
22019 postdeps=$lt_postdeps
22020
22021 # The library search path used internally by the compiler when linking
22022 # a shared library.
22023 compiler_lib_search_path=$lt_compiler_lib_search_path
22024
22025 # ### END LIBTOOL CONFIG
22026
22027 _LT_EOF
22028
22029 cat <<'_LT_EOF' >> "$cfgfile"
22030
22031 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22032
22033 # func_munge_path_list VARIABLE PATH
22034 # -----------------------------------
22035 # VARIABLE is name of variable containing _space_ separated list of
22036 # directories to be munged by the contents of PATH, which is string
22037 # having a format:
22038 # "DIR[:DIR]:"
22039 # string "DIR[ DIR]" will be prepended to VARIABLE
22040 # ":DIR[:DIR]"
22041 # string "DIR[ DIR]" will be appended to VARIABLE
22042 # "DIRP[:DIRP]::[DIRA:]DIRA"
22043 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22044 # "DIRA[ DIRA]" will be appended to VARIABLE
22045 # "DIR[:DIR]"
22046 # VARIABLE will be replaced by "DIR[ DIR]"
22047 func_munge_path_list ()
22048 {
22049 case x$2 in
22050 x)
22051 ;;
22052 *:)
22053 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22054 ;;
22055 x:*)
22056 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22057 ;;
22058 *::*)
22059 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22060 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22061 ;;
22062 *)
22063 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22064 ;;
22065 esac
22066 }
22067
22068
22069 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22070 func_cc_basename ()
22071 {
22072 for cc_temp in $*""; do
22073 case $cc_temp in
22074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22076 \-*) ;;
22077 *) break;;
22078 esac
22079 done
22080 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22081 }
22082
22083
22084 # ### END FUNCTIONS SHARED WITH CONFIGURE
22085
22086 _LT_EOF
22087
22088 case $host_os in
22089 aix3*)
22090 cat <<\_LT_EOF >> "$cfgfile"
22091 # AIX sometimes has problems with the GCC collect2 program. For some
22092 # reason, if we set the COLLECT_NAMES environment variable, the problems
22093 # vanish in a puff of smoke.
22094 if test set != "${COLLECT_NAMES+set}"; then
22095 COLLECT_NAMES=
22096 export COLLECT_NAMES
22097 fi
22098 _LT_EOF
22099 ;;
22100 esac
22101
22102
22103
22104 ltmain=$ac_aux_dir/ltmain.sh
22105
22106
22107 # We use sed instead of cat because bash on DJGPP gets confused if
22108 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22109 # text mode, it properly converts lines to CR/LF. This bash problem
22110 # is reportedly fixed, but why not run on old versions too?
22111 $SED '$q' "$ltmain" >> "$cfgfile" \
22112 || (rm -f "$cfgfile"; exit 1)
22113
22114 mv -f "$cfgfile" "$ofile" ||
22115 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22116 chmod +x "$ofile"
22117
22118
22119 cat <<_LT_EOF >> "$ofile"
22120
22121 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22122
22123 # The linker used to build libraries.
22124 LD=$lt_LD_CXX
22125
22126 # How to create reloadable object files.
22127 reload_flag=$lt_reload_flag_CXX
22128 reload_cmds=$lt_reload_cmds_CXX
22129
22130 # Commands used to build an old-style archive.
22131 old_archive_cmds=$lt_old_archive_cmds_CXX
22132
22133 # A language specific compiler.
22134 CC=$lt_compiler_CXX
22135
22136 # Is the compiler the GNU compiler?
22137 with_gcc=$GCC_CXX
22138
22139 # Compiler flag to turn off builtin functions.
22140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22141
22142 # Additional compiler flags for building library objects.
22143 pic_flag=$lt_lt_prog_compiler_pic_CXX
22144
22145 # How to pass a linker flag through the compiler.
22146 wl=$lt_lt_prog_compiler_wl_CXX
22147
22148 # Compiler flag to prevent dynamic linking.
22149 link_static_flag=$lt_lt_prog_compiler_static_CXX
22150
22151 # Does compiler simultaneously support -c and -o options?
22152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22153
22154 # Whether or not to add -lc for building shared libraries.
22155 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22156
22157 # Whether or not to disallow shared libs when runtime libs are static.
22158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22159
22160 # Compiler flag to allow reflexive dlopens.
22161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22162
22163 # Compiler flag to generate shared objects directly from archives.
22164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22165
22166 # Whether the compiler copes with passing no objects directly.
22167 compiler_needs_object=$lt_compiler_needs_object_CXX
22168
22169 # Create an old-style archive from a shared archive.
22170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22171
22172 # Create a temporary old-style archive to link instead of a shared archive.
22173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22174
22175 # Commands used to build a shared archive.
22176 archive_cmds=$lt_archive_cmds_CXX
22177 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22178
22179 # Commands used to build a loadable module if different from building
22180 # a shared archive.
22181 module_cmds=$lt_module_cmds_CXX
22182 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22183
22184 # Whether we are building with GNU ld or not.
22185 with_gnu_ld=$lt_with_gnu_ld_CXX
22186
22187 # Flag that allows shared libraries with undefined symbols to be built.
22188 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22189
22190 # Flag that enforces no undefined symbols.
22191 no_undefined_flag=$lt_no_undefined_flag_CXX
22192
22193 # Flag to hardcode \$libdir into a binary during linking.
22194 # This must work even if \$libdir does not exist
22195 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22196
22197 # Whether we need a single "-rpath" flag with a separated argument.
22198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22199
22200 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22201 # DIR into the resulting binary.
22202 hardcode_direct=$hardcode_direct_CXX
22203
22204 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22205 # DIR into the resulting binary and the resulting library dependency is
22206 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22207 # library is relocated.
22208 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22209
22210 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22211 # into the resulting binary.
22212 hardcode_minus_L=$hardcode_minus_L_CXX
22213
22214 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22215 # into the resulting binary.
22216 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22217
22218 # Set to "yes" if building a shared library automatically hardcodes DIR
22219 # into the library and all subsequent libraries and executables linked
22220 # against it.
22221 hardcode_automatic=$hardcode_automatic_CXX
22222
22223 # Set to yes if linker adds runtime paths of dependent libraries
22224 # to runtime path list.
22225 inherit_rpath=$inherit_rpath_CXX
22226
22227 # Whether libtool must link a program against all its dependency libraries.
22228 link_all_deplibs=$link_all_deplibs_CXX
22229
22230 # Set to "yes" if exported symbols are required.
22231 always_export_symbols=$always_export_symbols_CXX
22232
22233 # The commands to list exported symbols.
22234 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22235
22236 # Symbols that should not be listed in the preloaded symbols.
22237 exclude_expsyms=$lt_exclude_expsyms_CXX
22238
22239 # Symbols that must always be exported.
22240 include_expsyms=$lt_include_expsyms_CXX
22241
22242 # Commands necessary for linking programs (against libraries) with templates.
22243 prelink_cmds=$lt_prelink_cmds_CXX
22244
22245 # Commands necessary for finishing linking programs.
22246 postlink_cmds=$lt_postlink_cmds_CXX
22247
22248 # Specify filename containing input files.
22249 file_list_spec=$lt_file_list_spec_CXX
22250
22251 # How to hardcode a shared library path into an executable.
22252 hardcode_action=$hardcode_action_CXX
22253
22254 # The directories searched by this compiler when creating a shared library.
22255 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22256
22257 # Dependencies to place before and after the objects being linked to
22258 # create a shared library.
22259 predep_objects=$lt_predep_objects_CXX
22260 postdep_objects=$lt_postdep_objects_CXX
22261 predeps=$lt_predeps_CXX
22262 postdeps=$lt_postdeps_CXX
22263
22264 # The library search path used internally by the compiler when linking
22265 # a shared library.
22266 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22267
22268 # ### END LIBTOOL TAG CONFIG: CXX
22269 _LT_EOF
22270
22271 ;;
22272
22273 esac
22274 done # for ac_tag
22275
22276
22277 as_fn_exit 0
22278 _ACEOF
22279 ac_clean_files=$ac_clean_files_save
22280
22281 test $ac_write_fail = 0 ||
22282 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22283
22284
22285 # configure is writing to config.log, and then calls config.status.
22286 # config.status does its own redirection, appending to config.log.
22287 # Unfortunately, on DOS this fails, as config.log is still kept open
22288 # by configure, so config.status won't be able to write to it; its
22289 # output is simply discarded. So we exec the FD to /dev/null,
22290 # effectively closing config.log, so it can be properly (re)opened and
22291 # appended to by config.status. When coming back to configure, we
22292 # need to make the FD available again.
22293 if test "$no_create" != yes; then
22294 ac_cs_success=:
22295 ac_config_status_args=
22296 test "$silent" = yes &&
22297 ac_config_status_args="$ac_config_status_args --quiet"
22298 exec 5>/dev/null
22299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22300 exec 5>>config.log
22301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22302 # would make configure fail if this is the last instruction.
22303 $ac_cs_success || as_fn_exit 1
22304 fi
22305 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22307 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22308 fi