Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libopenraw 0.1.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libopenraw'
589 PACKAGE_TARNAME='libopenraw'
590 PACKAGE_VERSION='0.1.2'
591 PACKAGE_STRING='libopenraw 0.1.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_func_list=
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BUILD_GNOME_SUPPORT_FALSE
637 BUILD_GNOME_SUPPORT_TRUE
638 GDK_PIXBUF_DIR
639 LIBGDKPIXBUF_LIBS
640 LIBGDKPIXBUF_CFLAGS
641 LIBGLIB_LIBS
642 LIBGLIB_CFLAGS
643 CURL_LIBS
644 CURL_CFLAGS
645 LIBXML_LIBS
646 LIBXML_CFLAGS
647 PKG_CONFIG_LIBDIR
648 PKG_CONFIG_PATH
649 PKG_CONFIG
650 BOOST_UNIT_TEST_FRAMEWORK_LIBS
651 BOOST_LDPATH
652 BOOST_UNIT_TEST_FRAMEWORK_LDPATH
653 BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS
654 BOOST_CPPFLAGS
655 DISTCHECK_CONFIGURE_FLAGS
656 BOOST_ROOT
657 LIBGDKPIXBUF_REQUIRED
658 LIBGLIB_REQUIRED
659 HAVE_CXX11
660 CXXCPP
661 LT_SYS_LIBRARY_PATH
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 am__fastdepCXX_FALSE
692 am__fastdepCXX_TRUE
693 CXXDEPMODE
694 ac_ct_CXX
695 CXXFLAGS
696 CXX
697 CPP
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 pkgconfigdir
716 LIBOPENRAW_INCLUDE_BASE
717 LIBOPENRAW_MAJOR_VERSION
718 LIBOPENRAW_VERSION_INFO
719 LIBOPENRAW_CURRENT_MIN
720 LIBOPENRAW_CURRENT
721 LIBOPENRAW_AGE
722 LIBOPENRAW_REVISION
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_aix_soname
802 with_gnu_ld
803 with_sysroot
804 enable_libtool_lock
805 with_darwinports
806 with_fink
807 with_boost
808 enable_static_boost
809 enable_gnome
810 enable_asan
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP
821 CXX
822 CXXFLAGS
823 CCC
824 LT_SYS_LIBRARY_PATH
825 CXXCPP
826 BOOST_ROOT
827 PKG_CONFIG
828 PKG_CONFIG_PATH
829 PKG_CONFIG_LIBDIR
830 LIBXML_CFLAGS
831 LIBXML_LIBS
832 CURL_CFLAGS
833 CURL_LIBS
834 LIBGLIB_CFLAGS
835 LIBGLIB_LIBS
836 LIBGDKPIXBUF_CFLAGS
837 LIBGDKPIXBUF_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures libopenraw 0.1.2 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libopenraw]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of libopenraw 0.1.2:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-maintainer-mode
1459 enable make rules and dependencies not useful (and
1460 sometimes confusing) to the casual installer
1461 --enable-dependency-tracking
1462 do not reject slow dependency extractors
1463 --disable-dependency-tracking
1464 speeds up one-time build
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --enable-static-boost Prefer the static boost libraries over the shared
1471 ones [no]
1472 --disable-gnome disable support for Gnome
1473 --enable-asan Turn on address sanitizer
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-aix-soname=aix|svr4|both
1481 shared library versioning (aka "SONAME") variant to
1482 provide on AIX, [default=aix].
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1485 compiler's sysroot if not specified).
1486 --with-darwinports add /opt/local/... to CPP/LDFLAGS (Mac OSX)
1487 --with-fink add /sw/... to CPP/LDFLAGS (Mac OSX)
1488 --with-boost=DIR prefix of Boost 1.33.0 [guess]
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 LT_SYS_LIBRARY_PATH
1502 User-defined run-time library search path.
1503 CXXCPP C++ preprocessor
1504 BOOST_ROOT Location of Boost installation
1505 PKG_CONFIG path to pkg-config utility
1506 PKG_CONFIG_PATH
1507 directories to add to pkg-config's search path
1508 PKG_CONFIG_LIBDIR
1509 path overriding pkg-config's built-in search path
1510 LIBXML_CFLAGS
1511 C compiler flags for LIBXML, overriding pkg-config
1512 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1513 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1514 CURL_LIBS linker flags for CURL, overriding pkg-config
1515 LIBGLIB_CFLAGS
1516 C compiler flags for LIBGLIB, overriding pkg-config
1517 LIBGLIB_LIBS
1518 linker flags for LIBGLIB, overriding pkg-config
1519 LIBGDKPIXBUF_CFLAGS
1520 C compiler flags for LIBGDKPIXBUF, overriding pkg-config
1521 LIBGDKPIXBUF_LIBS
1522 linker flags for LIBGDKPIXBUF, overriding pkg-config
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 libopenraw configure 0.1.2
1591 generated by GNU Autoconf 2.69
1592
1593 Copyright (C) 2012 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_cpp ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_cpp
1678
1679 # ac_fn_cxx_try_compile LINENO
1680 # ----------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_cxx_try_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_cxx_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_cxx_try_compile
1716
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_link ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1745 }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_link
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=$ac_status
1829 fi
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_cxx_try_cpp LINENO
1904 # ------------------------
1905 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_cpp ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 }; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938 } # ac_fn_cxx_try_cpp
1939
1940 # ac_fn_cxx_try_link LINENO
1941 # -------------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_link ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext conftest$ac_exeext
1947 if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1960 fi
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_cxx_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest$ac_exeext && {
1966 test "$cross_compiling" = yes ||
1967 test -x conftest$ac_exeext
1968 }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975 fi
1976 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978 # interfere with the next link command; also delete a directory that is
1979 # left behind by Apple's compiler. We do this before executing the actions.
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_try_link
1985
1986 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1987 # ---------------------------------------------------------
1988 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989 # the include files in INCLUDES and setting the cache variable VAR
1990 # accordingly.
1991 ac_fn_cxx_check_header_mongrel ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if eval \${$3+:} false; then :
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 else
2004 # Is the header compilable?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006 $as_echo_n "checking $2 usability... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $4
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_cxx_try_compile "$LINENO"; then :
2013 ac_header_compiler=yes
2014 else
2015 ac_header_compiler=no
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019 $as_echo "$ac_header_compiler" >&6; }
2020
2021 # Is the header present?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023 $as_echo_n "checking $2 presence... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_cxx_try_cpp "$LINENO"; then :
2029 ac_header_preproc=yes
2030 else
2031 ac_header_preproc=no
2032 fi
2033 rm -f conftest.err conftest.i conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035 $as_echo "$ac_header_preproc" >&6; }
2036
2037 # So? What about this header?
2038 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2039 yes:no: )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ;;
2045 no:yes:* )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2049 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2053 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 ;;
2057 esac
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=\$ac_header_compiler"
2064 fi
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 fi
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_cxx_check_header_mongrel
2072
2073 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2076 # the include files in INCLUDES and setting the cache variable VAR
2077 # accordingly.
2078 ac_fn_c_check_header_mongrel ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if eval \${$3+:} false; then :
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086 fi
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 else
2091 # Is the header compilable?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2093 $as_echo_n "checking $2 usability... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_header_compiler=yes
2101 else
2102 ac_header_compiler=no
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2106 $as_echo "$ac_header_compiler" >&6; }
2107
2108 # Is the header present?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2110 $as_echo_n "checking $2 presence... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 #include <$2>
2114 _ACEOF
2115 if ac_fn_c_try_cpp "$LINENO"; then :
2116 ac_header_preproc=yes
2117 else
2118 ac_header_preproc=no
2119 fi
2120 rm -f conftest.err conftest.i conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2122 $as_echo "$ac_header_preproc" >&6; }
2123
2124 # So? What about this header?
2125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2126 yes:no: )
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2128 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131 ;;
2132 no:yes:* )
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2134 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2136 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2138 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2140 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2142 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2143 ;;
2144 esac
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 eval "$3=\$ac_header_compiler"
2151 fi
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 fi
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158 } # ac_fn_c_check_header_mongrel
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2162
2163 It was created by libopenraw $as_me 0.1.2, which was
2164 generated by GNU Autoconf 2.69. Invocation command line was
2165
2166 $ $0 $@
2167
2168 _ACEOF
2169 exec 5>>config.log
2170 {
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2175
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192
2193 _ASUNAME
2194
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2201 done
2202 IFS=$as_save_IFS
2203
2204 } >&5
2205
2206 cat >&5 <<_ACEOF
2207
2208
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2212
2213 _ACEOF
2214
2215
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2226 do
2227 for ac_arg
2228 do
2229 case $ac_arg in
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2233 continue ;;
2234 *\'*)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 esac
2237 case $ac_pass in
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239 2)
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2243 else
2244 case $ac_arg in
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 esac
2252 ;;
2253 -* ) ac_must_keep_next=true ;;
2254 esac
2255 fi
2256 as_fn_append ac_configure_args " '$ac_arg'"
2257 ;;
2258 esac
2259 done
2260 done
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2263
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 $as_echo "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2279 (
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2302 *)
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 ;;
2305 esac |
2306 sort
2307 )
2308 echo
2309
2310 $as_echo "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2313 echo
2314 for ac_var in $ac_subst_vars
2315 do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 $as_echo "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2323
2324 if test -n "$ac_subst_files"; then
2325 $as_echo "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2328 echo
2329 for ac_var in $ac_subst_files
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338 fi
2339
2340 if test -s confdefs.h; then
2341 $as_echo "## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##"
2344 echo
2345 cat confdefs.h
2346 echo
2347 fi
2348 test "$ac_signal" != 0 &&
2349 $as_echo "$as_me: caught signal $ac_signal"
2350 $as_echo "$as_me: exit $exit_status"
2351 } >&5
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 exit $exit_status
2355 ' 0
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 done
2359 ac_signal=0
2360
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2363
2364 $as_echo "/* confdefs.h */" > confdefs.h
2365
2366 # Predefined preprocessor variables.
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_NAME "$PACKAGE_NAME"
2370 _ACEOF
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374 _ACEOF
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2378 _ACEOF
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_STRING "$PACKAGE_STRING"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_URL "$PACKAGE_URL"
2390 _ACEOF
2391
2392
2393 # Let the site file select an alternate cache file if it wants to.
2394 # Prefer an explicitly selected file to automatically selected ones.
2395 ac_site_file1=NONE
2396 ac_site_file2=NONE
2397 if test -n "$CONFIG_SITE"; then
2398 # We do not want a PATH search for config.site.
2399 case $CONFIG_SITE in #((
2400 -*) ac_site_file1=./$CONFIG_SITE;;
2401 */*) ac_site_file1=$CONFIG_SITE;;
2402 *) ac_site_file1=./$CONFIG_SITE;;
2403 esac
2404 elif test "x$prefix" != xNONE; then
2405 ac_site_file1=$prefix/share/config.site
2406 ac_site_file2=$prefix/etc/config.site
2407 else
2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 ac_site_file2=$ac_default_prefix/etc/config.site
2410 fi
2411 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412 do
2413 test "x$ac_site_file" = xNONE && continue
2414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417 sed 's/^/| /' "$ac_site_file" >&5
2418 . "$ac_site_file" \
2419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 as_fn_error $? "failed to load site script $ac_site_file
2422 See \`config.log' for more details" "$LINENO" 5; }
2423 fi
2424 done
2425
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special files
2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2436 fi
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2441 fi
2442
2443 as_fn_append ac_func_list " get_current_dir_name"
2444 # Check that the precious variables saved in the cache have kept the same
2445 # value.
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2453 set,)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,set)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,);;
2462 *)
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x $ac_old_val`
2466 ac_new_val_w=`echo x $ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470 ac_cache_corrupted=:
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 fi;;
2481 esac
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2484 case $ac_new_val in
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2487 esac
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 esac
2492 fi
2493 done
2494 if $ac_cache_corrupted; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 fi
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2504
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512 ac_config_headers="$ac_config_headers config.h"
2513
2514
2515 am__api_version='1.15'
2516
2517 ac_aux_dir=
2518 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2519 if test -f "$ac_dir/install-sh"; then
2520 ac_aux_dir=$ac_dir
2521 ac_install_sh="$ac_aux_dir/install-sh -c"
2522 break
2523 elif test -f "$ac_dir/install.sh"; then
2524 ac_aux_dir=$ac_dir
2525 ac_install_sh="$ac_aux_dir/install.sh -c"
2526 break
2527 elif test -f "$ac_dir/shtool"; then
2528 ac_aux_dir=$ac_dir
2529 ac_install_sh="$ac_aux_dir/shtool install -c"
2530 break
2531 fi
2532 done
2533 if test -z "$ac_aux_dir"; then
2534 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2535 fi
2536
2537 # These three variables are undocumented and unsupported,
2538 # and are intended to be withdrawn in a future Autoconf release.
2539 # They can cause serious problems if a builder's source tree is in a directory
2540 # whose full name contains unusual characters.
2541 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2542 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2543 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2544
2545
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2552 # AIX /bin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # OS/2's system install, which has a completely different semantic
2558 # ./install, which can be erroneously created by make from ./install.sh.
2559 # Reject install programs that cannot install multiple files.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2562 if test -z "$INSTALL"; then
2563 if ${ac_cv_path_install+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2572 case $as_dir/ in #((
2573 ./ | .// | /[cC]/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2576 /usr/ucb/* ) ;;
2577 *)
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2580 # by default.
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2587 :
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2591 :
2592 else
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one > conftest.one
2595 echo two > conftest.two
2596 mkdir conftest.dir
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2598 test -s conftest.one && test -s conftest.two &&
2599 test -s conftest.dir/conftest.one &&
2600 test -s conftest.dir/conftest.two
2601 then
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 break 3
2604 fi
2605 fi
2606 fi
2607 done
2608 done
2609 ;;
2610 esac
2611
2612 done
2613 IFS=$as_save_IFS
2614
2615 rm -rf conftest.one conftest.two conftest.dir
2616
2617 fi
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL=$ac_install_sh
2626 fi
2627 fi
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629 $as_echo "$INSTALL" >&6; }
2630
2631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632 # It thinks the first close brace ends the variable substitution.
2633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2634
2635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2636
2637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2638
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640 $as_echo_n "checking whether build environment is sane... " >&6; }
2641 # Reject unsafe characters in $srcdir or the absolute working directory
2642 # name. Accept space and tab only in the latter.
2643 am_lf='
2644 '
2645 case `pwd` in
2646 *[\\\"\#\$\&\'\`$am_lf]*)
2647 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2648 esac
2649 case $srcdir in
2650 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2651 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2652 esac
2653
2654 # Do 'set' in a subshell so we don't clobber the current shell's
2655 # arguments. Must try -L first in case configure is actually a
2656 # symlink; some systems play weird games with the mod time of symlinks
2657 # (eg FreeBSD returns the mod time of the symlink's containing
2658 # directory).
2659 if (
2660 am_has_slept=no
2661 for am_try in 1 2; do
2662 echo "timestamp, slept: $am_has_slept" > conftest.file
2663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2665 # -L didn't work.
2666 set X `ls -t "$srcdir/configure" conftest.file`
2667 fi
2668 if test "$*" != "X $srcdir/configure conftest.file" \
2669 && test "$*" != "X conftest.file $srcdir/configure"; then
2670
2671 # If neither matched, then we have a broken ls. This can happen
2672 # if, for instance, CONFIG_SHELL is bash and it inherits a
2673 # broken ls alias from the environment. This has actually
2674 # happened. Such a system could not be considered "sane".
2675 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2676 alias in your environment" "$LINENO" 5
2677 fi
2678 if test "$2" = conftest.file || test $am_try -eq 2; then
2679 break
2680 fi
2681 # Just in case.
2682 sleep 1
2683 am_has_slept=yes
2684 done
2685 test "$2" = conftest.file
2686 )
2687 then
2688 # Ok.
2689 :
2690 else
2691 as_fn_error $? "newly created file is older than distributed files!
2692 Check your system clock" "$LINENO" 5
2693 fi
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2695 $as_echo "yes" >&6; }
2696 # If we didn't sleep, we still need to ensure time stamps of config.status and
2697 # generated files are strictly newer.
2698 am_sleep_pid=
2699 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2700 ( sleep 1 ) &
2701 am_sleep_pid=$!
2702 fi
2703
2704 rm -f conftest.file
2705
2706 test "$program_prefix" != NONE &&
2707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708 # Use a double $ so make ignores it.
2709 test "$program_suffix" != NONE &&
2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711 # Double any \ or $.
2712 # By default was `s,x,x', remove it if useless.
2713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2715
2716 # Expand $ac_aux_dir to an absolute path.
2717 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2718
2719 if test x"${MISSING+set}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2723 *)
2724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725 esac
2726 fi
2727 # Use eval to expand $SHELL
2728 if eval "$MISSING --is-lightweight"; then
2729 am_missing_run="$MISSING "
2730 else
2731 am_missing_run=
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2733 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2734 fi
2735
2736 if test x"${install_sh+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2740 *)
2741 install_sh="\${SHELL} $am_aux_dir/install-sh"
2742 esac
2743 fi
2744
2745 # Installed binaries are usually stripped using 'strip' when the user
2746 # run "make install-strip". However 'strip' might not be the right
2747 # tool to use in cross-compilation environments, therefore Automake
2748 # will honor the 'STRIP' environment variable to overrule this program.
2749 if test "$cross_compiling" != no; then
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}strip; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_STRIP+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$STRIP"; then
2759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 STRIP=$ac_cv_prog_STRIP
2779 if test -n "$STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781 $as_echo "$STRIP" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788 fi
2789 if test -z "$ac_cv_prog_STRIP"; then
2790 ac_ct_STRIP=$STRIP
2791 # Extract the first word of "strip", so it can be a program name with args.
2792 set dummy strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_STRIP"; then
2799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_STRIP="strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819 if test -n "$ac_ct_STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821 $as_echo "$ac_ct_STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827 if test "x$ac_ct_STRIP" = x; then
2828 STRIP=":"
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 STRIP=$ac_ct_STRIP
2837 fi
2838 else
2839 STRIP="$ac_cv_prog_STRIP"
2840 fi
2841
2842 fi
2843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847 if test -z "$MKDIR_P"; then
2848 if ${ac_cv_path_mkdir+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_prog in mkdir gmkdir; do
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir (GNU coreutils) '* | \
2861 'mkdir (coreutils) '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864 break 3;;
2865 esac
2866 done
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872
2873 test -d ./--version && rmdir ./--version
2874 if test "${ac_cv_path_mkdir+set}" = set; then
2875 MKDIR_P="$ac_cv_path_mkdir -p"
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for MKDIR_P within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 MKDIR_P="$ac_install_sh -d"
2882 fi
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885 $as_echo "$MKDIR_P" >&6; }
2886
2887 for ac_prog in gawk mawk nawk awk
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AWK+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AWK="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 AWK=$ac_cv_prog_AWK
2917 if test -n "$AWK"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2919 $as_echo "$AWK" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 test -n "$AWK" && break
2927 done
2928
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2931 set x ${MAKE-make}
2932 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 cat >conftest.make <<\_ACEOF
2937 SHELL = /bin/sh
2938 all:
2939 @echo '@@@%%%=$(MAKE)=@@@%%%'
2940 _ACEOF
2941 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943 *@@@%%%=?*=@@@%%%*)
2944 eval ac_cv_prog_make_${ac_make}_set=yes;;
2945 *)
2946 eval ac_cv_prog_make_${ac_make}_set=no;;
2947 esac
2948 rm -f conftest.make
2949 fi
2950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 SET_MAKE=
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 SET_MAKE="MAKE=${MAKE-make}"
2958 fi
2959
2960 rm -rf .tst 2>/dev/null
2961 mkdir .tst 2>/dev/null
2962 if test -d .tst; then
2963 am__leading_dot=.
2964 else
2965 am__leading_dot=_
2966 fi
2967 rmdir .tst 2>/dev/null
2968
2969 # Check whether --enable-silent-rules was given.
2970 if test "${enable_silent_rules+set}" = set; then :
2971 enableval=$enable_silent_rules;
2972 fi
2973
2974 case $enable_silent_rules in # (((
2975 yes) AM_DEFAULT_VERBOSITY=0;;
2976 no) AM_DEFAULT_VERBOSITY=1;;
2977 *) AM_DEFAULT_VERBOSITY=1;;
2978 esac
2979 am_make=${MAKE-make}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2981 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2982 if ${am_cv_make_support_nested_variables+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if $as_echo 'TRUE=$(BAR$(V))
2986 BAR0=false
2987 BAR1=true
2988 V=1
2989 am__doit:
2990 @$(TRUE)
2991 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2992 am_cv_make_support_nested_variables=yes
2993 else
2994 am_cv_make_support_nested_variables=no
2995 fi
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2998 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2999 if test $am_cv_make_support_nested_variables = yes; then
3000 AM_V='$(V)'
3001 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3002 else
3003 AM_V=$AM_DEFAULT_VERBOSITY
3004 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3005 fi
3006 AM_BACKSLASH='\'
3007
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status; then
3014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3015 fi
3016 fi
3017
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3024 fi
3025 fi
3026
3027
3028 # Define the identity of the package.
3029 PACKAGE='libopenraw'
3030 VERSION='0.1.2'
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3041
3042 # Some tools Automake needs.
3043
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058 # For better backward compatibility. To be removed once Automake 1.9.x
3059 # dies out for good. For more background, see:
3060 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3061 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3062 mkdir_p='$(MKDIR_P)'
3063
3064 # We need awk for the "check" target (and possibly the TAP driver). The
3065 # system "awk" is bad on some platforms.
3066 # Always define AMTAR for backward compatibility. Yes, it's still used
3067 # in the wild :-( We should find a proper way to deprecate it ...
3068 AMTAR='$${TAR-tar}'
3069
3070
3071 # We'll loop over all known methods to create a tar archive until one works.
3072 _am_tools='gnutar pax cpio none'
3073
3074 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3075
3076
3077
3078
3079
3080
3081 # POSIX will say in a future version that running "rm -f" with no argument
3082 # is OK; and we want to be able to make that assumption in our Makefile
3083 # recipes. So use an aggressive probe to check that the usage we want is
3084 # actually supported "in the wild" to an acceptable degree.
3085 # See automake bug#10828.
3086 # To make any issue more visible, cause the running configure to be aborted
3087 # by default if the 'rm' program in use doesn't match our expectations; the
3088 # user can still override this though.
3089 if rm -f && rm -fr && rm -rf; then : OK; else
3090 cat >&2 <<'END'
3091 Oops!
3092
3093 Your 'rm' program seems unable to run without file operands specified
3094 on the command line, even when the '-f' option is present. This is contrary
3095 to the behaviour of most rm programs out there, and not conforming with
3096 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3097
3098 Please tell [email protected] about your system, including the value
3099 of your $PATH and any error possibly output before this message. This
3100 can help us improve future automake versions.
3101
3102 END
3103 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3104 echo 'Configuration will proceed anyway, since you have set the' >&2
3105 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3106 echo >&2
3107 else
3108 cat >&2 <<'END'
3109 Aborting the configuration process, to ensure you take notice of the issue.
3110
3111 You can download and install GNU coreutils to get an 'rm' implementation
3112 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3113
3114 If you want to complete the configuration process using your problematic
3115 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3116 to "yes", and re-run configure.
3117
3118 END
3119 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3120 fi
3121 fi
3122
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3125 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3126 # Check whether --enable-maintainer-mode was given.
3127 if test "${enable_maintainer_mode+set}" = set; then :
3128 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3129 else
3130 USE_MAINTAINER_MODE=no
3131 fi
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3134 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3135 if test $USE_MAINTAINER_MODE = yes; then
3136 MAINTAINER_MODE_TRUE=
3137 MAINTAINER_MODE_FALSE='#'
3138 else
3139 MAINTAINER_MODE_TRUE='#'
3140 MAINTAINER_MODE_FALSE=
3141 fi
3142
3143 MAINT=$MAINTAINER_MODE_TRUE
3144
3145
3146
3147 # Check whether --enable-silent-rules was given.
3148 if test "${enable_silent_rules+set}" = set; then :
3149 enableval=$enable_silent_rules;
3150 fi
3151
3152 case $enable_silent_rules in # (((
3153 yes) AM_DEFAULT_VERBOSITY=0;;
3154 no) AM_DEFAULT_VERBOSITY=1;;
3155 *) AM_DEFAULT_VERBOSITY=0;;
3156 esac
3157 am_make=${MAKE-make}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3159 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3160 if ${am_cv_make_support_nested_variables+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if $as_echo 'TRUE=$(BAR$(V))
3164 BAR0=false
3165 BAR1=true
3166 V=1
3167 am__doit:
3168 @$(TRUE)
3169 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3170 am_cv_make_support_nested_variables=yes
3171 else
3172 am_cv_make_support_nested_variables=no
3173 fi
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3176 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3177 if test $am_cv_make_support_nested_variables = yes; then
3178 AM_V='$(V)'
3179 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3180 else
3181 AM_V=$AM_DEFAULT_VERBOSITY
3182 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3183 fi
3184 AM_BACKSLASH='\'
3185
3186
3187
3188 LIBOPENRAW_REVISION=2
3189
3190 LIBOPENRAW_AGE=0
3191
3192 LIBOPENRAW_CURRENT=7
3193
3194 LIBOPENRAW_CURRENT_MIN=`expr $LIBOPENRAW_CURRENT - $LIBOPENRAW_AGE`
3195
3196 LIBOPENRAW_VERSION_INFO=$LIBOPENRAW_CURRENT:$LIBOPENRAW_REVISION:$LIBOPENRAW_AGE
3197
3198
3199 LIBOPENRAW_MAJOR_VERSION=$LIBOPENRAW_CURRENT_MIN.0
3200
3201
3202 LIBOPENRAW_INCLUDE_BASE=libopenraw-0.1
3203
3204
3205
3206 pkgconfigdir='${libdir}/pkgconfig'
3207
3208
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 if test -z "$ac_cv_prog_CC"; then
3254 ac_ct_CC=$CC
3255 # Extract the first word of "gcc", so it can be a program name with args.
3256 set dummy gcc; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_CC="gcc"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291 if test "x$ac_ct_CC" = x; then
3292 CC=""
3293 else
3294 case $cross_compiling:$ac_tool_warned in
3295 yes:)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3298 ac_tool_warned=yes ;;
3299 esac
3300 CC=$ac_ct_CC
3301 fi
3302 else
3303 CC="$ac_cv_prog_CC"
3304 fi
3305
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}cc; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="${ac_tool_prefix}cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 fi
3347 if test -z "$CC"; then
3348 # Extract the first word of "cc", so it can be a program name with args.
3349 set dummy cc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 ac_prog_rejected=no
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3367 ac_prog_rejected=yes
3368 continue
3369 fi
3370 ac_cv_prog_CC="cc"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 if test $ac_prog_rejected = yes; then
3379 # We found a bogon in the path, so make sure we never use it.
3380 set dummy $ac_cv_prog_CC
3381 shift
3382 if test $# != 0; then
3383 # We chose a different compiler from the bogus one.
3384 # However, it has the same basename, so the bogon will be chosen
3385 # first if we set CC to just the basename; use the full file name.
3386 shift
3387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 fi
3389 fi
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 $as_echo "$CC" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401
3402 fi
3403 if test -z "$CC"; then
3404 if test -n "$ac_tool_prefix"; then
3405 for ac_prog in cl.exe
3406 do
3407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 test -n "$CC" && break
3445 done
3446 fi
3447 if test -z "$CC"; then
3448 ac_ct_CC=$CC
3449 for ac_prog in cl.exe
3450 do
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_ac_ct_CC="$ac_prog"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3479 if test -n "$ac_ct_CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3481 $as_echo "$ac_ct_CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488 test -n "$ac_ct_CC" && break
3489 done
3490
3491 if test "x$ac_ct_CC" = x; then
3492 CC=""
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 CC=$ac_ct_CC
3501 fi
3502 fi
3503
3504 fi
3505
3506
3507 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error $? "no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details" "$LINENO" 5; }
3511
3512 # Provide some information about the compiler.
3513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 set X $ac_compile
3515 ac_compiler=$2
3516 for ac_option in --version -v -V -qversion; do
3517 { { ac_try="$ac_compiler $ac_option >&5"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3525 ac_status=$?
3526 if test -s conftest.err; then
3527 sed '10a\
3528 ... rest of stderr output deleted ...
3529 10q' conftest.err >conftest.er1
3530 cat conftest.er1 >&5
3531 fi
3532 rm -f conftest.er1 conftest.err
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 done
3536
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 ac_clean_files_save=$ac_clean_files
3549 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3550 # Try to create an executable without -o first, disregard a.out.
3551 # It will help us diagnose broken compilers, and finding out an intuition
3552 # of exeext.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3554 $as_echo_n "checking whether the C compiler works... " >&6; }
3555 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3556
3557 # The possible output files:
3558 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559
3560 ac_rmfiles=
3561 for ac_file in $ac_files
3562 do
3563 case $ac_file in
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3566 esac
3567 done
3568 rm -f $ac_rmfiles
3569
3570 if { { ac_try="$ac_link_default"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link_default") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3584 # so that the user can short-circuit this test for compilers unknown to
3585 # Autoconf.
3586 for ac_file in $ac_files ''
3587 do
3588 test -f "$ac_file" || continue
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3591 ;;
3592 [ab].out )
3593 # We found the default executable, but exeext='' is most
3594 # certainly right.
3595 break;;
3596 *.* )
3597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3598 then :; else
3599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 fi
3601 # We set ac_cv_exeext here because the later test for it is not
3602 # safe: cross compilers may not add the suffix if given an `-o'
3603 # argument, so we may need to know it at that point already.
3604 # Even if this section looks crufty: it has the advantage of
3605 # actually working.
3606 break;;
3607 * )
3608 break;;
3609 esac
3610 done
3611 test "$ac_cv_exeext" = no && ac_cv_exeext=
3612
3613 else
3614 ac_file=''
3615 fi
3616 if test -z "$ac_file"; then :
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error 77 "C compiler cannot create executables
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3628 $as_echo "yes" >&6; }
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3631 $as_echo_n "checking for C compiler default output file name... " >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3633 $as_echo "$ac_file" >&6; }
3634 ac_exeext=$ac_cv_exeext
3635
3636 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3637 ac_clean_files=$ac_clean_files_save
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3639 $as_echo_n "checking for suffix of executables... " >&6; }
3640 if { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }; then :
3651 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3652 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3653 # work properly (i.e., refer to `conftest.exe'), while it won't with
3654 # `rm'.
3655 for ac_file in conftest.exe conftest conftest.*; do
3656 test -f "$ac_file" || continue
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 break;;
3661 * ) break;;
3662 esac
3663 done
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details" "$LINENO" 5; }
3669 fi
3670 rm -f conftest conftest$ac_cv_exeext
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3673
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3676 ac_exeext=$EXEEXT
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdio.h>
3680 int
3681 main ()
3682 {
3683 FILE *f = fopen ("conftest.out", "w");
3684 return ferror (f) || fclose (f) != 0;
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 ac_clean_files="$ac_clean_files conftest.out"
3691 # Check that the compiler produces executables we can run. If not, either
3692 # the compiler is broken, or we cross compile.
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3694 $as_echo_n "checking whether we are cross compiling... " >&6; }
3695 if test "$cross_compiling" != yes; then
3696 { { ac_try="$ac_link"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }
3707 if { ac_try='./conftest$ac_cv_exeext'
3708 { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3718 cross_compiling=no
3719 else
3720 if test "$cross_compiling" = maybe; then
3721 cross_compiling=yes
3722 else
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "cannot run C compiled programs.
3726 If you meant to cross compile, use \`--host'.
3727 See \`config.log' for more details" "$LINENO" 5; }
3728 fi
3729 fi
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3732 $as_echo "$cross_compiling" >&6; }
3733
3734 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3735 ac_clean_files=$ac_clean_files_save
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3737 $as_echo_n "checking for suffix of object files... " >&6; }
3738 if ${ac_cv_objext+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.o conftest.obj
3753 if { { ac_try="$ac_compile"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_compile") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; then :
3764 for ac_file in conftest.o conftest.obj conftest.*; do
3765 test -f "$ac_file" || continue;
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3769 break;;
3770 esac
3771 done
3772 else
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "cannot compute suffix of object files: cannot compile
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 fi
3781 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3784 $as_echo "$ac_cv_objext" >&6; }
3785 OBJEXT=$ac_cv_objext
3786 ac_objext=$OBJEXT
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3788 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3789 if ${ac_cv_c_compiler_gnu+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798 #ifndef __GNUC__
3799 choke me
3800 #endif
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_compiler_gnu=yes
3808 else
3809 ac_compiler_gnu=no
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3813
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3816 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3817 if test $ac_compiler_gnu = yes; then
3818 GCC=yes
3819 else
3820 GCC=
3821 fi
3822 ac_test_CFLAGS=${CFLAGS+set}
3823 ac_save_CFLAGS=$CFLAGS
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3825 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3826 if ${ac_cv_prog_cc_g+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 ac_save_c_werror_flag=$ac_c_werror_flag
3830 ac_c_werror_flag=yes
3831 ac_cv_prog_cc_g=no
3832 CFLAGS="-g"
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 int
3837 main ()
3838 {
3839
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_g=yes
3846 else
3847 CFLAGS=""
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850
3851 int
3852 main ()
3853 {
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860
3861 else
3862 ac_c_werror_flag=$ac_save_c_werror_flag
3863 CFLAGS="-g"
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_prog_cc_g=yes
3877 fi
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3886 $as_echo "$ac_cv_prog_cc_g" >&6; }
3887 if test "$ac_test_CFLAGS" = set; then
3888 CFLAGS=$ac_save_CFLAGS
3889 elif test $ac_cv_prog_cc_g = yes; then
3890 if test "$GCC" = yes; then
3891 CFLAGS="-g -O2"
3892 else
3893 CFLAGS="-g"
3894 fi
3895 else
3896 if test "$GCC" = yes; then
3897 CFLAGS="-O2"
3898 else
3899 CFLAGS=
3900 fi
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3903 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3904 if ${ac_cv_prog_cc_c89+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 ac_cv_prog_cc_c89=no
3908 ac_save_CC=$CC
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911 #include <stdarg.h>
3912 #include <stdio.h>
3913 struct stat;
3914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3915 struct buf { int x; };
3916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3917 static char *e (p, i)
3918 char **p;
3919 int i;
3920 {
3921 return p[i];
3922 }
3923 static char *f (char * (*g) (char **, int), char **p, ...)
3924 {
3925 char *s;
3926 va_list v;
3927 va_start (v,p);
3928 s = g (p, va_arg (v,int));
3929 va_end (v);
3930 return s;
3931 }
3932
3933 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3934 function prototypes and stuff, but not '\xHH' hex character constants.
3935 These don't provoke an error unfortunately, instead are silently treated
3936 as 'x'. The following induces an error, until -std is added to get
3937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3938 array size at least. It's necessary to write '\x00'==0 to get something
3939 that's true only with -std. */
3940 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3941
3942 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3943 inside strings and character constants. */
3944 #define FOO(x) 'x'
3945 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3946
3947 int test (int i, double x);
3948 struct s1 {int (*f) (int a);};
3949 struct s2 {int (*f) (double a);};
3950 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3951 int argc;
3952 char **argv;
3953 int
3954 main ()
3955 {
3956 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3963 do
3964 CC="$ac_save_CC $ac_arg"
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966 ac_cv_prog_cc_c89=$ac_arg
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext
3969 test "x$ac_cv_prog_cc_c89" != "xno" && break
3970 done
3971 rm -f conftest.$ac_ext
3972 CC=$ac_save_CC
3973
3974 fi
3975 # AC_CACHE_VAL
3976 case "x$ac_cv_prog_cc_c89" in
3977 x)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3979 $as_echo "none needed" >&6; } ;;
3980 xno)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3982 $as_echo "unsupported" >&6; } ;;
3983 *)
3984 CC="$CC $ac_cv_prog_cc_c89"
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3986 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3987 esac
3988 if test "x$ac_cv_prog_cc_c89" != xno; then :
3989
3990 fi
3991
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4004 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4005 if ${am_cv_prog_cc_c_o+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010
4011 int
4012 main ()
4013 {
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 # Make sure it works both with $CC and with simple cc.
4020 # Following AC_PROG_CC_C_O, we do the test twice because some
4021 # compilers refuse to overwrite an existing .o file with -o,
4022 # though they will create one.
4023 am_cv_prog_cc_c_o=yes
4024 for am_i in 1 2; do
4025 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4026 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } \
4030 && test -f conftest2.$ac_objext; then
4031 : OK
4032 else
4033 am_cv_prog_cc_c_o=no
4034 break
4035 fi
4036 done
4037 rm -f core conftest*
4038 unset am_i
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4041 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4042 if test "$am_cv_prog_cc_c_o" != yes; then
4043 # Losing compiler, so override with the script.
4044 # FIXME: It is wrong to rewrite CC.
4045 # But if we don't then we get into trouble of one sort or another.
4046 # A longer-term fix would be to have automake use am__CC in this case,
4047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4048 CC="$am_aux_dir/compile $CC"
4049 fi
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056 DEPDIR="${am__leading_dot}deps"
4057
4058 ac_config_commands="$ac_config_commands depfiles"
4059
4060
4061 am_make=${MAKE-make}
4062 cat > confinc << 'END'
4063 am__doit:
4064 @echo this is the am__doit target
4065 .PHONY: am__doit
4066 END
4067 # If we don't find an include directive, just comment out the code.
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4069 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4070 am__include="#"
4071 am__quote=
4072 _am_result=none
4073 # First try GNU make style include.
4074 echo "include confinc" > confmf
4075 # Ignore all kinds of additional output from 'make'.
4076 case `$am_make -s -f confmf 2> /dev/null` in #(
4077 *the\ am__doit\ target*)
4078 am__include=include
4079 am__quote=
4080 _am_result=GNU
4081 ;;
4082 esac
4083 # Now try BSD make style include.
4084 if test "$am__include" = "#"; then
4085 echo '.include "confinc"' > confmf
4086 case `$am_make -s -f confmf 2> /dev/null` in #(
4087 *the\ am__doit\ target*)
4088 am__include=.include
4089 am__quote="\""
4090 _am_result=BSD
4091 ;;
4092 esac
4093 fi
4094
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4097 $as_echo "$_am_result" >&6; }
4098 rm -f confinc confmf
4099
4100 # Check whether --enable-dependency-tracking was given.
4101 if test "${enable_dependency_tracking+set}" = set; then :
4102 enableval=$enable_dependency_tracking;
4103 fi
4104
4105 if test "x$enable_dependency_tracking" != xno; then
4106 am_depcomp="$ac_aux_dir/depcomp"
4107 AMDEPBACKSLASH='\'
4108 am__nodep='_no'
4109 fi
4110 if test "x$enable_dependency_tracking" != xno; then
4111 AMDEP_TRUE=
4112 AMDEP_FALSE='#'
4113 else
4114 AMDEP_TRUE='#'
4115 AMDEP_FALSE=
4116 fi
4117
4118
4119
4120 depcc="$CC" am_compiler_list=
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4123 $as_echo_n "checking dependency style of $depcc... " >&6; }
4124 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4128 # We make a subdir and do the tests there. Otherwise we can end up
4129 # making bogus files that we don't know about and never remove. For
4130 # instance it was reported that on HP-UX the gcc test will end up
4131 # making a dummy file named 'D' -- because '-MD' means "put the output
4132 # in D".
4133 rm -rf conftest.dir
4134 mkdir conftest.dir
4135 # Copy depcomp to subdir because otherwise we won't find it if we're
4136 # using a relative directory.
4137 cp "$am_depcomp" conftest.dir
4138 cd conftest.dir
4139 # We will build objects and dependencies in a subdirectory because
4140 # it helps to detect inapplicable dependency modes. For instance
4141 # both Tru64's cc and ICC support -MD to output dependencies as a
4142 # side effect of compilation, but ICC will put the dependencies in
4143 # the current directory while Tru64 will put them in the object
4144 # directory.
4145 mkdir sub
4146
4147 am_cv_CC_dependencies_compiler_type=none
4148 if test "$am_compiler_list" = ""; then
4149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4150 fi
4151 am__universal=false
4152 case " $depcc " in #(
4153 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4154 esac
4155
4156 for depmode in $am_compiler_list; do
4157 # Setup a source with many dependencies, because some compilers
4158 # like to wrap large dependency lists on column 80 (with \), and
4159 # we should not choose a depcomp mode which is confused by this.
4160 #
4161 # We need to recreate these files for each test, as the compiler may
4162 # overwrite some of them when testing with obscure command lines.
4163 # This happens at least with the AIX C compiler.
4164 : > sub/conftest.c
4165 for i in 1 2 3 4 5 6; do
4166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4168 # Solaris 10 /bin/sh.
4169 echo '/* dummy */' > sub/conftst$i.h
4170 done
4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4172
4173 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4174 # mode. It turns out that the SunPro C++ compiler does not properly
4175 # handle '-M -o', and we need to detect this. Also, some Intel
4176 # versions had trouble with output in subdirs.
4177 am__obj=sub/conftest.${OBJEXT-o}
4178 am__minus_obj="-o $am__obj"
4179 case $depmode in
4180 gcc)
4181 # This depmode causes a compiler race in universal mode.
4182 test "$am__universal" = false || continue
4183 ;;
4184 nosideeffect)
4185 # After this tag, mechanisms are not by side-effect, so they'll
4186 # only be used when explicitly requested.
4187 if test "x$enable_dependency_tracking" = xyes; then
4188 continue
4189 else
4190 break
4191 fi
4192 ;;
4193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4194 # This compiler won't grok '-c -o', but also, the minuso test has
4195 # not run yet. These depmodes are late enough in the game, and
4196 # so weak that their functioning should not be impacted.
4197 am__obj=conftest.${OBJEXT-o}
4198 am__minus_obj=
4199 ;;
4200 none) break ;;
4201 esac
4202 if depmode=$depmode \
4203 source=sub/conftest.c object=$am__obj \
4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4206 >/dev/null 2>conftest.err &&
4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4211 # icc doesn't choke on unknown options, it will just issue warnings
4212 # or remarks (even with -Werror). So we grep stderr for any message
4213 # that says an option was ignored or not supported.
4214 # When given -MP, icc 7.0 and 7.1 complain thusly:
4215 # icc: Command line warning: ignoring option '-M'; no argument required
4216 # The diagnosis changed in icc 8.0:
4217 # icc: Command line remark: option '-MP' not supported
4218 if (grep 'ignoring option' conftest.err ||
4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4220 am_cv_CC_dependencies_compiler_type=$depmode
4221 break
4222 fi
4223 fi
4224 done
4225
4226 cd ..
4227 rm -rf conftest.dir
4228 else
4229 am_cv_CC_dependencies_compiler_type=none
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4236
4237 if
4238 test "x$enable_dependency_tracking" != xno \
4239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4240 am__fastdepCC_TRUE=
4241 am__fastdepCC_FALSE='#'
4242 else
4243 am__fastdepCC_TRUE='#'
4244 am__fastdepCC_FALSE=
4245 fi
4246
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4254 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4255 # On Suns, sometimes $CPP names a directory.
4256 if test -n "$CPP" && test -d "$CPP"; then
4257 CPP=
4258 fi
4259 if test -z "$CPP"; then
4260 if ${ac_cv_prog_CPP+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 # Double quotes because CPP needs to be expanded
4264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4265 do
4266 ac_preproc_ok=false
4267 for ac_c_preproc_warn_flag in '' yes
4268 do
4269 # Use a header file that comes with gcc, so configuring glibc
4270 # with a fresh cross-compiler works.
4271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272 # <limits.h> exists even on freestanding compilers.
4273 # On the NeXT, cc -E runs the code through the compiler's parser,
4274 # not just through cpp. "Syntax error" is here to catch this case.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #ifdef __STDC__
4278 # include <limits.h>
4279 #else
4280 # include <assert.h>
4281 #endif
4282 Syntax error
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285
4286 else
4287 # Broken: fails on valid input.
4288 continue
4289 fi
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292 # OK, works on sane cases. Now check whether nonexistent headers
4293 # can be detected and how.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <ac_nonexistent.h>
4297 _ACEOF
4298 if ac_fn_c_try_cpp "$LINENO"; then :
4299 # Broken: success on invalid input.
4300 continue
4301 else
4302 # Passes both tests.
4303 ac_preproc_ok=:
4304 break
4305 fi
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4307
4308 done
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.i conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then :
4312 break
4313 fi
4314
4315 done
4316 ac_cv_prog_CPP=$CPP
4317
4318 fi
4319 CPP=$ac_cv_prog_CPP
4320 else
4321 ac_cv_prog_CPP=$CPP
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4324 $as_echo "$CPP" >&6; }
4325 ac_preproc_ok=false
4326 for ac_c_preproc_warn_flag in '' yes
4327 do
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error" is here to catch this case.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #ifdef __STDC__
4337 # include <limits.h>
4338 #else
4339 # include <assert.h>
4340 #endif
4341 Syntax error
4342 _ACEOF
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344
4345 else
4346 # Broken: fails on valid input.
4347 continue
4348 fi
4349 rm -f conftest.err conftest.i conftest.$ac_ext
4350
4351 # OK, works on sane cases. Now check whether nonexistent headers
4352 # can be detected and how.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4356 _ACEOF
4357 if ac_fn_c_try_cpp "$LINENO"; then :
4358 # Broken: success on invalid input.
4359 continue
4360 else
4361 # Passes both tests.
4362 ac_preproc_ok=:
4363 break
4364 fi
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4366
4367 done
4368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4369 rm -f conftest.i conftest.err conftest.$ac_ext
4370 if $ac_preproc_ok; then :
4371
4372 else
4373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4375 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4376 See \`config.log' for more details" "$LINENO" 5; }
4377 fi
4378
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384
4385 ac_ext=cpp
4386 ac_cpp='$CXXCPP $CPPFLAGS'
4387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4390 if test -z "$CXX"; then
4391 if test -n "$CCC"; then
4392 CXX=$CCC
4393 else
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4396 do
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if ${ac_cv_prog_CXX+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$CXX"; then
4405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 CXX=$ac_cv_prog_CXX
4425 if test -n "$CXX"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4427 $as_echo "$CXX" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434 test -n "$CXX" && break
4435 done
4436 fi
4437 if test -z "$CXX"; then
4438 ac_ct_CXX=$CXX
4439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4440 do
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$ac_ct_CXX"; then
4449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_CXX="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4469 if test -n "$ac_ct_CXX"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4471 $as_echo "$ac_ct_CXX" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477
4478 test -n "$ac_ct_CXX" && break
4479 done
4480
4481 if test "x$ac_ct_CXX" = x; then
4482 CXX="g++"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 CXX=$ac_ct_CXX
4491 fi
4492 fi
4493
4494 fi
4495 fi
4496 # Provide some information about the compiler.
4497 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4498 set X $ac_compile
4499 ac_compiler=$2
4500 for ac_option in --version -v -V -qversion; do
4501 { { ac_try="$ac_compiler $ac_option >&5"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4509 ac_status=$?
4510 if test -s conftest.err; then
4511 sed '10a\
4512 ... rest of stderr output deleted ...
4513 10q' conftest.err >conftest.er1
4514 cat conftest.er1 >&5
4515 fi
4516 rm -f conftest.er1 conftest.err
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }
4519 done
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4522 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4523 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528
4529 int
4530 main ()
4531 {
4532 #ifndef __GNUC__
4533 choke me
4534 #endif
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 ac_compiler_gnu=yes
4542 else
4543 ac_compiler_gnu=no
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4550 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4551 if test $ac_compiler_gnu = yes; then
4552 GXX=yes
4553 else
4554 GXX=
4555 fi
4556 ac_test_CXXFLAGS=${CXXFLAGS+set}
4557 ac_save_CXXFLAGS=$CXXFLAGS
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4559 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4560 if ${ac_cv_prog_cxx_g+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4564 ac_cxx_werror_flag=yes
4565 ac_cv_prog_cxx_g=no
4566 CXXFLAGS="-g"
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_cxx_try_compile "$LINENO"; then :
4579 ac_cv_prog_cxx_g=yes
4580 else
4581 CXXFLAGS=""
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584
4585 int
4586 main ()
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_cxx_try_compile "$LINENO"; then :
4594
4595 else
4596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4597 CXXFLAGS="-g"
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600
4601 int
4602 main ()
4603 {
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_cxx_try_compile "$LINENO"; then :
4610 ac_cv_prog_cxx_g=yes
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4620 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4621 if test "$ac_test_CXXFLAGS" = set; then
4622 CXXFLAGS=$ac_save_CXXFLAGS
4623 elif test $ac_cv_prog_cxx_g = yes; then
4624 if test "$GXX" = yes; then
4625 CXXFLAGS="-g -O2"
4626 else
4627 CXXFLAGS="-g"
4628 fi
4629 else
4630 if test "$GXX" = yes; then
4631 CXXFLAGS="-O2"
4632 else
4633 CXXFLAGS=
4634 fi
4635 fi
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642 depcc="$CXX" am_compiler_list=
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4645 $as_echo_n "checking dependency style of $depcc... " >&6; }
4646 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4650 # We make a subdir and do the tests there. Otherwise we can end up
4651 # making bogus files that we don't know about and never remove. For
4652 # instance it was reported that on HP-UX the gcc test will end up
4653 # making a dummy file named 'D' -- because '-MD' means "put the output
4654 # in D".
4655 rm -rf conftest.dir
4656 mkdir conftest.dir
4657 # Copy depcomp to subdir because otherwise we won't find it if we're
4658 # using a relative directory.
4659 cp "$am_depcomp" conftest.dir
4660 cd conftest.dir
4661 # We will build objects and dependencies in a subdirectory because
4662 # it helps to detect inapplicable dependency modes. For instance
4663 # both Tru64's cc and ICC support -MD to output dependencies as a
4664 # side effect of compilation, but ICC will put the dependencies in
4665 # the current directory while Tru64 will put them in the object
4666 # directory.
4667 mkdir sub
4668
4669 am_cv_CXX_dependencies_compiler_type=none
4670 if test "$am_compiler_list" = ""; then
4671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4672 fi
4673 am__universal=false
4674 case " $depcc " in #(
4675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4676 esac
4677
4678 for depmode in $am_compiler_list; do
4679 # Setup a source with many dependencies, because some compilers
4680 # like to wrap large dependency lists on column 80 (with \), and
4681 # we should not choose a depcomp mode which is confused by this.
4682 #
4683 # We need to recreate these files for each test, as the compiler may
4684 # overwrite some of them when testing with obscure command lines.
4685 # This happens at least with the AIX C compiler.
4686 : > sub/conftest.c
4687 for i in 1 2 3 4 5 6; do
4688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4690 # Solaris 10 /bin/sh.
4691 echo '/* dummy */' > sub/conftst$i.h
4692 done
4693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4694
4695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4696 # mode. It turns out that the SunPro C++ compiler does not properly
4697 # handle '-M -o', and we need to detect this. Also, some Intel
4698 # versions had trouble with output in subdirs.
4699 am__obj=sub/conftest.${OBJEXT-o}
4700 am__minus_obj="-o $am__obj"
4701 case $depmode in
4702 gcc)
4703 # This depmode causes a compiler race in universal mode.
4704 test "$am__universal" = false || continue
4705 ;;
4706 nosideeffect)
4707 # After this tag, mechanisms are not by side-effect, so they'll
4708 # only be used when explicitly requested.
4709 if test "x$enable_dependency_tracking" = xyes; then
4710 continue
4711 else
4712 break
4713 fi
4714 ;;
4715 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4716 # This compiler won't grok '-c -o', but also, the minuso test has
4717 # not run yet. These depmodes are late enough in the game, and
4718 # so weak that their functioning should not be impacted.
4719 am__obj=conftest.${OBJEXT-o}
4720 am__minus_obj=
4721 ;;
4722 none) break ;;
4723 esac
4724 if depmode=$depmode \
4725 source=sub/conftest.c object=$am__obj \
4726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4728 >/dev/null 2>conftest.err &&
4729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4733 # icc doesn't choke on unknown options, it will just issue warnings
4734 # or remarks (even with -Werror). So we grep stderr for any message
4735 # that says an option was ignored or not supported.
4736 # When given -MP, icc 7.0 and 7.1 complain thusly:
4737 # icc: Command line warning: ignoring option '-M'; no argument required
4738 # The diagnosis changed in icc 8.0:
4739 # icc: Command line remark: option '-MP' not supported
4740 if (grep 'ignoring option' conftest.err ||
4741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4742 am_cv_CXX_dependencies_compiler_type=$depmode
4743 break
4744 fi
4745 fi
4746 done
4747
4748 cd ..
4749 rm -rf conftest.dir
4750 else
4751 am_cv_CXX_dependencies_compiler_type=none
4752 fi
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4756 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4757 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4758
4759 if
4760 test "x$enable_dependency_tracking" != xno \
4761 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4762 am__fastdepCXX_TRUE=
4763 am__fastdepCXX_FALSE='#'
4764 else
4765 am__fastdepCXX_TRUE='#'
4766 am__fastdepCXX_FALSE=
4767 fi
4768
4769
4770
4771 case `pwd` in
4772 *\ * | *\ *)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4774 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4775 esac
4776
4777
4778
4779 macro_version='2.4.6'
4780 macro_revision='2.4.6'
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 ltmain=$ac_aux_dir/ltmain.sh
4795
4796 # Make sure we can run config.sub.
4797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4798 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4801 $as_echo_n "checking build system type... " >&6; }
4802 if ${ac_cv_build+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_build_alias=$build_alias
4806 test "x$ac_build_alias" = x &&
4807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4808 test "x$ac_build_alias" = x &&
4809 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4812
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4815 $as_echo "$ac_cv_build" >&6; }
4816 case $ac_cv_build in
4817 *-*-*) ;;
4818 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4819 esac
4820 build=$ac_cv_build
4821 ac_save_IFS=$IFS; IFS='-'
4822 set x $ac_cv_build
4823 shift
4824 build_cpu=$1
4825 build_vendor=$2
4826 shift; shift
4827 # Remember, the first character of IFS is used to create $*,
4828 # except with old shells:
4829 build_os=$*
4830 IFS=$ac_save_IFS
4831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4835 $as_echo_n "checking host system type... " >&6; }
4836 if ${ac_cv_host+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test "x$host_alias" = x; then
4840 ac_cv_host=$ac_cv_build
4841 else
4842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4844 fi
4845
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4848 $as_echo "$ac_cv_host" >&6; }
4849 case $ac_cv_host in
4850 *-*-*) ;;
4851 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4852 esac
4853 host=$ac_cv_host
4854 ac_save_IFS=$IFS; IFS='-'
4855 set x $ac_cv_host
4856 shift
4857 host_cpu=$1
4858 host_vendor=$2
4859 shift; shift
4860 # Remember, the first character of IFS is used to create $*,
4861 # except with old shells:
4862 host_os=$*
4863 IFS=$ac_save_IFS
4864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4865
4866
4867 # Backslashify metacharacters that are still active within
4868 # double-quoted strings.
4869 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4870
4871 # Same as above, but do not quote variable references.
4872 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4873
4874 # Sed substitution to delay expansion of an escaped shell variable in a
4875 # double_quote_subst'ed string.
4876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4877
4878 # Sed substitution to delay expansion of an escaped single quote.
4879 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4880
4881 # Sed substitution to avoid accidental globbing in evaled expressions
4882 no_glob_subst='s/\*/\\\*/g'
4883
4884 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4886 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4889 $as_echo_n "checking how to print strings... " >&6; }
4890 # Test print first, because it will be a builtin if present.
4891 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4892 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4893 ECHO='print -r --'
4894 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4895 ECHO='printf %s\n'
4896 else
4897 # Use this function as a fallback that always works.
4898 func_fallback_echo ()
4899 {
4900 eval 'cat <<_LTECHO_EOF
4901 $1
4902 _LTECHO_EOF'
4903 }
4904 ECHO='func_fallback_echo'
4905 fi
4906
4907 # func_echo_all arg...
4908 # Invoke $ECHO with all args, space-separated.
4909 func_echo_all ()
4910 {
4911 $ECHO ""
4912 }
4913
4914 case $ECHO in
4915 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4916 $as_echo "printf" >&6; } ;;
4917 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4918 $as_echo "print -r" >&6; } ;;
4919 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4920 $as_echo "cat" >&6; } ;;
4921 esac
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4937 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4938 if ${ac_cv_path_SED+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4942 for ac_i in 1 2 3 4 5 6 7; do
4943 ac_script="$ac_script$as_nl$ac_script"
4944 done
4945 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4946 { ac_script=; unset ac_script;}
4947 if test -z "$SED"; then
4948 ac_path_SED_found=false
4949 # Loop through the user's path and test for each of PROGNAME-LIST
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_prog in sed gsed; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4958 as_fn_executable_p "$ac_path_SED" || continue
4959 # Check for GNU ac_path_SED and select it if it is found.
4960 # Check for GNU $ac_path_SED
4961 case `"$ac_path_SED" --version 2>&1` in
4962 *GNU*)
4963 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4964 *)
4965 ac_count=0
4966 $as_echo_n 0123456789 >"conftest.in"
4967 while :
4968 do
4969 cat "conftest.in" "conftest.in" >"conftest.tmp"
4970 mv "conftest.tmp" "conftest.in"
4971 cp "conftest.in" "conftest.nl"
4972 $as_echo '' >> "conftest.nl"
4973 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975 as_fn_arith $ac_count + 1 && ac_count=$as_val
4976 if test $ac_count -gt ${ac_path_SED_max-0}; then
4977 # Best one so far, save it but keep looking for a better one
4978 ac_cv_path_SED="$ac_path_SED"
4979 ac_path_SED_max=$ac_count
4980 fi
4981 # 10*(2^10) chars as input seems more than enough
4982 test $ac_count -gt 10 && break
4983 done
4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 esac
4986
4987 $ac_path_SED_found && break 3
4988 done
4989 done
4990 done
4991 IFS=$as_save_IFS
4992 if test -z "$ac_cv_path_SED"; then
4993 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4994 fi
4995 else
4996 ac_cv_path_SED=$SED
4997 fi
4998
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5001 $as_echo "$ac_cv_path_SED" >&6; }
5002 SED="$ac_cv_path_SED"
5003 rm -f conftest.sed
5004
5005 test -z "$SED" && SED=sed
5006 Xsed="$SED -e 1s/^X//"
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5020 if ${ac_cv_path_GREP+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -z "$GREP"; then
5024 ac_path_GREP_found=false
5025 # Loop through the user's path and test for each of PROGNAME-LIST
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_prog in grep ggrep; do
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5034 as_fn_executable_p "$ac_path_GREP" || continue
5035 # Check for GNU ac_path_GREP and select it if it is found.
5036 # Check for GNU $ac_path_GREP
5037 case `"$ac_path_GREP" --version 2>&1` in
5038 *GNU*)
5039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5040 *)
5041 ac_count=0
5042 $as_echo_n 0123456789 >"conftest.in"
5043 while :
5044 do
5045 cat "conftest.in" "conftest.in" >"conftest.tmp"
5046 mv "conftest.tmp" "conftest.in"
5047 cp "conftest.in" "conftest.nl"
5048 $as_echo 'GREP' >> "conftest.nl"
5049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051 as_fn_arith $ac_count + 1 && ac_count=$as_val
5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5053 # Best one so far, save it but keep looking for a better one
5054 ac_cv_path_GREP="$ac_path_GREP"
5055 ac_path_GREP_max=$ac_count
5056 fi
5057 # 10*(2^10) chars as input seems more than enough
5058 test $ac_count -gt 10 && break
5059 done
5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061 esac
5062
5063 $ac_path_GREP_found && break 3
5064 done
5065 done
5066 done
5067 IFS=$as_save_IFS
5068 if test -z "$ac_cv_path_GREP"; then
5069 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 fi
5071 else
5072 ac_cv_path_GREP=$GREP
5073 fi
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5077 $as_echo "$ac_cv_path_GREP" >&6; }
5078 GREP="$ac_cv_path_GREP"
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5082 $as_echo_n "checking for egrep... " >&6; }
5083 if ${ac_cv_path_EGREP+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5087 then ac_cv_path_EGREP="$GREP -E"
5088 else
5089 if test -z "$EGREP"; then
5090 ac_path_EGREP_found=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_prog in egrep; do
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5100 as_fn_executable_p "$ac_path_EGREP" || continue
5101 # Check for GNU ac_path_EGREP and select it if it is found.
5102 # Check for GNU $ac_path_EGREP
5103 case `"$ac_path_EGREP" --version 2>&1` in
5104 *GNU*)
5105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5106 *)
5107 ac_count=0
5108 $as_echo_n 0123456789 >"conftest.in"
5109 while :
5110 do
5111 cat "conftest.in" "conftest.in" >"conftest.tmp"
5112 mv "conftest.tmp" "conftest.in"
5113 cp "conftest.in" "conftest.nl"
5114 $as_echo 'EGREP' >> "conftest.nl"
5115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117 as_fn_arith $ac_count + 1 && ac_count=$as_val
5118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5119 # Best one so far, save it but keep looking for a better one
5120 ac_cv_path_EGREP="$ac_path_EGREP"
5121 ac_path_EGREP_max=$ac_count
5122 fi
5123 # 10*(2^10) chars as input seems more than enough
5124 test $ac_count -gt 10 && break
5125 done
5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127 esac
5128
5129 $ac_path_EGREP_found && break 3
5130 done
5131 done
5132 done
5133 IFS=$as_save_IFS
5134 if test -z "$ac_cv_path_EGREP"; then
5135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 fi
5137 else
5138 ac_cv_path_EGREP=$EGREP
5139 fi
5140
5141 fi
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5144 $as_echo "$ac_cv_path_EGREP" >&6; }
5145 EGREP="$ac_cv_path_EGREP"
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5149 $as_echo_n "checking for fgrep... " >&6; }
5150 if ${ac_cv_path_FGREP+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5154 then ac_cv_path_FGREP="$GREP -F"
5155 else
5156 if test -z "$FGREP"; then
5157 ac_path_FGREP_found=false
5158 # Loop through the user's path and test for each of PROGNAME-LIST
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_prog in fgrep; do
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5167 as_fn_executable_p "$ac_path_FGREP" || continue
5168 # Check for GNU ac_path_FGREP and select it if it is found.
5169 # Check for GNU $ac_path_FGREP
5170 case `"$ac_path_FGREP" --version 2>&1` in
5171 *GNU*)
5172 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5173 *)
5174 ac_count=0
5175 $as_echo_n 0123456789 >"conftest.in"
5176 while :
5177 do
5178 cat "conftest.in" "conftest.in" >"conftest.tmp"
5179 mv "conftest.tmp" "conftest.in"
5180 cp "conftest.in" "conftest.nl"
5181 $as_echo 'FGREP' >> "conftest.nl"
5182 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5184 as_fn_arith $ac_count + 1 && ac_count=$as_val
5185 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5186 # Best one so far, save it but keep looking for a better one
5187 ac_cv_path_FGREP="$ac_path_FGREP"
5188 ac_path_FGREP_max=$ac_count
5189 fi
5190 # 10*(2^10) chars as input seems more than enough
5191 test $ac_count -gt 10 && break
5192 done
5193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5194 esac
5195
5196 $ac_path_FGREP_found && break 3
5197 done
5198 done
5199 done
5200 IFS=$as_save_IFS
5201 if test -z "$ac_cv_path_FGREP"; then
5202 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5203 fi
5204 else
5205 ac_cv_path_FGREP=$FGREP
5206 fi
5207
5208 fi
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5211 $as_echo "$ac_cv_path_FGREP" >&6; }
5212 FGREP="$ac_cv_path_FGREP"
5213
5214
5215 test -z "$GREP" && GREP=grep
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 # Check whether --with-gnu-ld was given.
5236 if test "${with_gnu_ld+set}" = set; then :
5237 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5238 else
5239 with_gnu_ld=no
5240 fi
5241
5242 ac_prog=ld
5243 if test yes = "$GCC"; then
5244 # Check if gcc -print-prog-name=ld gives a path.
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5246 $as_echo_n "checking for ld used by $CC... " >&6; }
5247 case $host in
5248 *-*-mingw*)
5249 # gcc leaves a trailing carriage return, which upsets mingw
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5251 *)
5252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5253 esac
5254 case $ac_prog in
5255 # Accept absolute paths.
5256 [\\/]* | ?:[\\/]*)
5257 re_direlt='/[^/][^/]*/\.\./'
5258 # Canonicalize the pathname of ld
5259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5262 done
5263 test -z "$LD" && LD=$ac_prog
5264 ;;
5265 "")
5266 # If it fails, then pretend we aren't using GCC.
5267 ac_prog=ld
5268 ;;
5269 *)
5270 # If it is relative, then search for the first ld in PATH.
5271 with_gnu_ld=unknown
5272 ;;
5273 esac
5274 elif test yes = "$with_gnu_ld"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5276 $as_echo_n "checking for GNU ld... " >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5279 $as_echo_n "checking for non-GNU ld... " >&6; }
5280 fi
5281 if ${lt_cv_path_LD+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -z "$LD"; then
5285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5286 for ac_dir in $PATH; do
5287 IFS=$lt_save_ifs
5288 test -z "$ac_dir" && ac_dir=.
5289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5290 lt_cv_path_LD=$ac_dir/$ac_prog
5291 # Check to see if the program is GNU ld. I'd rather use --version,
5292 # but apparently some variants of GNU ld only accept -v.
5293 # Break only if it was the GNU/non-GNU ld that we prefer.
5294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5295 *GNU* | *'with BFD'*)
5296 test no != "$with_gnu_ld" && break
5297 ;;
5298 *)
5299 test yes != "$with_gnu_ld" && break
5300 ;;
5301 esac
5302 fi
5303 done
5304 IFS=$lt_save_ifs
5305 else
5306 lt_cv_path_LD=$LD # Let the user override the test with a path.
5307 fi
5308 fi
5309
5310 LD=$lt_cv_path_LD
5311 if test -n "$LD"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5313 $as_echo "$LD" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5321 if ${lt_cv_prog_gnu_ld+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5325 case `$LD -v 2>&1 </dev/null` in
5326 *GNU* | *'with BFD'*)
5327 lt_cv_prog_gnu_ld=yes
5328 ;;
5329 *)
5330 lt_cv_prog_gnu_ld=no
5331 ;;
5332 esac
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5336 with_gnu_ld=$lt_cv_prog_gnu_ld
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5348 if ${lt_cv_path_NM+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$NM"; then
5352 # Let the user override the test.
5353 lt_cv_path_NM=$NM
5354 else
5355 lt_nm_to_check=${ac_tool_prefix}nm
5356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5357 lt_nm_to_check="$lt_nm_to_check nm"
5358 fi
5359 for lt_tmp_nm in $lt_nm_to_check; do
5360 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5362 IFS=$lt_save_ifs
5363 test -z "$ac_dir" && ac_dir=.
5364 tmp_nm=$ac_dir/$lt_tmp_nm
5365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5366 # Check to see if the nm accepts a BSD-compat flag.
5367 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5368 # nm: unknown option "B" ignored
5369 # Tru64's nm complains that /dev/null is an invalid object file
5370 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5371 case $build_os in
5372 mingw*) lt_bad_file=conftest.nm/nofile ;;
5373 *) lt_bad_file=/dev/null ;;
5374 esac
5375 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5376 *$lt_bad_file* | *'Invalid file or object type'*)
5377 lt_cv_path_NM="$tmp_nm -B"
5378 break 2
5379 ;;
5380 *)
5381 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5382 */dev/null*)
5383 lt_cv_path_NM="$tmp_nm -p"
5384 break 2
5385 ;;
5386 *)
5387 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5388 continue # so that we can try to find one that supports BSD flags
5389 ;;
5390 esac
5391 ;;
5392 esac
5393 fi
5394 done
5395 IFS=$lt_save_ifs
5396 done
5397 : ${lt_cv_path_NM=no}
5398 fi
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5401 $as_echo "$lt_cv_path_NM" >&6; }
5402 if test no != "$lt_cv_path_NM"; then
5403 NM=$lt_cv_path_NM
5404 else
5405 # Didn't find any BSD compatible name lister, look for dumpbin.
5406 if test -n "$DUMPBIN"; then :
5407 # Let the user override the test.
5408 else
5409 if test -n "$ac_tool_prefix"; then
5410 for ac_prog in dumpbin "link -dump"
5411 do
5412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_DUMPBIN+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$DUMPBIN"; then
5420 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 DUMPBIN=$ac_cv_prog_DUMPBIN
5440 if test -n "$DUMPBIN"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5442 $as_echo "$DUMPBIN" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 test -n "$DUMPBIN" && break
5450 done
5451 fi
5452 if test -z "$DUMPBIN"; then
5453 ac_ct_DUMPBIN=$DUMPBIN
5454 for ac_prog in dumpbin "link -dump"
5455 do
5456 # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$ac_ct_DUMPBIN"; then
5464 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5484 if test -n "$ac_ct_DUMPBIN"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5486 $as_echo "$ac_ct_DUMPBIN" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 test -n "$ac_ct_DUMPBIN" && break
5494 done
5495
5496 if test "x$ac_ct_DUMPBIN" = x; then
5497 DUMPBIN=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 DUMPBIN=$ac_ct_DUMPBIN
5506 fi
5507 fi
5508
5509 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5510 *COFF*)
5511 DUMPBIN="$DUMPBIN -symbols -headers"
5512 ;;
5513 *)
5514 DUMPBIN=:
5515 ;;
5516 esac
5517 fi
5518
5519 if test : != "$DUMPBIN"; then
5520 NM=$DUMPBIN
5521 fi
5522 fi
5523 test -z "$NM" && NM=nm
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5531 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5532 if ${lt_cv_nm_interface+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_nm_interface="BSD nm"
5536 echo "int some_variable = 0;" > conftest.$ac_ext
5537 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5538 (eval "$ac_compile" 2>conftest.err)
5539 cat conftest.err >&5
5540 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5541 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5542 cat conftest.err >&5
5543 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5544 cat conftest.out >&5
5545 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5546 lt_cv_nm_interface="MS dumpbin"
5547 fi
5548 rm -f conftest*
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5551 $as_echo "$lt_cv_nm_interface" >&6; }
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5554 $as_echo_n "checking whether ln -s works... " >&6; }
5555 LN_S=$as_ln_s
5556 if test "$LN_S" = "ln -s"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558 $as_echo "yes" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5561 $as_echo "no, using $LN_S" >&6; }
5562 fi
5563
5564 # find the maximum length of command line arguments
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5566 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5567 if ${lt_cv_sys_max_cmd_len+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 i=0
5571 teststring=ABCD
5572
5573 case $build_os in
5574 msdosdjgpp*)
5575 # On DJGPP, this test can blow up pretty badly due to problems in libc
5576 # (any single argument exceeding 2000 bytes causes a buffer overrun
5577 # during glob expansion). Even if it were fixed, the result of this
5578 # check would be larger than it should be.
5579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5580 ;;
5581
5582 gnu*)
5583 # Under GNU Hurd, this test is not required because there is
5584 # no limit to the length of command line arguments.
5585 # Libtool will interpret -1 as no limit whatsoever
5586 lt_cv_sys_max_cmd_len=-1;
5587 ;;
5588
5589 cygwin* | mingw* | cegcc*)
5590 # On Win9x/ME, this test blows up -- it succeeds, but takes
5591 # about 5 minutes as the teststring grows exponentially.
5592 # Worse, since 9x/ME are not pre-emptively multitasking,
5593 # you end up with a "frozen" computer, even though with patience
5594 # the test eventually succeeds (with a max line length of 256k).
5595 # Instead, let's just punt: use the minimum linelength reported by
5596 # all of the supported platforms: 8192 (on NT/2K/XP).
5597 lt_cv_sys_max_cmd_len=8192;
5598 ;;
5599
5600 mint*)
5601 # On MiNT this can take a long time and run out of memory.
5602 lt_cv_sys_max_cmd_len=8192;
5603 ;;
5604
5605 amigaos*)
5606 # On AmigaOS with pdksh, this test takes hours, literally.
5607 # So we just punt and use a minimum line length of 8192.
5608 lt_cv_sys_max_cmd_len=8192;
5609 ;;
5610
5611 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5612 # This has been around since 386BSD, at least. Likely further.
5613 if test -x /sbin/sysctl; then
5614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5615 elif test -x /usr/sbin/sysctl; then
5616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5617 else
5618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5619 fi
5620 # And add a safety zone
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5623 ;;
5624
5625 interix*)
5626 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5627 lt_cv_sys_max_cmd_len=196608
5628 ;;
5629
5630 os2*)
5631 # The test takes a long time on OS/2.
5632 lt_cv_sys_max_cmd_len=8192
5633 ;;
5634
5635 osf*)
5636 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5637 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5638 # nice to cause kernel panics so lets avoid the loop below.
5639 # First set a reasonable default.
5640 lt_cv_sys_max_cmd_len=16384
5641 #
5642 if test -x /sbin/sysconfig; then
5643 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5644 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5645 esac
5646 fi
5647 ;;
5648 sco3.2v5*)
5649 lt_cv_sys_max_cmd_len=102400
5650 ;;
5651 sysv5* | sco5v6* | sysv4.2uw2*)
5652 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5653 if test -n "$kargmax"; then
5654 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5655 else
5656 lt_cv_sys_max_cmd_len=32768
5657 fi
5658 ;;
5659 *)
5660 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5661 if test -n "$lt_cv_sys_max_cmd_len" && \
5662 test undefined != "$lt_cv_sys_max_cmd_len"; then
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5665 else
5666 # Make teststring a little bigger before we do anything with it.
5667 # a 1K string should be a reasonable start.
5668 for i in 1 2 3 4 5 6 7 8; do
5669 teststring=$teststring$teststring
5670 done
5671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5672 # If test is not a shell built-in, we'll probably end up computing a
5673 # maximum length that is only half of the actual maximum length, but
5674 # we can't tell.
5675 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5676 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5677 test 17 != "$i" # 1/2 MB should be enough
5678 do
5679 i=`expr $i + 1`
5680 teststring=$teststring$teststring
5681 done
5682 # Only check the string length outside the loop.
5683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5684 teststring=
5685 # Add a significant safety factor because C++ compilers can tack on
5686 # massive amounts of additional arguments before passing them to the
5687 # linker. It appears as though 1/2 is a usable value.
5688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5689 fi
5690 ;;
5691 esac
5692
5693 fi
5694
5695 if test -n "$lt_cv_sys_max_cmd_len"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5700 $as_echo "none" >&6; }
5701 fi
5702 max_cmd_len=$lt_cv_sys_max_cmd_len
5703
5704
5705
5706
5707
5708
5709 : ${CP="cp -f"}
5710 : ${MV="mv -f"}
5711 : ${RM="rm -f"}
5712
5713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5714 lt_unset=unset
5715 else
5716 lt_unset=false
5717 fi
5718
5719
5720
5721
5722
5723 # test EBCDIC or ASCII
5724 case `echo X|tr X '\101'` in
5725 A) # ASCII based system
5726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5727 lt_SP2NL='tr \040 \012'
5728 lt_NL2SP='tr \015\012 \040\040'
5729 ;;
5730 *) # EBCDIC based system
5731 lt_SP2NL='tr \100 \n'
5732 lt_NL2SP='tr \r\n \100\100'
5733 ;;
5734 esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5745 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5746 if ${lt_cv_to_host_file_cmd+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 case $host in
5750 *-*-mingw* )
5751 case $build in
5752 *-*-mingw* ) # actually msys
5753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5754 ;;
5755 *-*-cygwin* )
5756 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5757 ;;
5758 * ) # otherwise, assume *nix
5759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5760 ;;
5761 esac
5762 ;;
5763 *-*-cygwin* )
5764 case $build in
5765 *-*-mingw* ) # actually msys
5766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5767 ;;
5768 *-*-cygwin* )
5769 lt_cv_to_host_file_cmd=func_convert_file_noop
5770 ;;
5771 * ) # otherwise, assume *nix
5772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5773 ;;
5774 esac
5775 ;;
5776 * ) # unhandled hosts (and "normal" native builds)
5777 lt_cv_to_host_file_cmd=func_convert_file_noop
5778 ;;
5779 esac
5780
5781 fi
5782
5783 to_host_file_cmd=$lt_cv_to_host_file_cmd
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5785 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5786
5787
5788
5789
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5792 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5793 if ${lt_cv_to_tool_file_cmd+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 #assume ordinary cross tools, or native build.
5797 lt_cv_to_tool_file_cmd=func_convert_file_noop
5798 case $host in
5799 *-*-mingw* )
5800 case $build in
5801 *-*-mingw* ) # actually msys
5802 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5803 ;;
5804 esac
5805 ;;
5806 esac
5807
5808 fi
5809
5810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5812 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5813
5814
5815
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5819 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5820 if ${lt_cv_ld_reload_flag+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 lt_cv_ld_reload_flag='-r'
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5826 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5827 reload_flag=$lt_cv_ld_reload_flag
5828 case $reload_flag in
5829 "" | " "*) ;;
5830 *) reload_flag=" $reload_flag" ;;
5831 esac
5832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833 case $host_os in
5834 cygwin* | mingw* | pw32* | cegcc*)
5835 if test yes != "$GCC"; then
5836 reload_cmds=false
5837 fi
5838 ;;
5839 darwin*)
5840 if test yes = "$GCC"; then
5841 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5842 else
5843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844 fi
5845 ;;
5846 esac
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_OBJDUMP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -n "$OBJDUMP"; then
5865 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878 done
5879 done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 OBJDUMP=$ac_cv_prog_OBJDUMP
5885 if test -n "$OBJDUMP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5887 $as_echo "$OBJDUMP" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894 fi
5895 if test -z "$ac_cv_prog_OBJDUMP"; then
5896 ac_ct_OBJDUMP=$OBJDUMP
5897 # Extract the first word of "objdump", so it can be a program name with args.
5898 set dummy objdump; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$ac_ct_OBJDUMP"; then
5905 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5925 if test -n "$ac_ct_OBJDUMP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5927 $as_echo "$ac_ct_OBJDUMP" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933 if test "x$ac_ct_OBJDUMP" = x; then
5934 OBJDUMP="false"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942 OBJDUMP=$ac_ct_OBJDUMP
5943 fi
5944 else
5945 OBJDUMP="$ac_cv_prog_OBJDUMP"
5946 fi
5947
5948 test -z "$OBJDUMP" && OBJDUMP=objdump
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5959 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5960 if ${lt_cv_deplibs_check_method+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 lt_cv_file_magic_cmd='$MAGIC_CMD'
5964 lt_cv_file_magic_test_file=
5965 lt_cv_deplibs_check_method='unknown'
5966 # Need to set the preceding variable on all platforms that support
5967 # interlibrary dependencies.
5968 # 'none' -- dependencies not supported.
5969 # 'unknown' -- same as none, but documents that we really don't know.
5970 # 'pass_all' -- all dependencies passed with no checks.
5971 # 'test_compile' -- check by making test program.
5972 # 'file_magic [[regex]]' -- check by looking for files in library path
5973 # that responds to the $file_magic_cmd with a given extended regex.
5974 # If you have 'file' or equivalent on your system and you're not sure
5975 # whether 'pass_all' will *always* work, you probably want this one.
5976
5977 case $host_os in
5978 aix[4-9]*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982 beos*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986 bsdi[45]*)
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5988 lt_cv_file_magic_cmd='/usr/bin/file -L'
5989 lt_cv_file_magic_test_file=/shlib/libc.so
5990 ;;
5991
5992 cygwin*)
5993 # func_win32_libid is a shell function defined in ltmain.sh
5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5995 lt_cv_file_magic_cmd='func_win32_libid'
5996 ;;
5997
5998 mingw* | pw32*)
5999 # Base MSYS/MinGW do not provide the 'file' command needed by
6000 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6001 # unless we find 'file', for example because we are cross-compiling.
6002 if ( file / ) >/dev/null 2>&1; then
6003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6004 lt_cv_file_magic_cmd='func_win32_libid'
6005 else
6006 # Keep this pattern in sync with the one in func_win32_libid.
6007 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6009 fi
6010 ;;
6011
6012 cegcc*)
6013 # use the weaker test based on 'objdump'. See mingw*.
6014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6016 ;;
6017
6018 darwin* | rhapsody*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 freebsd* | dragonfly*)
6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6024 case $host_cpu in
6025 i*86 )
6026 # Not sure whether the presence of OpenBSD here was a mistake.
6027 # Let's accept both of them until this is cleared up.
6028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029 lt_cv_file_magic_cmd=/usr/bin/file
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6031 ;;
6032 esac
6033 else
6034 lt_cv_deplibs_check_method=pass_all
6035 fi
6036 ;;
6037
6038 haiku*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042 hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6044 case $host_cpu in
6045 ia64*)
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6048 ;;
6049 hppa*64*)
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6052 ;;
6053 *)
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6056 ;;
6057 esac
6058 ;;
6059
6060 interix[3-9]*)
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6063 ;;
6064
6065 irix5* | irix6* | nonstopux*)
6066 case $LD in
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6071 esac
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075 # This must be glibc/ELF.
6076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080 netbsd*)
6081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6085 fi
6086 ;;
6087
6088 newos6*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6092 ;;
6093
6094 *nto* | *qnx*)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097
6098 openbsd* | bitrig*)
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101 else
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103 fi
6104 ;;
6105
6106 osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110 rdos*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114 solaris*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122 sysv4 | sysv4.3*)
6123 case $host_vendor in
6124 motorola)
6125 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]'
6126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6127 ;;
6128 ncr)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131 sequent)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6134 ;;
6135 sni)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file=/lib/libc.so
6139 ;;
6140 siemens)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 pc)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146 esac
6147 ;;
6148
6149 tpf*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152 os2*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155 esac
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6159 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6160
6161 file_magic_glob=
6162 want_nocaseglob=no
6163 if test "$build" = "$host"; then
6164 case $host_os in
6165 mingw* | pw32*)
6166 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6167 want_nocaseglob=yes
6168 else
6169 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6170 fi
6171 ;;
6172 esac
6173 fi
6174
6175 file_magic_cmd=$lt_cv_file_magic_cmd
6176 deplibs_check_method=$lt_cv_deplibs_check_method
6177 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_DLLTOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$DLLTOOL"; then
6209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 DLLTOOL=$ac_cv_prog_DLLTOOL
6229 if test -n "$DLLTOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6231 $as_echo "$DLLTOOL" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_DLLTOOL"; then
6240 ac_ct_DLLTOOL=$DLLTOOL
6241 # Extract the first word of "dlltool", so it can be a program name with args.
6242 set dummy dlltool; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -n "$ac_ct_DLLTOOL"; then
6249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6269 if test -n "$ac_ct_DLLTOOL"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6271 $as_echo "$ac_ct_DLLTOOL" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277 if test "x$ac_ct_DLLTOOL" = x; then
6278 DLLTOOL="false"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286 DLLTOOL=$ac_ct_DLLTOOL
6287 fi
6288 else
6289 DLLTOOL="$ac_cv_prog_DLLTOOL"
6290 fi
6291
6292 test -z "$DLLTOOL" && DLLTOOL=dlltool
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6304 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6305 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 lt_cv_sharedlib_from_linklib_cmd='unknown'
6309
6310 case $host_os in
6311 cygwin* | mingw* | pw32* | cegcc*)
6312 # two different shell functions defined in ltmain.sh;
6313 # decide which one to use based on capabilities of $DLLTOOL
6314 case `$DLLTOOL --help 2>&1` in
6315 *--identify-strict*)
6316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6317 ;;
6318 *)
6319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6320 ;;
6321 esac
6322 ;;
6323 *)
6324 # fallback: assume linklib IS sharedlib
6325 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6326 ;;
6327 esac
6328
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6331 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6332 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6333 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6334
6335
6336
6337
6338
6339
6340
6341
6342 if test -n "$ac_tool_prefix"; then
6343 for ac_prog in ar
6344 do
6345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_AR+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$AR"; then
6353 ac_cv_prog_AR="$AR" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 AR=$ac_cv_prog_AR
6373 if test -n "$AR"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6375 $as_echo "$AR" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382 test -n "$AR" && break
6383 done
6384 fi
6385 if test -z "$AR"; then
6386 ac_ct_AR=$AR
6387 for ac_prog in ar
6388 do
6389 # Extract the first word of "$ac_prog", so it can be a program name with args.
6390 set dummy $ac_prog; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 if test -n "$ac_ct_AR"; then
6397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_ac_ct_AR="$ac_prog"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6417 if test -n "$ac_ct_AR"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6419 $as_echo "$ac_ct_AR" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425
6426 test -n "$ac_ct_AR" && break
6427 done
6428
6429 if test "x$ac_ct_AR" = x; then
6430 AR="false"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438 AR=$ac_ct_AR
6439 fi
6440 fi
6441
6442 : ${AR=ar}
6443 : ${AR_FLAGS=cru}
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6456 $as_echo_n "checking for archiver @FILE support... " >&6; }
6457 if ${lt_cv_ar_at_file+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 lt_cv_ar_at_file=no
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463
6464 int
6465 main ()
6466 {
6467
6468 ;
6469 return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 echo conftest.$ac_objext > conftest.lst
6474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6476 (eval $lt_ar_try) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }
6480 if test 0 -eq "$ac_status"; then
6481 # Ensure the archiver fails upon bogus file names.
6482 rm -f conftest.$ac_objext libconftest.a
6483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6484 (eval $lt_ar_try) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }
6488 if test 0 -ne "$ac_status"; then
6489 lt_cv_ar_at_file=@
6490 fi
6491 fi
6492 rm -f conftest.* libconftest.a
6493
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496
6497 fi
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6499 $as_echo "$lt_cv_ar_at_file" >&6; }
6500
6501 if test no = "$lt_cv_ar_at_file"; then
6502 archiver_list_spec=
6503 else
6504 archiver_list_spec=$lt_cv_ar_at_file
6505 fi
6506
6507
6508
6509
6510
6511
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}strip; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_STRIP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$STRIP"; then
6522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 STRIP=$ac_cv_prog_STRIP
6542 if test -n "$STRIP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6544 $as_echo "$STRIP" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 fi
6552 if test -z "$ac_cv_prog_STRIP"; then
6553 ac_ct_STRIP=$STRIP
6554 # Extract the first word of "strip", so it can be a program name with args.
6555 set dummy strip; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_STRIP"; then
6562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_STRIP="strip"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6582 if test -n "$ac_ct_STRIP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6584 $as_echo "$ac_ct_STRIP" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590 if test "x$ac_ct_STRIP" = x; then
6591 STRIP=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 STRIP=$ac_ct_STRIP
6600 fi
6601 else
6602 STRIP="$ac_cv_prog_STRIP"
6603 fi
6604
6605 test -z "$STRIP" && STRIP=:
6606
6607
6608
6609
6610
6611
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_RANLIB+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$RANLIB"; then
6621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 RANLIB=$ac_cv_prog_RANLIB
6641 if test -n "$RANLIB"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6643 $as_echo "$RANLIB" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_RANLIB"; then
6652 ac_ct_RANLIB=$RANLIB
6653 # Extract the first word of "ranlib", so it can be a program name with args.
6654 set dummy ranlib; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$ac_ct_RANLIB"; then
6661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_RANLIB="ranlib"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6681 if test -n "$ac_ct_RANLIB"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6683 $as_echo "$ac_ct_RANLIB" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689 if test "x$ac_ct_RANLIB" = x; then
6690 RANLIB=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 RANLIB=$ac_ct_RANLIB
6699 fi
6700 else
6701 RANLIB="$ac_cv_prog_RANLIB"
6702 fi
6703
6704 test -z "$RANLIB" && RANLIB=:
6705
6706
6707
6708
6709
6710
6711 # Determine commands to create old-style static archives.
6712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6713 old_postinstall_cmds='chmod 644 $oldlib'
6714 old_postuninstall_cmds=
6715
6716 if test -n "$RANLIB"; then
6717 case $host_os in
6718 bitrig* | openbsd*)
6719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6720 ;;
6721 *)
6722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6723 ;;
6724 esac
6725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6726 fi
6727
6728 case $host_os in
6729 darwin*)
6730 lock_old_archive_extraction=yes ;;
6731 *)
6732 lock_old_archive_extraction=no ;;
6733 esac
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773 # If no C compiler was specified, use CC.
6774 LTCC=${LTCC-"$CC"}
6775
6776 # If no C compiler flags were specified, use CFLAGS.
6777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6778
6779 # Allow CC to be a program name with arguments.
6780 compiler=$CC
6781
6782
6783 # Check for command to grab the raw symbol name followed by C symbol from nm.
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6785 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6786 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789
6790 # These are sane defaults that work on at least a few old systems.
6791 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6792
6793 # Character class describing NM global symbol codes.
6794 symcode='[BCDEGRST]'
6795
6796 # Regexp to match symbols that can be accessed directly from C.
6797 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6798
6799 # Define system-specific variables.
6800 case $host_os in
6801 aix*)
6802 symcode='[BCDT]'
6803 ;;
6804 cygwin* | mingw* | pw32* | cegcc*)
6805 symcode='[ABCDGISTW]'
6806 ;;
6807 hpux*)
6808 if test ia64 = "$host_cpu"; then
6809 symcode='[ABCDEGRST]'
6810 fi
6811 ;;
6812 irix* | nonstopux*)
6813 symcode='[BCDEGRST]'
6814 ;;
6815 osf*)
6816 symcode='[BCDEGQRST]'
6817 ;;
6818 solaris*)
6819 symcode='[BDRT]'
6820 ;;
6821 sco3.2v5*)
6822 symcode='[DT]'
6823 ;;
6824 sysv4.2uw2*)
6825 symcode='[DT]'
6826 ;;
6827 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6828 symcode='[ABDT]'
6829 ;;
6830 sysv4)
6831 symcode='[DFNSTU]'
6832 ;;
6833 esac
6834
6835 # If we're using GNU nm, then use its standard symbol codes.
6836 case `$NM -V 2>&1` in
6837 *GNU* | *'with BFD'*)
6838 symcode='[ABCDGIRSTW]' ;;
6839 esac
6840
6841 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6842 # Gets list of data symbols to import.
6843 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6844 # Adjust the below global symbol transforms to fixup imported variables.
6845 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6846 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6847 lt_c_name_lib_hook="\
6848 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6849 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6850 else
6851 # Disable hooks by default.
6852 lt_cv_sys_global_symbol_to_import=
6853 lt_cdecl_hook=
6854 lt_c_name_hook=
6855 lt_c_name_lib_hook=
6856 fi
6857
6858 # Transform an extracted symbol line into a proper C declaration.
6859 # Some systems (esp. on ia64) link data and code symbols differently,
6860 # so use this general approach.
6861 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6862 $lt_cdecl_hook\
6863 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6864 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6865
6866 # Transform an extracted symbol line into symbol name and symbol address
6867 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6868 $lt_c_name_hook\
6869 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6870 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6871
6872 # Transform an extracted symbol line into symbol name with lib prefix and
6873 # symbol address.
6874 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6875 $lt_c_name_lib_hook\
6876 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6877 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6878 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6879
6880 # Handle CRLF in mingw tool chain
6881 opt_cr=
6882 case $build_os in
6883 mingw*)
6884 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885 ;;
6886 esac
6887
6888 # Try without a prefix underscore, then with it.
6889 for ac_symprfx in "" "_"; do
6890
6891 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6892 symxfrm="\\1 $ac_symprfx\\2 \\2"
6893
6894 # Write the raw and C identifiers.
6895 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6896 # Fake it for dumpbin and say T for any non-static function,
6897 # D for any global variable and I for any imported variable.
6898 # Also find C++ and __fastcall symbols from MSVC++,
6899 # which start with @ or ?.
6900 lt_cv_sys_global_symbol_pipe="$AWK '"\
6901 " {last_section=section; section=\$ 3};"\
6902 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6903 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6904 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6905 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6906 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6907 " \$ 0!~/External *\|/{next};"\
6908 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6909 " {if(hide[section]) next};"\
6910 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6911 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6912 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6913 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6914 " ' prfx=^$ac_symprfx"
6915 else
6916 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6917 fi
6918 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6919
6920 # Check to see that the pipe works correctly.
6921 pipe_works=no
6922
6923 rm -f conftest*
6924 cat > conftest.$ac_ext <<_LT_EOF
6925 #ifdef __cplusplus
6926 extern "C" {
6927 #endif
6928 char nm_test_var;
6929 void nm_test_func(void);
6930 void nm_test_func(void){}
6931 #ifdef __cplusplus
6932 }
6933 #endif
6934 int main(){nm_test_var='a';nm_test_func();return(0);}
6935 _LT_EOF
6936
6937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938 (eval $ac_compile) 2>&5
6939 ac_status=$?
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 # Now try to grab the symbols.
6943 nlist=conftest.nm
6944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6945 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6946 ac_status=$?
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948 test $ac_status = 0; } && test -s "$nlist"; then
6949 # Try sorting and uniquifying the output.
6950 if sort "$nlist" | uniq > "$nlist"T; then
6951 mv -f "$nlist"T "$nlist"
6952 else
6953 rm -f "$nlist"T
6954 fi
6955
6956 # Make sure that we snagged all the symbols we need.
6957 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6958 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6959 cat <<_LT_EOF > conftest.$ac_ext
6960 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6961 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6962 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6963 relocations are performed -- see ld's documentation on pseudo-relocs. */
6964 # define LT_DLSYM_CONST
6965 #elif defined __osf__
6966 /* This system does not cope well with relocations in const data. */
6967 # define LT_DLSYM_CONST
6968 #else
6969 # define LT_DLSYM_CONST const
6970 #endif
6971
6972 #ifdef __cplusplus
6973 extern "C" {
6974 #endif
6975
6976 _LT_EOF
6977 # Now generate the symbol file.
6978 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6979
6980 cat <<_LT_EOF >> conftest.$ac_ext
6981
6982 /* The mapping between symbol names and symbols. */
6983 LT_DLSYM_CONST struct {
6984 const char *name;
6985 void *address;
6986 }
6987 lt__PROGRAM__LTX_preloaded_symbols[] =
6988 {
6989 { "@PROGRAM@", (void *) 0 },
6990 _LT_EOF
6991 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6992 cat <<\_LT_EOF >> conftest.$ac_ext
6993 {0, (void *) 0}
6994 };
6995
6996 /* This works around a problem in FreeBSD linker */
6997 #ifdef FREEBSD_WORKAROUND
6998 static const void *lt_preloaded_setup() {
6999 return lt__PROGRAM__LTX_preloaded_symbols;
7000 }
7001 #endif
7002
7003 #ifdef __cplusplus
7004 }
7005 #endif
7006 _LT_EOF
7007 # Now try linking the two files.
7008 mv conftest.$ac_objext conftstm.$ac_objext
7009 lt_globsym_save_LIBS=$LIBS
7010 lt_globsym_save_CFLAGS=$CFLAGS
7011 LIBS=conftstm.$ac_objext
7012 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7014 (eval $ac_link) 2>&5
7015 ac_status=$?
7016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7018 pipe_works=yes
7019 fi
7020 LIBS=$lt_globsym_save_LIBS
7021 CFLAGS=$lt_globsym_save_CFLAGS
7022 else
7023 echo "cannot find nm_test_func in $nlist" >&5
7024 fi
7025 else
7026 echo "cannot find nm_test_var in $nlist" >&5
7027 fi
7028 else
7029 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7030 fi
7031 else
7032 echo "$progname: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7034 fi
7035 rm -rf conftest* conftst*
7036
7037 # Do not use the global_symbol_pipe unless it works.
7038 if test yes = "$pipe_works"; then
7039 break
7040 else
7041 lt_cv_sys_global_symbol_pipe=
7042 fi
7043 done
7044
7045 fi
7046
7047 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7048 lt_cv_sys_global_symbol_to_cdecl=
7049 fi
7050 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7052 $as_echo "failed" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7055 $as_echo "ok" >&6; }
7056 fi
7057
7058 # Response file support.
7059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060 nm_file_list_spec='@'
7061 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7062 nm_file_list_spec='@'
7063 fi
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7102 $as_echo_n "checking for sysroot... " >&6; }
7103
7104 # Check whether --with-sysroot was given.
7105 if test "${with_sysroot+set}" = set; then :
7106 withval=$with_sysroot;
7107 else
7108 with_sysroot=no
7109 fi
7110
7111
7112 lt_sysroot=
7113 case $with_sysroot in #(
7114 yes)
7115 if test yes = "$GCC"; then
7116 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7117 fi
7118 ;; #(
7119 /*)
7120 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7121 ;; #(
7122 no|'')
7123 ;; #(
7124 *)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7126 $as_echo "$with_sysroot" >&6; }
7127 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7128 ;;
7129 esac
7130
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7132 $as_echo "${lt_sysroot:-no}" >&6; }
7133
7134
7135
7136
7137
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7139 $as_echo_n "checking for a working dd... " >&6; }
7140 if ${ac_cv_path_lt_DD+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 printf 0123456789abcdef0123456789abcdef >conftest.i
7144 cat conftest.i conftest.i >conftest2.i
7145 : ${lt_DD:=$DD}
7146 if test -z "$lt_DD"; then
7147 ac_path_lt_DD_found=false
7148 # Loop through the user's path and test for each of PROGNAME-LIST
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_prog in dd; do
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7157 as_fn_executable_p "$ac_path_lt_DD" || continue
7158 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7159 cmp -s conftest.i conftest.out \
7160 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7161 fi
7162 $ac_path_lt_DD_found && break 3
7163 done
7164 done
7165 done
7166 IFS=$as_save_IFS
7167 if test -z "$ac_cv_path_lt_DD"; then
7168 :
7169 fi
7170 else
7171 ac_cv_path_lt_DD=$lt_DD
7172 fi
7173
7174 rm -f conftest.i conftest2.i conftest.out
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7177 $as_echo "$ac_cv_path_lt_DD" >&6; }
7178
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7181 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7182 if ${lt_cv_truncate_bin+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 printf 0123456789abcdef0123456789abcdef >conftest.i
7186 cat conftest.i conftest.i >conftest2.i
7187 lt_cv_truncate_bin=
7188 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7189 cmp -s conftest.i conftest.out \
7190 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7191 fi
7192 rm -f conftest.i conftest2.i conftest.out
7193 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7196 $as_echo "$lt_cv_truncate_bin" >&6; }
7197
7198
7199
7200
7201
7202
7203
7204 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7205 func_cc_basename ()
7206 {
7207 for cc_temp in $*""; do
7208 case $cc_temp in
7209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7211 \-*) ;;
7212 *) break;;
7213 esac
7214 done
7215 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7216 }
7217
7218 # Check whether --enable-libtool-lock was given.
7219 if test "${enable_libtool_lock+set}" = set; then :
7220 enableval=$enable_libtool_lock;
7221 fi
7222
7223 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7224
7225 # Some flags need to be propagated to the compiler or linker for good
7226 # libtool support.
7227 case $host in
7228 ia64-*-hpux*)
7229 # Find out what ABI is being produced by ac_compile, and set mode
7230 # options accordingly.
7231 echo 'int i;' > conftest.$ac_ext
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 case `/usr/bin/file conftest.$ac_objext` in
7238 *ELF-32*)
7239 HPUX_IA64_MODE=32
7240 ;;
7241 *ELF-64*)
7242 HPUX_IA64_MODE=64
7243 ;;
7244 esac
7245 fi
7246 rm -rf conftest*
7247 ;;
7248 *-*-irix6*)
7249 # Find out what ABI is being produced by ac_compile, and set linker
7250 # options accordingly.
7251 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253 (eval $ac_compile) 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 if test yes = "$lt_cv_prog_gnu_ld"; then
7258 case `/usr/bin/file conftest.$ac_objext` in
7259 *32-bit*)
7260 LD="${LD-ld} -melf32bsmip"
7261 ;;
7262 *N32*)
7263 LD="${LD-ld} -melf32bmipn32"
7264 ;;
7265 *64-bit*)
7266 LD="${LD-ld} -melf64bmip"
7267 ;;
7268 esac
7269 else
7270 case `/usr/bin/file conftest.$ac_objext` in
7271 *32-bit*)
7272 LD="${LD-ld} -32"
7273 ;;
7274 *N32*)
7275 LD="${LD-ld} -n32"
7276 ;;
7277 *64-bit*)
7278 LD="${LD-ld} -64"
7279 ;;
7280 esac
7281 fi
7282 fi
7283 rm -rf conftest*
7284 ;;
7285
7286 mips64*-*linux*)
7287 # Find out what ABI is being produced by ac_compile, and set linker
7288 # options accordingly.
7289 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7291 (eval $ac_compile) 2>&5
7292 ac_status=$?
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; }; then
7295 emul=elf
7296 case `/usr/bin/file conftest.$ac_objext` in
7297 *32-bit*)
7298 emul="${emul}32"
7299 ;;
7300 *64-bit*)
7301 emul="${emul}64"
7302 ;;
7303 esac
7304 case `/usr/bin/file conftest.$ac_objext` in
7305 *MSB*)
7306 emul="${emul}btsmip"
7307 ;;
7308 *LSB*)
7309 emul="${emul}ltsmip"
7310 ;;
7311 esac
7312 case `/usr/bin/file conftest.$ac_objext` in
7313 *N32*)
7314 emul="${emul}n32"
7315 ;;
7316 esac
7317 LD="${LD-ld} -m $emul"
7318 fi
7319 rm -rf conftest*
7320 ;;
7321
7322 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7323 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7324 # Find out what ABI is being produced by ac_compile, and set linker
7325 # options accordingly. Note that the listed cases only cover the
7326 # situations where additional linker options are needed (such as when
7327 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7328 # vice versa); the common cases where no linker options are needed do
7329 # not appear in the list.
7330 echo 'int i;' > conftest.$ac_ext
7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7332 (eval $ac_compile) 2>&5
7333 ac_status=$?
7334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335 test $ac_status = 0; }; then
7336 case `/usr/bin/file conftest.o` in
7337 *32-bit*)
7338 case $host in
7339 x86_64-*kfreebsd*-gnu)
7340 LD="${LD-ld} -m elf_i386_fbsd"
7341 ;;
7342 x86_64-*linux*)
7343 case `/usr/bin/file conftest.o` in
7344 *x86-64*)
7345 LD="${LD-ld} -m elf32_x86_64"
7346 ;;
7347 *)
7348 LD="${LD-ld} -m elf_i386"
7349 ;;
7350 esac
7351 ;;
7352 powerpc64le-*linux*)
7353 LD="${LD-ld} -m elf32lppclinux"
7354 ;;
7355 powerpc64-*linux*)
7356 LD="${LD-ld} -m elf32ppclinux"
7357 ;;
7358 s390x-*linux*)
7359 LD="${LD-ld} -m elf_s390"
7360 ;;
7361 sparc64-*linux*)
7362 LD="${LD-ld} -m elf32_sparc"
7363 ;;
7364 esac
7365 ;;
7366 *64-bit*)
7367 case $host in
7368 x86_64-*kfreebsd*-gnu)
7369 LD="${LD-ld} -m elf_x86_64_fbsd"
7370 ;;
7371 x86_64-*linux*)
7372 LD="${LD-ld} -m elf_x86_64"
7373 ;;
7374 powerpcle-*linux*)
7375 LD="${LD-ld} -m elf64lppc"
7376 ;;
7377 powerpc-*linux*)
7378 LD="${LD-ld} -m elf64ppc"
7379 ;;
7380 s390*-*linux*|s390*-*tpf*)
7381 LD="${LD-ld} -m elf64_s390"
7382 ;;
7383 sparc*-*linux*)
7384 LD="${LD-ld} -m elf64_sparc"
7385 ;;
7386 esac
7387 ;;
7388 esac
7389 fi
7390 rm -rf conftest*
7391 ;;
7392
7393 *-*-sco3.2v5*)
7394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7395 SAVE_CFLAGS=$CFLAGS
7396 CFLAGS="$CFLAGS -belf"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7398 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7399 if ${lt_cv_cc_needs_belf+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 ac_ext=c
7403 ac_cpp='$CPP $CPPFLAGS'
7404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410
7411 int
7412 main ()
7413 {
7414
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 lt_cv_cc_needs_belf=yes
7421 else
7422 lt_cv_cc_needs_belf=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7434 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7435 if test yes != "$lt_cv_cc_needs_belf"; then
7436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7437 CFLAGS=$SAVE_CFLAGS
7438 fi
7439 ;;
7440 *-*solaris*)
7441 # Find out what ABI is being produced by ac_compile, and set linker
7442 # options accordingly.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `/usr/bin/file conftest.o` in
7450 *64-bit*)
7451 case $lt_cv_prog_gnu_ld in
7452 yes*)
7453 case $host in
7454 i?86-*-solaris*|x86_64-*-solaris*)
7455 LD="${LD-ld} -m elf_x86_64"
7456 ;;
7457 sparc*-*-solaris*)
7458 LD="${LD-ld} -m elf64_sparc"
7459 ;;
7460 esac
7461 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7462 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7463 LD=${LD-ld}_sol2
7464 fi
7465 ;;
7466 *)
7467 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7468 LD="${LD-ld} -64"
7469 fi
7470 ;;
7471 esac
7472 ;;
7473 esac
7474 fi
7475 rm -rf conftest*
7476 ;;
7477 esac
7478
7479 need_locks=$enable_libtool_lock
7480
7481 if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}mt; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 if test -n "$MANIFEST_TOOL"; then
7490 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7510 if test -n "$MANIFEST_TOOL"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7512 $as_echo "$MANIFEST_TOOL" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518
7519 fi
7520 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7521 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7522 # Extract the first word of "mt", so it can be a program name with args.
7523 set dummy mt; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 if test -n "$ac_ct_MANIFEST_TOOL"; then
7530 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7550 if test -n "$ac_ct_MANIFEST_TOOL"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7552 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7559 MANIFEST_TOOL=":"
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7568 fi
7569 else
7570 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7571 fi
7572
7573 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7575 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7576 if ${lt_cv_path_mainfest_tool+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 lt_cv_path_mainfest_tool=no
7580 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7581 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7582 cat conftest.err >&5
7583 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7584 lt_cv_path_mainfest_tool=yes
7585 fi
7586 rm -f conftest*
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7589 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7590 if test yes != "$lt_cv_path_mainfest_tool"; then
7591 MANIFEST_TOOL=:
7592 fi
7593
7594
7595
7596
7597
7598
7599 case $host_os in
7600 rhapsody* | darwin*)
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$DSYMUTIL"; then
7610 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623 done
7624 done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7630 if test -n "$DSYMUTIL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7632 $as_echo "$DSYMUTIL" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 fi
7640 if test -z "$ac_cv_prog_DSYMUTIL"; then
7641 ac_ct_DSYMUTIL=$DSYMUTIL
7642 # Extract the first word of "dsymutil", so it can be a program name with args.
7643 set dummy dsymutil; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 if test -n "$ac_ct_DSYMUTIL"; then
7650 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7670 if test -n "$ac_ct_DSYMUTIL"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7672 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678 if test "x$ac_ct_DSYMUTIL" = x; then
7679 DSYMUTIL=":"
7680 else
7681 case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7686 esac
7687 DSYMUTIL=$ac_ct_DSYMUTIL
7688 fi
7689 else
7690 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7691 fi
7692
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_NMEDIT+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 if test -n "$NMEDIT"; then
7702 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7714 fi
7715 done
7716 done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 NMEDIT=$ac_cv_prog_NMEDIT
7722 if test -n "$NMEDIT"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7724 $as_echo "$NMEDIT" >&6; }
7725 else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730
7731 fi
7732 if test -z "$ac_cv_prog_NMEDIT"; then
7733 ac_ct_NMEDIT=$NMEDIT
7734 # Extract the first word of "nmedit", so it can be a program name with args.
7735 set dummy nmedit; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 if test -n "$ac_ct_NMEDIT"; then
7742 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7762 if test -n "$ac_ct_NMEDIT"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7764 $as_echo "$ac_ct_NMEDIT" >&6; }
7765 else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7768 fi
7769
7770 if test "x$ac_ct_NMEDIT" = x; then
7771 NMEDIT=":"
7772 else
7773 case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779 NMEDIT=$ac_ct_NMEDIT
7780 fi
7781 else
7782 NMEDIT="$ac_cv_prog_NMEDIT"
7783 fi
7784
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7787 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_LIPO+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 if test -n "$LIPO"; then
7794 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7806 fi
7807 done
7808 done
7809 IFS=$as_save_IFS
7810
7811 fi
7812 fi
7813 LIPO=$ac_cv_prog_LIPO
7814 if test -n "$LIPO"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7816 $as_echo "$LIPO" >&6; }
7817 else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822
7823 fi
7824 if test -z "$ac_cv_prog_LIPO"; then
7825 ac_ct_LIPO=$LIPO
7826 # Extract the first word of "lipo", so it can be a program name with args.
7827 set dummy lipo; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 if test -n "$ac_ct_LIPO"; then
7834 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_ac_ct_LIPO="lipo"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847 done
7848 done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7854 if test -n "$ac_ct_LIPO"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7856 $as_echo "$ac_ct_LIPO" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 fi
7861
7862 if test "x$ac_ct_LIPO" = x; then
7863 LIPO=":"
7864 else
7865 case $cross_compiling:$ac_tool_warned in
7866 yes:)
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869 ac_tool_warned=yes ;;
7870 esac
7871 LIPO=$ac_ct_LIPO
7872 fi
7873 else
7874 LIPO="$ac_cv_prog_LIPO"
7875 fi
7876
7877 if test -n "$ac_tool_prefix"; then
7878 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7879 set dummy ${ac_tool_prefix}otool; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_OTOOL+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -n "$OTOOL"; then
7886 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 OTOOL=$ac_cv_prog_OTOOL
7906 if test -n "$OTOOL"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7908 $as_echo "$OTOOL" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915 fi
7916 if test -z "$ac_cv_prog_OTOOL"; then
7917 ac_ct_OTOOL=$OTOOL
7918 # Extract the first word of "otool", so it can be a program name with args.
7919 set dummy otool; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$ac_ct_OTOOL"; then
7926 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_ac_ct_OTOOL="otool"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7946 if test -n "$ac_ct_OTOOL"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7948 $as_echo "$ac_ct_OTOOL" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7952 fi
7953
7954 if test "x$ac_ct_OTOOL" = x; then
7955 OTOOL=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958 yes:)
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963 OTOOL=$ac_ct_OTOOL
7964 fi
7965 else
7966 OTOOL="$ac_cv_prog_OTOOL"
7967 fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_OTOOL64+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 if test -n "$OTOOL64"; then
7978 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 fi
7996 fi
7997 OTOOL64=$ac_cv_prog_OTOOL64
7998 if test -n "$OTOOL64"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8000 $as_echo "$OTOOL64" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 fi
8005
8006
8007 fi
8008 if test -z "$ac_cv_prog_OTOOL64"; then
8009 ac_ct_OTOOL64=$OTOOL64
8010 # Extract the first word of "otool64", so it can be a program name with args.
8011 set dummy otool64; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 if test -n "$ac_ct_OTOOL64"; then
8018 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_ac_ct_OTOOL64="otool64"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035 fi
8036 fi
8037 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8038 if test -n "$ac_ct_OTOOL64"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8040 $as_echo "$ac_ct_OTOOL64" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045
8046 if test "x$ac_ct_OTOOL64" = x; then
8047 OTOOL64=":"
8048 else
8049 case $cross_compiling:$ac_tool_warned in
8050 yes:)
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8053 ac_tool_warned=yes ;;
8054 esac
8055 OTOOL64=$ac_ct_OTOOL64
8056 fi
8057 else
8058 OTOOL64="$ac_cv_prog_OTOOL64"
8059 fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8088 $as_echo_n "checking for -single_module linker flag... " >&6; }
8089 if ${lt_cv_apple_cc_single_mod+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_apple_cc_single_mod=no
8093 if test -z "$LT_MULTI_MODULE"; then
8094 # By default we will add the -single_module flag. You can override
8095 # by either setting the environment variable LT_MULTI_MODULE
8096 # non-empty at configure time, or by adding -multi_module to the
8097 # link flags.
8098 rm -rf libconftest.dylib*
8099 echo "int foo(void){return 1;}" > conftest.c
8100 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8101 -dynamiclib -Wl,-single_module conftest.c" >&5
8102 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8103 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8104 _lt_result=$?
8105 # If there is a non-empty error log, and "single_module"
8106 # appears in it, assume the flag caused a linker warning
8107 if test -s conftest.err && $GREP single_module conftest.err; then
8108 cat conftest.err >&5
8109 # Otherwise, if the output was created with a 0 exit code from
8110 # the compiler, it worked.
8111 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8112 lt_cv_apple_cc_single_mod=yes
8113 else
8114 cat conftest.err >&5
8115 fi
8116 rm -rf libconftest.dylib*
8117 rm -f conftest.*
8118 fi
8119 fi
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8121 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8122
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8124 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8125 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 lt_cv_ld_exported_symbols_list=no
8129 save_LDFLAGS=$LDFLAGS
8130 echo "_main" > conftest.sym
8131 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134
8135 int
8136 main ()
8137 {
8138
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_link "$LINENO"; then :
8144 lt_cv_ld_exported_symbols_list=yes
8145 else
8146 lt_cv_ld_exported_symbols_list=no
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 LDFLAGS=$save_LDFLAGS
8151
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8154 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8157 $as_echo_n "checking for -force_load linker flag... " >&6; }
8158 if ${lt_cv_ld_force_load+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 lt_cv_ld_force_load=no
8162 cat > conftest.c << _LT_EOF
8163 int forced_loaded() { return 2;}
8164 _LT_EOF
8165 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8166 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8167 echo "$AR cru libconftest.a conftest.o" >&5
8168 $AR cru libconftest.a conftest.o 2>&5
8169 echo "$RANLIB libconftest.a" >&5
8170 $RANLIB libconftest.a 2>&5
8171 cat > conftest.c << _LT_EOF
8172 int main() { return 0;}
8173 _LT_EOF
8174 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8175 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8176 _lt_result=$?
8177 if test -s conftest.err && $GREP force_load conftest.err; then
8178 cat conftest.err >&5
8179 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8180 lt_cv_ld_force_load=yes
8181 else
8182 cat conftest.err >&5
8183 fi
8184 rm -f conftest.err libconftest.a conftest conftest.c
8185 rm -rf conftest.dSYM
8186
8187 fi
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8189 $as_echo "$lt_cv_ld_force_load" >&6; }
8190 case $host_os in
8191 rhapsody* | darwin1.[012])
8192 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8193 darwin1.*)
8194 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8195 darwin*) # darwin 5.x on
8196 # if running on 10.5 or later, the deployment target defaults
8197 # to the OS version, if on x86, and 10.4, the deployment
8198 # target defaults to 10.4. Don't you love it?
8199 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8200 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8201 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8202 10.[012][,.]*)
8203 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8204 10.*)
8205 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8206 esac
8207 ;;
8208 esac
8209 if test yes = "$lt_cv_apple_cc_single_mod"; then
8210 _lt_dar_single_mod='$single_module'
8211 fi
8212 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8213 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8214 else
8215 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8216 fi
8217 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8218 _lt_dsymutil='~$DSYMUTIL $lib || :'
8219 else
8220 _lt_dsymutil=
8221 fi
8222 ;;
8223 esac
8224
8225 # func_munge_path_list VARIABLE PATH
8226 # -----------------------------------
8227 # VARIABLE is name of variable containing _space_ separated list of
8228 # directories to be munged by the contents of PATH, which is string
8229 # having a format:
8230 # "DIR[:DIR]:"
8231 # string "DIR[ DIR]" will be prepended to VARIABLE
8232 # ":DIR[:DIR]"
8233 # string "DIR[ DIR]" will be appended to VARIABLE
8234 # "DIRP[:DIRP]::[DIRA:]DIRA"
8235 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8236 # "DIRA[ DIRA]" will be appended to VARIABLE
8237 # "DIR[:DIR]"
8238 # VARIABLE will be replaced by "DIR[ DIR]"
8239 func_munge_path_list ()
8240 {
8241 case x$2 in
8242 x)
8243 ;;
8244 *:)
8245 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8246 ;;
8247 x:*)
8248 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8249 ;;
8250 *::*)
8251 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8252 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8253 ;;
8254 *)
8255 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8256 ;;
8257 esac
8258 }
8259
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8262 $as_echo_n "checking for ANSI C header files... " >&6; }
8263 if ${ac_cv_header_stdc+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <stdlib.h>
8269 #include <stdarg.h>
8270 #include <string.h>
8271 #include <float.h>
8272
8273 int
8274 main ()
8275 {
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 ac_cv_header_stdc=yes
8283 else
8284 ac_cv_header_stdc=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287
8288 if test $ac_cv_header_stdc = yes; then
8289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 #include <string.h>
8293
8294 _ACEOF
8295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296 $EGREP "memchr" >/dev/null 2>&1; then :
8297
8298 else
8299 ac_cv_header_stdc=no
8300 fi
8301 rm -f conftest*
8302
8303 fi
8304
8305 if test $ac_cv_header_stdc = yes; then
8306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <stdlib.h>
8310
8311 _ACEOF
8312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313 $EGREP "free" >/dev/null 2>&1; then :
8314
8315 else
8316 ac_cv_header_stdc=no
8317 fi
8318 rm -f conftest*
8319
8320 fi
8321
8322 if test $ac_cv_header_stdc = yes; then
8323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8324 if test "$cross_compiling" = yes; then :
8325 :
8326 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 #include <ctype.h>
8330 #include <stdlib.h>
8331 #if ((' ' & 0x0FF) == 0x020)
8332 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8333 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8334 #else
8335 # define ISLOWER(c) \
8336 (('a' <= (c) && (c) <= 'i') \
8337 || ('j' <= (c) && (c) <= 'r') \
8338 || ('s' <= (c) && (c) <= 'z'))
8339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8340 #endif
8341
8342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8343 int
8344 main ()
8345 {
8346 int i;
8347 for (i = 0; i < 256; i++)
8348 if (XOR (islower (i), ISLOWER (i))
8349 || toupper (i) != TOUPPER (i))
8350 return 2;
8351 return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_run "$LINENO"; then :
8355
8356 else
8357 ac_cv_header_stdc=no
8358 fi
8359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8360 conftest.$ac_objext conftest.beam conftest.$ac_ext
8361 fi
8362
8363 fi
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8366 $as_echo "$ac_cv_header_stdc" >&6; }
8367 if test $ac_cv_header_stdc = yes; then
8368
8369 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8370
8371 fi
8372
8373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8375 inttypes.h stdint.h unistd.h
8376 do :
8377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8379 "
8380 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8381 cat >>confdefs.h <<_ACEOF
8382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8383 _ACEOF
8384
8385 fi
8386
8387 done
8388
8389
8390 for ac_header in dlfcn.h
8391 do :
8392 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8393 "
8394 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8395 cat >>confdefs.h <<_ACEOF
8396 #define HAVE_DLFCN_H 1
8397 _ACEOF
8398
8399 fi
8400
8401 done
8402
8403
8404
8405
8406 func_stripname_cnf ()
8407 {
8408 case $2 in
8409 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8410 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8411 esac
8412 } # func_stripname_cnf
8413
8414
8415
8416
8417
8418 # Set options
8419
8420
8421
8422 enable_dlopen=no
8423
8424
8425 enable_win32_dll=no
8426
8427
8428 # Check whether --enable-shared was given.
8429 if test "${enable_shared+set}" = set; then :
8430 enableval=$enable_shared; p=${PACKAGE-default}
8431 case $enableval in
8432 yes) enable_shared=yes ;;
8433 no) enable_shared=no ;;
8434 *)
8435 enable_shared=no
8436 # Look at the argument we got. We use all the common list separators.
8437 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8438 for pkg in $enableval; do
8439 IFS=$lt_save_ifs
8440 if test "X$pkg" = "X$p"; then
8441 enable_shared=yes
8442 fi
8443 done
8444 IFS=$lt_save_ifs
8445 ;;
8446 esac
8447 else
8448 enable_shared=yes
8449 fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459 # Check whether --enable-static was given.
8460 if test "${enable_static+set}" = set; then :
8461 enableval=$enable_static; p=${PACKAGE-default}
8462 case $enableval in
8463 yes) enable_static=yes ;;
8464 no) enable_static=no ;;
8465 *)
8466 enable_static=no
8467 # Look at the argument we got. We use all the common list separators.
8468 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8469 for pkg in $enableval; do
8470 IFS=$lt_save_ifs
8471 if test "X$pkg" = "X$p"; then
8472 enable_static=yes
8473 fi
8474 done
8475 IFS=$lt_save_ifs
8476 ;;
8477 esac
8478 else
8479 enable_static=yes
8480 fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 # Check whether --with-pic was given.
8492 if test "${with_pic+set}" = set; then :
8493 withval=$with_pic; lt_p=${PACKAGE-default}
8494 case $withval in
8495 yes|no) pic_mode=$withval ;;
8496 *)
8497 pic_mode=default
8498 # Look at the argument we got. We use all the common list separators.
8499 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8500 for lt_pkg in $withval; do
8501 IFS=$lt_save_ifs
8502 if test "X$lt_pkg" = "X$lt_p"; then
8503 pic_mode=yes
8504 fi
8505 done
8506 IFS=$lt_save_ifs
8507 ;;
8508 esac
8509 else
8510 pic_mode=default
8511 fi
8512
8513
8514
8515
8516
8517
8518
8519
8520 # Check whether --enable-fast-install was given.
8521 if test "${enable_fast_install+set}" = set; then :
8522 enableval=$enable_fast_install; p=${PACKAGE-default}
8523 case $enableval in
8524 yes) enable_fast_install=yes ;;
8525 no) enable_fast_install=no ;;
8526 *)
8527 enable_fast_install=no
8528 # Look at the argument we got. We use all the common list separators.
8529 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8530 for pkg in $enableval; do
8531 IFS=$lt_save_ifs
8532 if test "X$pkg" = "X$p"; then
8533 enable_fast_install=yes
8534 fi
8535 done
8536 IFS=$lt_save_ifs
8537 ;;
8538 esac
8539 else
8540 enable_fast_install=yes
8541 fi
8542
8543
8544
8545
8546
8547
8548
8549
8550 shared_archive_member_spec=
8551 case $host,$enable_shared in
8552 power*-*-aix[5-9]*,yes)
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8554 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8555
8556 # Check whether --with-aix-soname was given.
8557 if test "${with_aix_soname+set}" = set; then :
8558 withval=$with_aix_soname; case $withval in
8559 aix|svr4|both)
8560 ;;
8561 *)
8562 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8563 ;;
8564 esac
8565 lt_cv_with_aix_soname=$with_aix_soname
8566 else
8567 if ${lt_cv_with_aix_soname+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_with_aix_soname=aix
8571 fi
8572
8573 with_aix_soname=$lt_cv_with_aix_soname
8574 fi
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8577 $as_echo "$with_aix_soname" >&6; }
8578 if test aix != "$with_aix_soname"; then
8579 # For the AIX way of multilib, we name the shared archive member
8580 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8581 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8582 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8583 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8584 if test 64 = "${OBJECT_MODE-32}"; then
8585 shared_archive_member_spec=shr_64
8586 else
8587 shared_archive_member_spec=shr
8588 fi
8589 fi
8590 ;;
8591 *)
8592 with_aix_soname=aix
8593 ;;
8594 esac
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605 # This can be used to rebuild libtool when needed
8606 LIBTOOL_DEPS=$ltmain
8607
8608 # Always use our own libtool.
8609 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 test -z "$LN_S" && LN_S="ln -s"
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655 if test -n "${ZSH_VERSION+set}"; then
8656 setopt NO_GLOB_SUBST
8657 fi
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8660 $as_echo_n "checking for objdir... " >&6; }
8661 if ${lt_cv_objdir+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 rm -f .libs 2>/dev/null
8665 mkdir .libs 2>/dev/null
8666 if test -d .libs; then
8667 lt_cv_objdir=.libs
8668 else
8669 # MS-DOS does not allow filenames that begin with a dot.
8670 lt_cv_objdir=_libs
8671 fi
8672 rmdir .libs 2>/dev/null
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8675 $as_echo "$lt_cv_objdir" >&6; }
8676 objdir=$lt_cv_objdir
8677
8678
8679
8680
8681
8682 cat >>confdefs.h <<_ACEOF
8683 #define LT_OBJDIR "$lt_cv_objdir/"
8684 _ACEOF
8685
8686
8687
8688
8689 case $host_os in
8690 aix3*)
8691 # AIX sometimes has problems with the GCC collect2 program. For some
8692 # reason, if we set the COLLECT_NAMES environment variable, the problems
8693 # vanish in a puff of smoke.
8694 if test set != "${COLLECT_NAMES+set}"; then
8695 COLLECT_NAMES=
8696 export COLLECT_NAMES
8697 fi
8698 ;;
8699 esac
8700
8701 # Global variables:
8702 ofile=libtool
8703 can_build_shared=yes
8704
8705 # All known linkers require a '.a' archive for static linking (except MSVC,
8706 # which needs '.lib').
8707 libext=a
8708
8709 with_gnu_ld=$lt_cv_prog_gnu_ld
8710
8711 old_CC=$CC
8712 old_CFLAGS=$CFLAGS
8713
8714 # Set sane defaults for various variables
8715 test -z "$CC" && CC=cc
8716 test -z "$LTCC" && LTCC=$CC
8717 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8718 test -z "$LD" && LD=ld
8719 test -z "$ac_objext" && ac_objext=o
8720
8721 func_cc_basename $compiler
8722 cc_basename=$func_cc_basename_result
8723
8724
8725 # Only perform the check for file, if the check method requires it
8726 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8727 case $deplibs_check_method in
8728 file_magic*)
8729 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8731 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8732 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 case $MAGIC_CMD in
8736 [\\/*] | ?:[\\/]*)
8737 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8738 ;;
8739 *)
8740 lt_save_MAGIC_CMD=$MAGIC_CMD
8741 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8742 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8743 for ac_dir in $ac_dummy; do
8744 IFS=$lt_save_ifs
8745 test -z "$ac_dir" && ac_dir=.
8746 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8747 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8748 if test -n "$file_magic_test_file"; then
8749 case $deplibs_check_method in
8750 "file_magic "*)
8751 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8752 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8753 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8754 $EGREP "$file_magic_regex" > /dev/null; then
8755 :
8756 else
8757 cat <<_LT_EOF 1>&2
8758
8759 *** Warning: the command libtool uses to detect shared libraries,
8760 *** $file_magic_cmd, produces output that libtool cannot recognize.
8761 *** The result is that libtool may fail to recognize shared libraries
8762 *** as such. This will affect the creation of libtool libraries that
8763 *** depend on shared libraries, but programs linked with such libtool
8764 *** libraries will work regardless of this problem. Nevertheless, you
8765 *** may want to report the problem to your system manager and/or to
8766 *** [email protected]
8767
8768 _LT_EOF
8769 fi ;;
8770 esac
8771 fi
8772 break
8773 fi
8774 done
8775 IFS=$lt_save_ifs
8776 MAGIC_CMD=$lt_save_MAGIC_CMD
8777 ;;
8778 esac
8779 fi
8780
8781 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8782 if test -n "$MAGIC_CMD"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8784 $as_echo "$MAGIC_CMD" >&6; }
8785 else
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791
8792
8793
8794 if test -z "$lt_cv_path_MAGIC_CMD"; then
8795 if test -n "$ac_tool_prefix"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8797 $as_echo_n "checking for file... " >&6; }
8798 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 case $MAGIC_CMD in
8802 [\\/*] | ?:[\\/]*)
8803 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8804 ;;
8805 *)
8806 lt_save_MAGIC_CMD=$MAGIC_CMD
8807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8809 for ac_dir in $ac_dummy; do
8810 IFS=$lt_save_ifs
8811 test -z "$ac_dir" && ac_dir=.
8812 if test -f "$ac_dir/file"; then
8813 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8814 if test -n "$file_magic_test_file"; then
8815 case $deplibs_check_method in
8816 "file_magic "*)
8817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8818 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8820 $EGREP "$file_magic_regex" > /dev/null; then
8821 :
8822 else
8823 cat <<_LT_EOF 1>&2
8824
8825 *** Warning: the command libtool uses to detect shared libraries,
8826 *** $file_magic_cmd, produces output that libtool cannot recognize.
8827 *** The result is that libtool may fail to recognize shared libraries
8828 *** as such. This will affect the creation of libtool libraries that
8829 *** depend on shared libraries, but programs linked with such libtool
8830 *** libraries will work regardless of this problem. Nevertheless, you
8831 *** may want to report the problem to your system manager and/or to
8832 *** [email protected]
8833
8834 _LT_EOF
8835 fi ;;
8836 esac
8837 fi
8838 break
8839 fi
8840 done
8841 IFS=$lt_save_ifs
8842 MAGIC_CMD=$lt_save_MAGIC_CMD
8843 ;;
8844 esac
8845 fi
8846
8847 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8848 if test -n "$MAGIC_CMD"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8850 $as_echo "$MAGIC_CMD" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855
8856
8857 else
8858 MAGIC_CMD=:
8859 fi
8860 fi
8861
8862 fi
8863 ;;
8864 esac
8865
8866 # Use C for the default configuration in the libtool script
8867
8868 lt_save_CC=$CC
8869 ac_ext=c
8870 ac_cpp='$CPP $CPPFLAGS'
8871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874
8875
8876 # Source file extension for C test sources.
8877 ac_ext=c
8878
8879 # Object file extension for compiled C test sources.
8880 objext=o
8881 objext=$objext
8882
8883 # Code to be used in simple compile tests
8884 lt_simple_compile_test_code="int some_variable = 0;"
8885
8886 # Code to be used in simple link tests
8887 lt_simple_link_test_code='int main(){return(0);}'
8888
8889
8890
8891
8892
8893
8894
8895 # If no C compiler was specified, use CC.
8896 LTCC=${LTCC-"$CC"}
8897
8898 # If no C compiler flags were specified, use CFLAGS.
8899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8900
8901 # Allow CC to be a program name with arguments.
8902 compiler=$CC
8903
8904 # Save the default compiler, since it gets overwritten when the other
8905 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8906 compiler_DEFAULT=$CC
8907
8908 # save warnings/boilerplate of simple test code
8909 ac_outfile=conftest.$ac_objext
8910 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8911 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8912 _lt_compiler_boilerplate=`cat conftest.err`
8913 $RM conftest*
8914
8915 ac_outfile=conftest.$ac_objext
8916 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8917 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8918 _lt_linker_boilerplate=`cat conftest.err`
8919 $RM -r conftest*
8920
8921
8922 ## CAVEAT EMPTOR:
8923 ## There is no encapsulation within the following macros, do not change
8924 ## the running order or otherwise move them around unless you know exactly
8925 ## what you are doing...
8926 if test -n "$compiler"; then
8927
8928 lt_prog_compiler_no_builtin_flag=
8929
8930 if test yes = "$GCC"; then
8931 case $cc_basename in
8932 nvcc*)
8933 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8934 *)
8935 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8936 esac
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8939 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8940 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 lt_cv_prog_compiler_rtti_exceptions=no
8944 ac_outfile=conftest.$ac_objext
8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8946 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8947 # Insert the option either (1) after the last *FLAGS variable, or
8948 # (2) before a word containing "conftest.", or (3) at the end.
8949 # Note that $ac_compile itself does not contain backslashes and begins
8950 # with a dollar sign (not a hyphen), so the echo should work correctly.
8951 # The option is referenced via a variable to avoid confusing sed.
8952 lt_compile=`echo "$ac_compile" | $SED \
8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8955 -e 's:$: $lt_compiler_flag:'`
8956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8957 (eval "$lt_compile" 2>conftest.err)
8958 ac_status=$?
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 if (exit $ac_status) && test -s "$ac_outfile"; then
8962 # The compiler can only warn and ignore the option if not recognized
8963 # So say no if there are warnings other than the usual output.
8964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8967 lt_cv_prog_compiler_rtti_exceptions=yes
8968 fi
8969 fi
8970 $RM conftest*
8971
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8974 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8975
8976 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8977 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8978 else
8979 :
8980 fi
8981
8982 fi
8983
8984
8985
8986
8987
8988
8989 lt_prog_compiler_wl=
8990 lt_prog_compiler_pic=
8991 lt_prog_compiler_static=
8992
8993
8994 if test yes = "$GCC"; then
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_static='-static'
8997
8998 case $host_os in
8999 aix*)
9000 # All AIX code is PIC.
9001 if test ia64 = "$host_cpu"; then
9002 # AIX 5 now supports IA64 processor
9003 lt_prog_compiler_static='-Bstatic'
9004 fi
9005 lt_prog_compiler_pic='-fPIC'
9006 ;;
9007
9008 amigaos*)
9009 case $host_cpu in
9010 powerpc)
9011 # see comment about AmigaOS4 .so support
9012 lt_prog_compiler_pic='-fPIC'
9013 ;;
9014 m68k)
9015 # FIXME: we need at least 68020 code to build shared libraries, but
9016 # adding the '-m68020' flag to GCC prevents building anything better,
9017 # like '-m68040'.
9018 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9019 ;;
9020 esac
9021 ;;
9022
9023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9024 # PIC is the default for these OSes.
9025 ;;
9026
9027 mingw* | cygwin* | pw32* | os2* | cegcc*)
9028 # This hack is so that the source file can tell whether it is being
9029 # built for inclusion in a dll (and should export symbols for example).
9030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9031 # (--disable-auto-import) libraries
9032 lt_prog_compiler_pic='-DDLL_EXPORT'
9033 case $host_os in
9034 os2*)
9035 lt_prog_compiler_static='$wl-static'
9036 ;;
9037 esac
9038 ;;
9039
9040 darwin* | rhapsody*)
9041 # PIC is the default on this platform
9042 # Common symbols not allowed in MH_DYLIB files
9043 lt_prog_compiler_pic='-fno-common'
9044 ;;
9045
9046 haiku*)
9047 # PIC is the default for Haiku.
9048 # The "-static" flag exists, but is broken.
9049 lt_prog_compiler_static=
9050 ;;
9051
9052 hpux*)
9053 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9054 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9055 # sets the default TLS model and affects inlining.
9056 case $host_cpu in
9057 hppa*64*)
9058 # +Z the default
9059 ;;
9060 *)
9061 lt_prog_compiler_pic='-fPIC'
9062 ;;
9063 esac
9064 ;;
9065
9066 interix[3-9]*)
9067 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9068 # Instead, we relocate shared libraries at runtime.
9069 ;;
9070
9071 msdosdjgpp*)
9072 # Just because we use GCC doesn't mean we suddenly get shared libraries
9073 # on systems that don't support them.
9074 lt_prog_compiler_can_build_shared=no
9075 enable_shared=no
9076 ;;
9077
9078 *nto* | *qnx*)
9079 # QNX uses GNU C++, but need to define -shared option too, otherwise
9080 # it will coredump.
9081 lt_prog_compiler_pic='-fPIC -shared'
9082 ;;
9083
9084 sysv4*MP*)
9085 if test -d /usr/nec; then
9086 lt_prog_compiler_pic=-Kconform_pic
9087 fi
9088 ;;
9089
9090 *)
9091 lt_prog_compiler_pic='-fPIC'
9092 ;;
9093 esac
9094
9095 case $cc_basename in
9096 nvcc*) # Cuda Compiler Driver 2.2
9097 lt_prog_compiler_wl='-Xlinker '
9098 if test -n "$lt_prog_compiler_pic"; then
9099 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9100 fi
9101 ;;
9102 esac
9103 else
9104 # PORTME Check for flag to pass linker flags through the system compiler.
9105 case $host_os in
9106 aix*)
9107 lt_prog_compiler_wl='-Wl,'
9108 if test ia64 = "$host_cpu"; then
9109 # AIX 5 now supports IA64 processor
9110 lt_prog_compiler_static='-Bstatic'
9111 else
9112 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9113 fi
9114 ;;
9115
9116 darwin* | rhapsody*)
9117 # PIC is the default on this platform
9118 # Common symbols not allowed in MH_DYLIB files
9119 lt_prog_compiler_pic='-fno-common'
9120 case $cc_basename in
9121 nagfor*)
9122 # NAG Fortran compiler
9123 lt_prog_compiler_wl='-Wl,-Wl,,'
9124 lt_prog_compiler_pic='-PIC'
9125 lt_prog_compiler_static='-Bstatic'
9126 ;;
9127 esac
9128 ;;
9129
9130 mingw* | cygwin* | pw32* | os2* | cegcc*)
9131 # This hack is so that the source file can tell whether it is being
9132 # built for inclusion in a dll (and should export symbols for example).
9133 lt_prog_compiler_pic='-DDLL_EXPORT'
9134 case $host_os in
9135 os2*)
9136 lt_prog_compiler_static='$wl-static'
9137 ;;
9138 esac
9139 ;;
9140
9141 hpux9* | hpux10* | hpux11*)
9142 lt_prog_compiler_wl='-Wl,'
9143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9144 # not for PA HP-UX.
9145 case $host_cpu in
9146 hppa*64*|ia64*)
9147 # +Z the default
9148 ;;
9149 *)
9150 lt_prog_compiler_pic='+Z'
9151 ;;
9152 esac
9153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9154 lt_prog_compiler_static='$wl-a ${wl}archive'
9155 ;;
9156
9157 irix5* | irix6* | nonstopux*)
9158 lt_prog_compiler_wl='-Wl,'
9159 # PIC (with -KPIC) is the default.
9160 lt_prog_compiler_static='-non_shared'
9161 ;;
9162
9163 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9164 case $cc_basename in
9165 # old Intel for x86_64, which still supported -KPIC.
9166 ecc*)
9167 lt_prog_compiler_wl='-Wl,'
9168 lt_prog_compiler_pic='-KPIC'
9169 lt_prog_compiler_static='-static'
9170 ;;
9171 # icc used to be incompatible with GCC.
9172 # ICC 10 doesn't accept -KPIC any more.
9173 icc* | ifort*)
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-fPIC'
9176 lt_prog_compiler_static='-static'
9177 ;;
9178 # Lahey Fortran 8.1.
9179 lf95*)
9180 lt_prog_compiler_wl='-Wl,'
9181 lt_prog_compiler_pic='--shared'
9182 lt_prog_compiler_static='--static'
9183 ;;
9184 nagfor*)
9185 # NAG Fortran compiler
9186 lt_prog_compiler_wl='-Wl,-Wl,,'
9187 lt_prog_compiler_pic='-PIC'
9188 lt_prog_compiler_static='-Bstatic'
9189 ;;
9190 tcc*)
9191 # Fabrice Bellard et al's Tiny C Compiler
9192 lt_prog_compiler_wl='-Wl,'
9193 lt_prog_compiler_pic='-fPIC'
9194 lt_prog_compiler_static='-static'
9195 ;;
9196 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9197 # Portland Group compilers (*not* the Pentium gcc compiler,
9198 # which looks to be a dead project)
9199 lt_prog_compiler_wl='-Wl,'
9200 lt_prog_compiler_pic='-fpic'
9201 lt_prog_compiler_static='-Bstatic'
9202 ;;
9203 ccc*)
9204 lt_prog_compiler_wl='-Wl,'
9205 # All Alpha code is PIC.
9206 lt_prog_compiler_static='-non_shared'
9207 ;;
9208 xl* | bgxl* | bgf* | mpixl*)
9209 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9210 lt_prog_compiler_wl='-Wl,'
9211 lt_prog_compiler_pic='-qpic'
9212 lt_prog_compiler_static='-qstaticlink'
9213 ;;
9214 *)
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9217 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9218 lt_prog_compiler_pic='-KPIC'
9219 lt_prog_compiler_static='-Bstatic'
9220 lt_prog_compiler_wl=''
9221 ;;
9222 *Sun\ F* | *Sun*Fortran*)
9223 lt_prog_compiler_pic='-KPIC'
9224 lt_prog_compiler_static='-Bstatic'
9225 lt_prog_compiler_wl='-Qoption ld '
9226 ;;
9227 *Sun\ C*)
9228 # Sun C 5.9
9229 lt_prog_compiler_pic='-KPIC'
9230 lt_prog_compiler_static='-Bstatic'
9231 lt_prog_compiler_wl='-Wl,'
9232 ;;
9233 *Intel*\ [CF]*Compiler*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-fPIC'
9236 lt_prog_compiler_static='-static'
9237 ;;
9238 *Portland\ Group*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-fpic'
9241 lt_prog_compiler_static='-Bstatic'
9242 ;;
9243 esac
9244 ;;
9245 esac
9246 ;;
9247
9248 newsos6)
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-Bstatic'
9251 ;;
9252
9253 *nto* | *qnx*)
9254 # QNX uses GNU C++, but need to define -shared option too, otherwise
9255 # it will coredump.
9256 lt_prog_compiler_pic='-fPIC -shared'
9257 ;;
9258
9259 osf3* | osf4* | osf5*)
9260 lt_prog_compiler_wl='-Wl,'
9261 # All OSF/1 code is PIC.
9262 lt_prog_compiler_static='-non_shared'
9263 ;;
9264
9265 rdos*)
9266 lt_prog_compiler_static='-non_shared'
9267 ;;
9268
9269 solaris*)
9270 lt_prog_compiler_pic='-KPIC'
9271 lt_prog_compiler_static='-Bstatic'
9272 case $cc_basename in
9273 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9274 lt_prog_compiler_wl='-Qoption ld ';;
9275 *)
9276 lt_prog_compiler_wl='-Wl,';;
9277 esac
9278 ;;
9279
9280 sunos4*)
9281 lt_prog_compiler_wl='-Qoption ld '
9282 lt_prog_compiler_pic='-PIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
9285
9286 sysv4 | sysv4.2uw2* | sysv4.3*)
9287 lt_prog_compiler_wl='-Wl,'
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 ;;
9291
9292 sysv4*MP*)
9293 if test -d /usr/nec; then
9294 lt_prog_compiler_pic='-Kconform_pic'
9295 lt_prog_compiler_static='-Bstatic'
9296 fi
9297 ;;
9298
9299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9300 lt_prog_compiler_wl='-Wl,'
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-Bstatic'
9303 ;;
9304
9305 unicos*)
9306 lt_prog_compiler_wl='-Wl,'
9307 lt_prog_compiler_can_build_shared=no
9308 ;;
9309
9310 uts4*)
9311 lt_prog_compiler_pic='-pic'
9312 lt_prog_compiler_static='-Bstatic'
9313 ;;
9314
9315 *)
9316 lt_prog_compiler_can_build_shared=no
9317 ;;
9318 esac
9319 fi
9320
9321 case $host_os in
9322 # For platforms that do not support PIC, -DPIC is meaningless:
9323 *djgpp*)
9324 lt_prog_compiler_pic=
9325 ;;
9326 *)
9327 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9328 ;;
9329 esac
9330
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9333 if ${lt_cv_prog_compiler_pic+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9337 fi
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9339 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9340 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9341
9342 #
9343 # Check to make sure the PIC flag actually works.
9344 #
9345 if test -n "$lt_prog_compiler_pic"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9347 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9348 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 lt_cv_prog_compiler_pic_works=no
9352 ac_outfile=conftest.$ac_objext
9353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9354 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9355 # Insert the option either (1) after the last *FLAGS variable, or
9356 # (2) before a word containing "conftest.", or (3) at the end.
9357 # Note that $ac_compile itself does not contain backslashes and begins
9358 # with a dollar sign (not a hyphen), so the echo should work correctly.
9359 # The option is referenced via a variable to avoid confusing sed.
9360 lt_compile=`echo "$ac_compile" | $SED \
9361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363 -e 's:$: $lt_compiler_flag:'`
9364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365 (eval "$lt_compile" 2>conftest.err)
9366 ac_status=$?
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 if (exit $ac_status) && test -s "$ac_outfile"; then
9370 # The compiler can only warn and ignore the option if not recognized
9371 # So say no if there are warnings other than the usual output.
9372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9375 lt_cv_prog_compiler_pic_works=yes
9376 fi
9377 fi
9378 $RM conftest*
9379
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9382 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9383
9384 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9385 case $lt_prog_compiler_pic in
9386 "" | " "*) ;;
9387 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9388 esac
9389 else
9390 lt_prog_compiler_pic=
9391 lt_prog_compiler_can_build_shared=no
9392 fi
9393
9394 fi
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406 #
9407 # Check to make sure the static flag actually works.
9408 #
9409 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9411 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9412 if ${lt_cv_prog_compiler_static_works+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 lt_cv_prog_compiler_static_works=no
9416 save_LDFLAGS=$LDFLAGS
9417 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9420 # The linker can only warn and ignore the option if not recognized
9421 # So say no if there are warnings
9422 if test -s conftest.err; then
9423 # Append any errors to the config.log.
9424 cat conftest.err 1>&5
9425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427 if diff conftest.exp conftest.er2 >/dev/null; then
9428 lt_cv_prog_compiler_static_works=yes
9429 fi
9430 else
9431 lt_cv_prog_compiler_static_works=yes
9432 fi
9433 fi
9434 $RM -r conftest*
9435 LDFLAGS=$save_LDFLAGS
9436
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9439 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9440
9441 if test yes = "$lt_cv_prog_compiler_static_works"; then
9442 :
9443 else
9444 lt_prog_compiler_static=
9445 fi
9446
9447
9448
9449
9450
9451
9452
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9454 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9455 if ${lt_cv_prog_compiler_c_o+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 lt_cv_prog_compiler_c_o=no
9459 $RM -r conftest 2>/dev/null
9460 mkdir conftest
9461 cd conftest
9462 mkdir out
9463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464
9465 lt_compiler_flag="-o out/conftest2.$ac_objext"
9466 # Insert the option either (1) after the last *FLAGS variable, or
9467 # (2) before a word containing "conftest.", or (3) at the end.
9468 # Note that $ac_compile itself does not contain backslashes and begins
9469 # with a dollar sign (not a hyphen), so the echo should work correctly.
9470 lt_compile=`echo "$ac_compile" | $SED \
9471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9473 -e 's:$: $lt_compiler_flag:'`
9474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9475 (eval "$lt_compile" 2>out/conftest.err)
9476 ac_status=$?
9477 cat out/conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9480 then
9481 # The compiler can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_c_o=yes
9487 fi
9488 fi
9489 chmod u+w . 2>&5
9490 $RM conftest*
9491 # SGI C++ compiler will create directory out/ii_files/ for
9492 # template instantiation
9493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9494 $RM out/* && rmdir out
9495 cd ..
9496 $RM -r conftest
9497 $RM conftest*
9498
9499 fi
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9501 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9502
9503
9504
9505
9506
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9510 if ${lt_cv_prog_compiler_c_o+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 lt_cv_prog_compiler_c_o=no
9514 $RM -r conftest 2>/dev/null
9515 mkdir conftest
9516 cd conftest
9517 mkdir out
9518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9519
9520 lt_compiler_flag="-o out/conftest2.$ac_objext"
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 lt_compile=`echo "$ac_compile" | $SED \
9526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9528 -e 's:$: $lt_compiler_flag:'`
9529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9530 (eval "$lt_compile" 2>out/conftest.err)
9531 ac_status=$?
9532 cat out/conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9535 then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings
9538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_c_o=yes
9542 fi
9543 fi
9544 chmod u+w . 2>&5
9545 $RM conftest*
9546 # SGI C++ compiler will create directory out/ii_files/ for
9547 # template instantiation
9548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9549 $RM out/* && rmdir out
9550 cd ..
9551 $RM -r conftest
9552 $RM conftest*
9553
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9556 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9557
9558
9559
9560
9561 hard_links=nottested
9562 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9563 # do not overwrite the value of need_locks provided by the user
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9565 $as_echo_n "checking if we can lock with hard links... " >&6; }
9566 hard_links=yes
9567 $RM conftest*
9568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9569 touch conftest.a
9570 ln conftest.a conftest.b 2>&5 || hard_links=no
9571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9573 $as_echo "$hard_links" >&6; }
9574 if test no = "$hard_links"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9576 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9577 need_locks=warn
9578 fi
9579 else
9580 need_locks=no
9581 fi
9582
9583
9584
9585
9586
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9590
9591 runpath_var=
9592 allow_undefined_flag=
9593 always_export_symbols=no
9594 archive_cmds=
9595 archive_expsym_cmds=
9596 compiler_needs_object=no
9597 enable_shared_with_static_runtimes=no
9598 export_dynamic_flag_spec=
9599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9600 hardcode_automatic=no
9601 hardcode_direct=no
9602 hardcode_direct_absolute=no
9603 hardcode_libdir_flag_spec=
9604 hardcode_libdir_separator=
9605 hardcode_minus_L=no
9606 hardcode_shlibpath_var=unsupported
9607 inherit_rpath=no
9608 link_all_deplibs=unknown
9609 module_cmds=
9610 module_expsym_cmds=
9611 old_archive_from_new_cmds=
9612 old_archive_from_expsyms_cmds=
9613 thread_safe_flag_spec=
9614 whole_archive_flag_spec=
9615 # include_expsyms should be a list of space-separated symbols to be *always*
9616 # included in the symbol list
9617 include_expsyms=
9618 # exclude_expsyms can be an extended regexp of symbols to exclude
9619 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9620 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9621 # as well as any symbol that contains 'd'.
9622 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9624 # platforms (ab)use it in PIC code, but their linkers get confused if
9625 # the symbol is explicitly referenced. Since portable code cannot
9626 # rely on this symbol name, it's probably fine to never include it in
9627 # preloaded symbol tables.
9628 # Exclude shared library initialization/finalization symbols.
9629 extract_expsyms_cmds=
9630
9631 case $host_os in
9632 cygwin* | mingw* | pw32* | cegcc*)
9633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9634 # When not using gcc, we currently assume that we are using
9635 # Microsoft Visual C++.
9636 if test yes != "$GCC"; then
9637 with_gnu_ld=no
9638 fi
9639 ;;
9640 interix*)
9641 # we just hope/assume this is gcc and not c89 (= MSVC++)
9642 with_gnu_ld=yes
9643 ;;
9644 openbsd* | bitrig*)
9645 with_gnu_ld=no
9646 ;;
9647 esac
9648
9649 ld_shlibs=yes
9650
9651 # On some targets, GNU ld is compatible enough with the native linker
9652 # that we're better off using the native interface for both.
9653 lt_use_gnu_ld_interface=no
9654 if test yes = "$with_gnu_ld"; then
9655 case $host_os in
9656 aix*)
9657 # The AIX port of GNU ld has always aspired to compatibility
9658 # with the native linker. However, as the warning in the GNU ld
9659 # block says, versions before 2.19.5* couldn't really create working
9660 # shared libraries, regardless of the interface used.
9661 case `$LD -v 2>&1` in
9662 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9663 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9664 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9665 *)
9666 lt_use_gnu_ld_interface=yes
9667 ;;
9668 esac
9669 ;;
9670 *)
9671 lt_use_gnu_ld_interface=yes
9672 ;;
9673 esac
9674 fi
9675
9676 if test yes = "$lt_use_gnu_ld_interface"; then
9677 # If archive_cmds runs LD, not CC, wlarc should be empty
9678 wlarc='$wl'
9679
9680 # Set some defaults for GNU ld with shared library support. These
9681 # are reset later if shared libraries are not supported. Putting them
9682 # here allows them to be overridden if necessary.
9683 runpath_var=LD_RUN_PATH
9684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9685 export_dynamic_flag_spec='$wl--export-dynamic'
9686 # ancient GNU ld didn't support --whole-archive et. al.
9687 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9688 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9689 else
9690 whole_archive_flag_spec=
9691 fi
9692 supports_anon_versioning=no
9693 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9694 *GNU\ gold*) supports_anon_versioning=yes ;;
9695 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9696 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9697 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9698 *\ 2.11.*) ;; # other 2.11 versions
9699 *) supports_anon_versioning=yes ;;
9700 esac
9701
9702 # See if GNU ld supports shared libraries.
9703 case $host_os in
9704 aix[3-9]*)
9705 # On AIX/PPC, the GNU linker is very broken
9706 if test ia64 != "$host_cpu"; then
9707 ld_shlibs=no
9708 cat <<_LT_EOF 1>&2
9709
9710 *** Warning: the GNU linker, at least up to release 2.19, is reported
9711 *** to be unable to reliably create shared libraries on AIX.
9712 *** Therefore, libtool is disabling shared libraries support. If you
9713 *** really care for shared libraries, you may want to install binutils
9714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9715 *** You will then need to restart the configuration process.
9716
9717 _LT_EOF
9718 fi
9719 ;;
9720
9721 amigaos*)
9722 case $host_cpu in
9723 powerpc)
9724 # see comment about AmigaOS4 .so support
9725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9726 archive_expsym_cmds=''
9727 ;;
9728 m68k)
9729 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)'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_minus_L=yes
9732 ;;
9733 esac
9734 ;;
9735
9736 beos*)
9737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9738 allow_undefined_flag=unsupported
9739 # Joseph Beckenbach <[email protected]> says some releases of gcc
9740 # support --undefined. This deserves some investigation. FIXME
9741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9742 else
9743 ld_shlibs=no
9744 fi
9745 ;;
9746
9747 cygwin* | mingw* | pw32* | cegcc*)
9748 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9749 # as there is no search path for DLLs.
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 export_dynamic_flag_spec='$wl--export-all-symbols'
9752 allow_undefined_flag=unsupported
9753 always_export_symbols=no
9754 enable_shared_with_static_runtimes=yes
9755 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'
9756 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9757
9758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9760 # If the export-symbols file already is a .def file, use it as
9761 # is; otherwise, prepend EXPORTS...
9762 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9763 cp $export_symbols $output_objdir/$soname.def;
9764 else
9765 echo EXPORTS > $output_objdir/$soname.def;
9766 cat $export_symbols >> $output_objdir/$soname.def;
9767 fi~
9768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9769 else
9770 ld_shlibs=no
9771 fi
9772 ;;
9773
9774 haiku*)
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9776 link_all_deplibs=yes
9777 ;;
9778
9779 os2*)
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_minus_L=yes
9782 allow_undefined_flag=unsupported
9783 shrext_cmds=.dll
9784 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9785 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9786 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9787 $ECHO EXPORTS >> $output_objdir/$libname.def~
9788 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9789 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9790 emximp -o $lib $output_objdir/$libname.def'
9791 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9792 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9793 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9794 $ECHO EXPORTS >> $output_objdir/$libname.def~
9795 prefix_cmds="$SED"~
9796 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9797 prefix_cmds="$prefix_cmds -e 1d";
9798 fi~
9799 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9800 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9801 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9802 emximp -o $lib $output_objdir/$libname.def'
9803 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9804 enable_shared_with_static_runtimes=yes
9805 ;;
9806
9807 interix[3-9]*)
9808 hardcode_direct=no
9809 hardcode_shlibpath_var=no
9810 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9811 export_dynamic_flag_spec='$wl-E'
9812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9813 # Instead, shared libraries are loaded at an image base (0x10000000 by
9814 # default) and relocated if they conflict, which is a slow very memory
9815 # consuming and fragmenting process. To avoid this, we pick a random,
9816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9819 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'
9820 ;;
9821
9822 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9823 tmp_diet=no
9824 if test linux-dietlibc = "$host_os"; then
9825 case $cc_basename in
9826 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9827 esac
9828 fi
9829 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9830 && test no = "$tmp_diet"
9831 then
9832 tmp_addflag=' $pic_flag'
9833 tmp_sharedflag='-shared'
9834 case $cc_basename,$host_cpu in
9835 pgcc*) # Portland Group C compiler
9836 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'
9837 tmp_addflag=' $pic_flag'
9838 ;;
9839 pgf77* | pgf90* | pgf95* | pgfortran*)
9840 # Portland Group f77 and f90 compilers
9841 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'
9842 tmp_addflag=' $pic_flag -Mnomain' ;;
9843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9844 tmp_addflag=' -i_dynamic' ;;
9845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9846 tmp_addflag=' -i_dynamic -nofor_main' ;;
9847 ifc* | ifort*) # Intel Fortran compiler
9848 tmp_addflag=' -nofor_main' ;;
9849 lf95*) # Lahey Fortran 8.1
9850 whole_archive_flag_spec=
9851 tmp_sharedflag='--shared' ;;
9852 nagfor*) # NAGFOR 5.3
9853 tmp_sharedflag='-Wl,-shared' ;;
9854 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9855 tmp_sharedflag='-qmkshrobj'
9856 tmp_addflag= ;;
9857 nvcc*) # Cuda Compiler Driver 2.2
9858 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'
9859 compiler_needs_object=yes
9860 ;;
9861 esac
9862 case `$CC -V 2>&1 | sed 5q` in
9863 *Sun\ C*) # Sun C 5.9
9864 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'
9865 compiler_needs_object=yes
9866 tmp_sharedflag='-G' ;;
9867 *Sun\ F*) # Sun Fortran 8.3
9868 tmp_sharedflag='-G' ;;
9869 esac
9870 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9871
9872 if test yes = "$supports_anon_versioning"; then
9873 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9874 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9875 echo "local: *; };" >> $output_objdir/$libname.ver~
9876 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9877 fi
9878
9879 case $cc_basename in
9880 tcc*)
9881 export_dynamic_flag_spec='-rdynamic'
9882 ;;
9883 xlf* | bgf* | bgxlf* | mpixlf*)
9884 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9885 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9887 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9888 if test yes = "$supports_anon_versioning"; then
9889 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9891 echo "local: *; };" >> $output_objdir/$libname.ver~
9892 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9893 fi
9894 ;;
9895 esac
9896 else
9897 ld_shlibs=no
9898 fi
9899 ;;
9900
9901 netbsd*)
9902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9903 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9904 wlarc=
9905 else
9906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9907 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9908 fi
9909 ;;
9910
9911 solaris*)
9912 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9913 ld_shlibs=no
9914 cat <<_LT_EOF 1>&2
9915
9916 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9917 *** create shared libraries on Solaris systems. Therefore, libtool
9918 *** is disabling shared libraries support. We urge you to upgrade GNU
9919 *** binutils to release 2.9.1 or newer. Another option is to modify
9920 *** your PATH or compiler configuration so that the native linker is
9921 *** used, and then restart.
9922
9923 _LT_EOF
9924 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9926 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9927 else
9928 ld_shlibs=no
9929 fi
9930 ;;
9931
9932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9933 case `$LD -v 2>&1` in
9934 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9935 ld_shlibs=no
9936 cat <<_LT_EOF 1>&2
9937
9938 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9939 *** reliably create shared libraries on SCO systems. Therefore, libtool
9940 *** is disabling shared libraries support. We urge you to upgrade GNU
9941 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9942 *** your PATH or compiler configuration so that the native linker is
9943 *** used, and then restart.
9944
9945 _LT_EOF
9946 ;;
9947 *)
9948 # For security reasons, it is highly recommended that you always
9949 # use absolute paths for naming shared libraries, and exclude the
9950 # DT_RUNPATH tag from executables and libraries. But doing so
9951 # requires that you compile everything twice, which is a pain.
9952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9953 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9956 else
9957 ld_shlibs=no
9958 fi
9959 ;;
9960 esac
9961 ;;
9962
9963 sunos4*)
9964 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9965 wlarc=
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 *)
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9973 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9974 else
9975 ld_shlibs=no
9976 fi
9977 ;;
9978 esac
9979
9980 if test no = "$ld_shlibs"; then
9981 runpath_var=
9982 hardcode_libdir_flag_spec=
9983 export_dynamic_flag_spec=
9984 whole_archive_flag_spec=
9985 fi
9986 else
9987 # PORTME fill in a description of your system's linker (not GNU ld)
9988 case $host_os in
9989 aix3*)
9990 allow_undefined_flag=unsupported
9991 always_export_symbols=yes
9992 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'
9993 # Note: this linker hardcodes the directories in LIBPATH if there
9994 # are no directories specified by -L.
9995 hardcode_minus_L=yes
9996 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9997 # Neither direct hardcoding nor static linking is supported with a
9998 # broken collect2.
9999 hardcode_direct=unsupported
10000 fi
10001 ;;
10002
10003 aix[4-9]*)
10004 if test ia64 = "$host_cpu"; then
10005 # On IA64, the linker does run time linking by default, so we don't
10006 # have to do anything special.
10007 aix_use_runtimelinking=no
10008 exp_sym_flag='-Bexport'
10009 no_entry_flag=
10010 else
10011 # If we're using GNU nm, then we don't want the "-C" option.
10012 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10013 # Without the "-l" option, or with the "-B" option, AIX nm treats
10014 # weak defined symbols like other global defined symbols, whereas
10015 # GNU nm marks them as "W".
10016 # While the 'weak' keyword is ignored in the Export File, we need
10017 # it in the Import File for the 'aix-soname' feature, so we have
10018 # to replace the "-B" option with "-P" for AIX nm.
10019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10020 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'
10021 else
10022 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 == "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'
10023 fi
10024 aix_use_runtimelinking=no
10025
10026 # Test if we are trying to use run time linking or normal
10027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10028 # have runtime linking enabled, and use it for executables.
10029 # For shared libraries, we enable/disable runtime linking
10030 # depending on the kind of the shared library created -
10031 # when "with_aix_soname,aix_use_runtimelinking" is:
10032 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10033 # "aix,yes" lib.so shared, rtl:yes, for executables
10034 # lib.a static archive
10035 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10036 # lib.a(lib.so.V) shared, rtl:no, for executables
10037 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10038 # lib.a(lib.so.V) shared, rtl:no
10039 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10040 # lib.a static archive
10041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10042 for ld_flag in $LDFLAGS; do
10043 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10044 aix_use_runtimelinking=yes
10045 break
10046 fi
10047 done
10048 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10049 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10050 # so we don't have lib.a shared libs to link our executables.
10051 # We have to force runtime linking in this case.
10052 aix_use_runtimelinking=yes
10053 LDFLAGS="$LDFLAGS -Wl,-brtl"
10054 fi
10055 ;;
10056 esac
10057
10058 exp_sym_flag='-bexport'
10059 no_entry_flag='-bnoentry'
10060 fi
10061
10062 # When large executables or shared objects are built, AIX ld can
10063 # have problems creating the table of contents. If linking a library
10064 # or program results in "error TOC overflow" add -mminimal-toc to
10065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10067
10068 archive_cmds=''
10069 hardcode_direct=yes
10070 hardcode_direct_absolute=yes
10071 hardcode_libdir_separator=':'
10072 link_all_deplibs=yes
10073 file_list_spec='$wl-f,'
10074 case $with_aix_soname,$aix_use_runtimelinking in
10075 aix,*) ;; # traditional, no import file
10076 svr4,* | *,yes) # use import file
10077 # The Import File defines what to hardcode.
10078 hardcode_direct=no
10079 hardcode_direct_absolute=no
10080 ;;
10081 esac
10082
10083 if test yes = "$GCC"; then
10084 case $host_os in aix4.[012]|aix4.[012].*)
10085 # We only want to do this on AIX 4.2 and lower, the check
10086 # below for broken collect2 doesn't work under 4.3+
10087 collect2name=`$CC -print-prog-name=collect2`
10088 if test -f "$collect2name" &&
10089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10090 then
10091 # We have reworked collect2
10092 :
10093 else
10094 # We have old collect2
10095 hardcode_direct=unsupported
10096 # It fails to find uninstalled libraries when the uninstalled
10097 # path is not listed in the libpath. Setting hardcode_minus_L
10098 # to unsupported forces relinking
10099 hardcode_minus_L=yes
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_libdir_separator=
10102 fi
10103 ;;
10104 esac
10105 shared_flag='-shared'
10106 if test yes = "$aix_use_runtimelinking"; then
10107 shared_flag="$shared_flag "'$wl-G'
10108 fi
10109 # Need to ensure runtime linking is disabled for the traditional
10110 # shared library, or the linker may eventually find shared libraries
10111 # /with/ Import File - we do not want to mix them.
10112 shared_flag_aix='-shared'
10113 shared_flag_svr4='-shared $wl-G'
10114 else
10115 # not using gcc
10116 if test ia64 = "$host_cpu"; then
10117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10118 # chokes on -Wl,-G. The following line is correct:
10119 shared_flag='-G'
10120 else
10121 if test yes = "$aix_use_runtimelinking"; then
10122 shared_flag='$wl-G'
10123 else
10124 shared_flag='$wl-bM:SRE'
10125 fi
10126 shared_flag_aix='$wl-bM:SRE'
10127 shared_flag_svr4='$wl-G'
10128 fi
10129 fi
10130
10131 export_dynamic_flag_spec='$wl-bexpall'
10132 # It seems that -bexpall does not export symbols beginning with
10133 # underscore (_), so it is better to generate a list of symbols to export.
10134 always_export_symbols=yes
10135 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10136 # Warning - without using the other runtime loading flags (-brtl),
10137 # -berok will link without error, but may produce a broken library.
10138 allow_undefined_flag='-berok'
10139 # Determine the default libpath from the value encoded in an
10140 # empty executable.
10141 if test set = "${lt_cv_aix_libpath+set}"; then
10142 aix_libpath=$lt_cv_aix_libpath
10143 else
10144 if ${lt_cv_aix_libpath_+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149
10150 int
10151 main ()
10152 {
10153
10154 ;
10155 return 0;
10156 }
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10159
10160 lt_aix_libpath_sed='
10161 /Import File Strings/,/^$/ {
10162 /^0/ {
10163 s/^0 *\([^ ]*\) *$/\1/
10164 p
10165 }
10166 }'
10167 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10168 # Check for a 64-bit object if we didn't find anything.
10169 if test -z "$lt_cv_aix_libpath_"; then
10170 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10171 fi
10172 fi
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 if test -z "$lt_cv_aix_libpath_"; then
10176 lt_cv_aix_libpath_=/usr/lib:/lib
10177 fi
10178
10179 fi
10180
10181 aix_libpath=$lt_cv_aix_libpath_
10182 fi
10183
10184 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10185 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
10186 else
10187 if test ia64 = "$host_cpu"; then
10188 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10189 allow_undefined_flag="-z nodefs"
10190 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"
10191 else
10192 # Determine the default libpath from the value encoded in an
10193 # empty executable.
10194 if test set = "${lt_cv_aix_libpath+set}"; then
10195 aix_libpath=$lt_cv_aix_libpath
10196 else
10197 if ${lt_cv_aix_libpath_+:} false; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202
10203 int
10204 main ()
10205 {
10206
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212
10213 lt_aix_libpath_sed='
10214 /Import File Strings/,/^$/ {
10215 /^0/ {
10216 s/^0 *\([^ ]*\) *$/\1/
10217 p
10218 }
10219 }'
10220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10221 # Check for a 64-bit object if we didn't find anything.
10222 if test -z "$lt_cv_aix_libpath_"; then
10223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10224 fi
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 if test -z "$lt_cv_aix_libpath_"; then
10229 lt_cv_aix_libpath_=/usr/lib:/lib
10230 fi
10231
10232 fi
10233
10234 aix_libpath=$lt_cv_aix_libpath_
10235 fi
10236
10237 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10238 # Warning - without using the other run time loading flags,
10239 # -berok will link without error, but may produce a broken library.
10240 no_undefined_flag=' $wl-bernotok'
10241 allow_undefined_flag=' $wl-berok'
10242 if test yes = "$with_gnu_ld"; then
10243 # We only use this code for GNU lds that support --whole-archive.
10244 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10245 else
10246 # Exported symbols can be pulled into shared objects from archives
10247 whole_archive_flag_spec='$convenience'
10248 fi
10249 archive_cmds_need_lc=yes
10250 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10251 # -brtl affects multiple linker settings, -berok does not and is overridden later
10252 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10253 if test svr4 != "$with_aix_soname"; then
10254 # This is similar to how AIX traditionally builds its shared libraries.
10255 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'
10256 fi
10257 if test aix != "$with_aix_soname"; then
10258 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'
10259 else
10260 # used by -dlpreopen to get the symbols
10261 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10262 fi
10263 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10264 fi
10265 fi
10266 ;;
10267
10268 amigaos*)
10269 case $host_cpu in
10270 powerpc)
10271 # see comment about AmigaOS4 .so support
10272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10273 archive_expsym_cmds=''
10274 ;;
10275 m68k)
10276 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)'
10277 hardcode_libdir_flag_spec='-L$libdir'
10278 hardcode_minus_L=yes
10279 ;;
10280 esac
10281 ;;
10282
10283 bsdi[45]*)
10284 export_dynamic_flag_spec=-rdynamic
10285 ;;
10286
10287 cygwin* | mingw* | pw32* | cegcc*)
10288 # When not using gcc, we currently assume that we are using
10289 # Microsoft Visual C++.
10290 # hardcode_libdir_flag_spec is actually meaningless, as there is
10291 # no search path for DLLs.
10292 case $cc_basename in
10293 cl*)
10294 # Native MSVC
10295 hardcode_libdir_flag_spec=' '
10296 allow_undefined_flag=unsupported
10297 always_export_symbols=yes
10298 file_list_spec='@'
10299 # Tell ltmain to make .lib files, not .a files.
10300 libext=lib
10301 # Tell ltmain to make .dll files, not .so files.
10302 shrext_cmds=.dll
10303 # FIXME: Setting linknames here is a bad hack.
10304 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10305 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10306 cp "$export_symbols" "$output_objdir/$soname.def";
10307 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10308 else
10309 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10310 fi~
10311 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10312 linknames='
10313 # The linker will not automatically build a static lib if we build a DLL.
10314 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10315 enable_shared_with_static_runtimes=yes
10316 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10318 # Don't use ranlib
10319 old_postinstall_cmds='chmod 644 $oldlib'
10320 postlink_cmds='lt_outputfile="@OUTPUT@"~
10321 lt_tool_outputfile="@TOOL_OUTPUT@"~
10322 case $lt_outputfile in
10323 *.exe|*.EXE) ;;
10324 *)
10325 lt_outputfile=$lt_outputfile.exe
10326 lt_tool_outputfile=$lt_tool_outputfile.exe
10327 ;;
10328 esac~
10329 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10330 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10331 $RM "$lt_outputfile.manifest";
10332 fi'
10333 ;;
10334 *)
10335 # Assume MSVC wrapper
10336 hardcode_libdir_flag_spec=' '
10337 allow_undefined_flag=unsupported
10338 # Tell ltmain to make .lib files, not .a files.
10339 libext=lib
10340 # Tell ltmain to make .dll files, not .so files.
10341 shrext_cmds=.dll
10342 # FIXME: Setting linknames here is a bad hack.
10343 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10344 # The linker will automatically build a .lib file if we build a DLL.
10345 old_archive_from_new_cmds='true'
10346 # FIXME: Should let the user specify the lib program.
10347 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10348 enable_shared_with_static_runtimes=yes
10349 ;;
10350 esac
10351 ;;
10352
10353 darwin* | rhapsody*)
10354
10355
10356 archive_cmds_need_lc=no
10357 hardcode_direct=no
10358 hardcode_automatic=yes
10359 hardcode_shlibpath_var=unsupported
10360 if test yes = "$lt_cv_ld_force_load"; then
10361 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\"`'
10362
10363 else
10364 whole_archive_flag_spec=''
10365 fi
10366 link_all_deplibs=yes
10367 allow_undefined_flag=$_lt_dar_allow_undefined
10368 case $cc_basename in
10369 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10370 *) _lt_dar_can_shared=$GCC ;;
10371 esac
10372 if test yes = "$_lt_dar_can_shared"; then
10373 output_verbose_link_cmd=func_echo_all
10374 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10375 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10376 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"
10377 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"
10378
10379 else
10380 ld_shlibs=no
10381 fi
10382
10383 ;;
10384
10385 dgux*)
10386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10387 hardcode_libdir_flag_spec='-L$libdir'
10388 hardcode_shlibpath_var=no
10389 ;;
10390
10391 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10392 # support. Future versions do this automatically, but an explicit c++rt0.o
10393 # does not break anything, and helps significantly (at the cost of a little
10394 # extra space).
10395 freebsd2.2*)
10396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10397 hardcode_libdir_flag_spec='-R$libdir'
10398 hardcode_direct=yes
10399 hardcode_shlibpath_var=no
10400 ;;
10401
10402 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10403 freebsd2.*)
10404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10405 hardcode_direct=yes
10406 hardcode_minus_L=yes
10407 hardcode_shlibpath_var=no
10408 ;;
10409
10410 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10411 freebsd* | dragonfly*)
10412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10413 hardcode_libdir_flag_spec='-R$libdir'
10414 hardcode_direct=yes
10415 hardcode_shlibpath_var=no
10416 ;;
10417
10418 hpux9*)
10419 if test yes = "$GCC"; then
10420 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'
10421 else
10422 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'
10423 fi
10424 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10425 hardcode_libdir_separator=:
10426 hardcode_direct=yes
10427
10428 # hardcode_minus_L: Not really in the search PATH,
10429 # but as the default location of the library.
10430 hardcode_minus_L=yes
10431 export_dynamic_flag_spec='$wl-E'
10432 ;;
10433
10434 hpux10*)
10435 if test yes,no = "$GCC,$with_gnu_ld"; then
10436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10437 else
10438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10439 fi
10440 if test no = "$with_gnu_ld"; then
10441 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10442 hardcode_libdir_separator=:
10443 hardcode_direct=yes
10444 hardcode_direct_absolute=yes
10445 export_dynamic_flag_spec='$wl-E'
10446 # hardcode_minus_L: Not really in the search PATH,
10447 # but as the default location of the library.
10448 hardcode_minus_L=yes
10449 fi
10450 ;;
10451
10452 hpux11*)
10453 if test yes,no = "$GCC,$with_gnu_ld"; then
10454 case $host_cpu in
10455 hppa*64*)
10456 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 ;;
10458 ia64*)
10459 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10460 ;;
10461 *)
10462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 esac
10465 else
10466 case $host_cpu in
10467 hppa*64*)
10468 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 ia64*)
10471 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10472 ;;
10473 *)
10474
10475 # Older versions of the 11.00 compiler do not understand -b yet
10476 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10478 $as_echo_n "checking if $CC understands -b... " >&6; }
10479 if ${lt_cv_prog_compiler__b+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 lt_cv_prog_compiler__b=no
10483 save_LDFLAGS=$LDFLAGS
10484 LDFLAGS="$LDFLAGS -b"
10485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10487 # The linker can only warn and ignore the option if not recognized
10488 # So say no if there are warnings
10489 if test -s conftest.err; then
10490 # Append any errors to the config.log.
10491 cat conftest.err 1>&5
10492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10494 if diff conftest.exp conftest.er2 >/dev/null; then
10495 lt_cv_prog_compiler__b=yes
10496 fi
10497 else
10498 lt_cv_prog_compiler__b=yes
10499 fi
10500 fi
10501 $RM -r conftest*
10502 LDFLAGS=$save_LDFLAGS
10503
10504 fi
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10506 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10507
10508 if test yes = "$lt_cv_prog_compiler__b"; then
10509 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10510 else
10511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10512 fi
10513
10514 ;;
10515 esac
10516 fi
10517 if test no = "$with_gnu_ld"; then
10518 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10519 hardcode_libdir_separator=:
10520
10521 case $host_cpu in
10522 hppa*64*|ia64*)
10523 hardcode_direct=no
10524 hardcode_shlibpath_var=no
10525 ;;
10526 *)
10527 hardcode_direct=yes
10528 hardcode_direct_absolute=yes
10529 export_dynamic_flag_spec='$wl-E'
10530
10531 # hardcode_minus_L: Not really in the search PATH,
10532 # but as the default location of the library.
10533 hardcode_minus_L=yes
10534 ;;
10535 esac
10536 fi
10537 ;;
10538
10539 irix5* | irix6* | nonstopux*)
10540 if test yes = "$GCC"; then
10541 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'
10542 # Try to use the -exported_symbol ld option, if it does not
10543 # work, assume that -exports_file does not work either and
10544 # implicitly export all symbols.
10545 # This should be the same for all languages, so no per-tag cache variable.
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10547 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10548 if ${lt_cv_irix_exported_symbol+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 save_LDFLAGS=$LDFLAGS
10552 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10555 int foo (void) { return 0; }
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 lt_cv_irix_exported_symbol=yes
10559 else
10560 lt_cv_irix_exported_symbol=no
10561 fi
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LDFLAGS=$save_LDFLAGS
10565 fi
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10567 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10568 if test yes = "$lt_cv_irix_exported_symbol"; then
10569 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'
10570 fi
10571 else
10572 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'
10573 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'
10574 fi
10575 archive_cmds_need_lc='no'
10576 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10577 hardcode_libdir_separator=:
10578 inherit_rpath=yes
10579 link_all_deplibs=yes
10580 ;;
10581
10582 linux*)
10583 case $cc_basename in
10584 tcc*)
10585 # Fabrice Bellard et al's Tiny C Compiler
10586 ld_shlibs=yes
10587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10588 ;;
10589 esac
10590 ;;
10591
10592 netbsd*)
10593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10595 else
10596 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10597 fi
10598 hardcode_libdir_flag_spec='-R$libdir'
10599 hardcode_direct=yes
10600 hardcode_shlibpath_var=no
10601 ;;
10602
10603 newsos6)
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes
10606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_shlibpath_var=no
10609 ;;
10610
10611 *nto* | *qnx*)
10612 ;;
10613
10614 openbsd* | bitrig*)
10615 if test -f /usr/libexec/ld.so; then
10616 hardcode_direct=yes
10617 hardcode_shlibpath_var=no
10618 hardcode_direct_absolute=yes
10619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10622 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10623 export_dynamic_flag_spec='$wl-E'
10624 else
10625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10626 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10627 fi
10628 else
10629 ld_shlibs=no
10630 fi
10631 ;;
10632
10633 os2*)
10634 hardcode_libdir_flag_spec='-L$libdir'
10635 hardcode_minus_L=yes
10636 allow_undefined_flag=unsupported
10637 shrext_cmds=.dll
10638 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10639 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10640 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10641 $ECHO EXPORTS >> $output_objdir/$libname.def~
10642 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10644 emximp -o $lib $output_objdir/$libname.def'
10645 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10646 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10647 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10648 $ECHO EXPORTS >> $output_objdir/$libname.def~
10649 prefix_cmds="$SED"~
10650 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10651 prefix_cmds="$prefix_cmds -e 1d";
10652 fi~
10653 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10654 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10655 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10656 emximp -o $lib $output_objdir/$libname.def'
10657 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10658 enable_shared_with_static_runtimes=yes
10659 ;;
10660
10661 osf3*)
10662 if test yes = "$GCC"; then
10663 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10664 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'
10665 else
10666 allow_undefined_flag=' -expect_unresolved \*'
10667 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'
10668 fi
10669 archive_cmds_need_lc='no'
10670 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10671 hardcode_libdir_separator=:
10672 ;;
10673
10674 osf4* | osf5*) # as osf3* with the addition of -msym flag
10675 if test yes = "$GCC"; then
10676 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10677 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'
10678 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10679 else
10680 allow_undefined_flag=' -expect_unresolved \*'
10681 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'
10682 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~
10683 $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'
10684
10685 # Both c and cxx compiler support -rpath directly
10686 hardcode_libdir_flag_spec='-rpath $libdir'
10687 fi
10688 archive_cmds_need_lc='no'
10689 hardcode_libdir_separator=:
10690 ;;
10691
10692 solaris*)
10693 no_undefined_flag=' -z defs'
10694 if test yes = "$GCC"; then
10695 wlarc='$wl'
10696 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10698 $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'
10699 else
10700 case `$CC -V 2>&1` in
10701 *"Compilers 5.0"*)
10702 wlarc=''
10703 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10706 ;;
10707 *)
10708 wlarc='$wl'
10709 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10711 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10712 ;;
10713 esac
10714 fi
10715 hardcode_libdir_flag_spec='-R$libdir'
10716 hardcode_shlibpath_var=no
10717 case $host_os in
10718 solaris2.[0-5] | solaris2.[0-5].*) ;;
10719 *)
10720 # The compiler driver will combine and reorder linker options,
10721 # but understands '-z linker_flag'. GCC discards it without '$wl',
10722 # but is careful enough not to reorder.
10723 # Supported since Solaris 2.6 (maybe 2.5.1?)
10724 if test yes = "$GCC"; then
10725 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10726 else
10727 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10728 fi
10729 ;;
10730 esac
10731 link_all_deplibs=yes
10732 ;;
10733
10734 sunos4*)
10735 if test sequent = "$host_vendor"; then
10736 # Use $CC to link under sequent, because it throws in some extra .o
10737 # files that make .init and .fini sections work.
10738 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10739 else
10740 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10741 fi
10742 hardcode_libdir_flag_spec='-L$libdir'
10743 hardcode_direct=yes
10744 hardcode_minus_L=yes
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 sysv4)
10749 case $host_vendor in
10750 sni)
10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10752 hardcode_direct=yes # is this really true???
10753 ;;
10754 siemens)
10755 ## LD is ld it makes a PLAMLIB
10756 ## CC just makes a GrossModule.
10757 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10758 reload_cmds='$CC -r -o $output$reload_objs'
10759 hardcode_direct=no
10760 ;;
10761 motorola)
10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10764 ;;
10765 esac
10766 runpath_var='LD_RUN_PATH'
10767 hardcode_shlibpath_var=no
10768 ;;
10769
10770 sysv4.3*)
10771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772 hardcode_shlibpath_var=no
10773 export_dynamic_flag_spec='-Bexport'
10774 ;;
10775
10776 sysv4*MP*)
10777 if test -d /usr/nec; then
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_shlibpath_var=no
10780 runpath_var=LD_RUN_PATH
10781 hardcode_runpath_var=yes
10782 ld_shlibs=yes
10783 fi
10784 ;;
10785
10786 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10787 no_undefined_flag='$wl-z,text'
10788 archive_cmds_need_lc=no
10789 hardcode_shlibpath_var=no
10790 runpath_var='LD_RUN_PATH'
10791
10792 if test yes = "$GCC"; then
10793 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 else
10796 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 fi
10799 ;;
10800
10801 sysv5* | sco3.2v5* | sco5v6*)
10802 # Note: We CANNOT use -z defs as we might desire, because we do not
10803 # link with -lc, and that would cause any symbols used from libc to
10804 # always be unresolved, which means just about no library would
10805 # ever link correctly. If we're not using GNU ld we use -z text
10806 # though, which does catch some bad symbols but isn't as heavy-handed
10807 # as -z defs.
10808 no_undefined_flag='$wl-z,text'
10809 allow_undefined_flag='$wl-z,nodefs'
10810 archive_cmds_need_lc=no
10811 hardcode_shlibpath_var=no
10812 hardcode_libdir_flag_spec='$wl-R,$libdir'
10813 hardcode_libdir_separator=':'
10814 link_all_deplibs=yes
10815 export_dynamic_flag_spec='$wl-Bexport'
10816 runpath_var='LD_RUN_PATH'
10817
10818 if test yes = "$GCC"; then
10819 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 else
10822 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10824 fi
10825 ;;
10826
10827 uts4*)
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_libdir_flag_spec='-L$libdir'
10830 hardcode_shlibpath_var=no
10831 ;;
10832
10833 *)
10834 ld_shlibs=no
10835 ;;
10836 esac
10837
10838 if test sni = "$host_vendor"; then
10839 case $host in
10840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10841 export_dynamic_flag_spec='$wl-Blargedynsym'
10842 ;;
10843 esac
10844 fi
10845 fi
10846
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10848 $as_echo "$ld_shlibs" >&6; }
10849 test no = "$ld_shlibs" && can_build_shared=no
10850
10851 with_gnu_ld=$with_gnu_ld
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867 #
10868 # Do we need to explicitly link libc?
10869 #
10870 case "x$archive_cmds_need_lc" in
10871 x|xyes)
10872 # Assume -lc should be added
10873 archive_cmds_need_lc=yes
10874
10875 if test yes,yes = "$GCC,$enable_shared"; then
10876 case $archive_cmds in
10877 *'~'*)
10878 # FIXME: we may have to deal with multi-command sequences.
10879 ;;
10880 '$CC '*)
10881 # Test whether the compiler implicitly links with -lc since on some
10882 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10883 # to ld, don't add -lc before -lgcc.
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10885 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10886 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 $RM conftest*
10890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10891
10892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10893 (eval $ac_compile) 2>&5
10894 ac_status=$?
10895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896 test $ac_status = 0; } 2>conftest.err; then
10897 soname=conftest
10898 lib=conftest
10899 libobjs=conftest.$ac_objext
10900 deplibs=
10901 wl=$lt_prog_compiler_wl
10902 pic_flag=$lt_prog_compiler_pic
10903 compiler_flags=-v
10904 linker_flags=-v
10905 verstring=
10906 output_objdir=.
10907 libname=conftest
10908 lt_save_allow_undefined_flag=$allow_undefined_flag
10909 allow_undefined_flag=
10910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10911 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10912 ac_status=$?
10913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914 test $ac_status = 0; }
10915 then
10916 lt_cv_archive_cmds_need_lc=no
10917 else
10918 lt_cv_archive_cmds_need_lc=yes
10919 fi
10920 allow_undefined_flag=$lt_save_allow_undefined_flag
10921 else
10922 cat conftest.err 1>&5
10923 fi
10924 $RM conftest*
10925
10926 fi
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10928 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10929 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10930 ;;
10931 esac
10932 fi
10933 ;;
10934 esac
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11088 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11089
11090 if test yes = "$GCC"; then
11091 case $host_os in
11092 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11093 *) lt_awk_arg='/^libraries:/' ;;
11094 esac
11095 case $host_os in
11096 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11097 *) lt_sed_strip_eq='s|=/|/|g' ;;
11098 esac
11099 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11100 case $lt_search_path_spec in
11101 *\;*)
11102 # if the path contains ";" then we assume it to be the separator
11103 # otherwise default to the standard path separator (i.e. ":") - it is
11104 # assumed that no part of a normal pathname contains ";" but that should
11105 # okay in the real world where ";" in dirpaths is itself problematic.
11106 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11107 ;;
11108 *)
11109 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11110 ;;
11111 esac
11112 # Ok, now we have the path, separated by spaces, we can step through it
11113 # and add multilib dir if necessary...
11114 lt_tmp_lt_search_path_spec=
11115 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11116 # ...but if some path component already ends with the multilib dir we assume
11117 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11118 case "$lt_multi_os_dir; $lt_search_path_spec " in
11119 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11120 lt_multi_os_dir=
11121 ;;
11122 esac
11123 for lt_sys_path in $lt_search_path_spec; do
11124 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11125 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11126 elif test -n "$lt_multi_os_dir"; then
11127 test -d "$lt_sys_path" && \
11128 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11129 fi
11130 done
11131 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11132 BEGIN {RS = " "; FS = "/|\n";} {
11133 lt_foo = "";
11134 lt_count = 0;
11135 for (lt_i = NF; lt_i > 0; lt_i--) {
11136 if ($lt_i != "" && $lt_i != ".") {
11137 if ($lt_i == "..") {
11138 lt_count++;
11139 } else {
11140 if (lt_count == 0) {
11141 lt_foo = "/" $lt_i lt_foo;
11142 } else {
11143 lt_count--;
11144 }
11145 }
11146 }
11147 }
11148 if (lt_foo != "") { lt_freq[lt_foo]++; }
11149 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11150 }'`
11151 # AWK program above erroneously prepends '/' to C:/dos/paths
11152 # for these hosts.
11153 case $host_os in
11154 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11155 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11156 esac
11157 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11158 else
11159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11160 fi
11161 library_names_spec=
11162 libname_spec='lib$name'
11163 soname_spec=
11164 shrext_cmds=.so
11165 postinstall_cmds=
11166 postuninstall_cmds=
11167 finish_cmds=
11168 finish_eval=
11169 shlibpath_var=
11170 shlibpath_overrides_runpath=unknown
11171 version_type=none
11172 dynamic_linker="$host_os ld.so"
11173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11174 need_lib_prefix=unknown
11175 hardcode_into_libs=no
11176
11177 # when you set need_version to no, make sure it does not cause -set_version
11178 # flags to be left without arguments
11179 need_version=unknown
11180
11181
11182
11183 case $host_os in
11184 aix3*)
11185 version_type=linux # correct to gnu/linux during the next big refactor
11186 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11187 shlibpath_var=LIBPATH
11188
11189 # AIX 3 has no versioning support, so we append a major version to the name.
11190 soname_spec='$libname$release$shared_ext$major'
11191 ;;
11192
11193 aix[4-9]*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 need_lib_prefix=no
11196 need_version=no
11197 hardcode_into_libs=yes
11198 if test ia64 = "$host_cpu"; then
11199 # AIX 5 supports IA64
11200 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 else
11203 # With GCC up to 2.95.x, collect2 would create an import file
11204 # for dependence libraries. The import file would start with
11205 # the line '#! .'. This would cause the generated library to
11206 # depend on '.', always an invalid library. This was fixed in
11207 # development snapshots of GCC prior to 3.0.
11208 case $host_os in
11209 aix4 | aix4.[01] | aix4.[01].*)
11210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11211 echo ' yes '
11212 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11213 :
11214 else
11215 can_build_shared=no
11216 fi
11217 ;;
11218 esac
11219 # Using Import Files as archive members, it is possible to support
11220 # filename-based versioning of shared library archives on AIX. While
11221 # this would work for both with and without runtime linking, it will
11222 # prevent static linking of such archives. So we do filename-based
11223 # shared library versioning with .so extension only, which is used
11224 # when both runtime linking and shared linking is enabled.
11225 # Unfortunately, runtime linking may impact performance, so we do
11226 # not want this to be the default eventually. Also, we use the
11227 # versioned .so libs for executables only if there is the -brtl
11228 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11229 # To allow for filename-based versioning support, we need to create
11230 # libNAME.so.V as an archive file, containing:
11231 # *) an Import File, referring to the versioned filename of the
11232 # archive as well as the shared archive member, telling the
11233 # bitwidth (32 or 64) of that shared object, and providing the
11234 # list of exported symbols of that shared object, eventually
11235 # decorated with the 'weak' keyword
11236 # *) the shared object with the F_LOADONLY flag set, to really avoid
11237 # it being seen by the linker.
11238 # At run time we better use the real file rather than another symlink,
11239 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11240
11241 case $with_aix_soname,$aix_use_runtimelinking in
11242 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11243 # soname into executable. Probably we can add versioning support to
11244 # collect2, so additional links can be useful in future.
11245 aix,yes) # traditional libtool
11246 dynamic_linker='AIX unversionable lib.so'
11247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11248 # instead of lib<name>.a to let people know that these are not
11249 # typical AIX shared libraries.
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251 ;;
11252 aix,no) # traditional AIX only
11253 dynamic_linker='AIX lib.a(lib.so.V)'
11254 # We preserve .a as extension for shared libraries through AIX4.2
11255 # and later when we are not doing run time linking.
11256 library_names_spec='$libname$release.a $libname.a'
11257 soname_spec='$libname$release$shared_ext$major'
11258 ;;
11259 svr4,*) # full svr4 only
11260 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11261 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11262 # We do not specify a path in Import Files, so LIBPATH fires.
11263 shlibpath_overrides_runpath=yes
11264 ;;
11265 *,yes) # both, prefer svr4
11266 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11267 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11268 # unpreferred sharedlib libNAME.a needs extra handling
11269 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"'
11270 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"'
11271 # We do not specify a path in Import Files, so LIBPATH fires.
11272 shlibpath_overrides_runpath=yes
11273 ;;
11274 *,no) # both, prefer aix
11275 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11276 library_names_spec='$libname$release.a $libname.a'
11277 soname_spec='$libname$release$shared_ext$major'
11278 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11279 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)'
11280 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"'
11281 ;;
11282 esac
11283 shlibpath_var=LIBPATH
11284 fi
11285 ;;
11286
11287 amigaos*)
11288 case $host_cpu in
11289 powerpc)
11290 # Since July 2007 AmigaOS4 officially supports .so libraries.
11291 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11293 ;;
11294 m68k)
11295 library_names_spec='$libname.ixlibrary $libname.a'
11296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11297 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'
11298 ;;
11299 esac
11300 ;;
11301
11302 beos*)
11303 library_names_spec='$libname$shared_ext'
11304 dynamic_linker="$host_os ld.so"
11305 shlibpath_var=LIBRARY_PATH
11306 ;;
11307
11308 bsdi[45]*)
11309 version_type=linux # correct to gnu/linux during the next big refactor
11310 need_version=no
11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312 soname_spec='$libname$release$shared_ext$major'
11313 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11316 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11317 # the default ld.so.conf also contains /usr/contrib/lib and
11318 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11319 # libtool to hard-code these into programs
11320 ;;
11321
11322 cygwin* | mingw* | pw32* | cegcc*)
11323 version_type=windows
11324 shrext_cmds=.dll
11325 need_version=no
11326 need_lib_prefix=no
11327
11328 case $GCC,$cc_basename in
11329 yes,*)
11330 # gcc
11331 library_names_spec='$libname.dll.a'
11332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11333 postinstall_cmds='base_file=`basename \$file`~
11334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11335 dldir=$destdir/`dirname \$dlpath`~
11336 test -d \$dldir || mkdir -p \$dldir~
11337 $install_prog $dir/$dlname \$dldir/$dlname~
11338 chmod a+x \$dldir/$dlname~
11339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11341 fi'
11342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11343 dlpath=$dir/\$dldll~
11344 $RM \$dlpath'
11345 shlibpath_overrides_runpath=yes
11346
11347 case $host_os in
11348 cygwin*)
11349 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11350 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11351
11352 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11353 ;;
11354 mingw* | cegcc*)
11355 # MinGW DLLs use traditional 'lib' prefix
11356 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11357 ;;
11358 pw32*)
11359 # pw32 DLLs use 'pw' prefix rather than 'lib'
11360 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11361 ;;
11362 esac
11363 dynamic_linker='Win32 ld.exe'
11364 ;;
11365
11366 *,cl*)
11367 # Native MSVC
11368 libname_spec='$name'
11369 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11370 library_names_spec='$libname.dll.lib'
11371
11372 case $build_os in
11373 mingw*)
11374 sys_lib_search_path_spec=
11375 lt_save_ifs=$IFS
11376 IFS=';'
11377 for lt_path in $LIB
11378 do
11379 IFS=$lt_save_ifs
11380 # Let DOS variable expansion print the short 8.3 style file name.
11381 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11382 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11383 done
11384 IFS=$lt_save_ifs
11385 # Convert to MSYS style.
11386 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11387 ;;
11388 cygwin*)
11389 # Convert to unix form, then to dos form, then back to unix form
11390 # but this time dos style (no spaces!) so that the unix form looks
11391 # like /cygdrive/c/PROGRA~1:/cygdr...
11392 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11393 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11394 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11395 ;;
11396 *)
11397 sys_lib_search_path_spec=$LIB
11398 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11399 # It is most probably a Windows format PATH.
11400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11401 else
11402 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11403 fi
11404 # FIXME: find the short name or the path components, as spaces are
11405 # common. (e.g. "Program Files" -> "PROGRA~1")
11406 ;;
11407 esac
11408
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \$file`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname'
11415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11416 dlpath=$dir/\$dldll~
11417 $RM \$dlpath'
11418 shlibpath_overrides_runpath=yes
11419 dynamic_linker='Win32 link.exe'
11420 ;;
11421
11422 *)
11423 # Assume MSVC wrapper
11424 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11425 dynamic_linker='Win32 ld.exe'
11426 ;;
11427 esac
11428 # FIXME: first we should search . and the directory the executable is in
11429 shlibpath_var=PATH
11430 ;;
11431
11432 darwin* | rhapsody*)
11433 dynamic_linker="$host_os dyld"
11434 version_type=darwin
11435 need_lib_prefix=no
11436 need_version=no
11437 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11438 soname_spec='$libname$release$major$shared_ext'
11439 shlibpath_overrides_runpath=yes
11440 shlibpath_var=DYLD_LIBRARY_PATH
11441 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11442
11443 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11444 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11445 ;;
11446
11447 dgux*)
11448 version_type=linux # correct to gnu/linux during the next big refactor
11449 need_lib_prefix=no
11450 need_version=no
11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452 soname_spec='$libname$release$shared_ext$major'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 ;;
11455
11456 freebsd* | dragonfly*)
11457 # DragonFly does not have aout. When/if they implement a new
11458 # versioning mechanism, adjust this.
11459 if test -x /usr/bin/objformat; then
11460 objformat=`/usr/bin/objformat`
11461 else
11462 case $host_os in
11463 freebsd[23].*) objformat=aout ;;
11464 *) objformat=elf ;;
11465 esac
11466 fi
11467 version_type=freebsd-$objformat
11468 case $version_type in
11469 freebsd-elf*)
11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 soname_spec='$libname$release$shared_ext$major'
11472 need_version=no
11473 need_lib_prefix=no
11474 ;;
11475 freebsd-*)
11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11477 need_version=yes
11478 ;;
11479 esac
11480 shlibpath_var=LD_LIBRARY_PATH
11481 case $host_os in
11482 freebsd2.*)
11483 shlibpath_overrides_runpath=yes
11484 ;;
11485 freebsd3.[01]* | freebsdelf3.[01]*)
11486 shlibpath_overrides_runpath=yes
11487 hardcode_into_libs=yes
11488 ;;
11489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11491 shlibpath_overrides_runpath=no
11492 hardcode_into_libs=yes
11493 ;;
11494 *) # from 4.6 on, and DragonFly
11495 shlibpath_overrides_runpath=yes
11496 hardcode_into_libs=yes
11497 ;;
11498 esac
11499 ;;
11500
11501 haiku*)
11502 version_type=linux # correct to gnu/linux during the next big refactor
11503 need_lib_prefix=no
11504 need_version=no
11505 dynamic_linker="$host_os runtime_loader"
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 shlibpath_var=LIBRARY_PATH
11509 shlibpath_overrides_runpath=no
11510 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11511 hardcode_into_libs=yes
11512 ;;
11513
11514 hpux9* | hpux10* | hpux11*)
11515 # Give a soname corresponding to the major version so that dld.sl refuses to
11516 # link against other versions.
11517 version_type=sunos
11518 need_lib_prefix=no
11519 need_version=no
11520 case $host_cpu in
11521 ia64*)
11522 shrext_cmds='.so'
11523 hardcode_into_libs=yes
11524 dynamic_linker="$host_os dld.so"
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528 soname_spec='$libname$release$shared_ext$major'
11529 if test 32 = "$HPUX_IA64_MODE"; then
11530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11531 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11532 else
11533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11534 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11535 fi
11536 ;;
11537 hppa*64*)
11538 shrext_cmds='.sl'
11539 hardcode_into_libs=yes
11540 dynamic_linker="$host_os dld.sl"
11541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 soname_spec='$libname$release$shared_ext$major'
11545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11547 ;;
11548 *)
11549 shrext_cmds='.sl'
11550 dynamic_linker="$host_os dld.sl"
11551 shlibpath_var=SHLIB_PATH
11552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11554 soname_spec='$libname$release$shared_ext$major'
11555 ;;
11556 esac
11557 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11558 postinstall_cmds='chmod 555 $lib'
11559 # or fails outright, so override atomically:
11560 install_override_mode=555
11561 ;;
11562
11563 interix[3-9]*)
11564 version_type=linux # correct to gnu/linux during the next big refactor
11565 need_lib_prefix=no
11566 need_version=no
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11568 soname_spec='$libname$release$shared_ext$major'
11569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=no
11572 hardcode_into_libs=yes
11573 ;;
11574
11575 irix5* | irix6* | nonstopux*)
11576 case $host_os in
11577 nonstopux*) version_type=nonstopux ;;
11578 *)
11579 if test yes = "$lt_cv_prog_gnu_ld"; then
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 else
11582 version_type=irix
11583 fi ;;
11584 esac
11585 need_lib_prefix=no
11586 need_version=no
11587 soname_spec='$libname$release$shared_ext$major'
11588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11589 case $host_os in
11590 irix5* | nonstopux*)
11591 libsuff= shlibsuff=
11592 ;;
11593 *)
11594 case $LD in # libtool.m4 will add one of these switches to LD
11595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11596 libsuff= shlibsuff= libmagic=32-bit;;
11597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11598 libsuff=32 shlibsuff=N32 libmagic=N32;;
11599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11601 *) libsuff= shlibsuff= libmagic=never-match;;
11602 esac
11603 ;;
11604 esac
11605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11606 shlibpath_overrides_runpath=no
11607 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11608 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11609 hardcode_into_libs=yes
11610 ;;
11611
11612 # No shared lib support for Linux oldld, aout, or coff.
11613 linux*oldld* | linux*aout* | linux*coff*)
11614 dynamic_linker=no
11615 ;;
11616
11617 linux*android*)
11618 version_type=none # Android doesn't support versioned libraries.
11619 need_lib_prefix=no
11620 need_version=no
11621 library_names_spec='$libname$release$shared_ext'
11622 soname_spec='$libname$release$shared_ext'
11623 finish_cmds=
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626
11627 # This implies no fast_install, which is unacceptable.
11628 # Some rework will be needed to allow for fast_install
11629 # before this can be enabled.
11630 hardcode_into_libs=yes
11631
11632 dynamic_linker='Android linker'
11633 # Don't embed -rpath directories since the linker doesn't support them.
11634 hardcode_libdir_flag_spec='-L$libdir'
11635 ;;
11636
11637 # This must be glibc/ELF.
11638 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11639 version_type=linux # correct to gnu/linux during the next big refactor
11640 need_lib_prefix=no
11641 need_version=no
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643 soname_spec='$libname$release$shared_ext$major'
11644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=no
11647
11648 # Some binutils ld are patched to set DT_RUNPATH
11649 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 lt_cv_shlibpath_overrides_runpath=no
11653 save_LDFLAGS=$LDFLAGS
11654 save_libdir=$libdir
11655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659
11660 int
11661 main ()
11662 {
11663
11664 ;
11665 return 0;
11666 }
11667 _ACEOF
11668 if ac_fn_c_try_link "$LINENO"; then :
11669 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11670 lt_cv_shlibpath_overrides_runpath=yes
11671 fi
11672 fi
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 LDFLAGS=$save_LDFLAGS
11676 libdir=$save_libdir
11677
11678 fi
11679
11680 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11681
11682 # This implies no fast_install, which is unacceptable.
11683 # Some rework will be needed to allow for fast_install
11684 # before this can be enabled.
11685 hardcode_into_libs=yes
11686
11687 # Add ABI-specific directories to the system library path.
11688 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11689
11690 # Ideally, we could use ldconfig to report *all* directores which are
11691 # searched for libraries, however this is still not possible. Aside from not
11692 # being certain /sbin/ldconfig is available, command
11693 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11694 # even though it is searched at run-time. Try to do the best guess by
11695 # appending ld.so.conf contents (and includes) to the search path.
11696 if test -f /etc/ld.so.conf; then
11697 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' ' '`
11698 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11699 fi
11700
11701 # We used to test for /lib/ld.so.1 and disable shared libraries on
11702 # powerpc, because MkLinux only supported shared libraries with the
11703 # GNU dynamic linker. Since this was broken with cross compilers,
11704 # most powerpc-linux boxes support dynamic linking these days and
11705 # people can always --disable-shared, the test was removed, and we
11706 # assume the GNU/Linux dynamic linker is in use.
11707 dynamic_linker='GNU/Linux ld.so'
11708 ;;
11709
11710 netbsd*)
11711 version_type=sunos
11712 need_lib_prefix=no
11713 need_version=no
11714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11717 dynamic_linker='NetBSD (a.out) ld.so'
11718 else
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11721 dynamic_linker='NetBSD ld.elf_so'
11722 fi
11723 shlibpath_var=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath=yes
11725 hardcode_into_libs=yes
11726 ;;
11727
11728 newsos6)
11729 version_type=linux # correct to gnu/linux during the next big refactor
11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 shlibpath_overrides_runpath=yes
11733 ;;
11734
11735 *nto* | *qnx*)
11736 version_type=qnx
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740 soname_spec='$libname$release$shared_ext$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=no
11743 hardcode_into_libs=yes
11744 dynamic_linker='ldqnx.so'
11745 ;;
11746
11747 openbsd* | bitrig*)
11748 version_type=sunos
11749 sys_lib_dlsearch_path_spec=/usr/lib
11750 need_lib_prefix=no
11751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11752 need_version=no
11753 else
11754 need_version=yes
11755 fi
11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=yes
11760 ;;
11761
11762 os2*)
11763 libname_spec='$name'
11764 version_type=windows
11765 shrext_cmds=.dll
11766 need_version=no
11767 need_lib_prefix=no
11768 # OS/2 can only load a DLL with a base name of 8 characters or less.
11769 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11770 v=$($ECHO $release$versuffix | tr -d .-);
11771 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11772 $ECHO $n$v`$shared_ext'
11773 library_names_spec='${libname}_dll.$libext'
11774 dynamic_linker='OS/2 ld.exe'
11775 shlibpath_var=BEGINLIBPATH
11776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11778 postinstall_cmds='base_file=`basename \$file`~
11779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11780 dldir=$destdir/`dirname \$dlpath`~
11781 test -d \$dldir || mkdir -p \$dldir~
11782 $install_prog $dir/$dlname \$dldir/$dlname~
11783 chmod a+x \$dldir/$dlname~
11784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11786 fi'
11787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11788 dlpath=$dir/\$dldll~
11789 $RM \$dlpath'
11790 ;;
11791
11792 osf3* | osf4* | osf5*)
11793 version_type=osf
11794 need_lib_prefix=no
11795 need_version=no
11796 soname_spec='$libname$release$shared_ext$major'
11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11801 ;;
11802
11803 rdos*)
11804 dynamic_linker=no
11805 ;;
11806
11807 solaris*)
11808 version_type=linux # correct to gnu/linux during the next big refactor
11809 need_lib_prefix=no
11810 need_version=no
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 soname_spec='$libname$release$shared_ext$major'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=yes
11815 hardcode_into_libs=yes
11816 # ldd complains unless libraries are executable
11817 postinstall_cmds='chmod +x $lib'
11818 ;;
11819
11820 sunos4*)
11821 version_type=sunos
11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=yes
11826 if test yes = "$with_gnu_ld"; then
11827 need_lib_prefix=no
11828 fi
11829 need_version=yes
11830 ;;
11831
11832 sysv4 | sysv4.3*)
11833 version_type=linux # correct to gnu/linux during the next big refactor
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835 soname_spec='$libname$release$shared_ext$major'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 case $host_vendor in
11838 sni)
11839 shlibpath_overrides_runpath=no
11840 need_lib_prefix=no
11841 runpath_var=LD_RUN_PATH
11842 ;;
11843 siemens)
11844 need_lib_prefix=no
11845 ;;
11846 motorola)
11847 need_lib_prefix=no
11848 need_version=no
11849 shlibpath_overrides_runpath=no
11850 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11851 ;;
11852 esac
11853 ;;
11854
11855 sysv4*MP*)
11856 if test -d /usr/nec; then
11857 version_type=linux # correct to gnu/linux during the next big refactor
11858 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11859 soname_spec='$libname$shared_ext.$major'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 fi
11862 ;;
11863
11864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11865 version_type=sco
11866 need_lib_prefix=no
11867 need_version=no
11868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11869 soname_spec='$libname$release$shared_ext$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=yes
11872 hardcode_into_libs=yes
11873 if test yes = "$with_gnu_ld"; then
11874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11875 else
11876 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11877 case $host_os in
11878 sco3.2v5*)
11879 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11880 ;;
11881 esac
11882 fi
11883 sys_lib_dlsearch_path_spec='/usr/lib'
11884 ;;
11885
11886 tpf*)
11887 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11888 version_type=linux # correct to gnu/linux during the next big refactor
11889 need_lib_prefix=no
11890 need_version=no
11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=no
11894 hardcode_into_libs=yes
11895 ;;
11896
11897 uts4*)
11898 version_type=linux # correct to gnu/linux during the next big refactor
11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11900 soname_spec='$libname$release$shared_ext$major'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 ;;
11903
11904 *)
11905 dynamic_linker=no
11906 ;;
11907 esac
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11909 $as_echo "$dynamic_linker" >&6; }
11910 test no = "$dynamic_linker" && can_build_shared=no
11911
11912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11913 if test yes = "$GCC"; then
11914 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11915 fi
11916
11917 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11918 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11919 fi
11920
11921 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11922 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11923 fi
11924
11925 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11926 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11927
11928 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11929 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11930
11931 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11932 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12031 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12032 hardcode_action=
12033 if test -n "$hardcode_libdir_flag_spec" ||
12034 test -n "$runpath_var" ||
12035 test yes = "$hardcode_automatic"; then
12036
12037 # We can hardcode non-existent directories.
12038 if test no != "$hardcode_direct" &&
12039 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12040 # have to relink, otherwise we might link with an installed library
12041 # when we should be linking with a yet-to-be-installed one
12042 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12043 test no != "$hardcode_minus_L"; then
12044 # Linking always hardcodes the temporary library directory.
12045 hardcode_action=relink
12046 else
12047 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12048 hardcode_action=immediate
12049 fi
12050 else
12051 # We cannot hardcode anything, or else we can only hardcode existing
12052 # directories.
12053 hardcode_action=unsupported
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12056 $as_echo "$hardcode_action" >&6; }
12057
12058 if test relink = "$hardcode_action" ||
12059 test yes = "$inherit_rpath"; then
12060 # Fast installation is not supported
12061 enable_fast_install=no
12062 elif test yes = "$shlibpath_overrides_runpath" ||
12063 test no = "$enable_shared"; then
12064 # Fast installation is not necessary
12065 enable_fast_install=needless
12066 fi
12067
12068
12069
12070
12071
12072
12073 if test yes != "$enable_dlopen"; then
12074 enable_dlopen=unknown
12075 enable_dlopen_self=unknown
12076 enable_dlopen_self_static=unknown
12077 else
12078 lt_cv_dlopen=no
12079 lt_cv_dlopen_libs=
12080
12081 case $host_os in
12082 beos*)
12083 lt_cv_dlopen=load_add_on
12084 lt_cv_dlopen_libs=
12085 lt_cv_dlopen_self=yes
12086 ;;
12087
12088 mingw* | pw32* | cegcc*)
12089 lt_cv_dlopen=LoadLibrary
12090 lt_cv_dlopen_libs=
12091 ;;
12092
12093 cygwin*)
12094 lt_cv_dlopen=dlopen
12095 lt_cv_dlopen_libs=
12096 ;;
12097
12098 darwin*)
12099 # if libdl is installed we need to link against it
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12101 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12102 if ${ac_cv_lib_dl_dlopen+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 ac_check_lib_save_LIBS=$LIBS
12106 LIBS="-ldl $LIBS"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char dlopen ();
12117 int
12118 main ()
12119 {
12120 return dlopen ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_link "$LINENO"; then :
12126 ac_cv_lib_dl_dlopen=yes
12127 else
12128 ac_cv_lib_dl_dlopen=no
12129 fi
12130 rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12135 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12136 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12137 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12138 else
12139
12140 lt_cv_dlopen=dyld
12141 lt_cv_dlopen_libs=
12142 lt_cv_dlopen_self=yes
12143
12144 fi
12145
12146 ;;
12147
12148 tpf*)
12149 # Don't try to run any link tests for TPF. We know it's impossible
12150 # because TPF is a cross-compiler, and we know how we open DSOs.
12151 lt_cv_dlopen=dlopen
12152 lt_cv_dlopen_libs=
12153 lt_cv_dlopen_self=no
12154 ;;
12155
12156 *)
12157 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12158 if test "x$ac_cv_func_shl_load" = xyes; then :
12159 lt_cv_dlopen=shl_load
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12162 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12163 if ${ac_cv_lib_dld_shl_load+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-ldld $LIBS"
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char shl_load ();
12178 int
12179 main ()
12180 {
12181 return shl_load ();
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 if ac_fn_c_try_link "$LINENO"; then :
12187 ac_cv_lib_dld_shl_load=yes
12188 else
12189 ac_cv_lib_dld_shl_load=no
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12196 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12197 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12198 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12199 else
12200 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12201 if test "x$ac_cv_func_dlopen" = xyes; then :
12202 lt_cv_dlopen=dlopen
12203 else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12206 if ${ac_cv_lib_dl_dlopen+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-ldl $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char dlopen ();
12221 int
12222 main ()
12223 {
12224 return dlopen ();
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_dl_dlopen=yes
12231 else
12232 ac_cv_lib_dl_dlopen=no
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12240 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12241 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12244 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12245 if ${ac_cv_lib_svld_dlopen+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-lsvld $LIBS"
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char dlopen ();
12260 int
12261 main ()
12262 {
12263 return dlopen ();
12264 ;
12265 return 0;
12266 }
12267 _ACEOF
12268 if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_lib_svld_dlopen=yes
12270 else
12271 ac_cv_lib_svld_dlopen=no
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275 LIBS=$ac_check_lib_save_LIBS
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12278 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12279 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12280 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12283 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12284 if ${ac_cv_lib_dld_dld_link+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-ldld $LIBS"
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char dld_link ();
12299 int
12300 main ()
12301 {
12302 return dld_link ();
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308 ac_cv_lib_dld_dld_link=yes
12309 else
12310 ac_cv_lib_dld_dld_link=no
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12317 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12318 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12319 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12320 fi
12321
12322
12323 fi
12324
12325
12326 fi
12327
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337 ;;
12338 esac
12339
12340 if test no = "$lt_cv_dlopen"; then
12341 enable_dlopen=no
12342 else
12343 enable_dlopen=yes
12344 fi
12345
12346 case $lt_cv_dlopen in
12347 dlopen)
12348 save_CPPFLAGS=$CPPFLAGS
12349 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12350
12351 save_LDFLAGS=$LDFLAGS
12352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12353
12354 save_LIBS=$LIBS
12355 LIBS="$lt_cv_dlopen_libs $LIBS"
12356
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12358 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12359 if ${lt_cv_dlopen_self+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 if test yes = "$cross_compiling"; then :
12363 lt_cv_dlopen_self=cross
12364 else
12365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12366 lt_status=$lt_dlunknown
12367 cat > conftest.$ac_ext <<_LT_EOF
12368 #line $LINENO "configure"
12369 #include "confdefs.h"
12370
12371 #if HAVE_DLFCN_H
12372 #include <dlfcn.h>
12373 #endif
12374
12375 #include <stdio.h>
12376
12377 #ifdef RTLD_GLOBAL
12378 # define LT_DLGLOBAL RTLD_GLOBAL
12379 #else
12380 # ifdef DL_GLOBAL
12381 # define LT_DLGLOBAL DL_GLOBAL
12382 # else
12383 # define LT_DLGLOBAL 0
12384 # endif
12385 #endif
12386
12387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12388 find out it does not work in some platform. */
12389 #ifndef LT_DLLAZY_OR_NOW
12390 # ifdef RTLD_LAZY
12391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12392 # else
12393 # ifdef DL_LAZY
12394 # define LT_DLLAZY_OR_NOW DL_LAZY
12395 # else
12396 # ifdef RTLD_NOW
12397 # define LT_DLLAZY_OR_NOW RTLD_NOW
12398 # else
12399 # ifdef DL_NOW
12400 # define LT_DLLAZY_OR_NOW DL_NOW
12401 # else
12402 # define LT_DLLAZY_OR_NOW 0
12403 # endif
12404 # endif
12405 # endif
12406 # endif
12407 #endif
12408
12409 /* When -fvisibility=hidden is used, assume the code has been annotated
12410 correspondingly for the symbols needed. */
12411 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12412 int fnord () __attribute__((visibility("default")));
12413 #endif
12414
12415 int fnord () { return 42; }
12416 int main ()
12417 {
12418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12419 int status = $lt_dlunknown;
12420
12421 if (self)
12422 {
12423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12424 else
12425 {
12426 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12427 else puts (dlerror ());
12428 }
12429 /* dlclose (self); */
12430 }
12431 else
12432 puts (dlerror ());
12433
12434 return status;
12435 }
12436 _LT_EOF
12437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12438 (eval $ac_link) 2>&5
12439 ac_status=$?
12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12442 (./conftest; exit; ) >&5 2>/dev/null
12443 lt_status=$?
12444 case x$lt_status in
12445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12448 esac
12449 else :
12450 # compilation failed
12451 lt_cv_dlopen_self=no
12452 fi
12453 fi
12454 rm -fr conftest*
12455
12456
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12459 $as_echo "$lt_cv_dlopen_self" >&6; }
12460
12461 if test yes = "$lt_cv_dlopen_self"; then
12462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12465 if ${lt_cv_dlopen_self_static+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 if test yes = "$cross_compiling"; then :
12469 lt_cv_dlopen_self_static=cross
12470 else
12471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12472 lt_status=$lt_dlunknown
12473 cat > conftest.$ac_ext <<_LT_EOF
12474 #line $LINENO "configure"
12475 #include "confdefs.h"
12476
12477 #if HAVE_DLFCN_H
12478 #include <dlfcn.h>
12479 #endif
12480
12481 #include <stdio.h>
12482
12483 #ifdef RTLD_GLOBAL
12484 # define LT_DLGLOBAL RTLD_GLOBAL
12485 #else
12486 # ifdef DL_GLOBAL
12487 # define LT_DLGLOBAL DL_GLOBAL
12488 # else
12489 # define LT_DLGLOBAL 0
12490 # endif
12491 #endif
12492
12493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12494 find out it does not work in some platform. */
12495 #ifndef LT_DLLAZY_OR_NOW
12496 # ifdef RTLD_LAZY
12497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12498 # else
12499 # ifdef DL_LAZY
12500 # define LT_DLLAZY_OR_NOW DL_LAZY
12501 # else
12502 # ifdef RTLD_NOW
12503 # define LT_DLLAZY_OR_NOW RTLD_NOW
12504 # else
12505 # ifdef DL_NOW
12506 # define LT_DLLAZY_OR_NOW DL_NOW
12507 # else
12508 # define LT_DLLAZY_OR_NOW 0
12509 # endif
12510 # endif
12511 # endif
12512 # endif
12513 #endif
12514
12515 /* When -fvisibility=hidden is used, assume the code has been annotated
12516 correspondingly for the symbols needed. */
12517 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12518 int fnord () __attribute__((visibility("default")));
12519 #endif
12520
12521 int fnord () { return 42; }
12522 int main ()
12523 {
12524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12525 int status = $lt_dlunknown;
12526
12527 if (self)
12528 {
12529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12530 else
12531 {
12532 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12533 else puts (dlerror ());
12534 }
12535 /* dlclose (self); */
12536 }
12537 else
12538 puts (dlerror ());
12539
12540 return status;
12541 }
12542 _LT_EOF
12543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12544 (eval $ac_link) 2>&5
12545 ac_status=$?
12546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12547 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12548 (./conftest; exit; ) >&5 2>/dev/null
12549 lt_status=$?
12550 case x$lt_status in
12551 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12552 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12553 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12554 esac
12555 else :
12556 # compilation failed
12557 lt_cv_dlopen_self_static=no
12558 fi
12559 fi
12560 rm -fr conftest*
12561
12562
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12565 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12566 fi
12567
12568 CPPFLAGS=$save_CPPFLAGS
12569 LDFLAGS=$save_LDFLAGS
12570 LIBS=$save_LIBS
12571 ;;
12572 esac
12573
12574 case $lt_cv_dlopen_self in
12575 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12576 *) enable_dlopen_self=unknown ;;
12577 esac
12578
12579 case $lt_cv_dlopen_self_static in
12580 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12581 *) enable_dlopen_self_static=unknown ;;
12582 esac
12583 fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601 striplib=
12602 old_striplib=
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12604 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12605 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12607 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12609 $as_echo "yes" >&6; }
12610 else
12611 # FIXME - insert some real tests, host_os isn't really good enough
12612 case $host_os in
12613 darwin*)
12614 if test -n "$STRIP"; then
12615 striplib="$STRIP -x"
12616 old_striplib="$STRIP -S"
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623 ;;
12624 *)
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626 $as_echo "no" >&6; }
12627 ;;
12628 esac
12629 fi
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642 # Report what library types will actually be built
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12644 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12646 $as_echo "$can_build_shared" >&6; }
12647
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12649 $as_echo_n "checking whether to build shared libraries... " >&6; }
12650 test no = "$can_build_shared" && enable_shared=no
12651
12652 # On AIX, shared libraries and static libraries use the same namespace, and
12653 # are all built from PIC.
12654 case $host_os in
12655 aix3*)
12656 test yes = "$enable_shared" && enable_static=no
12657 if test -n "$RANLIB"; then
12658 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12659 postinstall_cmds='$RANLIB $lib'
12660 fi
12661 ;;
12662
12663 aix[4-9]*)
12664 if test ia64 != "$host_cpu"; then
12665 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12666 yes,aix,yes) ;; # shared object as lib.so file only
12667 yes,svr4,*) ;; # shared object as lib.so archive member only
12668 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12669 esac
12670 fi
12671 ;;
12672 esac
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12674 $as_echo "$enable_shared" >&6; }
12675
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12677 $as_echo_n "checking whether to build static libraries... " >&6; }
12678 # Make sure either enable_shared or enable_static is yes.
12679 test yes = "$enable_shared" || enable_static=yes
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12681 $as_echo "$enable_static" >&6; }
12682
12683
12684
12685
12686 fi
12687 ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692
12693 CC=$lt_save_CC
12694
12695 if test -n "$CXX" && ( test no != "$CXX" &&
12696 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12697 (test g++ != "$CXX"))); then
12698 ac_ext=cpp
12699 ac_cpp='$CXXCPP $CPPFLAGS'
12700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12704 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12705 if test -z "$CXXCPP"; then
12706 if ${ac_cv_prog_CXXCPP+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 # Double quotes because CXXCPP needs to be expanded
12710 for CXXCPP in "$CXX -E" "/lib/cpp"
12711 do
12712 ac_preproc_ok=false
12713 for ac_cxx_preproc_warn_flag in '' yes
12714 do
12715 # Use a header file that comes with gcc, so configuring glibc
12716 # with a fresh cross-compiler works.
12717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 # <limits.h> exists even on freestanding compilers.
12719 # On the NeXT, cc -E runs the code through the compiler's parser,
12720 # not just through cpp. "Syntax error" is here to catch this case.
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #ifdef __STDC__
12724 # include <limits.h>
12725 #else
12726 # include <assert.h>
12727 #endif
12728 Syntax error
12729 _ACEOF
12730 if ac_fn_cxx_try_cpp "$LINENO"; then :
12731
12732 else
12733 # Broken: fails on valid input.
12734 continue
12735 fi
12736 rm -f conftest.err conftest.i conftest.$ac_ext
12737
12738 # OK, works on sane cases. Now check whether nonexistent headers
12739 # can be detected and how.
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 #include <ac_nonexistent.h>
12743 _ACEOF
12744 if ac_fn_cxx_try_cpp "$LINENO"; then :
12745 # Broken: success on invalid input.
12746 continue
12747 else
12748 # Passes both tests.
12749 ac_preproc_ok=:
12750 break
12751 fi
12752 rm -f conftest.err conftest.i conftest.$ac_ext
12753
12754 done
12755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12756 rm -f conftest.i conftest.err conftest.$ac_ext
12757 if $ac_preproc_ok; then :
12758 break
12759 fi
12760
12761 done
12762 ac_cv_prog_CXXCPP=$CXXCPP
12763
12764 fi
12765 CXXCPP=$ac_cv_prog_CXXCPP
12766 else
12767 ac_cv_prog_CXXCPP=$CXXCPP
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12770 $as_echo "$CXXCPP" >&6; }
12771 ac_preproc_ok=false
12772 for ac_cxx_preproc_warn_flag in '' yes
12773 do
12774 # Use a header file that comes with gcc, so configuring glibc
12775 # with a fresh cross-compiler works.
12776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12777 # <limits.h> exists even on freestanding compilers.
12778 # On the NeXT, cc -E runs the code through the compiler's parser,
12779 # not just through cpp. "Syntax error" is here to catch this case.
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #ifdef __STDC__
12783 # include <limits.h>
12784 #else
12785 # include <assert.h>
12786 #endif
12787 Syntax error
12788 _ACEOF
12789 if ac_fn_cxx_try_cpp "$LINENO"; then :
12790
12791 else
12792 # Broken: fails on valid input.
12793 continue
12794 fi
12795 rm -f conftest.err conftest.i conftest.$ac_ext
12796
12797 # OK, works on sane cases. Now check whether nonexistent headers
12798 # can be detected and how.
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <ac_nonexistent.h>
12802 _ACEOF
12803 if ac_fn_cxx_try_cpp "$LINENO"; then :
12804 # Broken: success on invalid input.
12805 continue
12806 else
12807 # Passes both tests.
12808 ac_preproc_ok=:
12809 break
12810 fi
12811 rm -f conftest.err conftest.i conftest.$ac_ext
12812
12813 done
12814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12815 rm -f conftest.i conftest.err conftest.$ac_ext
12816 if $ac_preproc_ok; then :
12817
12818 else
12819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12821 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12822 See \`config.log' for more details" "$LINENO" 5; }
12823 fi
12824
12825 ac_ext=c
12826 ac_cpp='$CPP $CPPFLAGS'
12827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12830
12831 else
12832 _lt_caught_CXX_error=yes
12833 fi
12834
12835 ac_ext=cpp
12836 ac_cpp='$CXXCPP $CPPFLAGS'
12837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12840
12841 archive_cmds_need_lc_CXX=no
12842 allow_undefined_flag_CXX=
12843 always_export_symbols_CXX=no
12844 archive_expsym_cmds_CXX=
12845 compiler_needs_object_CXX=no
12846 export_dynamic_flag_spec_CXX=
12847 hardcode_direct_CXX=no
12848 hardcode_direct_absolute_CXX=no
12849 hardcode_libdir_flag_spec_CXX=
12850 hardcode_libdir_separator_CXX=
12851 hardcode_minus_L_CXX=no
12852 hardcode_shlibpath_var_CXX=unsupported
12853 hardcode_automatic_CXX=no
12854 inherit_rpath_CXX=no
12855 module_cmds_CXX=
12856 module_expsym_cmds_CXX=
12857 link_all_deplibs_CXX=unknown
12858 old_archive_cmds_CXX=$old_archive_cmds
12859 reload_flag_CXX=$reload_flag
12860 reload_cmds_CXX=$reload_cmds
12861 no_undefined_flag_CXX=
12862 whole_archive_flag_spec_CXX=
12863 enable_shared_with_static_runtimes_CXX=no
12864
12865 # Source file extension for C++ test sources.
12866 ac_ext=cpp
12867
12868 # Object file extension for compiled C++ test sources.
12869 objext=o
12870 objext_CXX=$objext
12871
12872 # No sense in running all these tests if we already determined that
12873 # the CXX compiler isn't working. Some variables (like enable_shared)
12874 # are currently assumed to apply to all compilers on this platform,
12875 # and will be corrupted by setting them based on a non-working compiler.
12876 if test yes != "$_lt_caught_CXX_error"; then
12877 # Code to be used in simple compile tests
12878 lt_simple_compile_test_code="int some_variable = 0;"
12879
12880 # Code to be used in simple link tests
12881 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12882
12883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12884
12885
12886
12887
12888
12889
12890 # If no C compiler was specified, use CC.
12891 LTCC=${LTCC-"$CC"}
12892
12893 # If no C compiler flags were specified, use CFLAGS.
12894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12895
12896 # Allow CC to be a program name with arguments.
12897 compiler=$CC
12898
12899
12900 # save warnings/boilerplate of simple test code
12901 ac_outfile=conftest.$ac_objext
12902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12904 _lt_compiler_boilerplate=`cat conftest.err`
12905 $RM conftest*
12906
12907 ac_outfile=conftest.$ac_objext
12908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12910 _lt_linker_boilerplate=`cat conftest.err`
12911 $RM -r conftest*
12912
12913
12914 # Allow CC to be a program name with arguments.
12915 lt_save_CC=$CC
12916 lt_save_CFLAGS=$CFLAGS
12917 lt_save_LD=$LD
12918 lt_save_GCC=$GCC
12919 GCC=$GXX
12920 lt_save_with_gnu_ld=$with_gnu_ld
12921 lt_save_path_LD=$lt_cv_path_LD
12922 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12923 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12924 else
12925 $as_unset lt_cv_prog_gnu_ld
12926 fi
12927 if test -n "${lt_cv_path_LDCXX+set}"; then
12928 lt_cv_path_LD=$lt_cv_path_LDCXX
12929 else
12930 $as_unset lt_cv_path_LD
12931 fi
12932 test -z "${LDCXX+set}" || LD=$LDCXX
12933 CC=${CXX-"c++"}
12934 CFLAGS=$CXXFLAGS
12935 compiler=$CC
12936 compiler_CXX=$CC
12937 func_cc_basename $compiler
12938 cc_basename=$func_cc_basename_result
12939
12940
12941 if test -n "$compiler"; then
12942 # We don't want -fno-exception when compiling C++ code, so set the
12943 # no_builtin_flag separately
12944 if test yes = "$GXX"; then
12945 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12946 else
12947 lt_prog_compiler_no_builtin_flag_CXX=
12948 fi
12949
12950 if test yes = "$GXX"; then
12951 # Set up default GNU C++ configuration
12952
12953
12954
12955 # Check whether --with-gnu-ld was given.
12956 if test "${with_gnu_ld+set}" = set; then :
12957 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12958 else
12959 with_gnu_ld=no
12960 fi
12961
12962 ac_prog=ld
12963 if test yes = "$GCC"; then
12964 # Check if gcc -print-prog-name=ld gives a path.
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12966 $as_echo_n "checking for ld used by $CC... " >&6; }
12967 case $host in
12968 *-*-mingw*)
12969 # gcc leaves a trailing carriage return, which upsets mingw
12970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12971 *)
12972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12973 esac
12974 case $ac_prog in
12975 # Accept absolute paths.
12976 [\\/]* | ?:[\\/]*)
12977 re_direlt='/[^/][^/]*/\.\./'
12978 # Canonicalize the pathname of ld
12979 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12980 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12981 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12982 done
12983 test -z "$LD" && LD=$ac_prog
12984 ;;
12985 "")
12986 # If it fails, then pretend we aren't using GCC.
12987 ac_prog=ld
12988 ;;
12989 *)
12990 # If it is relative, then search for the first ld in PATH.
12991 with_gnu_ld=unknown
12992 ;;
12993 esac
12994 elif test yes = "$with_gnu_ld"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12996 $as_echo_n "checking for GNU ld... " >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12999 $as_echo_n "checking for non-GNU ld... " >&6; }
13000 fi
13001 if ${lt_cv_path_LD+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -z "$LD"; then
13005 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13006 for ac_dir in $PATH; do
13007 IFS=$lt_save_ifs
13008 test -z "$ac_dir" && ac_dir=.
13009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13010 lt_cv_path_LD=$ac_dir/$ac_prog
13011 # Check to see if the program is GNU ld. I'd rather use --version,
13012 # but apparently some variants of GNU ld only accept -v.
13013 # Break only if it was the GNU/non-GNU ld that we prefer.
13014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13015 *GNU* | *'with BFD'*)
13016 test no != "$with_gnu_ld" && break
13017 ;;
13018 *)
13019 test yes != "$with_gnu_ld" && break
13020 ;;
13021 esac
13022 fi
13023 done
13024 IFS=$lt_save_ifs
13025 else
13026 lt_cv_path_LD=$LD # Let the user override the test with a path.
13027 fi
13028 fi
13029
13030 LD=$lt_cv_path_LD
13031 if test -n "$LD"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13033 $as_echo "$LD" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037 fi
13038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13040 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13041 if ${lt_cv_prog_gnu_ld+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13045 case `$LD -v 2>&1 </dev/null` in
13046 *GNU* | *'with BFD'*)
13047 lt_cv_prog_gnu_ld=yes
13048 ;;
13049 *)
13050 lt_cv_prog_gnu_ld=no
13051 ;;
13052 esac
13053 fi
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13055 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13056 with_gnu_ld=$lt_cv_prog_gnu_ld
13057
13058
13059
13060
13061
13062
13063
13064 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13065 # archiving commands below assume that GNU ld is being used.
13066 if test yes = "$with_gnu_ld"; then
13067 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13068 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'
13069
13070 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13071 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13072
13073 # If archive_cmds runs LD, not CC, wlarc should be empty
13074 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13075 # investigate it a little bit more. (MM)
13076 wlarc='$wl'
13077
13078 # ancient GNU ld didn't support --whole-archive et. al.
13079 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13080 $GREP 'no-whole-archive' > /dev/null; then
13081 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13082 else
13083 whole_archive_flag_spec_CXX=
13084 fi
13085 else
13086 with_gnu_ld=no
13087 wlarc=
13088
13089 # A generic and very simple default shared library creation
13090 # command for GNU C++ for the case where it uses the native
13091 # linker, instead of GNU ld. If possible, this setting should
13092 # overridden to take advantage of the native linker features on
13093 # the platform it is being used on.
13094 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13095 fi
13096
13097 # Commands to make compiler produce verbose output that lists
13098 # what "hidden" libraries, object files and flags are used when
13099 # linking a shared library.
13100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13101
13102 else
13103 GXX=no
13104 with_gnu_ld=no
13105 wlarc=
13106 fi
13107
13108 # PORTME: fill in a description of your system's C++ link characteristics
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13110 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13111 ld_shlibs_CXX=yes
13112 case $host_os in
13113 aix3*)
13114 # FIXME: insert proper C++ library support
13115 ld_shlibs_CXX=no
13116 ;;
13117 aix[4-9]*)
13118 if test ia64 = "$host_cpu"; then
13119 # On IA64, the linker does run time linking by default, so we don't
13120 # have to do anything special.
13121 aix_use_runtimelinking=no
13122 exp_sym_flag='-Bexport'
13123 no_entry_flag=
13124 else
13125 aix_use_runtimelinking=no
13126
13127 # Test if we are trying to use run time linking or normal
13128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13129 # have runtime linking enabled, and use it for executables.
13130 # For shared libraries, we enable/disable runtime linking
13131 # depending on the kind of the shared library created -
13132 # when "with_aix_soname,aix_use_runtimelinking" is:
13133 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13134 # "aix,yes" lib.so shared, rtl:yes, for executables
13135 # lib.a static archive
13136 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13137 # lib.a(lib.so.V) shared, rtl:no, for executables
13138 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13139 # lib.a(lib.so.V) shared, rtl:no
13140 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13141 # lib.a static archive
13142 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13143 for ld_flag in $LDFLAGS; do
13144 case $ld_flag in
13145 *-brtl*)
13146 aix_use_runtimelinking=yes
13147 break
13148 ;;
13149 esac
13150 done
13151 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13152 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13153 # so we don't have lib.a shared libs to link our executables.
13154 # We have to force runtime linking in this case.
13155 aix_use_runtimelinking=yes
13156 LDFLAGS="$LDFLAGS -Wl,-brtl"
13157 fi
13158 ;;
13159 esac
13160
13161 exp_sym_flag='-bexport'
13162 no_entry_flag='-bnoentry'
13163 fi
13164
13165 # When large executables or shared objects are built, AIX ld can
13166 # have problems creating the table of contents. If linking a library
13167 # or program results in "error TOC overflow" add -mminimal-toc to
13168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13170
13171 archive_cmds_CXX=''
13172 hardcode_direct_CXX=yes
13173 hardcode_direct_absolute_CXX=yes
13174 hardcode_libdir_separator_CXX=':'
13175 link_all_deplibs_CXX=yes
13176 file_list_spec_CXX='$wl-f,'
13177 case $with_aix_soname,$aix_use_runtimelinking in
13178 aix,*) ;; # no import file
13179 svr4,* | *,yes) # use import file
13180 # The Import File defines what to hardcode.
13181 hardcode_direct_CXX=no
13182 hardcode_direct_absolute_CXX=no
13183 ;;
13184 esac
13185
13186 if test yes = "$GXX"; then
13187 case $host_os in aix4.[012]|aix4.[012].*)
13188 # We only want to do this on AIX 4.2 and lower, the check
13189 # below for broken collect2 doesn't work under 4.3+
13190 collect2name=`$CC -print-prog-name=collect2`
13191 if test -f "$collect2name" &&
13192 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13193 then
13194 # We have reworked collect2
13195 :
13196 else
13197 # We have old collect2
13198 hardcode_direct_CXX=unsupported
13199 # It fails to find uninstalled libraries when the uninstalled
13200 # path is not listed in the libpath. Setting hardcode_minus_L
13201 # to unsupported forces relinking
13202 hardcode_minus_L_CXX=yes
13203 hardcode_libdir_flag_spec_CXX='-L$libdir'
13204 hardcode_libdir_separator_CXX=
13205 fi
13206 esac
13207 shared_flag='-shared'
13208 if test yes = "$aix_use_runtimelinking"; then
13209 shared_flag=$shared_flag' $wl-G'
13210 fi
13211 # Need to ensure runtime linking is disabled for the traditional
13212 # shared library, or the linker may eventually find shared libraries
13213 # /with/ Import File - we do not want to mix them.
13214 shared_flag_aix='-shared'
13215 shared_flag_svr4='-shared $wl-G'
13216 else
13217 # not using gcc
13218 if test ia64 = "$host_cpu"; then
13219 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13220 # chokes on -Wl,-G. The following line is correct:
13221 shared_flag='-G'
13222 else
13223 if test yes = "$aix_use_runtimelinking"; then
13224 shared_flag='$wl-G'
13225 else
13226 shared_flag='$wl-bM:SRE'
13227 fi
13228 shared_flag_aix='$wl-bM:SRE'
13229 shared_flag_svr4='$wl-G'
13230 fi
13231 fi
13232
13233 export_dynamic_flag_spec_CXX='$wl-bexpall'
13234 # It seems that -bexpall does not export symbols beginning with
13235 # underscore (_), so it is better to generate a list of symbols to
13236 # export.
13237 always_export_symbols_CXX=yes
13238 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13239 # Warning - without using the other runtime loading flags (-brtl),
13240 # -berok will link without error, but may produce a broken library.
13241 # The "-G" linker flag allows undefined symbols.
13242 no_undefined_flag_CXX='-bernotok'
13243 # Determine the default libpath from the value encoded in an empty
13244 # executable.
13245 if test set = "${lt_cv_aix_libpath+set}"; then
13246 aix_libpath=$lt_cv_aix_libpath
13247 else
13248 if ${lt_cv_aix_libpath__CXX+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253
13254 int
13255 main ()
13256 {
13257
13258 ;
13259 return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_cxx_try_link "$LINENO"; then :
13263
13264 lt_aix_libpath_sed='
13265 /Import File Strings/,/^$/ {
13266 /^0/ {
13267 s/^0 *\([^ ]*\) *$/\1/
13268 p
13269 }
13270 }'
13271 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13272 # Check for a 64-bit object if we didn't find anything.
13273 if test -z "$lt_cv_aix_libpath__CXX"; then
13274 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13275 fi
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 if test -z "$lt_cv_aix_libpath__CXX"; then
13280 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13281 fi
13282
13283 fi
13284
13285 aix_libpath=$lt_cv_aix_libpath__CXX
13286 fi
13287
13288 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13289
13290 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
13291 else
13292 if test ia64 = "$host_cpu"; then
13293 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13294 allow_undefined_flag_CXX="-z nodefs"
13295 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"
13296 else
13297 # Determine the default libpath from the value encoded in an
13298 # empty executable.
13299 if test set = "${lt_cv_aix_libpath+set}"; then
13300 aix_libpath=$lt_cv_aix_libpath
13301 else
13302 if ${lt_cv_aix_libpath__CXX+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307
13308 int
13309 main ()
13310 {
13311
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 if ac_fn_cxx_try_link "$LINENO"; then :
13317
13318 lt_aix_libpath_sed='
13319 /Import File Strings/,/^$/ {
13320 /^0/ {
13321 s/^0 *\([^ ]*\) *$/\1/
13322 p
13323 }
13324 }'
13325 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13326 # Check for a 64-bit object if we didn't find anything.
13327 if test -z "$lt_cv_aix_libpath__CXX"; then
13328 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13329 fi
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13333 if test -z "$lt_cv_aix_libpath__CXX"; then
13334 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13335 fi
13336
13337 fi
13338
13339 aix_libpath=$lt_cv_aix_libpath__CXX
13340 fi
13341
13342 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13343 # Warning - without using the other run time loading flags,
13344 # -berok will link without error, but may produce a broken library.
13345 no_undefined_flag_CXX=' $wl-bernotok'
13346 allow_undefined_flag_CXX=' $wl-berok'
13347 if test yes = "$with_gnu_ld"; then
13348 # We only use this code for GNU lds that support --whole-archive.
13349 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13350 else
13351 # Exported symbols can be pulled into shared objects from archives
13352 whole_archive_flag_spec_CXX='$convenience'
13353 fi
13354 archive_cmds_need_lc_CXX=yes
13355 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13356 # -brtl affects multiple linker settings, -berok does not and is overridden later
13357 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13358 if test svr4 != "$with_aix_soname"; then
13359 # This is similar to how AIX traditionally builds its shared
13360 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13361 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'
13362 fi
13363 if test aix != "$with_aix_soname"; then
13364 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'
13365 else
13366 # used by -dlpreopen to get the symbols
13367 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13368 fi
13369 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13370 fi
13371 fi
13372 ;;
13373
13374 beos*)
13375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13376 allow_undefined_flag_CXX=unsupported
13377 # Joseph Beckenbach <[email protected]> says some releases of gcc
13378 # support --undefined. This deserves some investigation. FIXME
13379 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13380 else
13381 ld_shlibs_CXX=no
13382 fi
13383 ;;
13384
13385 chorus*)
13386 case $cc_basename in
13387 *)
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13390 ;;
13391 esac
13392 ;;
13393
13394 cygwin* | mingw* | pw32* | cegcc*)
13395 case $GXX,$cc_basename in
13396 ,cl* | no,cl*)
13397 # Native MSVC
13398 # hardcode_libdir_flag_spec is actually meaningless, as there is
13399 # no search path for DLLs.
13400 hardcode_libdir_flag_spec_CXX=' '
13401 allow_undefined_flag_CXX=unsupported
13402 always_export_symbols_CXX=yes
13403 file_list_spec_CXX='@'
13404 # Tell ltmain to make .lib files, not .a files.
13405 libext=lib
13406 # Tell ltmain to make .dll files, not .so files.
13407 shrext_cmds=.dll
13408 # FIXME: Setting linknames here is a bad hack.
13409 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13410 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13411 cp "$export_symbols" "$output_objdir/$soname.def";
13412 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13413 else
13414 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13415 fi~
13416 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13417 linknames='
13418 # The linker will not automatically build a static lib if we build a DLL.
13419 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13420 enable_shared_with_static_runtimes_CXX=yes
13421 # Don't use ranlib
13422 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13423 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13424 lt_tool_outputfile="@TOOL_OUTPUT@"~
13425 case $lt_outputfile in
13426 *.exe|*.EXE) ;;
13427 *)
13428 lt_outputfile=$lt_outputfile.exe
13429 lt_tool_outputfile=$lt_tool_outputfile.exe
13430 ;;
13431 esac~
13432 func_to_tool_file "$lt_outputfile"~
13433 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13434 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13435 $RM "$lt_outputfile.manifest";
13436 fi'
13437 ;;
13438 *)
13439 # g++
13440 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13441 # as there is no search path for DLLs.
13442 hardcode_libdir_flag_spec_CXX='-L$libdir'
13443 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13444 allow_undefined_flag_CXX=unsupported
13445 always_export_symbols_CXX=no
13446 enable_shared_with_static_runtimes_CXX=yes
13447
13448 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13449 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'
13450 # If the export-symbols file already is a .def file, use it as
13451 # is; otherwise, prepend EXPORTS...
13452 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13453 cp $export_symbols $output_objdir/$soname.def;
13454 else
13455 echo EXPORTS > $output_objdir/$soname.def;
13456 cat $export_symbols >> $output_objdir/$soname.def;
13457 fi~
13458 $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'
13459 else
13460 ld_shlibs_CXX=no
13461 fi
13462 ;;
13463 esac
13464 ;;
13465 darwin* | rhapsody*)
13466
13467
13468 archive_cmds_need_lc_CXX=no
13469 hardcode_direct_CXX=no
13470 hardcode_automatic_CXX=yes
13471 hardcode_shlibpath_var_CXX=unsupported
13472 if test yes = "$lt_cv_ld_force_load"; then
13473 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\"`'
13474
13475 else
13476 whole_archive_flag_spec_CXX=''
13477 fi
13478 link_all_deplibs_CXX=yes
13479 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13480 case $cc_basename in
13481 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13482 *) _lt_dar_can_shared=$GCC ;;
13483 esac
13484 if test yes = "$_lt_dar_can_shared"; then
13485 output_verbose_link_cmd=func_echo_all
13486 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"
13487 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13488 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"
13489 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"
13490 if test yes != "$lt_cv_apple_cc_single_mod"; then
13491 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"
13492 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"
13493 fi
13494
13495 else
13496 ld_shlibs_CXX=no
13497 fi
13498
13499 ;;
13500
13501 os2*)
13502 hardcode_libdir_flag_spec_CXX='-L$libdir'
13503 hardcode_minus_L_CXX=yes
13504 allow_undefined_flag_CXX=unsupported
13505 shrext_cmds=.dll
13506 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13507 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13508 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13509 $ECHO EXPORTS >> $output_objdir/$libname.def~
13510 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13511 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13512 emximp -o $lib $output_objdir/$libname.def'
13513 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13514 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13515 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13516 $ECHO EXPORTS >> $output_objdir/$libname.def~
13517 prefix_cmds="$SED"~
13518 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13519 prefix_cmds="$prefix_cmds -e 1d";
13520 fi~
13521 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13522 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13523 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13524 emximp -o $lib $output_objdir/$libname.def'
13525 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13526 enable_shared_with_static_runtimes_CXX=yes
13527 ;;
13528
13529 dgux*)
13530 case $cc_basename in
13531 ec++*)
13532 # FIXME: insert proper C++ library support
13533 ld_shlibs_CXX=no
13534 ;;
13535 ghcx*)
13536 # Green Hills C++ Compiler
13537 # FIXME: insert proper C++ library support
13538 ld_shlibs_CXX=no
13539 ;;
13540 *)
13541 # FIXME: insert proper C++ library support
13542 ld_shlibs_CXX=no
13543 ;;
13544 esac
13545 ;;
13546
13547 freebsd2.*)
13548 # C++ shared libraries reported to be fairly broken before
13549 # switch to ELF
13550 ld_shlibs_CXX=no
13551 ;;
13552
13553 freebsd-elf*)
13554 archive_cmds_need_lc_CXX=no
13555 ;;
13556
13557 freebsd* | dragonfly*)
13558 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13559 # conventions
13560 ld_shlibs_CXX=yes
13561 ;;
13562
13563 haiku*)
13564 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13565 link_all_deplibs_CXX=yes
13566 ;;
13567
13568 hpux9*)
13569 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13570 hardcode_libdir_separator_CXX=:
13571 export_dynamic_flag_spec_CXX='$wl-E'
13572 hardcode_direct_CXX=yes
13573 hardcode_minus_L_CXX=yes # Not in the search PATH,
13574 # but as the default
13575 # location of the library.
13576
13577 case $cc_basename in
13578 CC*)
13579 # FIXME: insert proper C++ library support
13580 ld_shlibs_CXX=no
13581 ;;
13582 aCC*)
13583 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'
13584 # Commands to make compiler produce verbose output that lists
13585 # what "hidden" libraries, object files and flags are used when
13586 # linking a shared library.
13587 #
13588 # There doesn't appear to be a way to prevent this compiler from
13589 # explicitly linking system object files so we need to strip them
13590 # from the output so that they don't get included in the library
13591 # dependencies.
13592 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"'
13593 ;;
13594 *)
13595 if test yes = "$GXX"; then
13596 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'
13597 else
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13600 fi
13601 ;;
13602 esac
13603 ;;
13604
13605 hpux10*|hpux11*)
13606 if test no = "$with_gnu_ld"; then
13607 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13608 hardcode_libdir_separator_CXX=:
13609
13610 case $host_cpu in
13611 hppa*64*|ia64*)
13612 ;;
13613 *)
13614 export_dynamic_flag_spec_CXX='$wl-E'
13615 ;;
13616 esac
13617 fi
13618 case $host_cpu in
13619 hppa*64*|ia64*)
13620 hardcode_direct_CXX=no
13621 hardcode_shlibpath_var_CXX=no
13622 ;;
13623 *)
13624 hardcode_direct_CXX=yes
13625 hardcode_direct_absolute_CXX=yes
13626 hardcode_minus_L_CXX=yes # Not in the search PATH,
13627 # but as the default
13628 # location of the library.
13629 ;;
13630 esac
13631
13632 case $cc_basename in
13633 CC*)
13634 # FIXME: insert proper C++ library support
13635 ld_shlibs_CXX=no
13636 ;;
13637 aCC*)
13638 case $host_cpu in
13639 hppa*64*)
13640 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13641 ;;
13642 ia64*)
13643 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644 ;;
13645 *)
13646 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 ;;
13648 esac
13649 # Commands to make compiler produce verbose output that lists
13650 # what "hidden" libraries, object files and flags are used when
13651 # linking a shared library.
13652 #
13653 # There doesn't appear to be a way to prevent this compiler from
13654 # explicitly linking system object files so we need to strip them
13655 # from the output so that they don't get included in the library
13656 # dependencies.
13657 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"'
13658 ;;
13659 *)
13660 if test yes = "$GXX"; then
13661 if test no = "$with_gnu_ld"; then
13662 case $host_cpu in
13663 hppa*64*)
13664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665 ;;
13666 ia64*)
13667 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 ;;
13669 *)
13670 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'
13671 ;;
13672 esac
13673 fi
13674 else
13675 # FIXME: insert proper C++ library support
13676 ld_shlibs_CXX=no
13677 fi
13678 ;;
13679 esac
13680 ;;
13681
13682 interix[3-9]*)
13683 hardcode_direct_CXX=no
13684 hardcode_shlibpath_var_CXX=no
13685 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13686 export_dynamic_flag_spec_CXX='$wl-E'
13687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13688 # Instead, shared libraries are loaded at an image base (0x10000000 by
13689 # default) and relocated if they conflict, which is a slow very memory
13690 # consuming and fragmenting process. To avoid this, we pick a random,
13691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13693 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'
13694 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'
13695 ;;
13696 irix5* | irix6*)
13697 case $cc_basename in
13698 CC*)
13699 # SGI C++
13700 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'
13701
13702 # Archives containing C++ object files must be created using
13703 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13704 # necessary to make sure instantiated templates are included
13705 # in the archive.
13706 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13707 ;;
13708 *)
13709 if test yes = "$GXX"; then
13710 if test no = "$with_gnu_ld"; then
13711 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'
13712 else
13713 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'
13714 fi
13715 fi
13716 link_all_deplibs_CXX=yes
13717 ;;
13718 esac
13719 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13720 hardcode_libdir_separator_CXX=:
13721 inherit_rpath_CXX=yes
13722 ;;
13723
13724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13725 case $cc_basename in
13726 KCC*)
13727 # Kuck and Associates, Inc. (KAI) C++ Compiler
13728
13729 # KCC will only create a shared library if the output file
13730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13731 # to its proper name (with version) after linking.
13732 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'
13733 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'
13734 # Commands to make compiler produce verbose output that lists
13735 # what "hidden" libraries, object files and flags are used when
13736 # linking a shared library.
13737 #
13738 # There doesn't appear to be a way to prevent this compiler from
13739 # explicitly linking system object files so we need to strip them
13740 # from the output so that they don't get included in the library
13741 # dependencies.
13742 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"'
13743
13744 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13745 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13746
13747 # Archives containing C++ object files must be created using
13748 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13750 ;;
13751 icpc* | ecpc* )
13752 # Intel C++
13753 with_gnu_ld=yes
13754 # version 8.0 and above of icpc choke on multiply defined symbols
13755 # if we add $predep_objects and $postdep_objects, however 7.1 and
13756 # earlier do not add the objects themselves.
13757 case `$CC -V 2>&1` in
13758 *"Version 7."*)
13759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13760 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'
13761 ;;
13762 *) # Version 8.0 or newer
13763 tmp_idyn=
13764 case $host_cpu in
13765 ia64*) tmp_idyn=' -i_dynamic';;
13766 esac
13767 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13768 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'
13769 ;;
13770 esac
13771 archive_cmds_need_lc_CXX=no
13772 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13773 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13774 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13775 ;;
13776 pgCC* | pgcpp*)
13777 # Portland Group C++ compiler
13778 case `$CC -V` in
13779 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13780 prelink_cmds_CXX='tpldir=Template.dir~
13781 rm -rf $tpldir~
13782 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13783 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13784 old_archive_cmds_CXX='tpldir=Template.dir~
13785 rm -rf $tpldir~
13786 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13787 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13788 $RANLIB $oldlib'
13789 archive_cmds_CXX='tpldir=Template.dir~
13790 rm -rf $tpldir~
13791 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13792 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13793 archive_expsym_cmds_CXX='tpldir=Template.dir~
13794 rm -rf $tpldir~
13795 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13796 $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'
13797 ;;
13798 *) # Version 6 and above use weak symbols
13799 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13800 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'
13801 ;;
13802 esac
13803
13804 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13805 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13806 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'
13807 ;;
13808 cxx*)
13809 # Compaq C++
13810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13811 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'
13812
13813 runpath_var=LD_RUN_PATH
13814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13815 hardcode_libdir_separator_CXX=:
13816
13817 # Commands to make compiler produce verbose output that lists
13818 # what "hidden" libraries, object files and flags are used when
13819 # linking a shared library.
13820 #
13821 # There doesn't appear to be a way to prevent this compiler from
13822 # explicitly linking system object files so we need to strip them
13823 # from the output so that they don't get included in the library
13824 # dependencies.
13825 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'
13826 ;;
13827 xl* | mpixl* | bgxl*)
13828 # IBM XL 8.0 on PPC, with GNU ld
13829 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13830 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13831 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13832 if test yes = "$supports_anon_versioning"; then
13833 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13835 echo "local: *; };" >> $output_objdir/$libname.ver~
13836 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13837 fi
13838 ;;
13839 *)
13840 case `$CC -V 2>&1 | sed 5q` in
13841 *Sun\ C*)
13842 # Sun C++ 5.9
13843 no_undefined_flag_CXX=' -zdefs'
13844 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 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'
13846 hardcode_libdir_flag_spec_CXX='-R$libdir'
13847 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'
13848 compiler_needs_object_CXX=yes
13849
13850 # Not sure whether something based on
13851 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13852 # would be better.
13853 output_verbose_link_cmd='func_echo_all'
13854
13855 # Archives containing C++ object files must be created using
13856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13857 # necessary to make sure instantiated templates are included
13858 # in the archive.
13859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13860 ;;
13861 esac
13862 ;;
13863 esac
13864 ;;
13865
13866 lynxos*)
13867 # FIXME: insert proper C++ library support
13868 ld_shlibs_CXX=no
13869 ;;
13870
13871 m88k*)
13872 # FIXME: insert proper C++ library support
13873 ld_shlibs_CXX=no
13874 ;;
13875
13876 mvs*)
13877 case $cc_basename in
13878 cxx*)
13879 # FIXME: insert proper C++ library support
13880 ld_shlibs_CXX=no
13881 ;;
13882 *)
13883 # FIXME: insert proper C++ library support
13884 ld_shlibs_CXX=no
13885 ;;
13886 esac
13887 ;;
13888
13889 netbsd*)
13890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13891 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13892 wlarc=
13893 hardcode_libdir_flag_spec_CXX='-R$libdir'
13894 hardcode_direct_CXX=yes
13895 hardcode_shlibpath_var_CXX=no
13896 fi
13897 # Workaround some broken pre-1.5 toolchains
13898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13899 ;;
13900
13901 *nto* | *qnx*)
13902 ld_shlibs_CXX=yes
13903 ;;
13904
13905 openbsd* | bitrig*)
13906 if test -f /usr/libexec/ld.so; then
13907 hardcode_direct_CXX=yes
13908 hardcode_shlibpath_var_CXX=no
13909 hardcode_direct_absolute_CXX=yes
13910 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13911 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13913 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13914 export_dynamic_flag_spec_CXX='$wl-E'
13915 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13916 fi
13917 output_verbose_link_cmd=func_echo_all
13918 else
13919 ld_shlibs_CXX=no
13920 fi
13921 ;;
13922
13923 osf3* | osf4* | osf5*)
13924 case $cc_basename in
13925 KCC*)
13926 # Kuck and Associates, Inc. (KAI) C++ Compiler
13927
13928 # KCC will only create a shared library if the output file
13929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13930 # to its proper name (with version) after linking.
13931 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'
13932
13933 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13934 hardcode_libdir_separator_CXX=:
13935
13936 # Archives containing C++ object files must be created using
13937 # the KAI C++ compiler.
13938 case $host in
13939 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13940 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13941 esac
13942 ;;
13943 RCC*)
13944 # Rational C++ 2.4.1
13945 # FIXME: insert proper C++ library support
13946 ld_shlibs_CXX=no
13947 ;;
13948 cxx*)
13949 case $host in
13950 osf3*)
13951 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13952 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'
13953 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13954 ;;
13955 *)
13956 allow_undefined_flag_CXX=' -expect_unresolved \*'
13957 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'
13958 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13959 echo "-hidden">> $lib.exp~
13960 $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~
13961 $RM $lib.exp'
13962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13963 ;;
13964 esac
13965
13966 hardcode_libdir_separator_CXX=:
13967
13968 # Commands to make compiler produce verbose output that lists
13969 # what "hidden" libraries, object files and flags are used when
13970 # linking a shared library.
13971 #
13972 # There doesn't appear to be a way to prevent this compiler from
13973 # explicitly linking system object files so we need to strip them
13974 # from the output so that they don't get included in the library
13975 # dependencies.
13976 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"'
13977 ;;
13978 *)
13979 if test yes,no = "$GXX,$with_gnu_ld"; then
13980 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13981 case $host in
13982 osf3*)
13983 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'
13984 ;;
13985 *)
13986 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'
13987 ;;
13988 esac
13989
13990 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13991 hardcode_libdir_separator_CXX=:
13992
13993 # Commands to make compiler produce verbose output that lists
13994 # what "hidden" libraries, object files and flags are used when
13995 # linking a shared library.
13996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13997
13998 else
13999 # FIXME: insert proper C++ library support
14000 ld_shlibs_CXX=no
14001 fi
14002 ;;
14003 esac
14004 ;;
14005
14006 psos*)
14007 # FIXME: insert proper C++ library support
14008 ld_shlibs_CXX=no
14009 ;;
14010
14011 sunos4*)
14012 case $cc_basename in
14013 CC*)
14014 # Sun C++ 4.x
14015 # FIXME: insert proper C++ library support
14016 ld_shlibs_CXX=no
14017 ;;
14018 lcc*)
14019 # Lucid
14020 # FIXME: insert proper C++ library support
14021 ld_shlibs_CXX=no
14022 ;;
14023 *)
14024 # FIXME: insert proper C++ library support
14025 ld_shlibs_CXX=no
14026 ;;
14027 esac
14028 ;;
14029
14030 solaris*)
14031 case $cc_basename in
14032 CC* | sunCC*)
14033 # Sun C++ 4.2, 5.x and Centerline C++
14034 archive_cmds_need_lc_CXX=yes
14035 no_undefined_flag_CXX=' -zdefs'
14036 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14037 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14038 $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'
14039
14040 hardcode_libdir_flag_spec_CXX='-R$libdir'
14041 hardcode_shlibpath_var_CXX=no
14042 case $host_os in
14043 solaris2.[0-5] | solaris2.[0-5].*) ;;
14044 *)
14045 # The compiler driver will combine and reorder linker options,
14046 # but understands '-z linker_flag'.
14047 # Supported since Solaris 2.6 (maybe 2.5.1?)
14048 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14049 ;;
14050 esac
14051 link_all_deplibs_CXX=yes
14052
14053 output_verbose_link_cmd='func_echo_all'
14054
14055 # Archives containing C++ object files must be created using
14056 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14057 # necessary to make sure instantiated templates are included
14058 # in the archive.
14059 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14060 ;;
14061 gcx*)
14062 # Green Hills C++ Compiler
14063 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14064
14065 # The C++ compiler must be used to create the archive.
14066 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14067 ;;
14068 *)
14069 # GNU C++ compiler with Solaris linker
14070 if test yes,no = "$GXX,$with_gnu_ld"; then
14071 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14072 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14073 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14074 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14075 $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'
14076
14077 # Commands to make compiler produce verbose output that lists
14078 # what "hidden" libraries, object files and flags are used when
14079 # linking a shared library.
14080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14081 else
14082 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14083 # platform.
14084 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14085 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14086 $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'
14087
14088 # Commands to make compiler produce verbose output that lists
14089 # what "hidden" libraries, object files and flags are used when
14090 # linking a shared library.
14091 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14092 fi
14093
14094 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14095 case $host_os in
14096 solaris2.[0-5] | solaris2.[0-5].*) ;;
14097 *)
14098 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14099 ;;
14100 esac
14101 fi
14102 ;;
14103 esac
14104 ;;
14105
14106 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14107 no_undefined_flag_CXX='$wl-z,text'
14108 archive_cmds_need_lc_CXX=no
14109 hardcode_shlibpath_var_CXX=no
14110 runpath_var='LD_RUN_PATH'
14111
14112 case $cc_basename in
14113 CC*)
14114 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14115 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14116 ;;
14117 *)
14118 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14120 ;;
14121 esac
14122 ;;
14123
14124 sysv5* | sco3.2v5* | sco5v6*)
14125 # Note: We CANNOT use -z defs as we might desire, because we do not
14126 # link with -lc, and that would cause any symbols used from libc to
14127 # always be unresolved, which means just about no library would
14128 # ever link correctly. If we're not using GNU ld we use -z text
14129 # though, which does catch some bad symbols but isn't as heavy-handed
14130 # as -z defs.
14131 no_undefined_flag_CXX='$wl-z,text'
14132 allow_undefined_flag_CXX='$wl-z,nodefs'
14133 archive_cmds_need_lc_CXX=no
14134 hardcode_shlibpath_var_CXX=no
14135 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14136 hardcode_libdir_separator_CXX=':'
14137 link_all_deplibs_CXX=yes
14138 export_dynamic_flag_spec_CXX='$wl-Bexport'
14139 runpath_var='LD_RUN_PATH'
14140
14141 case $cc_basename in
14142 CC*)
14143 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14144 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14145 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14146 '"$old_archive_cmds_CXX"
14147 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14148 '"$reload_cmds_CXX"
14149 ;;
14150 *)
14151 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153 ;;
14154 esac
14155 ;;
14156
14157 tandem*)
14158 case $cc_basename in
14159 NCC*)
14160 # NonStop-UX NCC 3.20
14161 # FIXME: insert proper C++ library support
14162 ld_shlibs_CXX=no
14163 ;;
14164 *)
14165 # FIXME: insert proper C++ library support
14166 ld_shlibs_CXX=no
14167 ;;
14168 esac
14169 ;;
14170
14171 vxworks*)
14172 # FIXME: insert proper C++ library support
14173 ld_shlibs_CXX=no
14174 ;;
14175
14176 *)
14177 # FIXME: insert proper C++ library support
14178 ld_shlibs_CXX=no
14179 ;;
14180 esac
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14183 $as_echo "$ld_shlibs_CXX" >&6; }
14184 test no = "$ld_shlibs_CXX" && can_build_shared=no
14185
14186 GCC_CXX=$GXX
14187 LD_CXX=$LD
14188
14189 ## CAVEAT EMPTOR:
14190 ## There is no encapsulation within the following macros, do not change
14191 ## the running order or otherwise move them around unless you know exactly
14192 ## what you are doing...
14193 # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14196 predeps_CXX=
14197 postdeps_CXX=
14198 compiler_lib_search_path_CXX=
14199
14200 cat > conftest.$ac_ext <<_LT_EOF
14201 class Foo
14202 {
14203 public:
14204 Foo (void) { a = 0; }
14205 private:
14206 int a;
14207 };
14208 _LT_EOF
14209
14210
14211 _lt_libdeps_save_CFLAGS=$CFLAGS
14212 case "$CC $CFLAGS " in #(
14213 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14214 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14215 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14216 esac
14217
14218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14219 (eval $ac_compile) 2>&5
14220 ac_status=$?
14221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222 test $ac_status = 0; }; then
14223 # Parse the compiler output and extract the necessary
14224 # objects, libraries and library flags.
14225
14226 # Sentinel used to keep track of whether or not we are before
14227 # the conftest object file.
14228 pre_test_object_deps_done=no
14229
14230 for p in `eval "$output_verbose_link_cmd"`; do
14231 case $prev$p in
14232
14233 -L* | -R* | -l*)
14234 # Some compilers place space between "-{L,R}" and the path.
14235 # Remove the space.
14236 if test x-L = "$p" ||
14237 test x-R = "$p"; then
14238 prev=$p
14239 continue
14240 fi
14241
14242 # Expand the sysroot to ease extracting the directories later.
14243 if test -z "$prev"; then
14244 case $p in
14245 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14246 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14247 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14248 esac
14249 fi
14250 case $p in
14251 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14252 esac
14253 if test no = "$pre_test_object_deps_done"; then
14254 case $prev in
14255 -L | -R)
14256 # Internal compiler library paths should come after those
14257 # provided the user. The postdeps already come after the
14258 # user supplied libs so there is no need to process them.
14259 if test -z "$compiler_lib_search_path_CXX"; then
14260 compiler_lib_search_path_CXX=$prev$p
14261 else
14262 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14263 fi
14264 ;;
14265 # The "-l" case would never come before the object being
14266 # linked, so don't bother handling this case.
14267 esac
14268 else
14269 if test -z "$postdeps_CXX"; then
14270 postdeps_CXX=$prev$p
14271 else
14272 postdeps_CXX="${postdeps_CXX} $prev$p"
14273 fi
14274 fi
14275 prev=
14276 ;;
14277
14278 *.lto.$objext) ;; # Ignore GCC LTO objects
14279 *.$objext)
14280 # This assumes that the test object file only shows up
14281 # once in the compiler output.
14282 if test "$p" = "conftest.$objext"; then
14283 pre_test_object_deps_done=yes
14284 continue
14285 fi
14286
14287 if test no = "$pre_test_object_deps_done"; then
14288 if test -z "$predep_objects_CXX"; then
14289 predep_objects_CXX=$p
14290 else
14291 predep_objects_CXX="$predep_objects_CXX $p"
14292 fi
14293 else
14294 if test -z "$postdep_objects_CXX"; then
14295 postdep_objects_CXX=$p
14296 else
14297 postdep_objects_CXX="$postdep_objects_CXX $p"
14298 fi
14299 fi
14300 ;;
14301
14302 *) ;; # Ignore the rest.
14303
14304 esac
14305 done
14306
14307 # Clean up.
14308 rm -f a.out a.exe
14309 else
14310 echo "libtool.m4: error: problem compiling CXX test program"
14311 fi
14312
14313 $RM -f confest.$objext
14314 CFLAGS=$_lt_libdeps_save_CFLAGS
14315
14316 # PORTME: override above test on systems where it is broken
14317 case $host_os in
14318 interix[3-9]*)
14319 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14320 # hack all around it, let's just trust "g++" to DTRT.
14321 predep_objects_CXX=
14322 postdep_objects_CXX=
14323 postdeps_CXX=
14324 ;;
14325 esac
14326
14327
14328 case " $postdeps_CXX " in
14329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14330 esac
14331 compiler_lib_search_dirs_CXX=
14332 if test -n "${compiler_lib_search_path_CXX}"; then
14333 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14334 fi
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366 lt_prog_compiler_wl_CXX=
14367 lt_prog_compiler_pic_CXX=
14368 lt_prog_compiler_static_CXX=
14369
14370
14371 # C++ specific cases for pic, static, wl, etc.
14372 if test yes = "$GXX"; then
14373 lt_prog_compiler_wl_CXX='-Wl,'
14374 lt_prog_compiler_static_CXX='-static'
14375
14376 case $host_os in
14377 aix*)
14378 # All AIX code is PIC.
14379 if test ia64 = "$host_cpu"; then
14380 # AIX 5 now supports IA64 processor
14381 lt_prog_compiler_static_CXX='-Bstatic'
14382 fi
14383 lt_prog_compiler_pic_CXX='-fPIC'
14384 ;;
14385
14386 amigaos*)
14387 case $host_cpu in
14388 powerpc)
14389 # see comment about AmigaOS4 .so support
14390 lt_prog_compiler_pic_CXX='-fPIC'
14391 ;;
14392 m68k)
14393 # FIXME: we need at least 68020 code to build shared libraries, but
14394 # adding the '-m68020' flag to GCC prevents building anything better,
14395 # like '-m68040'.
14396 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14397 ;;
14398 esac
14399 ;;
14400
14401 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14402 # PIC is the default for these OSes.
14403 ;;
14404 mingw* | cygwin* | os2* | pw32* | cegcc*)
14405 # This hack is so that the source file can tell whether it is being
14406 # built for inclusion in a dll (and should export symbols for example).
14407 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14408 # (--disable-auto-import) libraries
14409 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14410 case $host_os in
14411 os2*)
14412 lt_prog_compiler_static_CXX='$wl-static'
14413 ;;
14414 esac
14415 ;;
14416 darwin* | rhapsody*)
14417 # PIC is the default on this platform
14418 # Common symbols not allowed in MH_DYLIB files
14419 lt_prog_compiler_pic_CXX='-fno-common'
14420 ;;
14421 *djgpp*)
14422 # DJGPP does not support shared libraries at all
14423 lt_prog_compiler_pic_CXX=
14424 ;;
14425 haiku*)
14426 # PIC is the default for Haiku.
14427 # The "-static" flag exists, but is broken.
14428 lt_prog_compiler_static_CXX=
14429 ;;
14430 interix[3-9]*)
14431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14432 # Instead, we relocate shared libraries at runtime.
14433 ;;
14434 sysv4*MP*)
14435 if test -d /usr/nec; then
14436 lt_prog_compiler_pic_CXX=-Kconform_pic
14437 fi
14438 ;;
14439 hpux*)
14440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14442 # sets the default TLS model and affects inlining.
14443 case $host_cpu in
14444 hppa*64*)
14445 ;;
14446 *)
14447 lt_prog_compiler_pic_CXX='-fPIC'
14448 ;;
14449 esac
14450 ;;
14451 *qnx* | *nto*)
14452 # QNX uses GNU C++, but need to define -shared option too, otherwise
14453 # it will coredump.
14454 lt_prog_compiler_pic_CXX='-fPIC -shared'
14455 ;;
14456 *)
14457 lt_prog_compiler_pic_CXX='-fPIC'
14458 ;;
14459 esac
14460 else
14461 case $host_os in
14462 aix[4-9]*)
14463 # All AIX code is PIC.
14464 if test ia64 = "$host_cpu"; then
14465 # AIX 5 now supports IA64 processor
14466 lt_prog_compiler_static_CXX='-Bstatic'
14467 else
14468 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14469 fi
14470 ;;
14471 chorus*)
14472 case $cc_basename in
14473 cxch68*)
14474 # Green Hills C++ Compiler
14475 # _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"
14476 ;;
14477 esac
14478 ;;
14479 mingw* | cygwin* | os2* | pw32* | cegcc*)
14480 # This hack is so that the source file can tell whether it is being
14481 # built for inclusion in a dll (and should export symbols for example).
14482 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14483 ;;
14484 dgux*)
14485 case $cc_basename in
14486 ec++*)
14487 lt_prog_compiler_pic_CXX='-KPIC'
14488 ;;
14489 ghcx*)
14490 # Green Hills C++ Compiler
14491 lt_prog_compiler_pic_CXX='-pic'
14492 ;;
14493 *)
14494 ;;
14495 esac
14496 ;;
14497 freebsd* | dragonfly*)
14498 # FreeBSD uses GNU C++
14499 ;;
14500 hpux9* | hpux10* | hpux11*)
14501 case $cc_basename in
14502 CC*)
14503 lt_prog_compiler_wl_CXX='-Wl,'
14504 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14505 if test ia64 != "$host_cpu"; then
14506 lt_prog_compiler_pic_CXX='+Z'
14507 fi
14508 ;;
14509 aCC*)
14510 lt_prog_compiler_wl_CXX='-Wl,'
14511 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14512 case $host_cpu in
14513 hppa*64*|ia64*)
14514 # +Z the default
14515 ;;
14516 *)
14517 lt_prog_compiler_pic_CXX='+Z'
14518 ;;
14519 esac
14520 ;;
14521 *)
14522 ;;
14523 esac
14524 ;;
14525 interix*)
14526 # This is c89, which is MS Visual C++ (no shared libs)
14527 # Anyone wants to do a port?
14528 ;;
14529 irix5* | irix6* | nonstopux*)
14530 case $cc_basename in
14531 CC*)
14532 lt_prog_compiler_wl_CXX='-Wl,'
14533 lt_prog_compiler_static_CXX='-non_shared'
14534 # CC pic flag -KPIC is the default.
14535 ;;
14536 *)
14537 ;;
14538 esac
14539 ;;
14540 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14541 case $cc_basename in
14542 KCC*)
14543 # KAI C++ Compiler
14544 lt_prog_compiler_wl_CXX='--backend -Wl,'
14545 lt_prog_compiler_pic_CXX='-fPIC'
14546 ;;
14547 ecpc* )
14548 # old Intel C++ for x86_64, which still supported -KPIC.
14549 lt_prog_compiler_wl_CXX='-Wl,'
14550 lt_prog_compiler_pic_CXX='-KPIC'
14551 lt_prog_compiler_static_CXX='-static'
14552 ;;
14553 icpc* )
14554 # Intel C++, used to be incompatible with GCC.
14555 # ICC 10 doesn't accept -KPIC any more.
14556 lt_prog_compiler_wl_CXX='-Wl,'
14557 lt_prog_compiler_pic_CXX='-fPIC'
14558 lt_prog_compiler_static_CXX='-static'
14559 ;;
14560 pgCC* | pgcpp*)
14561 # Portland Group C++ compiler
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-fpic'
14564 lt_prog_compiler_static_CXX='-Bstatic'
14565 ;;
14566 cxx*)
14567 # Compaq C++
14568 # Make sure the PIC flag is empty. It appears that all Alpha
14569 # Linux and Compaq Tru64 Unix objects are PIC.
14570 lt_prog_compiler_pic_CXX=
14571 lt_prog_compiler_static_CXX='-non_shared'
14572 ;;
14573 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14574 # IBM XL 8.0, 9.0 on PPC and BlueGene
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_pic_CXX='-qpic'
14577 lt_prog_compiler_static_CXX='-qstaticlink'
14578 ;;
14579 *)
14580 case `$CC -V 2>&1 | sed 5q` in
14581 *Sun\ C*)
14582 # Sun C++ 5.9
14583 lt_prog_compiler_pic_CXX='-KPIC'
14584 lt_prog_compiler_static_CXX='-Bstatic'
14585 lt_prog_compiler_wl_CXX='-Qoption ld '
14586 ;;
14587 esac
14588 ;;
14589 esac
14590 ;;
14591 lynxos*)
14592 ;;
14593 m88k*)
14594 ;;
14595 mvs*)
14596 case $cc_basename in
14597 cxx*)
14598 lt_prog_compiler_pic_CXX='-W c,exportall'
14599 ;;
14600 *)
14601 ;;
14602 esac
14603 ;;
14604 netbsd*)
14605 ;;
14606 *qnx* | *nto*)
14607 # QNX uses GNU C++, but need to define -shared option too, otherwise
14608 # it will coredump.
14609 lt_prog_compiler_pic_CXX='-fPIC -shared'
14610 ;;
14611 osf3* | osf4* | osf5*)
14612 case $cc_basename in
14613 KCC*)
14614 lt_prog_compiler_wl_CXX='--backend -Wl,'
14615 ;;
14616 RCC*)
14617 # Rational C++ 2.4.1
14618 lt_prog_compiler_pic_CXX='-pic'
14619 ;;
14620 cxx*)
14621 # Digital/Compaq C++
14622 lt_prog_compiler_wl_CXX='-Wl,'
14623 # Make sure the PIC flag is empty. It appears that all Alpha
14624 # Linux and Compaq Tru64 Unix objects are PIC.
14625 lt_prog_compiler_pic_CXX=
14626 lt_prog_compiler_static_CXX='-non_shared'
14627 ;;
14628 *)
14629 ;;
14630 esac
14631 ;;
14632 psos*)
14633 ;;
14634 solaris*)
14635 case $cc_basename in
14636 CC* | sunCC*)
14637 # Sun C++ 4.2, 5.x and Centerline C++
14638 lt_prog_compiler_pic_CXX='-KPIC'
14639 lt_prog_compiler_static_CXX='-Bstatic'
14640 lt_prog_compiler_wl_CXX='-Qoption ld '
14641 ;;
14642 gcx*)
14643 # Green Hills C++ Compiler
14644 lt_prog_compiler_pic_CXX='-PIC'
14645 ;;
14646 *)
14647 ;;
14648 esac
14649 ;;
14650 sunos4*)
14651 case $cc_basename in
14652 CC*)
14653 # Sun C++ 4.x
14654 lt_prog_compiler_pic_CXX='-pic'
14655 lt_prog_compiler_static_CXX='-Bstatic'
14656 ;;
14657 lcc*)
14658 # Lucid
14659 lt_prog_compiler_pic_CXX='-pic'
14660 ;;
14661 *)
14662 ;;
14663 esac
14664 ;;
14665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14666 case $cc_basename in
14667 CC*)
14668 lt_prog_compiler_wl_CXX='-Wl,'
14669 lt_prog_compiler_pic_CXX='-KPIC'
14670 lt_prog_compiler_static_CXX='-Bstatic'
14671 ;;
14672 esac
14673 ;;
14674 tandem*)
14675 case $cc_basename in
14676 NCC*)
14677 # NonStop-UX NCC 3.20
14678 lt_prog_compiler_pic_CXX='-KPIC'
14679 ;;
14680 *)
14681 ;;
14682 esac
14683 ;;
14684 vxworks*)
14685 ;;
14686 *)
14687 lt_prog_compiler_can_build_shared_CXX=no
14688 ;;
14689 esac
14690 fi
14691
14692 case $host_os in
14693 # For platforms that do not support PIC, -DPIC is meaningless:
14694 *djgpp*)
14695 lt_prog_compiler_pic_CXX=
14696 ;;
14697 *)
14698 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14699 ;;
14700 esac
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14704 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14711 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14712
14713 #
14714 # Check to make sure the PIC flag actually works.
14715 #
14716 if test -n "$lt_prog_compiler_pic_CXX"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14718 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14719 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14720 $as_echo_n "(cached) " >&6
14721 else
14722 lt_cv_prog_compiler_pic_works_CXX=no
14723 ac_outfile=conftest.$ac_objext
14724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14726 # Insert the option either (1) after the last *FLAGS variable, or
14727 # (2) before a word containing "conftest.", or (3) at the end.
14728 # Note that $ac_compile itself does not contain backslashes and begins
14729 # with a dollar sign (not a hyphen), so the echo should work correctly.
14730 # The option is referenced via a variable to avoid confusing sed.
14731 lt_compile=`echo "$ac_compile" | $SED \
14732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734 -e 's:$: $lt_compiler_flag:'`
14735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736 (eval "$lt_compile" 2>conftest.err)
14737 ac_status=$?
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 if (exit $ac_status) && test -s "$ac_outfile"; then
14741 # The compiler can only warn and ignore the option if not recognized
14742 # So say no if there are warnings other than the usual output.
14743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14746 lt_cv_prog_compiler_pic_works_CXX=yes
14747 fi
14748 fi
14749 $RM conftest*
14750
14751 fi
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14753 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14754
14755 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14756 case $lt_prog_compiler_pic_CXX in
14757 "" | " "*) ;;
14758 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14759 esac
14760 else
14761 lt_prog_compiler_pic_CXX=
14762 lt_prog_compiler_can_build_shared_CXX=no
14763 fi
14764
14765 fi
14766
14767
14768
14769
14770
14771 #
14772 # Check to make sure the static flag actually works.
14773 #
14774 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14776 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14777 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 lt_cv_prog_compiler_static_works_CXX=no
14781 save_LDFLAGS=$LDFLAGS
14782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14785 # The linker can only warn and ignore the option if not recognized
14786 # So say no if there are warnings
14787 if test -s conftest.err; then
14788 # Append any errors to the config.log.
14789 cat conftest.err 1>&5
14790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14792 if diff conftest.exp conftest.er2 >/dev/null; then
14793 lt_cv_prog_compiler_static_works_CXX=yes
14794 fi
14795 else
14796 lt_cv_prog_compiler_static_works_CXX=yes
14797 fi
14798 fi
14799 $RM -r conftest*
14800 LDFLAGS=$save_LDFLAGS
14801
14802 fi
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14804 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14805
14806 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14807 :
14808 else
14809 lt_prog_compiler_static_CXX=
14810 fi
14811
14812
14813
14814
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14816 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14817 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 lt_cv_prog_compiler_c_o_CXX=no
14821 $RM -r conftest 2>/dev/null
14822 mkdir conftest
14823 cd conftest
14824 mkdir out
14825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14826
14827 lt_compiler_flag="-o out/conftest2.$ac_objext"
14828 # Insert the option either (1) after the last *FLAGS variable, or
14829 # (2) before a word containing "conftest.", or (3) at the end.
14830 # Note that $ac_compile itself does not contain backslashes and begins
14831 # with a dollar sign (not a hyphen), so the echo should work correctly.
14832 lt_compile=`echo "$ac_compile" | $SED \
14833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14835 -e 's:$: $lt_compiler_flag:'`
14836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14837 (eval "$lt_compile" 2>out/conftest.err)
14838 ac_status=$?
14839 cat out/conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14842 then
14843 # The compiler can only warn and ignore the option if not recognized
14844 # So say no if there are warnings
14845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14848 lt_cv_prog_compiler_c_o_CXX=yes
14849 fi
14850 fi
14851 chmod u+w . 2>&5
14852 $RM conftest*
14853 # SGI C++ compiler will create directory out/ii_files/ for
14854 # template instantiation
14855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14856 $RM out/* && rmdir out
14857 cd ..
14858 $RM -r conftest
14859 $RM conftest*
14860
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14863 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14864
14865
14866
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14868 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14869 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 lt_cv_prog_compiler_c_o_CXX=no
14873 $RM -r conftest 2>/dev/null
14874 mkdir conftest
14875 cd conftest
14876 mkdir out
14877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878
14879 lt_compiler_flag="-o out/conftest2.$ac_objext"
14880 # Insert the option either (1) after the last *FLAGS variable, or
14881 # (2) before a word containing "conftest.", or (3) at the end.
14882 # Note that $ac_compile itself does not contain backslashes and begins
14883 # with a dollar sign (not a hyphen), so the echo should work correctly.
14884 lt_compile=`echo "$ac_compile" | $SED \
14885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14887 -e 's:$: $lt_compiler_flag:'`
14888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14889 (eval "$lt_compile" 2>out/conftest.err)
14890 ac_status=$?
14891 cat out/conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14894 then
14895 # The compiler can only warn and ignore the option if not recognized
14896 # So say no if there are warnings
14897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14900 lt_cv_prog_compiler_c_o_CXX=yes
14901 fi
14902 fi
14903 chmod u+w . 2>&5
14904 $RM conftest*
14905 # SGI C++ compiler will create directory out/ii_files/ for
14906 # template instantiation
14907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14908 $RM out/* && rmdir out
14909 cd ..
14910 $RM -r conftest
14911 $RM conftest*
14912
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14915 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14916
14917
14918
14919
14920 hard_links=nottested
14921 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14922 # do not overwrite the value of need_locks provided by the user
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14924 $as_echo_n "checking if we can lock with hard links... " >&6; }
14925 hard_links=yes
14926 $RM conftest*
14927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14928 touch conftest.a
14929 ln conftest.a conftest.b 2>&5 || hard_links=no
14930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14932 $as_echo "$hard_links" >&6; }
14933 if test no = "$hard_links"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14935 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14936 need_locks=warn
14937 fi
14938 else
14939 need_locks=no
14940 fi
14941
14942
14943
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14945 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14946
14947 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14948 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14949 case $host_os in
14950 aix[4-9]*)
14951 # If we're using GNU nm, then we don't want the "-C" option.
14952 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14953 # Without the "-l" option, or with the "-B" option, AIX nm treats
14954 # weak defined symbols like other global defined symbols, whereas
14955 # GNU nm marks them as "W".
14956 # While the 'weak' keyword is ignored in the Export File, we need
14957 # it in the Import File for the 'aix-soname' feature, so we have
14958 # to replace the "-B" option with "-P" for AIX nm.
14959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14960 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'
14961 else
14962 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 == "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'
14963 fi
14964 ;;
14965 pw32*)
14966 export_symbols_cmds_CXX=$ltdll_cmds
14967 ;;
14968 cygwin* | mingw* | cegcc*)
14969 case $cc_basename in
14970 cl*)
14971 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14972 ;;
14973 *)
14974 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'
14975 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14976 ;;
14977 esac
14978 ;;
14979 *)
14980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14981 ;;
14982 esac
14983
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14985 $as_echo "$ld_shlibs_CXX" >&6; }
14986 test no = "$ld_shlibs_CXX" && can_build_shared=no
14987
14988 with_gnu_ld_CXX=$with_gnu_ld
14989
14990
14991
14992
14993
14994
14995 #
14996 # Do we need to explicitly link libc?
14997 #
14998 case "x$archive_cmds_need_lc_CXX" in
14999 x|xyes)
15000 # Assume -lc should be added
15001 archive_cmds_need_lc_CXX=yes
15002
15003 if test yes,yes = "$GCC,$enable_shared"; then
15004 case $archive_cmds_CXX in
15005 *'~'*)
15006 # FIXME: we may have to deal with multi-command sequences.
15007 ;;
15008 '$CC '*)
15009 # Test whether the compiler implicitly links with -lc since on some
15010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15011 # to ld, don't add -lc before -lgcc.
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15014 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15015 $as_echo_n "(cached) " >&6
15016 else
15017 $RM conftest*
15018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15019
15020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15021 (eval $ac_compile) 2>&5
15022 ac_status=$?
15023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15024 test $ac_status = 0; } 2>conftest.err; then
15025 soname=conftest
15026 lib=conftest
15027 libobjs=conftest.$ac_objext
15028 deplibs=
15029 wl=$lt_prog_compiler_wl_CXX
15030 pic_flag=$lt_prog_compiler_pic_CXX
15031 compiler_flags=-v
15032 linker_flags=-v
15033 verstring=
15034 output_objdir=.
15035 libname=conftest
15036 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15037 allow_undefined_flag_CXX=
15038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15039 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15040 ac_status=$?
15041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042 test $ac_status = 0; }
15043 then
15044 lt_cv_archive_cmds_need_lc_CXX=no
15045 else
15046 lt_cv_archive_cmds_need_lc_CXX=yes
15047 fi
15048 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15049 else
15050 cat conftest.err 1>&5
15051 fi
15052 $RM conftest*
15053
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15056 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15057 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15058 ;;
15059 esac
15060 fi
15061 ;;
15062 esac
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15126 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15127
15128 library_names_spec=
15129 libname_spec='lib$name'
15130 soname_spec=
15131 shrext_cmds=.so
15132 postinstall_cmds=
15133 postuninstall_cmds=
15134 finish_cmds=
15135 finish_eval=
15136 shlibpath_var=
15137 shlibpath_overrides_runpath=unknown
15138 version_type=none
15139 dynamic_linker="$host_os ld.so"
15140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15141 need_lib_prefix=unknown
15142 hardcode_into_libs=no
15143
15144 # when you set need_version to no, make sure it does not cause -set_version
15145 # flags to be left without arguments
15146 need_version=unknown
15147
15148
15149
15150 case $host_os in
15151 aix3*)
15152 version_type=linux # correct to gnu/linux during the next big refactor
15153 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15154 shlibpath_var=LIBPATH
15155
15156 # AIX 3 has no versioning support, so we append a major version to the name.
15157 soname_spec='$libname$release$shared_ext$major'
15158 ;;
15159
15160 aix[4-9]*)
15161 version_type=linux # correct to gnu/linux during the next big refactor
15162 need_lib_prefix=no
15163 need_version=no
15164 hardcode_into_libs=yes
15165 if test ia64 = "$host_cpu"; then
15166 # AIX 5 supports IA64
15167 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15168 shlibpath_var=LD_LIBRARY_PATH
15169 else
15170 # With GCC up to 2.95.x, collect2 would create an import file
15171 # for dependence libraries. The import file would start with
15172 # the line '#! .'. This would cause the generated library to
15173 # depend on '.', always an invalid library. This was fixed in
15174 # development snapshots of GCC prior to 3.0.
15175 case $host_os in
15176 aix4 | aix4.[01] | aix4.[01].*)
15177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15178 echo ' yes '
15179 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15180 :
15181 else
15182 can_build_shared=no
15183 fi
15184 ;;
15185 esac
15186 # Using Import Files as archive members, it is possible to support
15187 # filename-based versioning of shared library archives on AIX. While
15188 # this would work for both with and without runtime linking, it will
15189 # prevent static linking of such archives. So we do filename-based
15190 # shared library versioning with .so extension only, which is used
15191 # when both runtime linking and shared linking is enabled.
15192 # Unfortunately, runtime linking may impact performance, so we do
15193 # not want this to be the default eventually. Also, we use the
15194 # versioned .so libs for executables only if there is the -brtl
15195 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15196 # To allow for filename-based versioning support, we need to create
15197 # libNAME.so.V as an archive file, containing:
15198 # *) an Import File, referring to the versioned filename of the
15199 # archive as well as the shared archive member, telling the
15200 # bitwidth (32 or 64) of that shared object, and providing the
15201 # list of exported symbols of that shared object, eventually
15202 # decorated with the 'weak' keyword
15203 # *) the shared object with the F_LOADONLY flag set, to really avoid
15204 # it being seen by the linker.
15205 # At run time we better use the real file rather than another symlink,
15206 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15207
15208 case $with_aix_soname,$aix_use_runtimelinking in
15209 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15210 # soname into executable. Probably we can add versioning support to
15211 # collect2, so additional links can be useful in future.
15212 aix,yes) # traditional libtool
15213 dynamic_linker='AIX unversionable lib.so'
15214 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15215 # instead of lib<name>.a to let people know that these are not
15216 # typical AIX shared libraries.
15217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15218 ;;
15219 aix,no) # traditional AIX only
15220 dynamic_linker='AIX lib.a(lib.so.V)'
15221 # We preserve .a as extension for shared libraries through AIX4.2
15222 # and later when we are not doing run time linking.
15223 library_names_spec='$libname$release.a $libname.a'
15224 soname_spec='$libname$release$shared_ext$major'
15225 ;;
15226 svr4,*) # full svr4 only
15227 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15228 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15229 # We do not specify a path in Import Files, so LIBPATH fires.
15230 shlibpath_overrides_runpath=yes
15231 ;;
15232 *,yes) # both, prefer svr4
15233 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15234 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15235 # unpreferred sharedlib libNAME.a needs extra handling
15236 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"'
15237 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"'
15238 # We do not specify a path in Import Files, so LIBPATH fires.
15239 shlibpath_overrides_runpath=yes
15240 ;;
15241 *,no) # both, prefer aix
15242 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15243 library_names_spec='$libname$release.a $libname.a'
15244 soname_spec='$libname$release$shared_ext$major'
15245 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15246 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)'
15247 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"'
15248 ;;
15249 esac
15250 shlibpath_var=LIBPATH
15251 fi
15252 ;;
15253
15254 amigaos*)
15255 case $host_cpu in
15256 powerpc)
15257 # Since July 2007 AmigaOS4 officially supports .so libraries.
15258 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15260 ;;
15261 m68k)
15262 library_names_spec='$libname.ixlibrary $libname.a'
15263 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15264 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'
15265 ;;
15266 esac
15267 ;;
15268
15269 beos*)
15270 library_names_spec='$libname$shared_ext'
15271 dynamic_linker="$host_os ld.so"
15272 shlibpath_var=LIBRARY_PATH
15273 ;;
15274
15275 bsdi[45]*)
15276 version_type=linux # correct to gnu/linux during the next big refactor
15277 need_version=no
15278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15279 soname_spec='$libname$release$shared_ext$major'
15280 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15283 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15284 # the default ld.so.conf also contains /usr/contrib/lib and
15285 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15286 # libtool to hard-code these into programs
15287 ;;
15288
15289 cygwin* | mingw* | pw32* | cegcc*)
15290 version_type=windows
15291 shrext_cmds=.dll
15292 need_version=no
15293 need_lib_prefix=no
15294
15295 case $GCC,$cc_basename in
15296 yes,*)
15297 # gcc
15298 library_names_spec='$libname.dll.a'
15299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15300 postinstall_cmds='base_file=`basename \$file`~
15301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15302 dldir=$destdir/`dirname \$dlpath`~
15303 test -d \$dldir || mkdir -p \$dldir~
15304 $install_prog $dir/$dlname \$dldir/$dlname~
15305 chmod a+x \$dldir/$dlname~
15306 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15307 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15308 fi'
15309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15310 dlpath=$dir/\$dldll~
15311 $RM \$dlpath'
15312 shlibpath_overrides_runpath=yes
15313
15314 case $host_os in
15315 cygwin*)
15316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15317 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15318
15319 ;;
15320 mingw* | cegcc*)
15321 # MinGW DLLs use traditional 'lib' prefix
15322 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15323 ;;
15324 pw32*)
15325 # pw32 DLLs use 'pw' prefix rather than 'lib'
15326 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15327 ;;
15328 esac
15329 dynamic_linker='Win32 ld.exe'
15330 ;;
15331
15332 *,cl*)
15333 # Native MSVC
15334 libname_spec='$name'
15335 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15336 library_names_spec='$libname.dll.lib'
15337
15338 case $build_os in
15339 mingw*)
15340 sys_lib_search_path_spec=
15341 lt_save_ifs=$IFS
15342 IFS=';'
15343 for lt_path in $LIB
15344 do
15345 IFS=$lt_save_ifs
15346 # Let DOS variable expansion print the short 8.3 style file name.
15347 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15348 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15349 done
15350 IFS=$lt_save_ifs
15351 # Convert to MSYS style.
15352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15353 ;;
15354 cygwin*)
15355 # Convert to unix form, then to dos form, then back to unix form
15356 # but this time dos style (no spaces!) so that the unix form looks
15357 # like /cygdrive/c/PROGRA~1:/cygdr...
15358 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15359 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15360 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15361 ;;
15362 *)
15363 sys_lib_search_path_spec=$LIB
15364 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15365 # It is most probably a Windows format PATH.
15366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15367 else
15368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15369 fi
15370 # FIXME: find the short name or the path components, as spaces are
15371 # common. (e.g. "Program Files" -> "PROGRA~1")
15372 ;;
15373 esac
15374
15375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15376 postinstall_cmds='base_file=`basename \$file`~
15377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15378 dldir=$destdir/`dirname \$dlpath`~
15379 test -d \$dldir || mkdir -p \$dldir~
15380 $install_prog $dir/$dlname \$dldir/$dlname'
15381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15382 dlpath=$dir/\$dldll~
15383 $RM \$dlpath'
15384 shlibpath_overrides_runpath=yes
15385 dynamic_linker='Win32 link.exe'
15386 ;;
15387
15388 *)
15389 # Assume MSVC wrapper
15390 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15391 dynamic_linker='Win32 ld.exe'
15392 ;;
15393 esac
15394 # FIXME: first we should search . and the directory the executable is in
15395 shlibpath_var=PATH
15396 ;;
15397
15398 darwin* | rhapsody*)
15399 dynamic_linker="$host_os dyld"
15400 version_type=darwin
15401 need_lib_prefix=no
15402 need_version=no
15403 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15404 soname_spec='$libname$release$major$shared_ext'
15405 shlibpath_overrides_runpath=yes
15406 shlibpath_var=DYLD_LIBRARY_PATH
15407 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15408
15409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15410 ;;
15411
15412 dgux*)
15413 version_type=linux # correct to gnu/linux during the next big refactor
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15417 soname_spec='$libname$release$shared_ext$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 ;;
15420
15421 freebsd* | dragonfly*)
15422 # DragonFly does not have aout. When/if they implement a new
15423 # versioning mechanism, adjust this.
15424 if test -x /usr/bin/objformat; then
15425 objformat=`/usr/bin/objformat`
15426 else
15427 case $host_os in
15428 freebsd[23].*) objformat=aout ;;
15429 *) objformat=elf ;;
15430 esac
15431 fi
15432 version_type=freebsd-$objformat
15433 case $version_type in
15434 freebsd-elf*)
15435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15436 soname_spec='$libname$release$shared_ext$major'
15437 need_version=no
15438 need_lib_prefix=no
15439 ;;
15440 freebsd-*)
15441 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15442 need_version=yes
15443 ;;
15444 esac
15445 shlibpath_var=LD_LIBRARY_PATH
15446 case $host_os in
15447 freebsd2.*)
15448 shlibpath_overrides_runpath=yes
15449 ;;
15450 freebsd3.[01]* | freebsdelf3.[01]*)
15451 shlibpath_overrides_runpath=yes
15452 hardcode_into_libs=yes
15453 ;;
15454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15456 shlibpath_overrides_runpath=no
15457 hardcode_into_libs=yes
15458 ;;
15459 *) # from 4.6 on, and DragonFly
15460 shlibpath_overrides_runpath=yes
15461 hardcode_into_libs=yes
15462 ;;
15463 esac
15464 ;;
15465
15466 haiku*)
15467 version_type=linux # correct to gnu/linux during the next big refactor
15468 need_lib_prefix=no
15469 need_version=no
15470 dynamic_linker="$host_os runtime_loader"
15471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15472 soname_spec='$libname$release$shared_ext$major'
15473 shlibpath_var=LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
15475 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15476 hardcode_into_libs=yes
15477 ;;
15478
15479 hpux9* | hpux10* | hpux11*)
15480 # Give a soname corresponding to the major version so that dld.sl refuses to
15481 # link against other versions.
15482 version_type=sunos
15483 need_lib_prefix=no
15484 need_version=no
15485 case $host_cpu in
15486 ia64*)
15487 shrext_cmds='.so'
15488 hardcode_into_libs=yes
15489 dynamic_linker="$host_os dld.so"
15490 shlibpath_var=LD_LIBRARY_PATH
15491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15493 soname_spec='$libname$release$shared_ext$major'
15494 if test 32 = "$HPUX_IA64_MODE"; then
15495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15496 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15497 else
15498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15499 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15500 fi
15501 ;;
15502 hppa*64*)
15503 shrext_cmds='.sl'
15504 hardcode_into_libs=yes
15505 dynamic_linker="$host_os dld.sl"
15506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15509 soname_spec='$libname$release$shared_ext$major'
15510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15512 ;;
15513 *)
15514 shrext_cmds='.sl'
15515 dynamic_linker="$host_os dld.sl"
15516 shlibpath_var=SHLIB_PATH
15517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15519 soname_spec='$libname$release$shared_ext$major'
15520 ;;
15521 esac
15522 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15523 postinstall_cmds='chmod 555 $lib'
15524 # or fails outright, so override atomically:
15525 install_override_mode=555
15526 ;;
15527
15528 interix[3-9]*)
15529 version_type=linux # correct to gnu/linux during the next big refactor
15530 need_lib_prefix=no
15531 need_version=no
15532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15533 soname_spec='$libname$release$shared_ext$major'
15534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 shlibpath_overrides_runpath=no
15537 hardcode_into_libs=yes
15538 ;;
15539
15540 irix5* | irix6* | nonstopux*)
15541 case $host_os in
15542 nonstopux*) version_type=nonstopux ;;
15543 *)
15544 if test yes = "$lt_cv_prog_gnu_ld"; then
15545 version_type=linux # correct to gnu/linux during the next big refactor
15546 else
15547 version_type=irix
15548 fi ;;
15549 esac
15550 need_lib_prefix=no
15551 need_version=no
15552 soname_spec='$libname$release$shared_ext$major'
15553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15554 case $host_os in
15555 irix5* | nonstopux*)
15556 libsuff= shlibsuff=
15557 ;;
15558 *)
15559 case $LD in # libtool.m4 will add one of these switches to LD
15560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15561 libsuff= shlibsuff= libmagic=32-bit;;
15562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15563 libsuff=32 shlibsuff=N32 libmagic=N32;;
15564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15566 *) libsuff= shlibsuff= libmagic=never-match;;
15567 esac
15568 ;;
15569 esac
15570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15571 shlibpath_overrides_runpath=no
15572 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15573 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15574 hardcode_into_libs=yes
15575 ;;
15576
15577 # No shared lib support for Linux oldld, aout, or coff.
15578 linux*oldld* | linux*aout* | linux*coff*)
15579 dynamic_linker=no
15580 ;;
15581
15582 linux*android*)
15583 version_type=none # Android doesn't support versioned libraries.
15584 need_lib_prefix=no
15585 need_version=no
15586 library_names_spec='$libname$release$shared_ext'
15587 soname_spec='$libname$release$shared_ext'
15588 finish_cmds=
15589 shlibpath_var=LD_LIBRARY_PATH
15590 shlibpath_overrides_runpath=yes
15591
15592 # This implies no fast_install, which is unacceptable.
15593 # Some rework will be needed to allow for fast_install
15594 # before this can be enabled.
15595 hardcode_into_libs=yes
15596
15597 dynamic_linker='Android linker'
15598 # Don't embed -rpath directories since the linker doesn't support them.
15599 hardcode_libdir_flag_spec_CXX='-L$libdir'
15600 ;;
15601
15602 # This must be glibc/ELF.
15603 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15604 version_type=linux # correct to gnu/linux during the next big refactor
15605 need_lib_prefix=no
15606 need_version=no
15607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15608 soname_spec='$libname$release$shared_ext$major'
15609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 shlibpath_overrides_runpath=no
15612
15613 # Some binutils ld are patched to set DT_RUNPATH
15614 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15615 $as_echo_n "(cached) " >&6
15616 else
15617 lt_cv_shlibpath_overrides_runpath=no
15618 save_LDFLAGS=$LDFLAGS
15619 save_libdir=$libdir
15620 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15621 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624
15625 int
15626 main ()
15627 {
15628
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_cxx_try_link "$LINENO"; then :
15634 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15635 lt_cv_shlibpath_overrides_runpath=yes
15636 fi
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640 LDFLAGS=$save_LDFLAGS
15641 libdir=$save_libdir
15642
15643 fi
15644
15645 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15646
15647 # This implies no fast_install, which is unacceptable.
15648 # Some rework will be needed to allow for fast_install
15649 # before this can be enabled.
15650 hardcode_into_libs=yes
15651
15652 # Add ABI-specific directories to the system library path.
15653 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15654
15655 # Ideally, we could use ldconfig to report *all* directores which are
15656 # searched for libraries, however this is still not possible. Aside from not
15657 # being certain /sbin/ldconfig is available, command
15658 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15659 # even though it is searched at run-time. Try to do the best guess by
15660 # appending ld.so.conf contents (and includes) to the search path.
15661 if test -f /etc/ld.so.conf; then
15662 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' ' '`
15663 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15664 fi
15665
15666 # We used to test for /lib/ld.so.1 and disable shared libraries on
15667 # powerpc, because MkLinux only supported shared libraries with the
15668 # GNU dynamic linker. Since this was broken with cross compilers,
15669 # most powerpc-linux boxes support dynamic linking these days and
15670 # people can always --disable-shared, the test was removed, and we
15671 # assume the GNU/Linux dynamic linker is in use.
15672 dynamic_linker='GNU/Linux ld.so'
15673 ;;
15674
15675 netbsd*)
15676 version_type=sunos
15677 need_lib_prefix=no
15678 need_version=no
15679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15680 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15682 dynamic_linker='NetBSD (a.out) ld.so'
15683 else
15684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15685 soname_spec='$libname$release$shared_ext$major'
15686 dynamic_linker='NetBSD ld.elf_so'
15687 fi
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes
15690 hardcode_into_libs=yes
15691 ;;
15692
15693 newsos6)
15694 version_type=linux # correct to gnu/linux during the next big refactor
15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15698 ;;
15699
15700 *nto* | *qnx*)
15701 version_type=qnx
15702 need_lib_prefix=no
15703 need_version=no
15704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15705 soname_spec='$libname$release$shared_ext$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=no
15708 hardcode_into_libs=yes
15709 dynamic_linker='ldqnx.so'
15710 ;;
15711
15712 openbsd* | bitrig*)
15713 version_type=sunos
15714 sys_lib_dlsearch_path_spec=/usr/lib
15715 need_lib_prefix=no
15716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15717 need_version=no
15718 else
15719 need_version=yes
15720 fi
15721 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 shlibpath_overrides_runpath=yes
15725 ;;
15726
15727 os2*)
15728 libname_spec='$name'
15729 version_type=windows
15730 shrext_cmds=.dll
15731 need_version=no
15732 need_lib_prefix=no
15733 # OS/2 can only load a DLL with a base name of 8 characters or less.
15734 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15735 v=$($ECHO $release$versuffix | tr -d .-);
15736 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15737 $ECHO $n$v`$shared_ext'
15738 library_names_spec='${libname}_dll.$libext'
15739 dynamic_linker='OS/2 ld.exe'
15740 shlibpath_var=BEGINLIBPATH
15741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15743 postinstall_cmds='base_file=`basename \$file`~
15744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15745 dldir=$destdir/`dirname \$dlpath`~
15746 test -d \$dldir || mkdir -p \$dldir~
15747 $install_prog $dir/$dlname \$dldir/$dlname~
15748 chmod a+x \$dldir/$dlname~
15749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15751 fi'
15752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15753 dlpath=$dir/\$dldll~
15754 $RM \$dlpath'
15755 ;;
15756
15757 osf3* | osf4* | osf5*)
15758 version_type=osf
15759 need_lib_prefix=no
15760 need_version=no
15761 soname_spec='$libname$release$shared_ext$major'
15762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15766 ;;
15767
15768 rdos*)
15769 dynamic_linker=no
15770 ;;
15771
15772 solaris*)
15773 version_type=linux # correct to gnu/linux during the next big refactor
15774 need_lib_prefix=no
15775 need_version=no
15776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15777 soname_spec='$libname$release$shared_ext$major'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=yes
15780 hardcode_into_libs=yes
15781 # ldd complains unless libraries are executable
15782 postinstall_cmds='chmod +x $lib'
15783 ;;
15784
15785 sunos4*)
15786 version_type=sunos
15787 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15791 if test yes = "$with_gnu_ld"; then
15792 need_lib_prefix=no
15793 fi
15794 need_version=yes
15795 ;;
15796
15797 sysv4 | sysv4.3*)
15798 version_type=linux # correct to gnu/linux during the next big refactor
15799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15800 soname_spec='$libname$release$shared_ext$major'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 case $host_vendor in
15803 sni)
15804 shlibpath_overrides_runpath=no
15805 need_lib_prefix=no
15806 runpath_var=LD_RUN_PATH
15807 ;;
15808 siemens)
15809 need_lib_prefix=no
15810 ;;
15811 motorola)
15812 need_lib_prefix=no
15813 need_version=no
15814 shlibpath_overrides_runpath=no
15815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15816 ;;
15817 esac
15818 ;;
15819
15820 sysv4*MP*)
15821 if test -d /usr/nec; then
15822 version_type=linux # correct to gnu/linux during the next big refactor
15823 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15824 soname_spec='$libname$shared_ext.$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 fi
15827 ;;
15828
15829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15830 version_type=sco
15831 need_lib_prefix=no
15832 need_version=no
15833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15834 soname_spec='$libname$release$shared_ext$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 hardcode_into_libs=yes
15838 if test yes = "$with_gnu_ld"; then
15839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15840 else
15841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15842 case $host_os in
15843 sco3.2v5*)
15844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15845 ;;
15846 esac
15847 fi
15848 sys_lib_dlsearch_path_spec='/usr/lib'
15849 ;;
15850
15851 tpf*)
15852 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15853 version_type=linux # correct to gnu/linux during the next big refactor
15854 need_lib_prefix=no
15855 need_version=no
15856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 shlibpath_overrides_runpath=no
15859 hardcode_into_libs=yes
15860 ;;
15861
15862 uts4*)
15863 version_type=linux # correct to gnu/linux during the next big refactor
15864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15865 soname_spec='$libname$release$shared_ext$major'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 ;;
15868
15869 *)
15870 dynamic_linker=no
15871 ;;
15872 esac
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15874 $as_echo "$dynamic_linker" >&6; }
15875 test no = "$dynamic_linker" && can_build_shared=no
15876
15877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15878 if test yes = "$GCC"; then
15879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15880 fi
15881
15882 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15883 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15884 fi
15885
15886 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15887 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15888 fi
15889
15890 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15891 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15892
15893 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15894 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15895
15896 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15897 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15939 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15940 hardcode_action_CXX=
15941 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15942 test -n "$runpath_var_CXX" ||
15943 test yes = "$hardcode_automatic_CXX"; then
15944
15945 # We can hardcode non-existent directories.
15946 if test no != "$hardcode_direct_CXX" &&
15947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15948 # have to relink, otherwise we might link with an installed library
15949 # when we should be linking with a yet-to-be-installed one
15950 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15951 test no != "$hardcode_minus_L_CXX"; then
15952 # Linking always hardcodes the temporary library directory.
15953 hardcode_action_CXX=relink
15954 else
15955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15956 hardcode_action_CXX=immediate
15957 fi
15958 else
15959 # We cannot hardcode anything, or else we can only hardcode existing
15960 # directories.
15961 hardcode_action_CXX=unsupported
15962 fi
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15964 $as_echo "$hardcode_action_CXX" >&6; }
15965
15966 if test relink = "$hardcode_action_CXX" ||
15967 test yes = "$inherit_rpath_CXX"; then
15968 # Fast installation is not supported
15969 enable_fast_install=no
15970 elif test yes = "$shlibpath_overrides_runpath" ||
15971 test no = "$enable_shared"; then
15972 # Fast installation is not necessary
15973 enable_fast_install=needless
15974 fi
15975
15976
15977
15978
15979
15980
15981
15982 fi # test -n "$compiler"
15983
15984 CC=$lt_save_CC
15985 CFLAGS=$lt_save_CFLAGS
15986 LDCXX=$LD
15987 LD=$lt_save_LD
15988 GCC=$lt_save_GCC
15989 with_gnu_ld=$lt_save_with_gnu_ld
15990 lt_cv_path_LDCXX=$lt_cv_path_LD
15991 lt_cv_path_LD=$lt_save_path_LD
15992 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15993 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15994 fi # test yes != "$_lt_caught_CXX_error"
15995
15996 ac_ext=c
15997 ac_cpp='$CPP $CPPFLAGS'
15998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016 ac_config_commands="$ac_config_commands libtool"
16017
16018
16019
16020
16021 # Only expand once:
16022
16023
16024 ax_cxx_compile_cxx11_required=truednl
16025 ac_ext=cpp
16026 ac_cpp='$CXXCPP $CPPFLAGS'
16027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16030 ac_success=no
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16032 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16033 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16034 $as_echo_n "(cached) " >&6
16035 else
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038
16039 template <typename T>
16040 struct check
16041 {
16042 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16043 };
16044
16045 typedef check<check<bool>> right_angle_brackets;
16046
16047 int a;
16048 decltype(a) b;
16049
16050 typedef check<int> check_type;
16051 check_type c;
16052 check_type&& cr = static_cast<check_type&&>(c);
16053
16054 auto d = a;
16055
16056 _ACEOF
16057 if ac_fn_cxx_try_compile "$LINENO"; then :
16058 ax_cv_cxx_compile_cxx11=yes
16059 else
16060 ax_cv_cxx_compile_cxx11=no
16061 fi
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 fi
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16065 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16066 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16067 ac_success=yes
16068 fi
16069
16070
16071
16072 if test x$ac_success = xno; then
16073 for switch in -std=c++11 -std=c++0x; do
16074 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16076 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16077 if eval \${$cachevar+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080 ac_save_CXXFLAGS="$CXXFLAGS"
16081 CXXFLAGS="$CXXFLAGS $switch"
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084
16085 template <typename T>
16086 struct check
16087 {
16088 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16089 };
16090
16091 typedef check<check<bool>> right_angle_brackets;
16092
16093 int a;
16094 decltype(a) b;
16095
16096 typedef check<int> check_type;
16097 check_type c;
16098 check_type&& cr = static_cast<check_type&&>(c);
16099
16100 auto d = a;
16101
16102 _ACEOF
16103 if ac_fn_cxx_try_compile "$LINENO"; then :
16104 eval $cachevar=yes
16105 else
16106 eval $cachevar=no
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 CXXFLAGS="$ac_save_CXXFLAGS"
16110 fi
16111 eval ac_res=\$$cachevar
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16113 $as_echo "$ac_res" >&6; }
16114 if eval test x\$$cachevar = xyes; then
16115 CXXFLAGS="$CXXFLAGS $switch"
16116 ac_success=yes
16117 break
16118 fi
16119 done
16120 fi
16121 ac_ext=c
16122 ac_cpp='$CPP $CPPFLAGS'
16123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16126
16127 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16128 if test x$ac_success = xno; then
16129 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16130 fi
16131 else
16132 if test x$ac_success = xno; then
16133 HAVE_CXX11=0
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16135 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16136 else
16137 HAVE_CXX11=1
16138
16139 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16140
16141 fi
16142
16143
16144 fi
16145
16146
16147 EXEMPI_REQUIRED=1.99.5
16148
16149 LIBGLIB_REQUIRED=2.0.0
16150 LIBGDKPIXBUF_REQUIRED=2.0.0
16151
16152
16153
16154
16155
16156 # Check whether --with-darwinports was given.
16157 if test "${with_darwinports+set}" = set; then :
16158 withval=$with_darwinports;
16159 if test "x$withval" != "xno"; then
16160 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
16161 LDFLAGS="$LDFLAGS -L/opt/local/lib"
16162 CC=g++
16163 fi
16164
16165 fi
16166
16167
16168 # Check whether --with-fink was given.
16169 if test "${with_fink+set}" = set; then :
16170 withval=$with_fink;
16171 if test "x$withval" != "xno"; then
16172 CPPFLAGS="$CPPFLAGS -I/sw/include"
16173 LDFLAGS="$LDFLAGS -L/sw/lib"
16174 CC=g++
16175 fi
16176
16177 fi
16178
16179
16180
16181 echo "$as_me: this is boost.m4 serial 25" >&5
16182 boost_save_IFS=$IFS
16183 boost_version_req=1.33.0
16184 IFS=.
16185 set x $boost_version_req 0 0 0
16186 IFS=$boost_save_IFS
16187 shift
16188 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
16189 boost_version_req_string=$1.$2.$3
16190
16191 # Check whether --with-boost was given.
16192 if test "${with_boost+set}" = set; then :
16193 withval=$with_boost;
16194 fi
16195 # If BOOST_ROOT is set and the user has not provided a value to
16196 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
16197 if test x"$BOOST_ROOT" != x; then
16198 if test x"$with_boost" = x; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
16200 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
16201 with_boost=$BOOST_ROOT
16202 else
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
16204 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
16205 fi
16206 fi
16207 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
16208 boost_save_CPPFLAGS=$CPPFLAGS
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
16210 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
16211 if ${boost_cv_inc_path+:} false; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 boost_cv_inc_path=no
16215 ac_ext=cpp
16216 ac_cpp='$CXXCPP $CPPFLAGS'
16217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 #include <boost/version.hpp>
16223 #if !defined BOOST_VERSION
16224 # error BOOST_VERSION is not defined
16225 #elif BOOST_VERSION < $boost_version_req
16226 # error Boost headers version < $boost_version_req
16227 #endif
16228
16229 int
16230 main ()
16231 {
16232
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 # If the user provided a value to --with-boost, use it and only it.
16238 case $with_boost in #(
16239 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
16240 /usr/include C:/Boost/include;; #(
16241 *) set x "$with_boost/include" "$with_boost";;
16242 esac
16243 shift
16244 for boost_dir
16245 do
16246 # Without --layout=system, Boost (or at least some versions) installs
16247 # itself in <prefix>/include/boost-<version>. This inner loop helps to
16248 # find headers in such directories.
16249 #
16250 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
16251 # order followed by ${boost_dir}. The final '.' is a sentinel for
16252 # searching $boost_dir" itself. Entries are whitespace separated.
16253 #
16254 # I didn't indent this loop on purpose (to avoid over-indented code)
16255 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
16256 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
16257 && echo .`
16258 for boost_inc in $boost_layout_system_search_list
16259 do
16260 if test x"$boost_inc" != x.; then
16261 boost_inc="$boost_dir/$boost_inc"
16262 else
16263 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
16264 fi
16265 if test x"$boost_inc" != x; then
16266 # We are going to check whether the version of Boost installed
16267 # in $boost_inc is usable by running a compilation that
16268 # #includes it. But if we pass a -I/some/path in which Boost
16269 # is not installed, the compiler will just skip this -I and
16270 # use other locations (either from CPPFLAGS, or from its list
16271 # of system include directories). As a result we would use
16272 # header installed on the machine instead of the /some/path
16273 # specified by the user. So in that precise case (trying
16274 # $boost_inc), make sure the version.hpp exists.
16275 #
16276 # Use test -e as there can be symlinks.
16277 test -e "$boost_inc/boost/version.hpp" || continue
16278 CPPFLAGS="$CPPFLAGS -I$boost_inc"
16279 fi
16280 if ac_fn_cxx_try_compile "$LINENO"; then :
16281 boost_cv_inc_path=yes
16282 else
16283 boost_cv_version=no
16284 fi
16285 rm -f core conftest.err conftest.$ac_objext
16286 if test x"$boost_cv_inc_path" = xyes; then
16287 if test x"$boost_inc" != x; then
16288 boost_cv_inc_path=$boost_inc
16289 fi
16290 break 2
16291 fi
16292 done
16293 done
16294 ac_ext=c
16295 ac_cpp='$CPP $CPPFLAGS'
16296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16299
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
16302 $as_echo "$boost_cv_inc_path" >&6; }
16303 case $boost_cv_inc_path in #(
16304 no)
16305 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
16306 as_fn_error $? "$boost_errmsg" "$LINENO" 5
16307
16308 ;;#(
16309 yes)
16310 BOOST_CPPFLAGS=
16311 ;;#(
16312 *)
16313 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
16314 ;;
16315 esac
16316 if test x"$boost_cv_inc_path" != xno; then
16317
16318 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
16319
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
16321 $as_echo_n "checking for Boost's header version... " >&6; }
16322 if ${boost_cv_lib_version+:} false; then :
16323 $as_echo_n "(cached) " >&6
16324 else
16325 ac_ext=cpp
16326 ac_cpp='$CXXCPP $CPPFLAGS'
16327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16332 #include <boost/version.hpp>
16333 boost-lib-version = BOOST_LIB_VERSION
16334 _ACEOF
16335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16336 grep -v '#' |
16337 tr -d '\r' |
16338 tr -s '\n' ' ' |
16339 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
16340 boost_cv_lib_version=`cat conftest.i`
16341 fi
16342 rm -rf conftest*
16343 ac_ext=c
16344 ac_cpp='$CPP $CPPFLAGS'
16345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16348
16349 fi
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
16351 $as_echo "$boost_cv_lib_version" >&6; }
16352 # e.g. "134" for 1_34_1 or "135" for 1_35
16353 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
16354 case $boost_major_version in #(
16355 '' | *[!0-9]*)
16356 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
16357 ;;
16358 esac
16359 fi
16360 CPPFLAGS=$boost_save_CPPFLAGS
16361
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
16363 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
16364 if ${boost_cv_lib_tag+:} false; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 boost_cv_lib_tag=unknown
16368 if test x$boost_cv_inc_path != xno; then
16369 ac_ext=cpp
16370 ac_cpp='$CXXCPP $CPPFLAGS'
16371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16374 # The following tests are mostly inspired by boost/config/auto_link.hpp
16375 # The list is sorted to most recent/common to oldest compiler (in order
16376 # to increase the likelihood of finding the right compiler with the
16377 # least number of compilation attempt).
16378 # Beware that some tests are sensible to the order (for instance, we must
16379 # look for MinGW before looking for GCC3).
16380 # I used one compilation test per compiler with a #error to recognize
16381 # each compiler so that it works even when cross-compiling (let me know
16382 # if you know a better approach).
16383 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
16384 # como, edg, kcc, bck, mp, sw, tru, xlc
16385 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
16386 # the same defines as GCC's).
16387 for i in \
16388 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
16389 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16390 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
16391 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
16392 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
16393 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16394 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
16395 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
16396 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
16397 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16398 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
16399 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
16400 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
16401 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16402 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
16403 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
16404 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
16405 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16406 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
16407 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
16408 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
16409 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16410 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
16411 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
16412 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
16413 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16414 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
16415 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
16416 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
16417 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16418 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
16419 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
16420 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
16421 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16422 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
16423 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
16424 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
16425 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16426 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
16427 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
16428 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
16429 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16430 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
16431 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
16432 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
16433 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16434 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
16435 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
16436 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
16437 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16438 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
16439 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
16440 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
16441 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16442 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
16443 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
16444 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
16445 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16446 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
16447 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
16448 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
16449 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
16450 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
16451 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
16452 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
16453 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
16454 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
16455 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
16456 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
16457 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
16458 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
16459 "defined __BORLANDC__ @ bcb" \
16460 "defined __ICC && (defined __unix || defined ) @ il" \
16461 "defined __ICL @ iw" \
16462 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
16463 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
16464 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
16465 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
16466 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
16467 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
16468 do
16469 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
16470 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473
16474 #if $boost_tag_test
16475 /* OK */
16476 #else
16477 # error $boost_tag_test
16478 #endif
16479
16480 int
16481 main ()
16482 {
16483
16484 ;
16485 return 0;
16486 }
16487 _ACEOF
16488 if ac_fn_cxx_try_compile "$LINENO"; then :
16489 boost_cv_lib_tag=$boost_tag; break
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 done
16493 ac_ext=c
16494 ac_cpp='$CPP $CPPFLAGS'
16495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16498 case $boost_cv_lib_tag in #(
16499 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
16500 # to "gcc41" for instance.
16501 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
16502 gcc*)
16503 boost_tag_x=
16504 case $host_os in #(
16505 darwin*)
16506 if test $boost_major_version -ge 136; then
16507 # The `x' added in r46793 of Boost.
16508 boost_tag_x=x
16509 fi;;
16510 esac
16511 # We can specify multiple tags in this variable because it's used by
16512 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
16513 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
16514 ;; #(
16515 unknown)
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
16517 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
16518 boost_cv_lib_tag=
16519 ;;
16520 esac
16521 fi
16522 fi
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
16524 $as_echo "$boost_cv_lib_tag" >&6; }
16525 # Check whether --enable-static-boost was given.
16526 if test "${enable_static_boost+set}" = set; then :
16527 enableval=$enable_static_boost; enable_static_boost=yes
16528 else
16529 enable_static_boost=no
16530 fi
16531
16532 # Check whether we do better use `mt' even though we weren't ask to.
16533 ac_ext=cpp
16534 ac_cpp='$CXXCPP $CPPFLAGS'
16535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540
16541 #if defined _REENTRANT || defined _MT || defined __MT__
16542 /* use -mt */
16543 #else
16544 # error MT not needed
16545 #endif
16546
16547 int
16548 main ()
16549 {
16550
16551 ;
16552 return 0;
16553 }
16554 _ACEOF
16555 if ac_fn_cxx_try_compile "$LINENO"; then :
16556 boost_guess_use_mt=:
16557 else
16558 boost_guess_use_mt=false
16559 fi
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 ac_ext=c
16562 ac_cpp='$CPP $CPPFLAGS'
16563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16566
16567 if test x"$boost_cv_inc_path" = xno; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost unit_test_framework library" >&5
16569 $as_echo "$as_me: Boost not available, not searching for the Boost unit_test_framework library" >&6;}
16570 else
16571 ac_ext=cpp
16572 ac_cpp='$CXXCPP $CPPFLAGS'
16573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16576 if test x"$boost_cv_inc_path" = xno; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/test/unit_test.hpp" >&5
16578 $as_echo "$as_me: Boost not available, not searching for boost/test/unit_test.hpp" >&6;}
16579 else
16580 ac_ext=cpp
16581 ac_cpp='$CXXCPP $CPPFLAGS'
16582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16585 boost_save_CPPFLAGS=$CPPFLAGS
16586 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16587 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/test/unit_test.hpp" "ac_cv_header_boost_test_unit_test_hpp" "$ac_includes_default"
16588 if test "x$ac_cv_header_boost_test_unit_test_hpp" = xyes; then :
16589
16590 $as_echo "#define HAVE_BOOST_TEST_UNIT_TEST_HPP 1" >>confdefs.h
16591
16592 else
16593 as_fn_error $? "cannot find boost/test/unit_test.hpp" "$LINENO" 5
16594 fi
16595
16596
16597 CPPFLAGS=$boost_save_CPPFLAGS
16598 ac_ext=cpp
16599 ac_cpp='$CXXCPP $CPPFLAGS'
16600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16603 fi
16604
16605 boost_save_CPPFLAGS=$CPPFLAGS
16606 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost unit_test_framework library" >&5
16608 $as_echo_n "checking for the Boost unit_test_framework library... " >&6; }
16609 if ${boost_cv_lib_unit_test_framework+:} false; then :
16610 $as_echo_n "(cached) " >&6
16611 else
16612 boost_cv_lib_unit_test_framework=no
16613 case "s" in #(
16614 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
16615 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xs" : 'Xmt-*\(.*\)'`;; #(
16616 (*) boost_mt=; boost_rtopt=s;;
16617 esac
16618 if test $enable_static_boost = yes; then
16619 boost_rtopt="s$boost_rtopt"
16620 fi
16621 # Find the proper debug variant depending on what we've been asked to find.
16622 case $boost_rtopt in #(
16623 (*d*) boost_rt_d=$boost_rtopt;; #(
16624 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
16625 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
16626 (*) boost_rt_d='-d';;
16627 esac
16628 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
16629 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
16630 $boost_guess_use_mt && boost_mt=-mt
16631 # Look for the abs path the static archive.
16632 # $libext is computed by Libtool but let's make sure it's non empty.
16633 test -z "$libext" &&
16634 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
16635 boost_save_ac_objext=$ac_objext
16636 # Generate the test file.
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 #include <boost/test/unit_test.hpp>
16640 using boost::unit_test::test_suite;
16641 test_suite* init_unit_test_suite(int argc, char ** argv)
16642 { return NULL; }
16643 int
16644 main ()
16645 {
16646 BOOST_CHECK(2 == 2);
16647 ;
16648 return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_cxx_try_compile "$LINENO"; then :
16652 ac_objext=do_not_rm_me_plz
16653 else
16654 as_fn_error $? "cannot compile a test that uses Boost unit_test_framework" "$LINENO" 5
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext
16657 ac_objext=$boost_save_ac_objext
16658 boost_failed_libs=
16659 # Don't bother to ident the following nested for loops, only the 2
16660 # innermost ones matter.
16661 for boost_lib_ in unit_test_framework; do
16662 for boost_tag_ in -$boost_cv_lib_tag ''; do
16663 for boost_ver_ in -$boost_cv_lib_version ''; do
16664 for boost_mt_ in $boost_mt -mt ''; do
16665 for boost_rtopt_ in $boost_rtopt '' -d; do
16666 for boost_lib in \
16667 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
16668 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
16669 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
16670 boost_$boost_lib_$boost_tag_$boost_ver_
16671 do
16672 # Avoid testing twice the same lib
16673 case $boost_failed_libs in #(
16674 (*@$boost_lib@*) continue;;
16675 esac
16676 # If with_boost is empty, we'll search in /lib first, which is not quite
16677 # right so instead we'll try to a location based on where the headers are.
16678 boost_tmp_lib=$with_boost
16679 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
16680 for boost_ldpath in "$boost_tmp_lib/lib" '' \
16681 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
16682 "$with_boost" C:/Boost/lib /lib*
16683 do
16684 # Don't waste time with directories that don't exist.
16685 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
16686 continue
16687 fi
16688 boost_save_LDFLAGS=$LDFLAGS
16689 # Are we looking for a static library?
16690 case $boost_ldpath:$boost_rtopt_ in #(
16691 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
16692 boost_cv_lib_unit_test_framework_LIBS="$boost_ldpath/lib$boost_lib.$libext"
16693 test -e "$boost_cv_lib_unit_test_framework_LIBS" || continue;; #(
16694 (*) # No: use -lboost_foo to find the shared library.
16695 boost_cv_lib_unit_test_framework_LIBS="-l$boost_lib";;
16696 esac
16697 boost_save_LIBS=$LIBS
16698 LIBS="$boost_cv_lib_unit_test_framework_LIBS $LIBS"
16699 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
16700 rm -f conftest$ac_exeext
16701 boost_save_ac_ext=$ac_ext
16702 boost_use_source=:
16703 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
16704 # tries to link the existing object file instead of compiling from source.
16705 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
16706 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
16707 if { { ac_try="$ac_link"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16713 $as_echo "$ac_try_echo"; } >&5
16714 (eval "$ac_link") 2>conftest.err
16715 ac_status=$?
16716 if test -s conftest.err; then
16717 grep -v '^ *+' conftest.err >conftest.er1
16718 cat conftest.er1 >&5
16719 mv -f conftest.er1 conftest.err
16720 fi
16721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16722 test $ac_status = 0; } && {
16723 test -z "$ac_cxx_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest$ac_exeext && {
16726 test "$cross_compiling" = yes ||
16727 $as_executable_p conftest$ac_exeext
16728 }; then :
16729 boost_cv_lib_unit_test_framework=yes
16730 else
16731 if $boost_use_source; then
16732 $as_echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 fi
16736 boost_cv_lib_unit_test_framework=no
16737 fi
16738 ac_objext=$boost_save_ac_objext
16739 ac_ext=$boost_save_ac_ext
16740 rm -f core conftest.err conftest_ipa8_conftest.oo \
16741 conftest$ac_exeext
16742 ac_objext=$boost_save_ac_objext
16743 LDFLAGS=$boost_save_LDFLAGS
16744 LIBS=$boost_save_LIBS
16745 if test x"$boost_cv_lib_unit_test_framework" = xyes; then
16746 # Check or used cached result of whether or not using -R or
16747 # -rpath makes sense. Some implementations of ld, such as for
16748 # Mac OSX, require -rpath but -R is the flag known to work on
16749 # other systems. https://github.com/tsuna/boost.m4/issues/19
16750 if ${boost_cv_rpath_link_ldflag+:} false; then :
16751 $as_echo_n "(cached) " >&6
16752 else
16753 case $boost_ldpath in
16754 '') # Nothing to do.
16755 boost_cv_rpath_link_ldflag=
16756 boost_rpath_link_ldflag_found=yes;;
16757 *)
16758 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
16759 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
16760 LIBS="$boost_save_LIBS $boost_cv_lib_unit_test_framework_LIBS"
16761 rm -f conftest$ac_exeext
16762 boost_save_ac_ext=$ac_ext
16763 boost_use_source=:
16764 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
16765 # tries to link the existing object file instead of compiling from source.
16766 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
16767 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
16768 if { { ac_try="$ac_link"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772 esac
16773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16774 $as_echo "$ac_try_echo"; } >&5
16775 (eval "$ac_link") 2>conftest.err
16776 ac_status=$?
16777 if test -s conftest.err; then
16778 grep -v '^ *+' conftest.err >conftest.er1
16779 cat conftest.er1 >&5
16780 mv -f conftest.er1 conftest.err
16781 fi
16782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16783 test $ac_status = 0; } && {
16784 test -z "$ac_cxx_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest$ac_exeext && {
16787 test "$cross_compiling" = yes ||
16788 $as_executable_p conftest$ac_exeext
16789 }; then :
16790 boost_rpath_link_ldflag_found=yes
16791 break
16792 else
16793 if $boost_use_source; then
16794 $as_echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797 fi
16798 boost_rpath_link_ldflag_found=no
16799 fi
16800 ac_objext=$boost_save_ac_objext
16801 ac_ext=$boost_save_ac_ext
16802 rm -f core conftest.err conftest_ipa8_conftest.oo \
16803 conftest$ac_exeext
16804 done
16805 ;;
16806 esac
16807 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
16808 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
16809 fi
16810 LDFLAGS=$boost_save_LDFLAGS
16811 LIBS=$boost_save_LIBS
16812
16813 fi
16814
16815 test x"$boost_ldpath" != x &&
16816 boost_cv_lib_unit_test_framework_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
16817 boost_cv_lib_unit_test_framework_LDPATH="$boost_ldpath"
16818 break 7
16819 else
16820 boost_failed_libs="$boost_failed_libs@$boost_lib@"
16821 fi
16822 done
16823 done
16824 done
16825 done
16826 done
16827 done
16828 done # boost_lib_
16829 rm -f conftest.$ac_objext
16830
16831 fi
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_unit_test_framework" >&5
16833 $as_echo "$boost_cv_lib_unit_test_framework" >&6; }
16834 case $boost_cv_lib_unit_test_framework in #(
16835 (no) $as_echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 as_fn_error $? "cannot find the flags to link with Boost unit_test_framework" "$LINENO" 5
16839 ;;
16840 esac
16841 BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS=$boost_cv_lib_unit_test_framework_LDFLAGS
16842 BOOST_UNIT_TEST_FRAMEWORK_LDPATH=$boost_cv_lib_unit_test_framework_LDPATH
16843 BOOST_LDPATH=$boost_cv_lib_unit_test_framework_LDPATH
16844 BOOST_UNIT_TEST_FRAMEWORK_LIBS=$boost_cv_lib_unit_test_framework_LIBS
16845 CPPFLAGS=$boost_save_CPPFLAGS
16846 ac_ext=c
16847 ac_cpp='$CPP $CPPFLAGS'
16848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16851 fi
16852
16853
16854
16855 if test x"$boost_cv_inc_path" = xno; then
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/algorithm/string.hpp" >&5
16857 $as_echo "$as_me: Boost not available, not searching for boost/algorithm/string.hpp" >&6;}
16858 else
16859 ac_ext=cpp
16860 ac_cpp='$CXXCPP $CPPFLAGS'
16861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16864 boost_save_CPPFLAGS=$CPPFLAGS
16865 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16866 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
16867 if test "x$ac_cv_header_boost_algorithm_string_hpp" = xyes; then :
16868
16869 $as_echo "#define HAVE_BOOST_ALGORITHM_STRING_HPP 1" >>confdefs.h
16870
16871 else
16872 as_fn_error $? "cannot find boost/algorithm/string.hpp" "$LINENO" 5
16873 fi
16874
16875
16876 CPPFLAGS=$boost_save_CPPFLAGS
16877 ac_ext=c
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16882 fi
16883
16884
16885
16886 if test x"$boost_cv_inc_path" = xno; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/variant/variant_fwd.hpp" >&5
16888 $as_echo "$as_me: Boost not available, not searching for boost/variant/variant_fwd.hpp" >&6;}
16889 else
16890 ac_ext=cpp
16891 ac_cpp='$CXXCPP $CPPFLAGS'
16892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16895 boost_save_CPPFLAGS=$CPPFLAGS
16896 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16897 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/variant/variant_fwd.hpp" "ac_cv_header_boost_variant_variant_fwd_hpp" "$ac_includes_default"
16898 if test "x$ac_cv_header_boost_variant_variant_fwd_hpp" = xyes; then :
16899
16900 $as_echo "#define HAVE_BOOST_VARIANT_VARIANT_FWD_HPP 1" >>confdefs.h
16901
16902 else
16903 as_fn_error $? "cannot find boost/variant/variant_fwd.hpp" "$LINENO" 5
16904 fi
16905
16906
16907 CPPFLAGS=$boost_save_CPPFLAGS
16908 ac_ext=c
16909 ac_cpp='$CPP $CPPFLAGS'
16910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16913 fi
16914
16915 if test x"$boost_cv_inc_path" = xno; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/variant.hpp" >&5
16917 $as_echo "$as_me: Boost not available, not searching for boost/variant.hpp" >&6;}
16918 else
16919 ac_ext=cpp
16920 ac_cpp='$CXXCPP $CPPFLAGS'
16921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16924 boost_save_CPPFLAGS=$CPPFLAGS
16925 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16926 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/variant.hpp" "ac_cv_header_boost_variant_hpp" "$ac_includes_default"
16927 if test "x$ac_cv_header_boost_variant_hpp" = xyes; then :
16928
16929 $as_echo "#define HAVE_BOOST_VARIANT_HPP 1" >>confdefs.h
16930
16931 else
16932 as_fn_error $? "cannot find boost/variant.hpp" "$LINENO" 5
16933 fi
16934
16935
16936 CPPFLAGS=$boost_save_CPPFLAGS
16937 ac_ext=c
16938 ac_cpp='$CPP $CPPFLAGS'
16939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16942 fi
16943
16944
16945
16946 ac_ext=c
16947 ac_cpp='$CPP $CPPFLAGS'
16948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16951
16952 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
16953 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
16954
16955 else
16956 as_fn_error $? "jpeglib headers not found" "$LINENO" 5
16957 fi
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16968 if test -n "$ac_tool_prefix"; then
16969 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16970 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16972 $as_echo_n "checking for $ac_word... " >&6; }
16973 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16974 $as_echo_n "(cached) " >&6
16975 else
16976 case $PKG_CONFIG in
16977 [\\/]* | ?:[\\/]*)
16978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16979 ;;
16980 *)
16981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16982 for as_dir in $PATH
16983 do
16984 IFS=$as_save_IFS
16985 test -z "$as_dir" && as_dir=.
16986 for ac_exec_ext in '' $ac_executable_extensions; do
16987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16990 break 2
16991 fi
16992 done
16993 done
16994 IFS=$as_save_IFS
16995
16996 ;;
16997 esac
16998 fi
16999 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17000 if test -n "$PKG_CONFIG"; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17002 $as_echo "$PKG_CONFIG" >&6; }
17003 else
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17006 fi
17007
17008
17009 fi
17010 if test -z "$ac_cv_path_PKG_CONFIG"; then
17011 ac_pt_PKG_CONFIG=$PKG_CONFIG
17012 # Extract the first word of "pkg-config", so it can be a program name with args.
17013 set dummy pkg-config; ac_word=$2
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17015 $as_echo_n "checking for $ac_word... " >&6; }
17016 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 case $ac_pt_PKG_CONFIG in
17020 [\\/]* | ?:[\\/]*)
17021 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17022 ;;
17023 *)
17024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17025 for as_dir in $PATH
17026 do
17027 IFS=$as_save_IFS
17028 test -z "$as_dir" && as_dir=.
17029 for ac_exec_ext in '' $ac_executable_extensions; do
17030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17031 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17033 break 2
17034 fi
17035 done
17036 done
17037 IFS=$as_save_IFS
17038
17039 ;;
17040 esac
17041 fi
17042 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17043 if test -n "$ac_pt_PKG_CONFIG"; then
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17045 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17046 else
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048 $as_echo "no" >&6; }
17049 fi
17050
17051 if test "x$ac_pt_PKG_CONFIG" = x; then
17052 PKG_CONFIG=""
17053 else
17054 case $cross_compiling:$ac_tool_warned in
17055 yes:)
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17058 ac_tool_warned=yes ;;
17059 esac
17060 PKG_CONFIG=$ac_pt_PKG_CONFIG
17061 fi
17062 else
17063 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17064 fi
17065
17066 fi
17067 if test -n "$PKG_CONFIG"; then
17068 _pkg_min_version=0.9.0
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17070 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17071 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17073 $as_echo "yes" >&6; }
17074 else
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17076 $as_echo "no" >&6; }
17077 PKG_CONFIG=""
17078 fi
17079 fi
17080
17081 pkg_failed=no
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
17083 $as_echo_n "checking for LIBXML... " >&6; }
17084
17085 if test -n "$LIBXML_CFLAGS"; then
17086 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
17087 elif test -n "$PKG_CONFIG"; then
17088 if test -n "$PKG_CONFIG" && \
17089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
17090 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
17091 ac_status=$?
17092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093 test $ac_status = 0; }; then
17094 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5.0" 2>/dev/null`
17095 test "x$?" != "x0" && pkg_failed=yes
17096 else
17097 pkg_failed=yes
17098 fi
17099 else
17100 pkg_failed=untried
17101 fi
17102 if test -n "$LIBXML_LIBS"; then
17103 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
17104 elif test -n "$PKG_CONFIG"; then
17105 if test -n "$PKG_CONFIG" && \
17106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
17107 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
17108 ac_status=$?
17109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110 test $ac_status = 0; }; then
17111 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5.0" 2>/dev/null`
17112 test "x$?" != "x0" && pkg_failed=yes
17113 else
17114 pkg_failed=yes
17115 fi
17116 else
17117 pkg_failed=untried
17118 fi
17119
17120
17121
17122 if test $pkg_failed = yes; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17124 $as_echo "no" >&6; }
17125
17126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17127 _pkg_short_errors_supported=yes
17128 else
17129 _pkg_short_errors_supported=no
17130 fi
17131 if test $_pkg_short_errors_supported = yes; then
17132 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
17133 else
17134 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
17135 fi
17136 # Put the nasty error message in config.log where it belongs
17137 echo "$LIBXML_PKG_ERRORS" >&5
17138
17139 as_fn_error $? "Package requirements (libxml-2.0 >= 2.5.0) were not met:
17140
17141 $LIBXML_PKG_ERRORS
17142
17143 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17144 installed software in a non-standard prefix.
17145
17146 Alternatively, you may set the environment variables LIBXML_CFLAGS
17147 and LIBXML_LIBS to avoid the need to call pkg-config.
17148 See the pkg-config man page for more details." "$LINENO" 5
17149 elif test $pkg_failed = untried; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17151 $as_echo "no" >&6; }
17152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17154 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17155 is in your PATH or set the PKG_CONFIG environment variable to the full
17156 path to pkg-config.
17157
17158 Alternatively, you may set the environment variables LIBXML_CFLAGS
17159 and LIBXML_LIBS to avoid the need to call pkg-config.
17160 See the pkg-config man page for more details.
17161
17162 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17163 See \`config.log' for more details" "$LINENO" 5; }
17164 else
17165 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
17166 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17168 $as_echo "yes" >&6; }
17169
17170 fi
17171
17172
17173 pkg_failed=no
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
17175 $as_echo_n "checking for CURL... " >&6; }
17176
17177 if test -n "$CURL_CFLAGS"; then
17178 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
17179 elif test -n "$PKG_CONFIG"; then
17180 if test -n "$PKG_CONFIG" && \
17181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
17182 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
17183 ac_status=$?
17184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17185 test $ac_status = 0; }; then
17186 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
17187 test "x$?" != "x0" && pkg_failed=yes
17188 else
17189 pkg_failed=yes
17190 fi
17191 else
17192 pkg_failed=untried
17193 fi
17194 if test -n "$CURL_LIBS"; then
17195 pkg_cv_CURL_LIBS="$CURL_LIBS"
17196 elif test -n "$PKG_CONFIG"; then
17197 if test -n "$PKG_CONFIG" && \
17198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
17199 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
17200 ac_status=$?
17201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17202 test $ac_status = 0; }; then
17203 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
17204 test "x$?" != "x0" && pkg_failed=yes
17205 else
17206 pkg_failed=yes
17207 fi
17208 else
17209 pkg_failed=untried
17210 fi
17211
17212
17213
17214 if test $pkg_failed = yes; then
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216 $as_echo "no" >&6; }
17217
17218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17219 _pkg_short_errors_supported=yes
17220 else
17221 _pkg_short_errors_supported=no
17222 fi
17223 if test $_pkg_short_errors_supported = yes; then
17224 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
17225 else
17226 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
17227 fi
17228 # Put the nasty error message in config.log where it belongs
17229 echo "$CURL_PKG_ERRORS" >&5
17230
17231 HAVE_CURL=no
17232 elif test $pkg_failed = untried; then
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 $as_echo "no" >&6; }
17235 HAVE_CURL=no
17236 else
17237 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
17238 CURL_LIBS=$pkg_cv_CURL_LIBS
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17240 $as_echo "yes" >&6; }
17241
17242 $as_echo "#define HAVE_CURL 1" >>confdefs.h
17243
17244 HAVE_CURL=yes
17245 fi
17246
17247
17248
17249 for ac_func in $ac_func_list
17250 do :
17251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17253 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17254 cat >>confdefs.h <<_ACEOF
17255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17256 _ACEOF
17257
17258 fi
17259 done
17260
17261
17262
17263
17264
17265 #
17266 #
17267 # Check whether --enable-gnome was given.
17268 if test "${enable_gnome+set}" = set; then :
17269 enableval=$enable_gnome;
17270 else
17271 enable_gnome=yes
17272 fi
17273
17274 #
17275 # Checks for libgdkpixbuf
17276 #
17277 if test x$enable_gnome = xyes ; then
17278 #
17279 # Checks for libglib-2.0
17280 #
17281 HAVE_LIBGLIB=no
17282
17283 pkg_failed=no
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLIB" >&5
17285 $as_echo_n "checking for LIBGLIB... " >&6; }
17286
17287 if test -n "$LIBGLIB_CFLAGS"; then
17288 pkg_cv_LIBGLIB_CFLAGS="$LIBGLIB_CFLAGS"
17289 elif test -n "$PKG_CONFIG"; then
17290 if test -n "$PKG_CONFIG" && \
17291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$LIBGLIB_REQUIRED\""; } >&5
17292 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $LIBGLIB_REQUIRED") 2>&5
17293 ac_status=$?
17294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17295 test $ac_status = 0; }; then
17296 pkg_cv_LIBGLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $LIBGLIB_REQUIRED" 2>/dev/null`
17297 test "x$?" != "x0" && pkg_failed=yes
17298 else
17299 pkg_failed=yes
17300 fi
17301 else
17302 pkg_failed=untried
17303 fi
17304 if test -n "$LIBGLIB_LIBS"; then
17305 pkg_cv_LIBGLIB_LIBS="$LIBGLIB_LIBS"
17306 elif test -n "$PKG_CONFIG"; then
17307 if test -n "$PKG_CONFIG" && \
17308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$LIBGLIB_REQUIRED\""; } >&5
17309 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $LIBGLIB_REQUIRED") 2>&5
17310 ac_status=$?
17311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312 test $ac_status = 0; }; then
17313 pkg_cv_LIBGLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $LIBGLIB_REQUIRED" 2>/dev/null`
17314 test "x$?" != "x0" && pkg_failed=yes
17315 else
17316 pkg_failed=yes
17317 fi
17318 else
17319 pkg_failed=untried
17320 fi
17321
17322
17323
17324 if test $pkg_failed = yes; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326 $as_echo "no" >&6; }
17327
17328 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17329 _pkg_short_errors_supported=yes
17330 else
17331 _pkg_short_errors_supported=no
17332 fi
17333 if test $_pkg_short_errors_supported = yes; then
17334 LIBGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $LIBGLIB_REQUIRED" 2>&1`
17335 else
17336 LIBGLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $LIBGLIB_REQUIRED" 2>&1`
17337 fi
17338 # Put the nasty error message in config.log where it belongs
17339 echo "$LIBGLIB_PKG_ERRORS" >&5
17340
17341 HAVE_LIBGLIB=no
17342 elif test $pkg_failed = untried; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345 HAVE_LIBGLIB=no
17346 else
17347 LIBGLIB_CFLAGS=$pkg_cv_LIBGLIB_CFLAGS
17348 LIBGLIB_LIBS=$pkg_cv_LIBGLIB_LIBS
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17350 $as_echo "yes" >&6; }
17351
17352 $as_echo "#define HAVE_LIBGLIB 1" >>confdefs.h
17353
17354 HAVE_LIBGLIB=yes
17355 fi
17356
17357 HAVE_LIBGDKPIXBUF=no
17358 if test x$HAVE_LIBGLIB = xyes ; then
17359
17360 pkg_failed=no
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGDKPIXBUF" >&5
17362 $as_echo_n "checking for LIBGDKPIXBUF... " >&6; }
17363
17364 if test -n "$LIBGDKPIXBUF_CFLAGS"; then
17365 pkg_cv_LIBGDKPIXBUF_CFLAGS="$LIBGDKPIXBUF_CFLAGS"
17366 elif test -n "$PKG_CONFIG"; then
17367 if test -n "$PKG_CONFIG" && \
17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= \$LIBGDKPIXBUF_REQUIRED\""; } >&5
17369 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= $LIBGDKPIXBUF_REQUIRED") 2>&5
17370 ac_status=$?
17371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17372 test $ac_status = 0; }; then
17373 pkg_cv_LIBGDKPIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= $LIBGDKPIXBUF_REQUIRED" 2>/dev/null`
17374 test "x$?" != "x0" && pkg_failed=yes
17375 else
17376 pkg_failed=yes
17377 fi
17378 else
17379 pkg_failed=untried
17380 fi
17381 if test -n "$LIBGDKPIXBUF_LIBS"; then
17382 pkg_cv_LIBGDKPIXBUF_LIBS="$LIBGDKPIXBUF_LIBS"
17383 elif test -n "$PKG_CONFIG"; then
17384 if test -n "$PKG_CONFIG" && \
17385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= \$LIBGDKPIXBUF_REQUIRED\""; } >&5
17386 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= $LIBGDKPIXBUF_REQUIRED") 2>&5
17387 ac_status=$?
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; then
17390 pkg_cv_LIBGDKPIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= $LIBGDKPIXBUF_REQUIRED" 2>/dev/null`
17391 test "x$?" != "x0" && pkg_failed=yes
17392 else
17393 pkg_failed=yes
17394 fi
17395 else
17396 pkg_failed=untried
17397 fi
17398
17399
17400
17401 if test $pkg_failed = yes; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17404
17405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17406 _pkg_short_errors_supported=yes
17407 else
17408 _pkg_short_errors_supported=no
17409 fi
17410 if test $_pkg_short_errors_supported = yes; then
17411 LIBGDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0 >= $LIBGDKPIXBUF_REQUIRED" 2>&1`
17412 else
17413 LIBGDKPIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0 >= $LIBGDKPIXBUF_REQUIRED" 2>&1`
17414 fi
17415 # Put the nasty error message in config.log where it belongs
17416 echo "$LIBGDKPIXBUF_PKG_ERRORS" >&5
17417
17418 HAVE_LIBGDKPIXBUF=no
17419 elif test $pkg_failed = untried; then
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17421 $as_echo "no" >&6; }
17422 HAVE_LIBGDKPIXBUF=no
17423 else
17424 LIBGDKPIXBUF_CFLAGS=$pkg_cv_LIBGDKPIXBUF_CFLAGS
17425 LIBGDKPIXBUF_LIBS=$pkg_cv_LIBGDKPIXBUF_LIBS
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17427 $as_echo "yes" >&6; }
17428
17429 $as_echo "#define HAVE_LIBGDKPIXBUF 1" >>confdefs.h
17430
17431 GDK_PIXBUF_DIR=`$PKG_CONFIG --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0`
17432 if test -z "$GDK_PIXBUF_DIR" ; then
17433 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
17434 GDK_PIXBUF_DIR="$libdir/gtk-2.0/$GTK_VERSION/loaders"
17435 fi
17436
17437 HAVE_LIBGDKPIXBUF=yes
17438 fi
17439 else
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glib-2.0 missing, ignore GdkPixbuf support." >&5
17441 $as_echo "$as_me: WARNING: glib-2.0 missing, ignore GdkPixbuf support." >&2;}
17442 fi
17443 if test x$HAVE_LIBGDKPIXBUF = xyes ; then
17444 HAVE_GNOME=yes
17445 else
17446 HAVE_GNOME=no
17447 fi
17448 else
17449 HAVE_GNOME=no
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome" >&5
17451 $as_echo_n "checking for Gnome... " >&6; }
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17453 $as_echo "disabled" >&6; }
17454 fi
17455
17456 if test x$HAVE_GNOME = xyes; then
17457 BUILD_GNOME_SUPPORT_TRUE=
17458 BUILD_GNOME_SUPPORT_FALSE='#'
17459 else
17460 BUILD_GNOME_SUPPORT_TRUE='#'
17461 BUILD_GNOME_SUPPORT_FALSE=
17462 fi
17463
17464
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wextra" >&5
17466 $as_echo_n "checking CFLAGS for gcc -Wextra... " >&6; }
17467 if ${ac_cv_cflags_gcc_option__Wextra+:} false; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 ac_cv_cflags_gcc_option__Wextra="no, unknown"
17471
17472 ac_ext=c
17473 ac_cpp='$CPP $CPPFLAGS'
17474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17477
17478 ac_save_CFLAGS="$CFLAGS"
17479 for ac_arg in "-pedantic -Werror % -Wextra" "-pedantic % -Wextra %% no, obsolete" #
17480 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483
17484 int
17485 main ()
17486 {
17487 return 0;
17488 ;
17489 return 0;
17490 }
17491 _ACEOF
17492 if ac_fn_c_try_compile "$LINENO"; then :
17493 ac_cv_cflags_gcc_option__Wextra=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496 done
17497 CFLAGS="$ac_save_CFLAGS"
17498 ac_ext=c
17499 ac_cpp='$CPP $CPPFLAGS'
17500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503
17504
17505 fi
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wextra" >&5
17507 $as_echo "$ac_cv_cflags_gcc_option__Wextra" >&6; }
17508 case ".$ac_cv_cflags_gcc_option__Wextra" in
17509 .ok|.ok,*) ;;
17510 .|.no|.no,*) ;;
17511 *)
17512 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wextra " 2>&1 >/dev/null
17513 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wextra"; } >&5
17514 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wextra) 2>&5
17515 ac_status=$?
17516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17517 test $ac_status = 0; }
17518 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wextra\""; } >&5
17519 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wextra") 2>&5
17520 ac_status=$?
17521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17522 test $ac_status = 0; }
17523 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wextra"
17524 fi
17525 ;;
17526 esac
17527
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wsuggest-override" >&5
17529 $as_echo_n "checking CXXFLAGS for gcc -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wsuggest-override... " >&6; }
17530 if ${ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override+:} false; then :
17531 $as_echo_n "(cached) " >&6
17532 else
17533 ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override="no, unknown"
17534
17535 ac_ext=cpp
17536 ac_cpp='$CXXCPP $CPPFLAGS'
17537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540
17541 ac_save_CXXFLAGS="$CXXFLAGS"
17542 for ac_arg in "-pedantic -Werror % -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wsuggest-override" "-pedantic % -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wsuggest-override %% no, obsolete" #
17543 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546
17547 int
17548 main ()
17549 {
17550 return 0;
17551 ;
17552 return 0;
17553 }
17554 _ACEOF
17555 if ac_fn_cxx_try_compile "$LINENO"; then :
17556 ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 done
17560 CXXFLAGS="$ac_save_CXXFLAGS"
17561 ac_ext=c
17562 ac_cpp='$CPP $CPPFLAGS'
17563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17566
17567
17568 fi
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override" >&5
17570 $as_echo "$ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override" >&6; }
17571 case ".$ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override" in
17572 .ok|.ok,*) ;;
17573 .|.no|.no,*) ;;
17574 *)
17575 if echo " $CXXFLAGS " | grep " $ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override " 2>&1 >/dev/null
17576 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override"; } >&5
17577 (: CXXFLAGS does contain $ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override) 2>&5
17578 ac_status=$?
17579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580 test $ac_status = 0; }
17581 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override\""; } >&5
17582 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override") 2>&5
17583 ac_status=$?
17584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17585 test $ac_status = 0; }
17586 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_gcc_option__Wextra___Wsign_compare__Wpointer_arith__Wchar_subscripts__Wwrite_strings__Wunused__Wpointer_arith__Wsuggest_override"
17587 fi
17588 ;;
17589 esac
17590
17591
17592 CXXFLAGS="$CXXFLAGS -pedantic -g -Wall -Wshadow"
17593 CFLAGS="$CFLAGS -pedantic -g -Wall"
17594
17595 # Check whether --enable-asan was given.
17596 if test "${enable_asan+set}" = set; then :
17597 enableval=$enable_asan;
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -fsanitize=address -fno-omit-frame-pointer" >&5
17599 $as_echo_n "checking CFLAGS for gcc -fsanitize=address -fno-omit-frame-pointer... " >&6; }
17600 if ${ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer+:} false; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer="no, unknown"
17604
17605 ac_ext=c
17606 ac_cpp='$CPP $CPPFLAGS'
17607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17610
17611 ac_save_CFLAGS="$CFLAGS"
17612 for ac_arg in "-pedantic -Werror % -fsanitize=address -fno-omit-frame-pointer" "-pedantic % -fsanitize=address -fno-omit-frame-pointer %% no, obsolete" #
17613 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616
17617 int
17618 main ()
17619 {
17620 return 0;
17621 ;
17622 return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_compile "$LINENO"; then :
17626 ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17627 fi
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629 done
17630 CFLAGS="$ac_save_CFLAGS"
17631 ac_ext=c
17632 ac_cpp='$CPP $CPPFLAGS'
17633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17636
17637
17638 fi
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer" >&5
17640 $as_echo "$ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer" >&6; }
17641 case ".$ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer" in
17642 .ok|.ok,*) ;;
17643 .|.no|.no,*) ;;
17644 *)
17645 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer " 2>&1 >/dev/null
17646 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer"; } >&5
17647 (: CFLAGS does contain $ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer) 2>&5
17648 ac_status=$?
17649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17650 test $ac_status = 0; }
17651 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer\""; } >&5
17652 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer") 2>&5
17653 ac_status=$?
17654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17655 test $ac_status = 0; }
17656 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__fsanitize_address__fno_omit_frame_pointer"
17657 fi
17658 ;;
17659 esac
17660
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fsanitize=address -fno-omit-frame-pointer" >&5
17662 $as_echo_n "checking CXXFLAGS for gcc -fsanitize=address -fno-omit-frame-pointer... " >&6; }
17663 if ${ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer+:} false; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer="no, unknown"
17667
17668 ac_ext=cpp
17669 ac_cpp='$CXXCPP $CPPFLAGS'
17670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17673
17674 ac_save_CXXFLAGS="$CXXFLAGS"
17675 for ac_arg in "-pedantic -Werror % -fsanitize=address -fno-omit-frame-pointer" "-pedantic % -fsanitize=address -fno-omit-frame-pointer %% no, obsolete" #
17676 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679
17680 int
17681 main ()
17682 {
17683 return 0;
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_cxx_try_compile "$LINENO"; then :
17689 ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17690 fi
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 done
17693 CXXFLAGS="$ac_save_CXXFLAGS"
17694 ac_ext=c
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
17700
17701 fi
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer" >&5
17703 $as_echo "$ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer" >&6; }
17704 case ".$ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer" in
17705 .ok|.ok,*) ;;
17706 .|.no|.no,*) ;;
17707 *)
17708 if echo " $CXXFLAGS " | grep " $ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer " 2>&1 >/dev/null
17709 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer"; } >&5
17710 (: CXXFLAGS does contain $ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer) 2>&5
17711 ac_status=$?
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; }
17714 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer\""; } >&5
17715 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer") 2>&5
17716 ac_status=$?
17717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17718 test $ac_status = 0; }
17719 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_gcc_option__fsanitize_address__fno_omit_frame_pointer"
17720 fi
17721 ;;
17722 esac
17723
17724
17725
17726 fi
17727
17728
17729 DISTCHECK_CONFIGURE_FLAGS="--disable-gnome"
17730
17731
17732 ac_config_files="$ac_config_files Makefile include/Makefile include/libopenraw/Makefile include/libopenraw++/Makefile lib/Makefile lib/libopenraw-0.1.pc gnome/Makefile gnome/libopenraw-gnome-0.1.pc gnome/include/Makefile gnome/include/libopenraw-gnome/Makefile doc/Makefile doc/Doxyfile doc/doxygen/Makefile test/Makefile testsuite/Makefile tools/Makefile demo/Makefile"
17733
17734 cat >confcache <<\_ACEOF
17735 # This file is a shell script that caches the results of configure
17736 # tests run on this system so they can be shared between configure
17737 # scripts and configure runs, see configure's option --config-cache.
17738 # It is not useful on other systems. If it contains results you don't
17739 # want to keep, you may remove or edit it.
17740 #
17741 # config.status only pays attention to the cache file if you give it
17742 # the --recheck option to rerun configure.
17743 #
17744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17746 # following values.
17747
17748 _ACEOF
17749
17750 # The following way of writing the cache mishandles newlines in values,
17751 # but we know of no workaround that is simple, portable, and efficient.
17752 # So, we kill variables containing newlines.
17753 # Ultrix sh set writes to stderr and can't be redirected directly,
17754 # and sets the high bit in the cache file unless we assign to the vars.
17755 (
17756 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17757 eval ac_val=\$$ac_var
17758 case $ac_val in #(
17759 *${as_nl}*)
17760 case $ac_var in #(
17761 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17762 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17763 esac
17764 case $ac_var in #(
17765 _ | IFS | as_nl) ;; #(
17766 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17767 *) { eval $ac_var=; unset $ac_var;} ;;
17768 esac ;;
17769 esac
17770 done
17771
17772 (set) 2>&1 |
17773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17774 *${as_nl}ac_space=\ *)
17775 # `set' does not quote correctly, so add quotes: double-quote
17776 # substitution turns \\\\ into \\, and sed turns \\ into \.
17777 sed -n \
17778 "s/'/'\\\\''/g;
17779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17780 ;; #(
17781 *)
17782 # `set' quotes correctly as required by POSIX, so do not add quotes.
17783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17784 ;;
17785 esac |
17786 sort
17787 ) |
17788 sed '
17789 /^ac_cv_env_/b end
17790 t clear
17791 :clear
17792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17793 t end
17794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17795 :end' >>confcache
17796 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17797 if test -w "$cache_file"; then
17798 if test "x$cache_file" != "x/dev/null"; then
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17800 $as_echo "$as_me: updating cache $cache_file" >&6;}
17801 if test ! -f "$cache_file" || test -h "$cache_file"; then
17802 cat confcache >"$cache_file"
17803 else
17804 case $cache_file in #(
17805 */* | ?:*)
17806 mv -f confcache "$cache_file"$$ &&
17807 mv -f "$cache_file"$$ "$cache_file" ;; #(
17808 *)
17809 mv -f confcache "$cache_file" ;;
17810 esac
17811 fi
17812 fi
17813 else
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17816 fi
17817 fi
17818 rm -f confcache
17819
17820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17821 # Let make expand exec_prefix.
17822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17823
17824 DEFS=-DHAVE_CONFIG_H
17825
17826 ac_libobjs=
17827 ac_ltlibobjs=
17828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17829 # 1. Remove the extension, and $U if already installed.
17830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17833 # will be set to the directory where LIBOBJS objects are built.
17834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17836 done
17837 LIBOBJS=$ac_libobjs
17838
17839 LTLIBOBJS=$ac_ltlibobjs
17840
17841
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17843 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17844 if test -n "$am_sleep_pid"; then
17845 # Hide warnings about reused PIDs.
17846 wait $am_sleep_pid 2>/dev/null
17847 fi
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17849 $as_echo "done" >&6; }
17850 if test -n "$EXEEXT"; then
17851 am__EXEEXT_TRUE=
17852 am__EXEEXT_FALSE='#'
17853 else
17854 am__EXEEXT_TRUE='#'
17855 am__EXEEXT_FALSE=
17856 fi
17857
17858 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17859 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17861 fi
17862 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17863 as_fn_error $? "conditional \"AMDEP\" was never defined.
17864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17865 fi
17866 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17867 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17869 fi
17870 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17871 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17873 fi
17874 if test -z "${BUILD_GNOME_SUPPORT_TRUE}" && test -z "${BUILD_GNOME_SUPPORT_FALSE}"; then
17875 as_fn_error $? "conditional \"BUILD_GNOME_SUPPORT\" was never defined.
17876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17877 fi
17878
17879 : "${CONFIG_STATUS=./config.status}"
17880 ac_write_fail=0
17881 ac_clean_files_save=$ac_clean_files
17882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17884 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17885 as_write_fail=0
17886 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17887 #! $SHELL
17888 # Generated by $as_me.
17889 # Run this file to recreate the current configuration.
17890 # Compiler output produced by configure, useful for debugging
17891 # configure, is in config.log if it exists.
17892
17893 debug=false
17894 ac_cs_recheck=false
17895 ac_cs_silent=false
17896
17897 SHELL=\${CONFIG_SHELL-$SHELL}
17898 export SHELL
17899 _ASEOF
17900 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17901 ## -------------------- ##
17902 ## M4sh Initialization. ##
17903 ## -------------------- ##
17904
17905 # Be more Bourne compatible
17906 DUALCASE=1; export DUALCASE # for MKS sh
17907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17908 emulate sh
17909 NULLCMD=:
17910 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17911 # is contrary to our usage. Disable this feature.
17912 alias -g '${1+"$@"}'='"$@"'
17913 setopt NO_GLOB_SUBST
17914 else
17915 case `(set -o) 2>/dev/null` in #(
17916 *posix*) :
17917 set -o posix ;; #(
17918 *) :
17919 ;;
17920 esac
17921 fi
17922
17923
17924 as_nl='
17925 '
17926 export as_nl
17927 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17928 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17930 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17931 # Prefer a ksh shell builtin over an external printf program on Solaris,
17932 # but without wasting forks for bash or zsh.
17933 if test -z "$BASH_VERSION$ZSH_VERSION" \
17934 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17935 as_echo='print -r --'
17936 as_echo_n='print -rn --'
17937 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17938 as_echo='printf %s\n'
17939 as_echo_n='printf %s'
17940 else
17941 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17942 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17943 as_echo_n='/usr/ucb/echo -n'
17944 else
17945 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17946 as_echo_n_body='eval
17947 arg=$1;
17948 case $arg in #(
17949 *"$as_nl"*)
17950 expr "X$arg" : "X\\(.*\\)$as_nl";
17951 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17952 esac;
17953 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17954 '
17955 export as_echo_n_body
17956 as_echo_n='sh -c $as_echo_n_body as_echo'
17957 fi
17958 export as_echo_body
17959 as_echo='sh -c $as_echo_body as_echo'
17960 fi
17961
17962 # The user is always right.
17963 if test "${PATH_SEPARATOR+set}" != set; then
17964 PATH_SEPARATOR=:
17965 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17966 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17967 PATH_SEPARATOR=';'
17968 }
17969 fi
17970
17971
17972 # IFS
17973 # We need space, tab and new line, in precisely that order. Quoting is
17974 # there to prevent editors from complaining about space-tab.
17975 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17976 # splitting by setting IFS to empty value.)
17977 IFS=" "" $as_nl"
17978
17979 # Find who we are. Look in the path if we contain no directory separator.
17980 as_myself=
17981 case $0 in #((
17982 *[\\/]* ) as_myself=$0 ;;
17983 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17984 for as_dir in $PATH
17985 do
17986 IFS=$as_save_IFS
17987 test -z "$as_dir" && as_dir=.
17988 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17989 done
17990 IFS=$as_save_IFS
17991
17992 ;;
17993 esac
17994 # We did not find ourselves, most probably we were run as `sh COMMAND'
17995 # in which case we are not to be found in the path.
17996 if test "x$as_myself" = x; then
17997 as_myself=$0
17998 fi
17999 if test ! -f "$as_myself"; then
18000 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18001 exit 1
18002 fi
18003
18004 # Unset variables that we do not need and which cause bugs (e.g. in
18005 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18006 # suppresses any "Segmentation fault" message there. '((' could
18007 # trigger a bug in pdksh 5.2.14.
18008 for as_var in BASH_ENV ENV MAIL MAILPATH
18009 do eval test x\${$as_var+set} = xset \
18010 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18011 done
18012 PS1='$ '
18013 PS2='> '
18014 PS4='+ '
18015
18016 # NLS nuisances.
18017 LC_ALL=C
18018 export LC_ALL
18019 LANGUAGE=C
18020 export LANGUAGE
18021
18022 # CDPATH.
18023 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18024
18025
18026 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18027 # ----------------------------------------
18028 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18029 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18030 # script with STATUS, using 1 if that was 0.
18031 as_fn_error ()
18032 {
18033 as_status=$1; test $as_status -eq 0 && as_status=1
18034 if test "$4"; then
18035 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18036 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18037 fi
18038 $as_echo "$as_me: error: $2" >&2
18039 as_fn_exit $as_status
18040 } # as_fn_error
18041
18042
18043 # as_fn_set_status STATUS
18044 # -----------------------
18045 # Set $? to STATUS, without forking.
18046 as_fn_set_status ()
18047 {
18048 return $1
18049 } # as_fn_set_status
18050
18051 # as_fn_exit STATUS
18052 # -----------------
18053 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18054 as_fn_exit ()
18055 {
18056 set +e
18057 as_fn_set_status $1
18058 exit $1
18059 } # as_fn_exit
18060
18061 # as_fn_unset VAR
18062 # ---------------
18063 # Portably unset VAR.
18064 as_fn_unset ()
18065 {
18066 { eval $1=; unset $1;}
18067 }
18068 as_unset=as_fn_unset
18069 # as_fn_append VAR VALUE
18070 # ----------------------
18071 # Append the text in VALUE to the end of the definition contained in VAR. Take
18072 # advantage of any shell optimizations that allow amortized linear growth over
18073 # repeated appends, instead of the typical quadratic growth present in naive
18074 # implementations.
18075 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18076 eval 'as_fn_append ()
18077 {
18078 eval $1+=\$2
18079 }'
18080 else
18081 as_fn_append ()
18082 {
18083 eval $1=\$$1\$2
18084 }
18085 fi # as_fn_append
18086
18087 # as_fn_arith ARG...
18088 # ------------------
18089 # Perform arithmetic evaluation on the ARGs, and store the result in the
18090 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18091 # must be portable across $(()) and expr.
18092 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18093 eval 'as_fn_arith ()
18094 {
18095 as_val=$(( $* ))
18096 }'
18097 else
18098 as_fn_arith ()
18099 {
18100 as_val=`expr "$@" || test $? -eq 1`
18101 }
18102 fi # as_fn_arith
18103
18104
18105 if expr a : '\(a\)' >/dev/null 2>&1 &&
18106 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18107 as_expr=expr
18108 else
18109 as_expr=false
18110 fi
18111
18112 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18113 as_basename=basename
18114 else
18115 as_basename=false
18116 fi
18117
18118 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18119 as_dirname=dirname
18120 else
18121 as_dirname=false
18122 fi
18123
18124 as_me=`$as_basename -- "$0" ||
18125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18126 X"$0" : 'X\(//\)$' \| \
18127 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18128 $as_echo X/"$0" |
18129 sed '/^.*\/\([^/][^/]*\)\/*$/{
18130 s//\1/
18131 q
18132 }
18133 /^X\/\(\/\/\)$/{
18134 s//\1/
18135 q
18136 }
18137 /^X\/\(\/\).*/{
18138 s//\1/
18139 q
18140 }
18141 s/.*/./; q'`
18142
18143 # Avoid depending upon Character Ranges.
18144 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18145 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18146 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18147 as_cr_digits='0123456789'
18148 as_cr_alnum=$as_cr_Letters$as_cr_digits
18149
18150 ECHO_C= ECHO_N= ECHO_T=
18151 case `echo -n x` in #(((((
18152 -n*)
18153 case `echo 'xy\c'` in
18154 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18155 xy) ECHO_C='\c';;
18156 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18157 ECHO_T=' ';;
18158 esac;;
18159 *)
18160 ECHO_N='-n';;
18161 esac
18162
18163 rm -f conf$$ conf$$.exe conf$$.file
18164 if test -d conf$$.dir; then
18165 rm -f conf$$.dir/conf$$.file
18166 else
18167 rm -f conf$$.dir
18168 mkdir conf$$.dir 2>/dev/null
18169 fi
18170 if (echo >conf$$.file) 2>/dev/null; then
18171 if ln -s conf$$.file conf$$ 2>/dev/null; then
18172 as_ln_s='ln -s'
18173 # ... but there are two gotchas:
18174 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18175 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18176 # In both cases, we have to default to `cp -pR'.
18177 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18178 as_ln_s='cp -pR'
18179 elif ln conf$$.file conf$$ 2>/dev/null; then
18180 as_ln_s=ln
18181 else
18182 as_ln_s='cp -pR'
18183 fi
18184 else
18185 as_ln_s='cp -pR'
18186 fi
18187 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18188 rmdir conf$$.dir 2>/dev/null
18189
18190
18191 # as_fn_mkdir_p
18192 # -------------
18193 # Create "$as_dir" as a directory, including parents if necessary.
18194 as_fn_mkdir_p ()
18195 {
18196
18197 case $as_dir in #(
18198 -*) as_dir=./$as_dir;;
18199 esac
18200 test -d "$as_dir" || eval $as_mkdir_p || {
18201 as_dirs=
18202 while :; do
18203 case $as_dir in #(
18204 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18205 *) as_qdir=$as_dir;;
18206 esac
18207 as_dirs="'$as_qdir' $as_dirs"
18208 as_dir=`$as_dirname -- "$as_dir" ||
18209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18210 X"$as_dir" : 'X\(//\)[^/]' \| \
18211 X"$as_dir" : 'X\(//\)$' \| \
18212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18213 $as_echo X"$as_dir" |
18214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18215 s//\1/
18216 q
18217 }
18218 /^X\(\/\/\)[^/].*/{
18219 s//\1/
18220 q
18221 }
18222 /^X\(\/\/\)$/{
18223 s//\1/
18224 q
18225 }
18226 /^X\(\/\).*/{
18227 s//\1/
18228 q
18229 }
18230 s/.*/./; q'`
18231 test -d "$as_dir" && break
18232 done
18233 test -z "$as_dirs" || eval "mkdir $as_dirs"
18234 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18235
18236
18237 } # as_fn_mkdir_p
18238 if mkdir -p . 2>/dev/null; then
18239 as_mkdir_p='mkdir -p "$as_dir"'
18240 else
18241 test -d ./-p && rmdir ./-p
18242 as_mkdir_p=false
18243 fi
18244
18245
18246 # as_fn_executable_p FILE
18247 # -----------------------
18248 # Test if FILE is an executable regular file.
18249 as_fn_executable_p ()
18250 {
18251 test -f "$1" && test -x "$1"
18252 } # as_fn_executable_p
18253 as_test_x='test -x'
18254 as_executable_p=as_fn_executable_p
18255
18256 # Sed expression to map a string onto a valid CPP name.
18257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18258
18259 # Sed expression to map a string onto a valid variable name.
18260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18261
18262
18263 exec 6>&1
18264 ## ----------------------------------- ##
18265 ## Main body of $CONFIG_STATUS script. ##
18266 ## ----------------------------------- ##
18267 _ASEOF
18268 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18269
18270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18271 # Save the log message, to keep $0 and so on meaningful, and to
18272 # report actual input values of CONFIG_FILES etc. instead of their
18273 # values after options handling.
18274 ac_log="
18275 This file was extended by libopenraw $as_me 0.1.2, which was
18276 generated by GNU Autoconf 2.69. Invocation command line was
18277
18278 CONFIG_FILES = $CONFIG_FILES
18279 CONFIG_HEADERS = $CONFIG_HEADERS
18280 CONFIG_LINKS = $CONFIG_LINKS
18281 CONFIG_COMMANDS = $CONFIG_COMMANDS
18282 $ $0 $@
18283
18284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18285 "
18286
18287 _ACEOF
18288
18289 case $ac_config_files in *"
18290 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18291 esac
18292
18293 case $ac_config_headers in *"
18294 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18295 esac
18296
18297
18298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18299 # Files that config.status was made for.
18300 config_files="$ac_config_files"
18301 config_headers="$ac_config_headers"
18302 config_commands="$ac_config_commands"
18303
18304 _ACEOF
18305
18306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18307 ac_cs_usage="\
18308 \`$as_me' instantiates files and other configuration actions
18309 from templates according to the current configuration. Unless the files
18310 and actions are specified as TAGs, all are instantiated by default.
18311
18312 Usage: $0 [OPTION]... [TAG]...
18313
18314 -h, --help print this help, then exit
18315 -V, --version print version number and configuration settings, then exit
18316 --config print configuration, then exit
18317 -q, --quiet, --silent
18318 do not print progress messages
18319 -d, --debug don't remove temporary files
18320 --recheck update $as_me by reconfiguring in the same conditions
18321 --file=FILE[:TEMPLATE]
18322 instantiate the configuration file FILE
18323 --header=FILE[:TEMPLATE]
18324 instantiate the configuration header FILE
18325
18326 Configuration files:
18327 $config_files
18328
18329 Configuration headers:
18330 $config_headers
18331
18332 Configuration commands:
18333 $config_commands
18334
18335 Report bugs to the package provider."
18336
18337 _ACEOF
18338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18340 ac_cs_version="\\
18341 libopenraw config.status 0.1.2
18342 configured by $0, generated by GNU Autoconf 2.69,
18343 with options \\"\$ac_cs_config\\"
18344
18345 Copyright (C) 2012 Free Software Foundation, Inc.
18346 This config.status script is free software; the Free Software Foundation
18347 gives unlimited permission to copy, distribute and modify it."
18348
18349 ac_pwd='$ac_pwd'
18350 srcdir='$srcdir'
18351 INSTALL='$INSTALL'
18352 MKDIR_P='$MKDIR_P'
18353 AWK='$AWK'
18354 test -n "\$AWK" || AWK=awk
18355 _ACEOF
18356
18357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18358 # The default lists apply if the user does not specify any file.
18359 ac_need_defaults=:
18360 while test $# != 0
18361 do
18362 case $1 in
18363 --*=?*)
18364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18366 ac_shift=:
18367 ;;
18368 --*=)
18369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18370 ac_optarg=
18371 ac_shift=:
18372 ;;
18373 *)
18374 ac_option=$1
18375 ac_optarg=$2
18376 ac_shift=shift
18377 ;;
18378 esac
18379
18380 case $ac_option in
18381 # Handling of the options.
18382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18383 ac_cs_recheck=: ;;
18384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18385 $as_echo "$ac_cs_version"; exit ;;
18386 --config | --confi | --conf | --con | --co | --c )
18387 $as_echo "$ac_cs_config"; exit ;;
18388 --debug | --debu | --deb | --de | --d | -d )
18389 debug=: ;;
18390 --file | --fil | --fi | --f )
18391 $ac_shift
18392 case $ac_optarg in
18393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18394 '') as_fn_error $? "missing file argument" ;;
18395 esac
18396 as_fn_append CONFIG_FILES " '$ac_optarg'"
18397 ac_need_defaults=false;;
18398 --header | --heade | --head | --hea )
18399 $ac_shift
18400 case $ac_optarg in
18401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18402 esac
18403 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18404 ac_need_defaults=false;;
18405 --he | --h)
18406 # Conflict between --help and --header
18407 as_fn_error $? "ambiguous option: \`$1'
18408 Try \`$0 --help' for more information.";;
18409 --help | --hel | -h )
18410 $as_echo "$ac_cs_usage"; exit ;;
18411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18413 ac_cs_silent=: ;;
18414
18415 # This is an error.
18416 -*) as_fn_error $? "unrecognized option: \`$1'
18417 Try \`$0 --help' for more information." ;;
18418
18419 *) as_fn_append ac_config_targets " $1"
18420 ac_need_defaults=false ;;
18421
18422 esac
18423 shift
18424 done
18425
18426 ac_configure_extra_args=
18427
18428 if $ac_cs_silent; then
18429 exec 6>/dev/null
18430 ac_configure_extra_args="$ac_configure_extra_args --silent"
18431 fi
18432
18433 _ACEOF
18434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435 if \$ac_cs_recheck; then
18436 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18437 shift
18438 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18439 CONFIG_SHELL='$SHELL'
18440 export CONFIG_SHELL
18441 exec "\$@"
18442 fi
18443
18444 _ACEOF
18445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18446 exec 5>>config.log
18447 {
18448 echo
18449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18450 ## Running $as_me. ##
18451 _ASBOX
18452 $as_echo "$ac_log"
18453 } >&5
18454
18455 _ACEOF
18456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18457 #
18458 # INIT-COMMANDS
18459 #
18460 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18461
18462
18463 # The HP-UX ksh and POSIX shell print the target directory to stdout
18464 # if CDPATH is set.
18465 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18466
18467 sed_quote_subst='$sed_quote_subst'
18468 double_quote_subst='$double_quote_subst'
18469 delay_variable_subst='$delay_variable_subst'
18470 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18471 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18472 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18473 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18474 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18475 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18476 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18477 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18478 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18479 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18480 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18481 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18482 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18483 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18484 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18485 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18486 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18487 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18488 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18489 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18490 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18491 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18492 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18493 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18494 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18495 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18496 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18497 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18498 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18499 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18500 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18501 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18502 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18503 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18504 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18505 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18506 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18507 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18508 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18509 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18510 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18511 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18512 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18513 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18514 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18515 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18516 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18517 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18518 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18519 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18520 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18521 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18522 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18523 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18524 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18525 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18526 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18527 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18528 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"`'
18529 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18530 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18531 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18532 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18533 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18534 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18535 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18536 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18537 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18538 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18539 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18540 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18541 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18542 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18543 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18544 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18545 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18546 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18547 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18548 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18549 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18550 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18551 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18552 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18553 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18554 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18555 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18556 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18557 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18558 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18559 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18560 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18561 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18562 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18563 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18564 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18565 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18566 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18567 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18568 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18569 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18570 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18571 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18572 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18573 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18574 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18575 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18576 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18577 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18578 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18579 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18580 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18581 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18582 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18583 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18584 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18585 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18586 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18587 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18588 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18589 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18590 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18591 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18592 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18593 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18594 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18595 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18596 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18597 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18598 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18599 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18600 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18601 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18602 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18603 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18604 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18605 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18606 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18607 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18608 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18609 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18610 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18611 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18612 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18613 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18614 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18615 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18616 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18617 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18618 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18619 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18620 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18621 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18622 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18623 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18624 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18625 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18626 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18627 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18628 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18629 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18630 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18631 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18632 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18633 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18634 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18635 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18636 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18637 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18638 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18639 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18640 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18641 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18642 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18643 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18644 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18645 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18646 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18647 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18648 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18649 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18650 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18651 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18652 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18653 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18654 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18655 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18656 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18657 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18658 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18659
18660 LTCC='$LTCC'
18661 LTCFLAGS='$LTCFLAGS'
18662 compiler='$compiler_DEFAULT'
18663
18664 # A function that is used when there is no print builtin or printf.
18665 func_fallback_echo ()
18666 {
18667 eval 'cat <<_LTECHO_EOF
18668 \$1
18669 _LTECHO_EOF'
18670 }
18671
18672 # Quote evaled strings.
18673 for var in SHELL \
18674 ECHO \
18675 PATH_SEPARATOR \
18676 SED \
18677 GREP \
18678 EGREP \
18679 FGREP \
18680 LD \
18681 NM \
18682 LN_S \
18683 lt_SP2NL \
18684 lt_NL2SP \
18685 reload_flag \
18686 OBJDUMP \
18687 deplibs_check_method \
18688 file_magic_cmd \
18689 file_magic_glob \
18690 want_nocaseglob \
18691 DLLTOOL \
18692 sharedlib_from_linklib_cmd \
18693 AR \
18694 AR_FLAGS \
18695 archiver_list_spec \
18696 STRIP \
18697 RANLIB \
18698 CC \
18699 CFLAGS \
18700 compiler \
18701 lt_cv_sys_global_symbol_pipe \
18702 lt_cv_sys_global_symbol_to_cdecl \
18703 lt_cv_sys_global_symbol_to_import \
18704 lt_cv_sys_global_symbol_to_c_name_address \
18705 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18706 lt_cv_nm_interface \
18707 nm_file_list_spec \
18708 lt_cv_truncate_bin \
18709 lt_prog_compiler_no_builtin_flag \
18710 lt_prog_compiler_pic \
18711 lt_prog_compiler_wl \
18712 lt_prog_compiler_static \
18713 lt_cv_prog_compiler_c_o \
18714 need_locks \
18715 MANIFEST_TOOL \
18716 DSYMUTIL \
18717 NMEDIT \
18718 LIPO \
18719 OTOOL \
18720 OTOOL64 \
18721 shrext_cmds \
18722 export_dynamic_flag_spec \
18723 whole_archive_flag_spec \
18724 compiler_needs_object \
18725 with_gnu_ld \
18726 allow_undefined_flag \
18727 no_undefined_flag \
18728 hardcode_libdir_flag_spec \
18729 hardcode_libdir_separator \
18730 exclude_expsyms \
18731 include_expsyms \
18732 file_list_spec \
18733 variables_saved_for_relink \
18734 libname_spec \
18735 library_names_spec \
18736 soname_spec \
18737 install_override_mode \
18738 finish_eval \
18739 old_striplib \
18740 striplib \
18741 compiler_lib_search_dirs \
18742 predep_objects \
18743 postdep_objects \
18744 predeps \
18745 postdeps \
18746 compiler_lib_search_path \
18747 LD_CXX \
18748 reload_flag_CXX \
18749 compiler_CXX \
18750 lt_prog_compiler_no_builtin_flag_CXX \
18751 lt_prog_compiler_pic_CXX \
18752 lt_prog_compiler_wl_CXX \
18753 lt_prog_compiler_static_CXX \
18754 lt_cv_prog_compiler_c_o_CXX \
18755 export_dynamic_flag_spec_CXX \
18756 whole_archive_flag_spec_CXX \
18757 compiler_needs_object_CXX \
18758 with_gnu_ld_CXX \
18759 allow_undefined_flag_CXX \
18760 no_undefined_flag_CXX \
18761 hardcode_libdir_flag_spec_CXX \
18762 hardcode_libdir_separator_CXX \
18763 exclude_expsyms_CXX \
18764 include_expsyms_CXX \
18765 file_list_spec_CXX \
18766 compiler_lib_search_dirs_CXX \
18767 predep_objects_CXX \
18768 postdep_objects_CXX \
18769 predeps_CXX \
18770 postdeps_CXX \
18771 compiler_lib_search_path_CXX; do
18772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18773 *[\\\\\\\`\\"\\\$]*)
18774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18775 ;;
18776 *)
18777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18778 ;;
18779 esac
18780 done
18781
18782 # Double-quote double-evaled strings.
18783 for var in reload_cmds \
18784 old_postinstall_cmds \
18785 old_postuninstall_cmds \
18786 old_archive_cmds \
18787 extract_expsyms_cmds \
18788 old_archive_from_new_cmds \
18789 old_archive_from_expsyms_cmds \
18790 archive_cmds \
18791 archive_expsym_cmds \
18792 module_cmds \
18793 module_expsym_cmds \
18794 export_symbols_cmds \
18795 prelink_cmds \
18796 postlink_cmds \
18797 postinstall_cmds \
18798 postuninstall_cmds \
18799 finish_cmds \
18800 sys_lib_search_path_spec \
18801 configure_time_dlsearch_path \
18802 configure_time_lt_sys_library_path \
18803 reload_cmds_CXX \
18804 old_archive_cmds_CXX \
18805 old_archive_from_new_cmds_CXX \
18806 old_archive_from_expsyms_cmds_CXX \
18807 archive_cmds_CXX \
18808 archive_expsym_cmds_CXX \
18809 module_cmds_CXX \
18810 module_expsym_cmds_CXX \
18811 export_symbols_cmds_CXX \
18812 prelink_cmds_CXX \
18813 postlink_cmds_CXX; do
18814 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18815 *[\\\\\\\`\\"\\\$]*)
18816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18817 ;;
18818 *)
18819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18820 ;;
18821 esac
18822 done
18823
18824 ac_aux_dir='$ac_aux_dir'
18825
18826 # See if we are running on zsh, and set the options that allow our
18827 # commands through without removal of \ escapes INIT.
18828 if test -n "\${ZSH_VERSION+set}"; then
18829 setopt NO_GLOB_SUBST
18830 fi
18831
18832
18833 PACKAGE='$PACKAGE'
18834 VERSION='$VERSION'
18835 RM='$RM'
18836 ofile='$ofile'
18837
18838
18839
18840
18841
18842
18843 _ACEOF
18844
18845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18846
18847 # Handling of arguments.
18848 for ac_config_target in $ac_config_targets
18849 do
18850 case $ac_config_target in
18851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18852 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18853 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18854 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18855 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18856 "include/libopenraw/Makefile") CONFIG_FILES="$CONFIG_FILES include/libopenraw/Makefile" ;;
18857 "include/libopenraw++/Makefile") CONFIG_FILES="$CONFIG_FILES include/libopenraw++/Makefile" ;;
18858 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18859 "lib/libopenraw-0.1.pc") CONFIG_FILES="$CONFIG_FILES lib/libopenraw-0.1.pc" ;;
18860 "gnome/Makefile") CONFIG_FILES="$CONFIG_FILES gnome/Makefile" ;;
18861 "gnome/libopenraw-gnome-0.1.pc") CONFIG_FILES="$CONFIG_FILES gnome/libopenraw-gnome-0.1.pc" ;;
18862 "gnome/include/Makefile") CONFIG_FILES="$CONFIG_FILES gnome/include/Makefile" ;;
18863 "gnome/include/libopenraw-gnome/Makefile") CONFIG_FILES="$CONFIG_FILES gnome/include/libopenraw-gnome/Makefile" ;;
18864 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18865 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
18866 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
18867 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18868 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18869 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18870 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
18871
18872 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18873 esac
18874 done
18875
18876
18877 # If the user did not use the arguments to specify the items to instantiate,
18878 # then the envvar interface is used. Set only those that are not.
18879 # We use the long form for the default assignment because of an extremely
18880 # bizarre bug on SunOS 4.1.3.
18881 if $ac_need_defaults; then
18882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18885 fi
18886
18887 # Have a temporary directory for convenience. Make it in the build tree
18888 # simply because there is no reason against having it here, and in addition,
18889 # creating and moving files from /tmp can sometimes cause problems.
18890 # Hook for its removal unless debugging.
18891 # Note that there is a small window in which the directory will not be cleaned:
18892 # after its creation but before its name has been assigned to `$tmp'.
18893 $debug ||
18894 {
18895 tmp= ac_tmp=
18896 trap 'exit_status=$?
18897 : "${ac_tmp:=$tmp}"
18898 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18899 ' 0
18900 trap 'as_fn_exit 1' 1 2 13 15
18901 }
18902 # Create a (secure) tmp directory for tmp files.
18903
18904 {
18905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18906 test -d "$tmp"
18907 } ||
18908 {
18909 tmp=./conf$$-$RANDOM
18910 (umask 077 && mkdir "$tmp")
18911 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18912 ac_tmp=$tmp
18913
18914 # Set up the scripts for CONFIG_FILES section.
18915 # No need to generate them if there are no CONFIG_FILES.
18916 # This happens for instance with `./config.status config.h'.
18917 if test -n "$CONFIG_FILES"; then
18918
18919
18920 ac_cr=`echo X | tr X '\015'`
18921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18922 # But we know of no other shell where ac_cr would be empty at this
18923 # point, so we can use a bashism as a fallback.
18924 if test "x$ac_cr" = x; then
18925 eval ac_cr=\$\'\\r\'
18926 fi
18927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18929 ac_cs_awk_cr='\\r'
18930 else
18931 ac_cs_awk_cr=$ac_cr
18932 fi
18933
18934 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18935 _ACEOF
18936
18937
18938 {
18939 echo "cat >conf$$subs.awk <<_ACEOF" &&
18940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18941 echo "_ACEOF"
18942 } >conf$$subs.sh ||
18943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18944 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18945 ac_delim='%!_!# '
18946 for ac_last_try in false false false false false :; do
18947 . ./conf$$subs.sh ||
18948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18949
18950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18951 if test $ac_delim_n = $ac_delim_num; then
18952 break
18953 elif $ac_last_try; then
18954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18955 else
18956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18957 fi
18958 done
18959 rm -f conf$$subs.sh
18960
18961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18962 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18963 _ACEOF
18964 sed -n '
18965 h
18966 s/^/S["/; s/!.*/"]=/
18967 p
18968 g
18969 s/^[^!]*!//
18970 :repl
18971 t repl
18972 s/'"$ac_delim"'$//
18973 t delim
18974 :nl
18975 h
18976 s/\(.\{148\}\)..*/\1/
18977 t more1
18978 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18979 p
18980 n
18981 b repl
18982 :more1
18983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18984 p
18985 g
18986 s/.\{148\}//
18987 t nl
18988 :delim
18989 h
18990 s/\(.\{148\}\)..*/\1/
18991 t more2
18992 s/["\\]/\\&/g; s/^/"/; s/$/"/
18993 p
18994 b
18995 :more2
18996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18997 p
18998 g
18999 s/.\{148\}//
19000 t delim
19001 ' <conf$$subs.awk | sed '
19002 /^[^""]/{
19003 N
19004 s/\n//
19005 }
19006 ' >>$CONFIG_STATUS || ac_write_fail=1
19007 rm -f conf$$subs.awk
19008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19009 _ACAWK
19010 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19011 for (key in S) S_is_set[key] = 1
19012 FS = ""
19013
19014 }
19015 {
19016 line = $ 0
19017 nfields = split(line, field, "@")
19018 substed = 0
19019 len = length(field[1])
19020 for (i = 2; i < nfields; i++) {
19021 key = field[i]
19022 keylen = length(key)
19023 if (S_is_set[key]) {
19024 value = S[key]
19025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19026 len += length(value) + length(field[++i])
19027 substed = 1
19028 } else
19029 len += 1 + keylen
19030 }
19031
19032 print line
19033 }
19034
19035 _ACAWK
19036 _ACEOF
19037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19040 else
19041 cat
19042 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19043 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19044 _ACEOF
19045
19046 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19047 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19048 # trailing colons and then remove the whole line if VPATH becomes empty
19049 # (actually we leave an empty line to preserve line numbers).
19050 if test "x$srcdir" = x.; then
19051 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19052 h
19053 s///
19054 s/^/:/
19055 s/[ ]*$/:/
19056 s/:\$(srcdir):/:/g
19057 s/:\${srcdir}:/:/g
19058 s/:@srcdir@:/:/g
19059 s/^:*//
19060 s/:*$//
19061 x
19062 s/\(=[ ]*\).*/\1/
19063 G
19064 s/\n//
19065 s/^[^=]*=[ ]*$//
19066 }'
19067 fi
19068
19069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19070 fi # test -n "$CONFIG_FILES"
19071
19072 # Set up the scripts for CONFIG_HEADERS section.
19073 # No need to generate them if there are no CONFIG_HEADERS.
19074 # This happens for instance with `./config.status Makefile'.
19075 if test -n "$CONFIG_HEADERS"; then
19076 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19077 BEGIN {
19078 _ACEOF
19079
19080 # Transform confdefs.h into an awk script `defines.awk', embedded as
19081 # here-document in config.status, that substitutes the proper values into
19082 # config.h.in to produce config.h.
19083
19084 # Create a delimiter string that does not exist in confdefs.h, to ease
19085 # handling of long lines.
19086 ac_delim='%!_!# '
19087 for ac_last_try in false false :; do
19088 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19089 if test -z "$ac_tt"; then
19090 break
19091 elif $ac_last_try; then
19092 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19093 else
19094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19095 fi
19096 done
19097
19098 # For the awk script, D is an array of macro values keyed by name,
19099 # likewise P contains macro parameters if any. Preserve backslash
19100 # newline sequences.
19101
19102 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19103 sed -n '
19104 s/.\{148\}/&'"$ac_delim"'/g
19105 t rset
19106 :rset
19107 s/^[ ]*#[ ]*define[ ][ ]*/ /
19108 t def
19109 d
19110 :def
19111 s/\\$//
19112 t bsnl
19113 s/["\\]/\\&/g
19114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19115 D["\1"]=" \3"/p
19116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19117 d
19118 :bsnl
19119 s/["\\]/\\&/g
19120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19121 D["\1"]=" \3\\\\\\n"\\/p
19122 t cont
19123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19124 t cont
19125 d
19126 :cont
19127 n
19128 s/.\{148\}/&'"$ac_delim"'/g
19129 t clear
19130 :clear
19131 s/\\$//
19132 t bsnlc
19133 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19134 d
19135 :bsnlc
19136 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19137 b cont
19138 ' <confdefs.h | sed '
19139 s/'"$ac_delim"'/"\\\
19140 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19141
19142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19143 for (key in D) D_is_set[key] = 1
19144 FS = ""
19145 }
19146 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19147 line = \$ 0
19148 split(line, arg, " ")
19149 if (arg[1] == "#") {
19150 defundef = arg[2]
19151 mac1 = arg[3]
19152 } else {
19153 defundef = substr(arg[1], 2)
19154 mac1 = arg[2]
19155 }
19156 split(mac1, mac2, "(") #)
19157 macro = mac2[1]
19158 prefix = substr(line, 1, index(line, defundef) - 1)
19159 if (D_is_set[macro]) {
19160 # Preserve the white space surrounding the "#".
19161 print prefix "define", macro P[macro] D[macro]
19162 next
19163 } else {
19164 # Replace #undef with comments. This is necessary, for example,
19165 # in the case of _POSIX_SOURCE, which is predefined and required
19166 # on some systems where configure will not decide to define it.
19167 if (defundef == "undef") {
19168 print "/*", prefix defundef, macro, "*/"
19169 next
19170 }
19171 }
19172 }
19173 { print }
19174 _ACAWK
19175 _ACEOF
19176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19177 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19178 fi # test -n "$CONFIG_HEADERS"
19179
19180
19181 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19182 shift
19183 for ac_tag
19184 do
19185 case $ac_tag in
19186 :[FHLC]) ac_mode=$ac_tag; continue;;
19187 esac
19188 case $ac_mode$ac_tag in
19189 :[FHL]*:*);;
19190 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19191 :[FH]-) ac_tag=-:-;;
19192 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19193 esac
19194 ac_save_IFS=$IFS
19195 IFS=:
19196 set x $ac_tag
19197 IFS=$ac_save_IFS
19198 shift
19199 ac_file=$1
19200 shift
19201
19202 case $ac_mode in
19203 :L) ac_source=$1;;
19204 :[FH])
19205 ac_file_inputs=
19206 for ac_f
19207 do
19208 case $ac_f in
19209 -) ac_f="$ac_tmp/stdin";;
19210 *) # Look for the file first in the build tree, then in the source tree
19211 # (if the path is not absolute). The absolute path cannot be DOS-style,
19212 # because $ac_f cannot contain `:'.
19213 test -f "$ac_f" ||
19214 case $ac_f in
19215 [\\/$]*) false;;
19216 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19217 esac ||
19218 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19219 esac
19220 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19221 as_fn_append ac_file_inputs " '$ac_f'"
19222 done
19223
19224 # Let's still pretend it is `configure' which instantiates (i.e., don't
19225 # use $as_me), people would be surprised to read:
19226 # /* config.h. Generated by config.status. */
19227 configure_input='Generated from '`
19228 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19229 `' by configure.'
19230 if test x"$ac_file" != x-; then
19231 configure_input="$ac_file. $configure_input"
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19233 $as_echo "$as_me: creating $ac_file" >&6;}
19234 fi
19235 # Neutralize special characters interpreted by sed in replacement strings.
19236 case $configure_input in #(
19237 *\&* | *\|* | *\\* )
19238 ac_sed_conf_input=`$as_echo "$configure_input" |
19239 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19240 *) ac_sed_conf_input=$configure_input;;
19241 esac
19242
19243 case $ac_tag in
19244 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19246 esac
19247 ;;
19248 esac
19249
19250 ac_dir=`$as_dirname -- "$ac_file" ||
19251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19252 X"$ac_file" : 'X\(//\)[^/]' \| \
19253 X"$ac_file" : 'X\(//\)$' \| \
19254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19255 $as_echo X"$ac_file" |
19256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19257 s//\1/
19258 q
19259 }
19260 /^X\(\/\/\)[^/].*/{
19261 s//\1/
19262 q
19263 }
19264 /^X\(\/\/\)$/{
19265 s//\1/
19266 q
19267 }
19268 /^X\(\/\).*/{
19269 s//\1/
19270 q
19271 }
19272 s/.*/./; q'`
19273 as_dir="$ac_dir"; as_fn_mkdir_p
19274 ac_builddir=.
19275
19276 case "$ac_dir" in
19277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19278 *)
19279 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19280 # A ".." for each directory in $ac_dir_suffix.
19281 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19282 case $ac_top_builddir_sub in
19283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19285 esac ;;
19286 esac
19287 ac_abs_top_builddir=$ac_pwd
19288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19289 # for backward compatibility:
19290 ac_top_builddir=$ac_top_build_prefix
19291
19292 case $srcdir in
19293 .) # We are building in place.
19294 ac_srcdir=.
19295 ac_top_srcdir=$ac_top_builddir_sub
19296 ac_abs_top_srcdir=$ac_pwd ;;
19297 [\\/]* | ?:[\\/]* ) # Absolute name.
19298 ac_srcdir=$srcdir$ac_dir_suffix;
19299 ac_top_srcdir=$srcdir
19300 ac_abs_top_srcdir=$srcdir ;;
19301 *) # Relative name.
19302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19303 ac_top_srcdir=$ac_top_build_prefix$srcdir
19304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19305 esac
19306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19307
19308
19309 case $ac_mode in
19310 :F)
19311 #
19312 # CONFIG_FILE
19313 #
19314
19315 case $INSTALL in
19316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19318 esac
19319 ac_MKDIR_P=$MKDIR_P
19320 case $MKDIR_P in
19321 [\\/$]* | ?:[\\/]* ) ;;
19322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19323 esac
19324 _ACEOF
19325
19326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19327 # If the template does not know about datarootdir, expand it.
19328 # FIXME: This hack should be removed a few years after 2.60.
19329 ac_datarootdir_hack=; ac_datarootdir_seen=
19330 ac_sed_dataroot='
19331 /datarootdir/ {
19332 p
19333 q
19334 }
19335 /@datadir@/p
19336 /@docdir@/p
19337 /@infodir@/p
19338 /@localedir@/p
19339 /@mandir@/p'
19340 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19341 *datarootdir*) ac_datarootdir_seen=yes;;
19342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19344 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19345 _ACEOF
19346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19347 ac_datarootdir_hack='
19348 s&@datadir@&$datadir&g
19349 s&@docdir@&$docdir&g
19350 s&@infodir@&$infodir&g
19351 s&@localedir@&$localedir&g
19352 s&@mandir@&$mandir&g
19353 s&\\\${datarootdir}&$datarootdir&g' ;;
19354 esac
19355 _ACEOF
19356
19357 # Neutralize VPATH when `$srcdir' = `.'.
19358 # Shell code in configure.ac might set extrasub.
19359 # FIXME: do we really want to maintain this feature?
19360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19361 ac_sed_extra="$ac_vpsub
19362 $extrasub
19363 _ACEOF
19364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19365 :t
19366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19367 s|@configure_input@|$ac_sed_conf_input|;t t
19368 s&@top_builddir@&$ac_top_builddir_sub&;t t
19369 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19370 s&@srcdir@&$ac_srcdir&;t t
19371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19372 s&@top_srcdir@&$ac_top_srcdir&;t t
19373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19374 s&@builddir@&$ac_builddir&;t t
19375 s&@abs_builddir@&$ac_abs_builddir&;t t
19376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19377 s&@INSTALL@&$ac_INSTALL&;t t
19378 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19379 $ac_datarootdir_hack
19380 "
19381 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19382 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19383
19384 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19385 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19386 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19387 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19389 which seems to be undefined. Please make sure it is defined" >&5
19390 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19391 which seems to be undefined. Please make sure it is defined" >&2;}
19392
19393 rm -f "$ac_tmp/stdin"
19394 case $ac_file in
19395 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19396 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19397 esac \
19398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19399 ;;
19400 :H)
19401 #
19402 # CONFIG_HEADER
19403 #
19404 if test x"$ac_file" != x-; then
19405 {
19406 $as_echo "/* $configure_input */" \
19407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19408 } >"$ac_tmp/config.h" \
19409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19410 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19412 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19413 else
19414 rm -f "$ac_file"
19415 mv "$ac_tmp/config.h" "$ac_file" \
19416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19417 fi
19418 else
19419 $as_echo "/* $configure_input */" \
19420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19421 || as_fn_error $? "could not create -" "$LINENO" 5
19422 fi
19423 # Compute "$ac_file"'s index in $config_headers.
19424 _am_arg="$ac_file"
19425 _am_stamp_count=1
19426 for _am_header in $config_headers :; do
19427 case $_am_header in
19428 $_am_arg | $_am_arg:* )
19429 break ;;
19430 * )
19431 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19432 esac
19433 done
19434 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19435 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19436 X"$_am_arg" : 'X\(//\)[^/]' \| \
19437 X"$_am_arg" : 'X\(//\)$' \| \
19438 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19439 $as_echo X"$_am_arg" |
19440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19441 s//\1/
19442 q
19443 }
19444 /^X\(\/\/\)[^/].*/{
19445 s//\1/
19446 q
19447 }
19448 /^X\(\/\/\)$/{
19449 s//\1/
19450 q
19451 }
19452 /^X\(\/\).*/{
19453 s//\1/
19454 q
19455 }
19456 s/.*/./; q'`/stamp-h$_am_stamp_count
19457 ;;
19458
19459 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19460 $as_echo "$as_me: executing $ac_file commands" >&6;}
19461 ;;
19462 esac
19463
19464
19465 case $ac_file$ac_mode in
19466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19467 # Older Autoconf quotes --file arguments for eval, but not when files
19468 # are listed without --file. Let's play safe and only enable the eval
19469 # if we detect the quoting.
19470 case $CONFIG_FILES in
19471 *\'*) eval set x "$CONFIG_FILES" ;;
19472 *) set x $CONFIG_FILES ;;
19473 esac
19474 shift
19475 for mf
19476 do
19477 # Strip MF so we end up with the name of the file.
19478 mf=`echo "$mf" | sed -e 's/:.*$//'`
19479 # Check whether this is an Automake generated Makefile or not.
19480 # We used to match only the files named 'Makefile.in', but
19481 # some people rename them; so instead we look at the file content.
19482 # Grep'ing the first line is not enough: some people post-process
19483 # each Makefile.in and add a new line on top of each file to say so.
19484 # Grep'ing the whole file is not good either: AIX grep has a line
19485 # limit of 2048, but all sed's we know have understand at least 4000.
19486 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19487 dirpart=`$as_dirname -- "$mf" ||
19488 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19489 X"$mf" : 'X\(//\)[^/]' \| \
19490 X"$mf" : 'X\(//\)$' \| \
19491 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19492 $as_echo X"$mf" |
19493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19494 s//\1/
19495 q
19496 }
19497 /^X\(\/\/\)[^/].*/{
19498 s//\1/
19499 q
19500 }
19501 /^X\(\/\/\)$/{
19502 s//\1/
19503 q
19504 }
19505 /^X\(\/\).*/{
19506 s//\1/
19507 q
19508 }
19509 s/.*/./; q'`
19510 else
19511 continue
19512 fi
19513 # Extract the definition of DEPDIR, am__include, and am__quote
19514 # from the Makefile without running 'make'.
19515 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19516 test -z "$DEPDIR" && continue
19517 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19518 test -z "$am__include" && continue
19519 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19520 # Find all dependency output files, they are included files with
19521 # $(DEPDIR) in their names. We invoke sed twice because it is the
19522 # simplest approach to changing $(DEPDIR) to its actual value in the
19523 # expansion.
19524 for file in `sed -n "
19525 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19527 # Make sure the directory exists.
19528 test -f "$dirpart/$file" && continue
19529 fdir=`$as_dirname -- "$file" ||
19530 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19531 X"$file" : 'X\(//\)[^/]' \| \
19532 X"$file" : 'X\(//\)$' \| \
19533 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19534 $as_echo X"$file" |
19535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19536 s//\1/
19537 q
19538 }
19539 /^X\(\/\/\)[^/].*/{
19540 s//\1/
19541 q
19542 }
19543 /^X\(\/\/\)$/{
19544 s//\1/
19545 q
19546 }
19547 /^X\(\/\).*/{
19548 s//\1/
19549 q
19550 }
19551 s/.*/./; q'`
19552 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19553 # echo "creating $dirpart/$file"
19554 echo '# dummy' > "$dirpart/$file"
19555 done
19556 done
19557 }
19558 ;;
19559 "libtool":C)
19560
19561 # See if we are running on zsh, and set the options that allow our
19562 # commands through without removal of \ escapes.
19563 if test -n "${ZSH_VERSION+set}"; then
19564 setopt NO_GLOB_SUBST
19565 fi
19566
19567 cfgfile=${ofile}T
19568 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19569 $RM "$cfgfile"
19570
19571 cat <<_LT_EOF >> "$cfgfile"
19572 #! $SHELL
19573 # Generated automatically by $as_me ($PACKAGE) $VERSION
19574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19576
19577 # Provide generalized library-building support services.
19578 # Written by Gordon Matzigkeit, 1996
19579
19580 # Copyright (C) 2014 Free Software Foundation, Inc.
19581 # This is free software; see the source for copying conditions. There is NO
19582 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19583
19584 # GNU Libtool is free software; you can redistribute it and/or modify
19585 # it under the terms of the GNU General Public License as published by
19586 # the Free Software Foundation; either version 2 of of the License, or
19587 # (at your option) any later version.
19588 #
19589 # As a special exception to the GNU General Public License, if you
19590 # distribute this file as part of a program or library that is built
19591 # using GNU Libtool, you may include this file under the same
19592 # distribution terms that you use for the rest of that program.
19593 #
19594 # GNU Libtool is distributed in the hope that it will be useful, but
19595 # WITHOUT ANY WARRANTY; without even the implied warranty of
19596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19597 # GNU General Public License for more details.
19598 #
19599 # You should have received a copy of the GNU General Public License
19600 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19601
19602
19603 # The names of the tagged configurations supported by this script.
19604 available_tags='CXX '
19605
19606 # Configured defaults for sys_lib_dlsearch_path munging.
19607 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19608
19609 # ### BEGIN LIBTOOL CONFIG
19610
19611 # Which release of libtool.m4 was used?
19612 macro_version=$macro_version
19613 macro_revision=$macro_revision
19614
19615 # Whether or not to build shared libraries.
19616 build_libtool_libs=$enable_shared
19617
19618 # Whether or not to build static libraries.
19619 build_old_libs=$enable_static
19620
19621 # What type of objects to build.
19622 pic_mode=$pic_mode
19623
19624 # Whether or not to optimize for fast installation.
19625 fast_install=$enable_fast_install
19626
19627 # Shared archive member basename,for filename based shared library versioning on AIX.
19628 shared_archive_member_spec=$shared_archive_member_spec
19629
19630 # Shell to use when invoking shell scripts.
19631 SHELL=$lt_SHELL
19632
19633 # An echo program that protects backslashes.
19634 ECHO=$lt_ECHO
19635
19636 # The PATH separator for the build system.
19637 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19638
19639 # The host system.
19640 host_alias=$host_alias
19641 host=$host
19642 host_os=$host_os
19643
19644 # The build system.
19645 build_alias=$build_alias
19646 build=$build
19647 build_os=$build_os
19648
19649 # A sed program that does not truncate output.
19650 SED=$lt_SED
19651
19652 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19653 Xsed="\$SED -e 1s/^X//"
19654
19655 # A grep program that handles long lines.
19656 GREP=$lt_GREP
19657
19658 # An ERE matcher.
19659 EGREP=$lt_EGREP
19660
19661 # A literal string matcher.
19662 FGREP=$lt_FGREP
19663
19664 # A BSD- or MS-compatible name lister.
19665 NM=$lt_NM
19666
19667 # Whether we need soft or hard links.
19668 LN_S=$lt_LN_S
19669
19670 # What is the maximum length of a command?
19671 max_cmd_len=$max_cmd_len
19672
19673 # Object file suffix (normally "o").
19674 objext=$ac_objext
19675
19676 # Executable file suffix (normally "").
19677 exeext=$exeext
19678
19679 # whether the shell understands "unset".
19680 lt_unset=$lt_unset
19681
19682 # turn spaces into newlines.
19683 SP2NL=$lt_lt_SP2NL
19684
19685 # turn newlines into spaces.
19686 NL2SP=$lt_lt_NL2SP
19687
19688 # convert \$build file names to \$host format.
19689 to_host_file_cmd=$lt_cv_to_host_file_cmd
19690
19691 # convert \$build files to toolchain format.
19692 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19693
19694 # An object symbol dumper.
19695 OBJDUMP=$lt_OBJDUMP
19696
19697 # Method to check whether dependent libraries are shared objects.
19698 deplibs_check_method=$lt_deplibs_check_method
19699
19700 # Command to use when deplibs_check_method = "file_magic".
19701 file_magic_cmd=$lt_file_magic_cmd
19702
19703 # How to find potential files when deplibs_check_method = "file_magic".
19704 file_magic_glob=$lt_file_magic_glob
19705
19706 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19707 want_nocaseglob=$lt_want_nocaseglob
19708
19709 # DLL creation program.
19710 DLLTOOL=$lt_DLLTOOL
19711
19712 # Command to associate shared and link libraries.
19713 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19714
19715 # The archiver.
19716 AR=$lt_AR
19717
19718 # Flags to create an archive.
19719 AR_FLAGS=$lt_AR_FLAGS
19720
19721 # How to feed a file listing to the archiver.
19722 archiver_list_spec=$lt_archiver_list_spec
19723
19724 # A symbol stripping program.
19725 STRIP=$lt_STRIP
19726
19727 # Commands used to install an old-style archive.
19728 RANLIB=$lt_RANLIB
19729 old_postinstall_cmds=$lt_old_postinstall_cmds
19730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19731
19732 # Whether to use a lock for old archive extraction.
19733 lock_old_archive_extraction=$lock_old_archive_extraction
19734
19735 # A C compiler.
19736 LTCC=$lt_CC
19737
19738 # LTCC compiler flags.
19739 LTCFLAGS=$lt_CFLAGS
19740
19741 # Take the output of nm and produce a listing of raw symbols and C names.
19742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19743
19744 # Transform the output of nm in a proper C declaration.
19745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19746
19747 # Transform the output of nm into a list of symbols to manually relocate.
19748 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19749
19750 # Transform the output of nm in a C name address pair.
19751 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19752
19753 # Transform the output of nm in a C name address pair when lib prefix is needed.
19754 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19755
19756 # The name lister interface.
19757 nm_interface=$lt_lt_cv_nm_interface
19758
19759 # Specify filename containing input files for \$NM.
19760 nm_file_list_spec=$lt_nm_file_list_spec
19761
19762 # The root where to search for dependent libraries,and where our libraries should be installed.
19763 lt_sysroot=$lt_sysroot
19764
19765 # Command to truncate a binary pipe.
19766 lt_truncate_bin=$lt_lt_cv_truncate_bin
19767
19768 # The name of the directory that contains temporary libtool files.
19769 objdir=$objdir
19770
19771 # Used to examine libraries when file_magic_cmd begins with "file".
19772 MAGIC_CMD=$MAGIC_CMD
19773
19774 # Must we lock files when doing compilation?
19775 need_locks=$lt_need_locks
19776
19777 # Manifest tool.
19778 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19779
19780 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19781 DSYMUTIL=$lt_DSYMUTIL
19782
19783 # Tool to change global to local symbols on Mac OS X.
19784 NMEDIT=$lt_NMEDIT
19785
19786 # Tool to manipulate fat objects and archives on Mac OS X.
19787 LIPO=$lt_LIPO
19788
19789 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19790 OTOOL=$lt_OTOOL
19791
19792 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19793 OTOOL64=$lt_OTOOL64
19794
19795 # Old archive suffix (normally "a").
19796 libext=$libext
19797
19798 # Shared library suffix (normally ".so").
19799 shrext_cmds=$lt_shrext_cmds
19800
19801 # The commands to extract the exported symbol list from a shared archive.
19802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19803
19804 # Variables whose values should be saved in libtool wrapper scripts and
19805 # restored at link time.
19806 variables_saved_for_relink=$lt_variables_saved_for_relink
19807
19808 # Do we need the "lib" prefix for modules?
19809 need_lib_prefix=$need_lib_prefix
19810
19811 # Do we need a version for libraries?
19812 need_version=$need_version
19813
19814 # Library versioning type.
19815 version_type=$version_type
19816
19817 # Shared library runtime path variable.
19818 runpath_var=$runpath_var
19819
19820 # Shared library path variable.
19821 shlibpath_var=$shlibpath_var
19822
19823 # Is shlibpath searched before the hard-coded library search path?
19824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19825
19826 # Format of library name prefix.
19827 libname_spec=$lt_libname_spec
19828
19829 # List of archive names. First name is the real one, the rest are links.
19830 # The last name is the one that the linker finds with -lNAME
19831 library_names_spec=$lt_library_names_spec
19832
19833 # The coded name of the library, if different from the real name.
19834 soname_spec=$lt_soname_spec
19835
19836 # Permission mode override for installation of shared libraries.
19837 install_override_mode=$lt_install_override_mode
19838
19839 # Command to use after installation of a shared archive.
19840 postinstall_cmds=$lt_postinstall_cmds
19841
19842 # Command to use after uninstallation of a shared archive.
19843 postuninstall_cmds=$lt_postuninstall_cmds
19844
19845 # Commands used to finish a libtool library installation in a directory.
19846 finish_cmds=$lt_finish_cmds
19847
19848 # As "finish_cmds", except a single script fragment to be evaled but
19849 # not shown.
19850 finish_eval=$lt_finish_eval
19851
19852 # Whether we should hardcode library paths into libraries.
19853 hardcode_into_libs=$hardcode_into_libs
19854
19855 # Compile-time system search path for libraries.
19856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19857
19858 # Detected run-time system search path for libraries.
19859 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19860
19861 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19862 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19863
19864 # Whether dlopen is supported.
19865 dlopen_support=$enable_dlopen
19866
19867 # Whether dlopen of programs is supported.
19868 dlopen_self=$enable_dlopen_self
19869
19870 # Whether dlopen of statically linked programs is supported.
19871 dlopen_self_static=$enable_dlopen_self_static
19872
19873 # Commands to strip libraries.
19874 old_striplib=$lt_old_striplib
19875 striplib=$lt_striplib
19876
19877
19878 # The linker used to build libraries.
19879 LD=$lt_LD
19880
19881 # How to create reloadable object files.
19882 reload_flag=$lt_reload_flag
19883 reload_cmds=$lt_reload_cmds
19884
19885 # Commands used to build an old-style archive.
19886 old_archive_cmds=$lt_old_archive_cmds
19887
19888 # A language specific compiler.
19889 CC=$lt_compiler
19890
19891 # Is the compiler the GNU compiler?
19892 with_gcc=$GCC
19893
19894 # Compiler flag to turn off builtin functions.
19895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19896
19897 # Additional compiler flags for building library objects.
19898 pic_flag=$lt_lt_prog_compiler_pic
19899
19900 # How to pass a linker flag through the compiler.
19901 wl=$lt_lt_prog_compiler_wl
19902
19903 # Compiler flag to prevent dynamic linking.
19904 link_static_flag=$lt_lt_prog_compiler_static
19905
19906 # Does compiler simultaneously support -c and -o options?
19907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19908
19909 # Whether or not to add -lc for building shared libraries.
19910 build_libtool_need_lc=$archive_cmds_need_lc
19911
19912 # Whether or not to disallow shared libs when runtime libs are static.
19913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19914
19915 # Compiler flag to allow reflexive dlopens.
19916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19917
19918 # Compiler flag to generate shared objects directly from archives.
19919 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19920
19921 # Whether the compiler copes with passing no objects directly.
19922 compiler_needs_object=$lt_compiler_needs_object
19923
19924 # Create an old-style archive from a shared archive.
19925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19926
19927 # Create a temporary old-style archive to link instead of a shared archive.
19928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19929
19930 # Commands used to build a shared archive.
19931 archive_cmds=$lt_archive_cmds
19932 archive_expsym_cmds=$lt_archive_expsym_cmds
19933
19934 # Commands used to build a loadable module if different from building
19935 # a shared archive.
19936 module_cmds=$lt_module_cmds
19937 module_expsym_cmds=$lt_module_expsym_cmds
19938
19939 # Whether we are building with GNU ld or not.
19940 with_gnu_ld=$lt_with_gnu_ld
19941
19942 # Flag that allows shared libraries with undefined symbols to be built.
19943 allow_undefined_flag=$lt_allow_undefined_flag
19944
19945 # Flag that enforces no undefined symbols.
19946 no_undefined_flag=$lt_no_undefined_flag
19947
19948 # Flag to hardcode \$libdir into a binary during linking.
19949 # This must work even if \$libdir does not exist
19950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19951
19952 # Whether we need a single "-rpath" flag with a separated argument.
19953 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19954
19955 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19956 # DIR into the resulting binary.
19957 hardcode_direct=$hardcode_direct
19958
19959 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19960 # DIR into the resulting binary and the resulting library dependency is
19961 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19962 # library is relocated.
19963 hardcode_direct_absolute=$hardcode_direct_absolute
19964
19965 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19966 # into the resulting binary.
19967 hardcode_minus_L=$hardcode_minus_L
19968
19969 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19970 # into the resulting binary.
19971 hardcode_shlibpath_var=$hardcode_shlibpath_var
19972
19973 # Set to "yes" if building a shared library automatically hardcodes DIR
19974 # into the library and all subsequent libraries and executables linked
19975 # against it.
19976 hardcode_automatic=$hardcode_automatic
19977
19978 # Set to yes if linker adds runtime paths of dependent libraries
19979 # to runtime path list.
19980 inherit_rpath=$inherit_rpath
19981
19982 # Whether libtool must link a program against all its dependency libraries.
19983 link_all_deplibs=$link_all_deplibs
19984
19985 # Set to "yes" if exported symbols are required.
19986 always_export_symbols=$always_export_symbols
19987
19988 # The commands to list exported symbols.
19989 export_symbols_cmds=$lt_export_symbols_cmds
19990
19991 # Symbols that should not be listed in the preloaded symbols.
19992 exclude_expsyms=$lt_exclude_expsyms
19993
19994 # Symbols that must always be exported.
19995 include_expsyms=$lt_include_expsyms
19996
19997 # Commands necessary for linking programs (against libraries) with templates.
19998 prelink_cmds=$lt_prelink_cmds
19999
20000 # Commands necessary for finishing linking programs.
20001 postlink_cmds=$lt_postlink_cmds
20002
20003 # Specify filename containing input files.
20004 file_list_spec=$lt_file_list_spec
20005
20006 # How to hardcode a shared library path into an executable.
20007 hardcode_action=$hardcode_action
20008
20009 # The directories searched by this compiler when creating a shared library.
20010 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20011
20012 # Dependencies to place before and after the objects being linked to
20013 # create a shared library.
20014 predep_objects=$lt_predep_objects
20015 postdep_objects=$lt_postdep_objects
20016 predeps=$lt_predeps
20017 postdeps=$lt_postdeps
20018
20019 # The library search path used internally by the compiler when linking
20020 # a shared library.
20021 compiler_lib_search_path=$lt_compiler_lib_search_path
20022
20023 # ### END LIBTOOL CONFIG
20024
20025 _LT_EOF
20026
20027 cat <<'_LT_EOF' >> "$cfgfile"
20028
20029 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20030
20031 # func_munge_path_list VARIABLE PATH
20032 # -----------------------------------
20033 # VARIABLE is name of variable containing _space_ separated list of
20034 # directories to be munged by the contents of PATH, which is string
20035 # having a format:
20036 # "DIR[:DIR]:"
20037 # string "DIR[ DIR]" will be prepended to VARIABLE
20038 # ":DIR[:DIR]"
20039 # string "DIR[ DIR]" will be appended to VARIABLE
20040 # "DIRP[:DIRP]::[DIRA:]DIRA"
20041 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20042 # "DIRA[ DIRA]" will be appended to VARIABLE
20043 # "DIR[:DIR]"
20044 # VARIABLE will be replaced by "DIR[ DIR]"
20045 func_munge_path_list ()
20046 {
20047 case x$2 in
20048 x)
20049 ;;
20050 *:)
20051 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20052 ;;
20053 x:*)
20054 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20055 ;;
20056 *::*)
20057 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20058 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20059 ;;
20060 *)
20061 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20062 ;;
20063 esac
20064 }
20065
20066
20067 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20068 func_cc_basename ()
20069 {
20070 for cc_temp in $*""; do
20071 case $cc_temp in
20072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20074 \-*) ;;
20075 *) break;;
20076 esac
20077 done
20078 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20079 }
20080
20081
20082 # ### END FUNCTIONS SHARED WITH CONFIGURE
20083
20084 _LT_EOF
20085
20086 case $host_os in
20087 aix3*)
20088 cat <<\_LT_EOF >> "$cfgfile"
20089 # AIX sometimes has problems with the GCC collect2 program. For some
20090 # reason, if we set the COLLECT_NAMES environment variable, the problems
20091 # vanish in a puff of smoke.
20092 if test set != "${COLLECT_NAMES+set}"; then
20093 COLLECT_NAMES=
20094 export COLLECT_NAMES
20095 fi
20096 _LT_EOF
20097 ;;
20098 esac
20099
20100
20101 ltmain=$ac_aux_dir/ltmain.sh
20102
20103
20104 # We use sed instead of cat because bash on DJGPP gets confused if
20105 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20106 # text mode, it properly converts lines to CR/LF. This bash problem
20107 # is reportedly fixed, but why not run on old versions too?
20108 sed '$q' "$ltmain" >> "$cfgfile" \
20109 || (rm -f "$cfgfile"; exit 1)
20110
20111 mv -f "$cfgfile" "$ofile" ||
20112 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20113 chmod +x "$ofile"
20114
20115
20116 cat <<_LT_EOF >> "$ofile"
20117
20118 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20119
20120 # The linker used to build libraries.
20121 LD=$lt_LD_CXX
20122
20123 # How to create reloadable object files.
20124 reload_flag=$lt_reload_flag_CXX
20125 reload_cmds=$lt_reload_cmds_CXX
20126
20127 # Commands used to build an old-style archive.
20128 old_archive_cmds=$lt_old_archive_cmds_CXX
20129
20130 # A language specific compiler.
20131 CC=$lt_compiler_CXX
20132
20133 # Is the compiler the GNU compiler?
20134 with_gcc=$GCC_CXX
20135
20136 # Compiler flag to turn off builtin functions.
20137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20138
20139 # Additional compiler flags for building library objects.
20140 pic_flag=$lt_lt_prog_compiler_pic_CXX
20141
20142 # How to pass a linker flag through the compiler.
20143 wl=$lt_lt_prog_compiler_wl_CXX
20144
20145 # Compiler flag to prevent dynamic linking.
20146 link_static_flag=$lt_lt_prog_compiler_static_CXX
20147
20148 # Does compiler simultaneously support -c and -o options?
20149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20150
20151 # Whether or not to add -lc for building shared libraries.
20152 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20153
20154 # Whether or not to disallow shared libs when runtime libs are static.
20155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20156
20157 # Compiler flag to allow reflexive dlopens.
20158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20159
20160 # Compiler flag to generate shared objects directly from archives.
20161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20162
20163 # Whether the compiler copes with passing no objects directly.
20164 compiler_needs_object=$lt_compiler_needs_object_CXX
20165
20166 # Create an old-style archive from a shared archive.
20167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20168
20169 # Create a temporary old-style archive to link instead of a shared archive.
20170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20171
20172 # Commands used to build a shared archive.
20173 archive_cmds=$lt_archive_cmds_CXX
20174 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20175
20176 # Commands used to build a loadable module if different from building
20177 # a shared archive.
20178 module_cmds=$lt_module_cmds_CXX
20179 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20180
20181 # Whether we are building with GNU ld or not.
20182 with_gnu_ld=$lt_with_gnu_ld_CXX
20183
20184 # Flag that allows shared libraries with undefined symbols to be built.
20185 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20186
20187 # Flag that enforces no undefined symbols.
20188 no_undefined_flag=$lt_no_undefined_flag_CXX
20189
20190 # Flag to hardcode \$libdir into a binary during linking.
20191 # This must work even if \$libdir does not exist
20192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20193
20194 # Whether we need a single "-rpath" flag with a separated argument.
20195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20196
20197 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20198 # DIR into the resulting binary.
20199 hardcode_direct=$hardcode_direct_CXX
20200
20201 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20202 # DIR into the resulting binary and the resulting library dependency is
20203 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20204 # library is relocated.
20205 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20206
20207 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20208 # into the resulting binary.
20209 hardcode_minus_L=$hardcode_minus_L_CXX
20210
20211 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20212 # into the resulting binary.
20213 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20214
20215 # Set to "yes" if building a shared library automatically hardcodes DIR
20216 # into the library and all subsequent libraries and executables linked
20217 # against it.
20218 hardcode_automatic=$hardcode_automatic_CXX
20219
20220 # Set to yes if linker adds runtime paths of dependent libraries
20221 # to runtime path list.
20222 inherit_rpath=$inherit_rpath_CXX
20223
20224 # Whether libtool must link a program against all its dependency libraries.
20225 link_all_deplibs=$link_all_deplibs_CXX
20226
20227 # Set to "yes" if exported symbols are required.
20228 always_export_symbols=$always_export_symbols_CXX
20229
20230 # The commands to list exported symbols.
20231 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20232
20233 # Symbols that should not be listed in the preloaded symbols.
20234 exclude_expsyms=$lt_exclude_expsyms_CXX
20235
20236 # Symbols that must always be exported.
20237 include_expsyms=$lt_include_expsyms_CXX
20238
20239 # Commands necessary for linking programs (against libraries) with templates.
20240 prelink_cmds=$lt_prelink_cmds_CXX
20241
20242 # Commands necessary for finishing linking programs.
20243 postlink_cmds=$lt_postlink_cmds_CXX
20244
20245 # Specify filename containing input files.
20246 file_list_spec=$lt_file_list_spec_CXX
20247
20248 # How to hardcode a shared library path into an executable.
20249 hardcode_action=$hardcode_action_CXX
20250
20251 # The directories searched by this compiler when creating a shared library.
20252 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20253
20254 # Dependencies to place before and after the objects being linked to
20255 # create a shared library.
20256 predep_objects=$lt_predep_objects_CXX
20257 postdep_objects=$lt_postdep_objects_CXX
20258 predeps=$lt_predeps_CXX
20259 postdeps=$lt_postdeps_CXX
20260
20261 # The library search path used internally by the compiler when linking
20262 # a shared library.
20263 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20264
20265 # ### END LIBTOOL TAG CONFIG: CXX
20266 _LT_EOF
20267
20268 ;;
20269
20270 esac
20271 done # for ac_tag
20272
20273
20274 as_fn_exit 0
20275 _ACEOF
20276 ac_clean_files=$ac_clean_files_save
20277
20278 test $ac_write_fail = 0 ||
20279 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20280
20281
20282 # configure is writing to config.log, and then calls config.status.
20283 # config.status does its own redirection, appending to config.log.
20284 # Unfortunately, on DOS this fails, as config.log is still kept open
20285 # by configure, so config.status won't be able to write to it; its
20286 # output is simply discarded. So we exec the FD to /dev/null,
20287 # effectively closing config.log, so it can be properly (re)opened and
20288 # appended to by config.status. When coming back to configure, we
20289 # need to make the FD available again.
20290 if test "$no_create" != yes; then
20291 ac_cs_success=:
20292 ac_config_status_args=
20293 test "$silent" = yes &&
20294 ac_config_status_args="$ac_config_status_args --quiet"
20295 exec 5>/dev/null
20296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20297 exec 5>>config.log
20298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20299 # would make configure fail if this is the last instruction.
20300 $ac_cs_success || as_fn_exit 1
20301 fi
20302 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20304 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20305 fi
20306
20307
20308
20309 echo "
20310 Options:
20311
20312 Gnome support: ${HAVE_GNOME}
20313 Testsuite booststrap: ${HAVE_CURL}
20314 "