Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libepubgen 0.1.1.
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='libepubgen'
589 PACKAGE_TARNAME='libepubgen'
590 PACKAGE_VERSION='0.1.1'
591 PACKAGE_STRING='libepubgen 0.1.1'
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_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 WITH_DOCS_FALSE
636 WITH_DOCS_TRUE
637 DOXYGEN
638 WITH_TESTS_FALSE
639 WITH_TESTS_TRUE
640 LIBXML_LIBS
641 LIBXML_CFLAGS
642 CPPUNIT_LIBS
643 CPPUNIT_CFLAGS
644 DEBUG_CXXFLAGS
645 WINDRES
646 PLATFORM_WIN32_FALSE
647 PLATFORM_WIN32_TRUE
648 EPUBGEN2TEXT_WIN32_RESOURCE
649 EPUBGEN2RAW_WIN32_RESOURCE
650 EPUBGEN2HTML_WIN32_RESOURCE
651 LIBEPUBGEN_WIN32_RESOURCE
652 OS_WIN32_FALSE
653 OS_WIN32_TRUE
654 LT_AGE
655 LT_REVISION
656 LT_CURRENT
657 EPUBGEN_VERSION
658 EPUBGEN_MICRO_VERSION
659 EPUBGEN_MINOR_VERSION
660 EPUBGEN_MAJOR_VERSION
661 BOOST_CFLAGS
662 REVENGE_LIBS
663 REVENGE_CFLAGS
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 HAVE_CXX11
668 CXXCPP
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 SED
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
696 AS
697 LN_S
698 am__fastdepCXX_FALSE
699 am__fastdepCXX_TRUE
700 CXXDEPMODE
701 ac_ct_CXX
702 CXXFLAGS
703 CXX
704 CPP
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 ac_ct_AR
723 AR
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_dependency_tracking
794 enable_static
795 with_pic
796 enable_shared
797 enable_fast_install
798 with_aix_soname
799 with_gnu_ld
800 with_sysroot
801 enable_libtool_lock
802 enable_werror
803 enable_weffc
804 enable_wparanoic
805 enable_debug
806 enable_tests
807 with_docs
808 '
809 ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CPP
818 CXX
819 CXXFLAGS
820 CCC
821 LT_SYS_LIBRARY_PATH
822 CXXCPP
823 PKG_CONFIG
824 PKG_CONFIG_PATH
825 PKG_CONFIG_LIBDIR
826 REVENGE_CFLAGS
827 REVENGE_LIBS
828 CPPUNIT_CFLAGS
829 CPPUNIT_LIBS
830 LIBXML_CFLAGS
831 LIBXML_LIBS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures libepubgen 0.1.1 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libepubgen]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of libepubgen 0.1.1:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-static[=PKGS] build static libraries [default=no]
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-werror Treat all warnings as errors, usefull for
1462 development
1463 --disable-weffc Disable -Weffc++ warnings, usefull when using an old
1464 version of gcc or of boost
1465 --enable-wparanoic Enable a lot of warnings...
1466 --enable-debug Turn on debugging
1467 --enable-tests Build and run unit tests
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-aix-soname=aix|svr4|both
1475 shared library versioning (aka "SONAME") variant to
1476 provide on AIX, [default=aix].
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1479 compiler's sysroot if not specified).
1480 --without-docs Do not build documentation
1481
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CPP C preprocessor
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1493 LT_SYS_LIBRARY_PATH
1494 User-defined run-time library search path.
1495 CXXCPP C++ preprocessor
1496 PKG_CONFIG path to pkg-config utility
1497 PKG_CONFIG_PATH
1498 directories to add to pkg-config's search path
1499 PKG_CONFIG_LIBDIR
1500 path overriding pkg-config's built-in search path
1501 REVENGE_CFLAGS
1502 C compiler flags for REVENGE, overriding pkg-config
1503 REVENGE_LIBS
1504 linker flags for REVENGE, overriding pkg-config
1505 CPPUNIT_CFLAGS
1506 C compiler flags for CPPUNIT, overriding pkg-config
1507 CPPUNIT_LIBS
1508 linker flags for CPPUNIT, overriding pkg-config
1509 LIBXML_CFLAGS
1510 C compiler flags for LIBXML, overriding pkg-config
1511 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to the package provider.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 libepubgen configure 0.1.1
1580 generated by GNU Autoconf 2.69
1581
1582 Copyright (C) 2012 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_cpp
1667
1668 # ac_fn_cxx_try_compile LINENO
1669 # ----------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_cxx_try_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_cxx_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_cxx_try_compile
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 test -x conftest$ac_exeext
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_link
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_run LINENO
1784 # ----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786 # that executables *can* be run.
1787 ac_fn_c_try_run ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801 { { case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_try") 2>&5
1808 ac_status=$?
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; }; }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: program exited with status $ac_status" >&5
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=$ac_status
1818 fi
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_run
1824
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1841
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1846
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1852
1853 #undef $2
1854
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1868
1869 int
1870 main ()
1871 {
1872 return $2 ();
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_cxx_try_cpp LINENO
1893 # ------------------------
1894 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_cpp ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } > conftest.i && {
1914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=1
1923 fi
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927 } # ac_fn_cxx_try_cpp
1928
1929 # ac_fn_cxx_try_link LINENO
1930 # -------------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_link ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1949 fi
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 test -x conftest$ac_exeext
1957 }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1
1964 fi
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_cxx_try_link
1974
1975 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1976 # ---------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_cxx_check_header_compile ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_cxx_try_compile "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_cxx_check_header_compile
2005 cat >config.log <<_ACEOF
2006 This file contains any messages produced by compilers while
2007 running configure, to aid debugging if configure makes a mistake.
2008
2009 It was created by libepubgen $as_me 0.1.1, which was
2010 generated by GNU Autoconf 2.69. Invocation command line was
2011
2012 $ $0 $@
2013
2014 _ACEOF
2015 exec 5>>config.log
2016 {
2017 cat <<_ASUNAME
2018 ## --------- ##
2019 ## Platform. ##
2020 ## --------- ##
2021
2022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027
2028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030
2031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2038
2039 _ASUNAME
2040
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 $as_echo "PATH: $as_dir"
2047 done
2048 IFS=$as_save_IFS
2049
2050 } >&5
2051
2052 cat >&5 <<_ACEOF
2053
2054
2055 ## ----------- ##
2056 ## Core tests. ##
2057 ## ----------- ##
2058
2059 _ACEOF
2060
2061
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2067 ac_configure_args=
2068 ac_configure_args0=
2069 ac_configure_args1=
2070 ac_must_keep_next=false
2071 for ac_pass in 1 2
2072 do
2073 for ac_arg
2074 do
2075 case $ac_arg in
2076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078 | -silent | --silent | --silen | --sile | --sil)
2079 continue ;;
2080 *\'*)
2081 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082 esac
2083 case $ac_pass in
2084 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085 2)
2086 as_fn_append ac_configure_args1 " '$ac_arg'"
2087 if test $ac_must_keep_next = true; then
2088 ac_must_keep_next=false # Got value, back to normal.
2089 else
2090 case $ac_arg in
2091 *=* | --config-cache | -C | -disable-* | --disable-* \
2092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094 | -with-* | --with-* | -without-* | --without-* | --x)
2095 case "$ac_configure_args0 " in
2096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097 esac
2098 ;;
2099 -* ) ac_must_keep_next=true ;;
2100 esac
2101 fi
2102 as_fn_append ac_configure_args " '$ac_arg'"
2103 ;;
2104 esac
2105 done
2106 done
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2109
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log. We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116 # Save into config.log some information that might help in debugging.
2117 {
2118 echo
2119
2120 $as_echo "## ---------------- ##
2121 ## Cache variables. ##
2122 ## ---------------- ##"
2123 echo
2124 # The following way of writing the cache mishandles newlines in values,
2125 (
2126 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in #(
2129 *${as_nl}*)
2130 case $ac_var in #(
2131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2133 esac
2134 case $ac_var in #(
2135 _ | IFS | as_nl) ;; #(
2136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2137 *) { eval $ac_var=; unset $ac_var;} ;;
2138 esac ;;
2139 esac
2140 done
2141 (set) 2>&1 |
2142 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2143 *${as_nl}ac_space=\ *)
2144 sed -n \
2145 "s/'\''/'\''\\\\'\'''\''/g;
2146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2147 ;; #(
2148 *)
2149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150 ;;
2151 esac |
2152 sort
2153 )
2154 echo
2155
2156 $as_echo "## ----------------- ##
2157 ## Output variables. ##
2158 ## ----------------- ##"
2159 echo
2160 for ac_var in $ac_subst_vars
2161 do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 esac
2166 $as_echo "$ac_var='\''$ac_val'\''"
2167 done | sort
2168 echo
2169
2170 if test -n "$ac_subst_files"; then
2171 $as_echo "## ------------------- ##
2172 ## File substitutions. ##
2173 ## ------------------- ##"
2174 echo
2175 for ac_var in $ac_subst_files
2176 do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 esac
2181 $as_echo "$ac_var='\''$ac_val'\''"
2182 done | sort
2183 echo
2184 fi
2185
2186 if test -s confdefs.h; then
2187 $as_echo "## ----------- ##
2188 ## confdefs.h. ##
2189 ## ----------- ##"
2190 echo
2191 cat confdefs.h
2192 echo
2193 fi
2194 test "$ac_signal" != 0 &&
2195 $as_echo "$as_me: caught signal $ac_signal"
2196 $as_echo "$as_me: exit $exit_status"
2197 } >&5
2198 rm -f core *.core core.conftest.* &&
2199 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2200 exit $exit_status
2201 ' 0
2202 for ac_signal in 1 2 13 15; do
2203 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2204 done
2205 ac_signal=0
2206
2207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2208 rm -f -r conftest* confdefs.h
2209
2210 $as_echo "/* confdefs.h */" > confdefs.h
2211
2212 # Predefined preprocessor variables.
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_NAME "$PACKAGE_NAME"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_STRING "$PACKAGE_STRING"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_URL "$PACKAGE_URL"
2236 _ACEOF
2237
2238
2239 # Let the site file select an alternate cache file if it wants to.
2240 # Prefer an explicitly selected file to automatically selected ones.
2241 ac_site_file1=NONE
2242 ac_site_file2=NONE
2243 if test -n "$CONFIG_SITE"; then
2244 # We do not want a PATH search for config.site.
2245 case $CONFIG_SITE in #((
2246 -*) ac_site_file1=./$CONFIG_SITE;;
2247 */*) ac_site_file1=$CONFIG_SITE;;
2248 *) ac_site_file1=./$CONFIG_SITE;;
2249 esac
2250 elif test "x$prefix" != xNONE; then
2251 ac_site_file1=$prefix/share/config.site
2252 ac_site_file2=$prefix/etc/config.site
2253 else
2254 ac_site_file1=$ac_default_prefix/share/config.site
2255 ac_site_file2=$ac_default_prefix/etc/config.site
2256 fi
2257 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258 do
2259 test "x$ac_site_file" = xNONE && continue
2260 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2262 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2263 sed 's/^/| /' "$ac_site_file" >&5
2264 . "$ac_site_file" \
2265 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267 as_fn_error $? "failed to load site script $ac_site_file
2268 See \`config.log' for more details" "$LINENO" 5; }
2269 fi
2270 done
2271
2272 if test -r "$cache_file"; then
2273 # Some versions of bash will fail to source /dev/null (special files
2274 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2275 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 case $cache_file in
2279 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280 *) . "./$cache_file";;
2281 esac
2282 fi
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285 $as_echo "$as_me: creating cache $cache_file" >&6;}
2286 >$cache_file
2287 fi
2288
2289 # Check that the precious variables saved in the cache have kept the same
2290 # value.
2291 ac_cache_corrupted=false
2292 for ac_var in $ac_precious_vars; do
2293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294 eval ac_new_set=\$ac_env_${ac_var}_set
2295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296 eval ac_new_val=\$ac_env_${ac_var}_value
2297 case $ac_old_set,$ac_new_set in
2298 set,)
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2302 ,set)
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2306 ,);;
2307 *)
2308 if test "x$ac_old_val" != "x$ac_new_val"; then
2309 # differences in whitespace do not lead to failure.
2310 ac_old_val_w=`echo x $ac_old_val`
2311 ac_new_val_w=`echo x $ac_new_val`
2312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315 ac_cache_corrupted=:
2316 else
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319 eval $ac_var=\$ac_old_val
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2322 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2324 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2325 fi;;
2326 esac
2327 # Pass precious variables to config.status.
2328 if test "$ac_new_set" = set; then
2329 case $ac_new_val in
2330 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 *) ac_arg=$ac_var=$ac_new_val ;;
2332 esac
2333 case " $ac_configure_args " in
2334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2336 esac
2337 fi
2338 done
2339 if $ac_cache_corrupted; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 fi
2346 ## -------------------- ##
2347 ## Main body of script. ##
2348 ## -------------------- ##
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358 ac_config_headers="$ac_config_headers config.h"
2359
2360 am__api_version='1.15'
2361
2362 ac_aux_dir=
2363 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2364 if test -f "$ac_dir/install-sh"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/install-sh -c"
2367 break
2368 elif test -f "$ac_dir/install.sh"; then
2369 ac_aux_dir=$ac_dir
2370 ac_install_sh="$ac_aux_dir/install.sh -c"
2371 break
2372 elif test -f "$ac_dir/shtool"; then
2373 ac_aux_dir=$ac_dir
2374 ac_install_sh="$ac_aux_dir/shtool install -c"
2375 break
2376 fi
2377 done
2378 if test -z "$ac_aux_dir"; then
2379 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2380 fi
2381
2382 # These three variables are undocumented and unsupported,
2383 # and are intended to be withdrawn in a future Autoconf release.
2384 # They can cause serious problems if a builder's source tree is in a directory
2385 # whose full name contains unusual characters.
2386 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2387 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2388 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2389
2390
2391 # Find a good install program. We prefer a C program (faster),
2392 # so one script is as good as another. But avoid the broken or
2393 # incompatible versions:
2394 # SysV /etc/install, /usr/sbin/install
2395 # SunOS /usr/etc/install
2396 # IRIX /sbin/install
2397 # AIX /bin/install
2398 # AmigaOS /C/install, which installs bootblocks on floppy discs
2399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2402 # OS/2's system install, which has a completely different semantic
2403 # ./install, which can be erroneously created by make from ./install.sh.
2404 # Reject install programs that cannot install multiple files.
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2406 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2407 if test -z "$INSTALL"; then
2408 if ${ac_cv_path_install+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 # Account for people who put trailing slashes in PATH elements.
2417 case $as_dir/ in #((
2418 ./ | .// | /[cC]/* | \
2419 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2420 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2421 /usr/ucb/* ) ;;
2422 *)
2423 # OSF1 and SCO ODT 3.0 have their own names for install.
2424 # Don't use installbsd from OSF since it installs stuff as root
2425 # by default.
2426 for ac_prog in ginstall scoinst install; do
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2429 if test $ac_prog = install &&
2430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # AIX install. It has an incompatible calling convention.
2432 :
2433 elif test $ac_prog = install &&
2434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2435 # program-specific install script used by HP pwplus--don't use.
2436 :
2437 else
2438 rm -rf conftest.one conftest.two conftest.dir
2439 echo one > conftest.one
2440 echo two > conftest.two
2441 mkdir conftest.dir
2442 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2443 test -s conftest.one && test -s conftest.two &&
2444 test -s conftest.dir/conftest.one &&
2445 test -s conftest.dir/conftest.two
2446 then
2447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2448 break 3
2449 fi
2450 fi
2451 fi
2452 done
2453 done
2454 ;;
2455 esac
2456
2457 done
2458 IFS=$as_save_IFS
2459
2460 rm -rf conftest.one conftest.two conftest.dir
2461
2462 fi
2463 if test "${ac_cv_path_install+set}" = set; then
2464 INSTALL=$ac_cv_path_install
2465 else
2466 # As a last resort, use the slow shell script. Don't cache a
2467 # value for INSTALL within a source directory, because that will
2468 # break other packages using the cache if that directory is
2469 # removed, or if the value is a relative name.
2470 INSTALL=$ac_install_sh
2471 fi
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2474 $as_echo "$INSTALL" >&6; }
2475
2476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477 # It thinks the first close brace ends the variable substitution.
2478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479
2480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481
2482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2485 $as_echo_n "checking whether build environment is sane... " >&6; }
2486 # Reject unsafe characters in $srcdir or the absolute working directory
2487 # name. Accept space and tab only in the latter.
2488 am_lf='
2489 '
2490 case `pwd` in
2491 *[\\\"\#\$\&\'\`$am_lf]*)
2492 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2493 esac
2494 case $srcdir in
2495 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2496 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2497 esac
2498
2499 # Do 'set' in a subshell so we don't clobber the current shell's
2500 # arguments. Must try -L first in case configure is actually a
2501 # symlink; some systems play weird games with the mod time of symlinks
2502 # (eg FreeBSD returns the mod time of the symlink's containing
2503 # directory).
2504 if (
2505 am_has_slept=no
2506 for am_try in 1 2; do
2507 echo "timestamp, slept: $am_has_slept" > conftest.file
2508 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2509 if test "$*" = "X"; then
2510 # -L didn't work.
2511 set X `ls -t "$srcdir/configure" conftest.file`
2512 fi
2513 if test "$*" != "X $srcdir/configure conftest.file" \
2514 && test "$*" != "X conftest.file $srcdir/configure"; then
2515
2516 # If neither matched, then we have a broken ls. This can happen
2517 # if, for instance, CONFIG_SHELL is bash and it inherits a
2518 # broken ls alias from the environment. This has actually
2519 # happened. Such a system could not be considered "sane".
2520 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2521 alias in your environment" "$LINENO" 5
2522 fi
2523 if test "$2" = conftest.file || test $am_try -eq 2; then
2524 break
2525 fi
2526 # Just in case.
2527 sleep 1
2528 am_has_slept=yes
2529 done
2530 test "$2" = conftest.file
2531 )
2532 then
2533 # Ok.
2534 :
2535 else
2536 as_fn_error $? "newly created file is older than distributed files!
2537 Check your system clock" "$LINENO" 5
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 # If we didn't sleep, we still need to ensure time stamps of config.status and
2542 # generated files are strictly newer.
2543 am_sleep_pid=
2544 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2545 ( sleep 1 ) &
2546 am_sleep_pid=$!
2547 fi
2548
2549 rm -f conftest.file
2550
2551 test "$program_prefix" != NONE &&
2552 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2553 # Use a double $ so make ignores it.
2554 test "$program_suffix" != NONE &&
2555 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2556 # Double any \ or $.
2557 # By default was `s,x,x', remove it if useless.
2558 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2559 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2560
2561 # Expand $ac_aux_dir to an absolute path.
2562 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2563
2564 if test x"${MISSING+set}" != xset; then
2565 case $am_aux_dir in
2566 *\ * | *\ *)
2567 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2568 *)
2569 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2570 esac
2571 fi
2572 # Use eval to expand $SHELL
2573 if eval "$MISSING --is-lightweight"; then
2574 am_missing_run="$MISSING "
2575 else
2576 am_missing_run=
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2578 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2579 fi
2580
2581 if test x"${install_sh+set}" != xset; then
2582 case $am_aux_dir in
2583 *\ * | *\ *)
2584 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2585 *)
2586 install_sh="\${SHELL} $am_aux_dir/install-sh"
2587 esac
2588 fi
2589
2590 # Installed binaries are usually stripped using 'strip' when the user
2591 # run "make install-strip". However 'strip' might not be the right
2592 # tool to use in cross-compilation environments, therefore Automake
2593 # will honor the 'STRIP' environment variable to overrule this program.
2594 if test "$cross_compiling" != no; then
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}strip; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_STRIP+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$STRIP"; then
2604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 STRIP=$ac_cv_prog_STRIP
2624 if test -n "$STRIP"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2626 $as_echo "$STRIP" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633 fi
2634 if test -z "$ac_cv_prog_STRIP"; then
2635 ac_ct_STRIP=$STRIP
2636 # Extract the first word of "strip", so it can be a program name with args.
2637 set dummy strip; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$ac_ct_STRIP"; then
2644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_STRIP="strip"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2664 if test -n "$ac_ct_STRIP"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2666 $as_echo "$ac_ct_STRIP" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672 if test "x$ac_ct_STRIP" = x; then
2673 STRIP=":"
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681 STRIP=$ac_ct_STRIP
2682 fi
2683 else
2684 STRIP="$ac_cv_prog_STRIP"
2685 fi
2686
2687 fi
2688 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2691 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2692 if test -z "$MKDIR_P"; then
2693 if ${ac_cv_path_mkdir+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_prog in mkdir gmkdir; do
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2704 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2705 'mkdir (GNU coreutils) '* | \
2706 'mkdir (coreutils) '* | \
2707 'mkdir (fileutils) '4.1*)
2708 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2709 break 3;;
2710 esac
2711 done
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717
2718 test -d ./--version && rmdir ./--version
2719 if test "${ac_cv_path_mkdir+set}" = set; then
2720 MKDIR_P="$ac_cv_path_mkdir -p"
2721 else
2722 # As a last resort, use the slow shell script. Don't cache a
2723 # value for MKDIR_P within a source directory, because that will
2724 # break other packages using the cache if that directory is
2725 # removed, or if the value is a relative name.
2726 MKDIR_P="$ac_install_sh -d"
2727 fi
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2730 $as_echo "$MKDIR_P" >&6; }
2731
2732 for ac_prog in gawk mawk nawk awk
2733 do
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_AWK+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_AWK="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 AWK=$ac_cv_prog_AWK
2762 if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764 $as_echo "$AWK" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771 test -n "$AWK" && break
2772 done
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2776 set x ${MAKE-make}
2777 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2778 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 cat >conftest.make <<\_ACEOF
2782 SHELL = /bin/sh
2783 all:
2784 @echo '@@@%%%=$(MAKE)=@@@%%%'
2785 _ACEOF
2786 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2788 *@@@%%%=?*=@@@%%%*)
2789 eval ac_cv_prog_make_${ac_make}_set=yes;;
2790 *)
2791 eval ac_cv_prog_make_${ac_make}_set=no;;
2792 esac
2793 rm -f conftest.make
2794 fi
2795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797 $as_echo "yes" >&6; }
2798 SET_MAKE=
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 SET_MAKE="MAKE=${MAKE-make}"
2803 fi
2804
2805 rm -rf .tst 2>/dev/null
2806 mkdir .tst 2>/dev/null
2807 if test -d .tst; then
2808 am__leading_dot=.
2809 else
2810 am__leading_dot=_
2811 fi
2812 rmdir .tst 2>/dev/null
2813
2814 # Check whether --enable-silent-rules was given.
2815 if test "${enable_silent_rules+set}" = set; then :
2816 enableval=$enable_silent_rules;
2817 fi
2818
2819 case $enable_silent_rules in # (((
2820 yes) AM_DEFAULT_VERBOSITY=0;;
2821 no) AM_DEFAULT_VERBOSITY=1;;
2822 *) AM_DEFAULT_VERBOSITY=1;;
2823 esac
2824 am_make=${MAKE-make}
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2826 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2827 if ${am_cv_make_support_nested_variables+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if $as_echo 'TRUE=$(BAR$(V))
2831 BAR0=false
2832 BAR1=true
2833 V=1
2834 am__doit:
2835 @$(TRUE)
2836 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2837 am_cv_make_support_nested_variables=yes
2838 else
2839 am_cv_make_support_nested_variables=no
2840 fi
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2843 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2844 if test $am_cv_make_support_nested_variables = yes; then
2845 AM_V='$(V)'
2846 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2847 else
2848 AM_V=$AM_DEFAULT_VERBOSITY
2849 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2850 fi
2851 AM_BACKSLASH='\'
2852
2853 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2855 # is not polluted with repeated "-I."
2856 am__isrc=' -I$(srcdir)'
2857 # test to see if srcdir already configured
2858 if test -f $srcdir/config.status; then
2859 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2860 fi
2861 fi
2862
2863 # test whether we have cygpath
2864 if test -z "$CYGPATH_W"; then
2865 if (cygpath --version) >/dev/null 2>/dev/null; then
2866 CYGPATH_W='cygpath -w'
2867 else
2868 CYGPATH_W=echo
2869 fi
2870 fi
2871
2872
2873 # Define the identity of the package.
2874 PACKAGE='libepubgen'
2875 VERSION='0.1.1'
2876
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE "$PACKAGE"
2880 _ACEOF
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define VERSION "$VERSION"
2885 _ACEOF
2886
2887 # Some tools Automake needs.
2888
2889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2890
2891
2892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2893
2894
2895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2896
2897
2898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2899
2900
2901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2902
2903 # For better backward compatibility. To be removed once Automake 1.9.x
2904 # dies out for good. For more background, see:
2905 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2906 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2907 mkdir_p='$(MKDIR_P)'
2908
2909 # We need awk for the "check" target (and possibly the TAP driver). The
2910 # system "awk" is bad on some platforms.
2911 # Always define AMTAR for backward compatibility. Yes, it's still used
2912 # in the wild :-( We should find a proper way to deprecate it ...
2913 AMTAR='$${TAR-tar}'
2914
2915
2916 # We'll loop over all known methods to create a tar archive until one works.
2917 _am_tools='gnutar pax cpio none'
2918
2919 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2920
2921
2922
2923
2924
2925
2926 # POSIX will say in a future version that running "rm -f" with no argument
2927 # is OK; and we want to be able to make that assumption in our Makefile
2928 # recipes. So use an aggressive probe to check that the usage we want is
2929 # actually supported "in the wild" to an acceptable degree.
2930 # See automake bug#10828.
2931 # To make any issue more visible, cause the running configure to be aborted
2932 # by default if the 'rm' program in use doesn't match our expectations; the
2933 # user can still override this though.
2934 if rm -f && rm -fr && rm -rf; then : OK; else
2935 cat >&2 <<'END'
2936 Oops!
2937
2938 Your 'rm' program seems unable to run without file operands specified
2939 on the command line, even when the '-f' option is present. This is contrary
2940 to the behaviour of most rm programs out there, and not conforming with
2941 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2942
2943 Please tell [email protected] about your system, including the value
2944 of your $PATH and any error possibly output before this message. This
2945 can help us improve future automake versions.
2946
2947 END
2948 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2949 echo 'Configuration will proceed anyway, since you have set the' >&2
2950 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2951 echo >&2
2952 else
2953 cat >&2 <<'END'
2954 Aborting the configuration process, to ensure you take notice of the issue.
2955
2956 You can download and install GNU coreutils to get an 'rm' implementation
2957 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2958
2959 If you want to complete the configuration process using your problematic
2960 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2961 to "yes", and re-run configure.
2962
2963 END
2964 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2965 fi
2966 fi
2967
2968 # Check whether --enable-silent-rules was given.
2969 if test "${enable_silent_rules+set}" = set; then :
2970 enableval=$enable_silent_rules;
2971 fi
2972
2973 case $enable_silent_rules in # (((
2974 yes) AM_DEFAULT_VERBOSITY=0;;
2975 no) AM_DEFAULT_VERBOSITY=1;;
2976 *) AM_DEFAULT_VERBOSITY=0;;
2977 esac
2978 am_make=${MAKE-make}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2980 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2981 if ${am_cv_make_support_nested_variables+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if $as_echo 'TRUE=$(BAR$(V))
2985 BAR0=false
2986 BAR1=true
2987 V=1
2988 am__doit:
2989 @$(TRUE)
2990 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2991 am_cv_make_support_nested_variables=yes
2992 else
2993 am_cv_make_support_nested_variables=no
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2997 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2998 if test $am_cv_make_support_nested_variables = yes; then
2999 AM_V='$(V)'
3000 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3001 else
3002 AM_V=$AM_DEFAULT_VERBOSITY
3003 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3004 fi
3005 AM_BACKSLASH='\'
3006
3007 ac_ext=cpp
3008 ac_cpp='$CXXCPP $CPPFLAGS'
3009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3012
3013
3014 # ===========================
3015 # Find required base packages
3016 # ===========================
3017 DEPDIR="${am__leading_dot}deps"
3018
3019 ac_config_commands="$ac_config_commands depfiles"
3020
3021
3022 am_make=${MAKE-make}
3023 cat > confinc << 'END'
3024 am__doit:
3025 @echo this is the am__doit target
3026 .PHONY: am__doit
3027 END
3028 # If we don't find an include directive, just comment out the code.
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3030 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3031 am__include="#"
3032 am__quote=
3033 _am_result=none
3034 # First try GNU make style include.
3035 echo "include confinc" > confmf
3036 # Ignore all kinds of additional output from 'make'.
3037 case `$am_make -s -f confmf 2> /dev/null` in #(
3038 *the\ am__doit\ target*)
3039 am__include=include
3040 am__quote=
3041 _am_result=GNU
3042 ;;
3043 esac
3044 # Now try BSD make style include.
3045 if test "$am__include" = "#"; then
3046 echo '.include "confinc"' > confmf
3047 case `$am_make -s -f confmf 2> /dev/null` in #(
3048 *the\ am__doit\ target*)
3049 am__include=.include
3050 am__quote="\""
3051 _am_result=BSD
3052 ;;
3053 esac
3054 fi
3055
3056
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3058 $as_echo "$_am_result" >&6; }
3059 rm -f confinc confmf
3060
3061 # Check whether --enable-dependency-tracking was given.
3062 if test "${enable_dependency_tracking+set}" = set; then :
3063 enableval=$enable_dependency_tracking;
3064 fi
3065
3066 if test "x$enable_dependency_tracking" != xno; then
3067 am_depcomp="$ac_aux_dir/depcomp"
3068 AMDEPBACKSLASH='\'
3069 am__nodep='_no'
3070 fi
3071 if test "x$enable_dependency_tracking" != xno; then
3072 AMDEP_TRUE=
3073 AMDEP_FALSE='#'
3074 else
3075 AMDEP_TRUE='#'
3076 AMDEP_FALSE=
3077 fi
3078
3079
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 fi
3124 if test -z "$ac_cv_prog_CC"; then
3125 ac_ct_CC=$CC
3126 # Extract the first word of "gcc", so it can be a program name with args.
3127 set dummy gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="gcc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162 if test "x$ac_ct_CC" = x; then
3163 CC=""
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171 CC=$ac_ct_CC
3172 fi
3173 else
3174 CC="$ac_cv_prog_CC"
3175 fi
3176
3177 if test -z "$CC"; then
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}cc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CC="${ac_tool_prefix}cc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215
3216 fi
3217 fi
3218 if test -z "$CC"; then
3219 # Extract the first word of "cc", so it can be a program name with args.
3220 set dummy cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 ac_prog_rejected=no
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3238 ac_prog_rejected=yes
3239 continue
3240 fi
3241 ac_cv_prog_CC="cc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 if test $ac_prog_rejected = yes; then
3250 # We found a bogon in the path, so make sure we never use it.
3251 set dummy $ac_cv_prog_CC
3252 shift
3253 if test $# != 0; then
3254 # We chose a different compiler from the bogus one.
3255 # However, it has the same basename, so the bogon will be chosen
3256 # first if we set CC to just the basename; use the full file name.
3257 shift
3258 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3259 fi
3260 fi
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 fi
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 for ac_prog in cl.exe
3277 do
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 test -n "$CC" && break
3316 done
3317 fi
3318 if test -z "$CC"; then
3319 ac_ct_CC=$CC
3320 for ac_prog in cl.exe
3321 do
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC="$ac_prog"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350 if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352 $as_echo "$ac_ct_CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 fi
3357
3358
3359 test -n "$ac_ct_CC" && break
3360 done
3361
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369 ac_tool_warned=yes ;;
3370 esac
3371 CC=$ac_ct_CC
3372 fi
3373 fi
3374
3375 fi
3376
3377
3378 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "no acceptable C compiler found in \$PATH
3381 See \`config.log' for more details" "$LINENO" 5; }
3382
3383 # Provide some information about the compiler.
3384 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3385 set X $ac_compile
3386 ac_compiler=$2
3387 for ac_option in --version -v -V -qversion; do
3388 { { ac_try="$ac_compiler $ac_option >&5"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3396 ac_status=$?
3397 if test -s conftest.err; then
3398 sed '10a\
3399 ... rest of stderr output deleted ...
3400 10q' conftest.err >conftest.er1
3401 cat conftest.er1 >&5
3402 fi
3403 rm -f conftest.er1 conftest.err
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }
3406 done
3407
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 ac_clean_files_save=$ac_clean_files
3420 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3421 # Try to create an executable without -o first, disregard a.out.
3422 # It will help us diagnose broken compilers, and finding out an intuition
3423 # of exeext.
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3425 $as_echo_n "checking whether the C compiler works... " >&6; }
3426 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3427
3428 # The possible output files:
3429 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3430
3431 ac_rmfiles=
3432 for ac_file in $ac_files
3433 do
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3436 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3437 esac
3438 done
3439 rm -f $ac_rmfiles
3440
3441 if { { ac_try="$ac_link_default"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_link_default") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3453 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3454 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3455 # so that the user can short-circuit this test for compilers unknown to
3456 # Autoconf.
3457 for ac_file in $ac_files ''
3458 do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3462 ;;
3463 [ab].out )
3464 # We found the default executable, but exeext='' is most
3465 # certainly right.
3466 break;;
3467 *.* )
3468 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3469 then :; else
3470 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 fi
3472 # We set ac_cv_exeext here because the later test for it is not
3473 # safe: cross compilers may not add the suffix if given an `-o'
3474 # argument, so we may need to know it at that point already.
3475 # Even if this section looks crufty: it has the advantage of
3476 # actually working.
3477 break;;
3478 * )
3479 break;;
3480 esac
3481 done
3482 test "$ac_cv_exeext" = no && ac_cv_exeext=
3483
3484 else
3485 ac_file=''
3486 fi
3487 if test -z "$ac_file"; then :
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error 77 "C compiler cannot create executables
3496 See \`config.log' for more details" "$LINENO" 5; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3499 $as_echo "yes" >&6; }
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3502 $as_echo_n "checking for C compiler default output file name... " >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3504 $as_echo "$ac_file" >&6; }
3505 ac_exeext=$ac_cv_exeext
3506
3507 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3508 ac_clean_files=$ac_clean_files_save
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3510 $as_echo_n "checking for suffix of executables... " >&6; }
3511 if { { ac_try="$ac_link"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3523 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3524 # work properly (i.e., refer to `conftest.exe'), while it won't with
3525 # `rm'.
3526 for ac_file in conftest.exe conftest conftest.*; do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 break;;
3532 * ) break;;
3533 esac
3534 done
3535 else
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3539 See \`config.log' for more details" "$LINENO" 5; }
3540 fi
3541 rm -f conftest conftest$ac_cv_exeext
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3543 $as_echo "$ac_cv_exeext" >&6; }
3544
3545 rm -f conftest.$ac_ext
3546 EXEEXT=$ac_cv_exeext
3547 ac_exeext=$EXEEXT
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <stdio.h>
3551 int
3552 main ()
3553 {
3554 FILE *f = fopen ("conftest.out", "w");
3555 return ferror (f) || fclose (f) != 0;
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 ac_clean_files="$ac_clean_files conftest.out"
3562 # Check that the compiler produces executables we can run. If not, either
3563 # the compiler is broken, or we cross compile.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3565 $as_echo_n "checking whether we are cross compiling... " >&6; }
3566 if test "$cross_compiling" != yes; then
3567 { { ac_try="$ac_link"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_link") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3578 if { ac_try='./conftest$ac_cv_exeext'
3579 { { case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_try") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; }; then
3589 cross_compiling=no
3590 else
3591 if test "$cross_compiling" = maybe; then
3592 cross_compiling=yes
3593 else
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot run C compiled programs.
3597 If you meant to cross compile, use \`--host'.
3598 See \`config.log' for more details" "$LINENO" 5; }
3599 fi
3600 fi
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603 $as_echo "$cross_compiling" >&6; }
3604
3605 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3606 ac_clean_files=$ac_clean_files_save
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3608 $as_echo_n "checking for suffix of object files... " >&6; }
3609 if ${ac_cv_objext+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 rm -f conftest.o conftest.obj
3624 if { { ac_try="$ac_compile"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_compile") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 for ac_file in conftest.o conftest.obj conftest.*; do
3636 test -f "$ac_file" || continue;
3637 case $ac_file in
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640 break;;
3641 esac
3642 done
3643 else
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $? "cannot compute suffix of object files: cannot compile
3650 See \`config.log' for more details" "$LINENO" 5; }
3651 fi
3652 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3655 $as_echo "$ac_cv_objext" >&6; }
3656 OBJEXT=$ac_cv_objext
3657 ac_objext=$OBJEXT
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3659 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3660 if ${ac_cv_c_compiler_gnu+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669 #ifndef __GNUC__
3670 choke me
3671 #endif
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_compiler_gnu=yes
3679 else
3680 ac_compiler_gnu=no
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3687 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688 if test $ac_compiler_gnu = yes; then
3689 GCC=yes
3690 else
3691 GCC=
3692 fi
3693 ac_test_CFLAGS=${CFLAGS+set}
3694 ac_save_CFLAGS=$CFLAGS
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3696 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3697 if ${ac_cv_prog_cc_g+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3702 ac_cv_prog_cc_g=no
3703 CFLAGS="-g"
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main ()
3709 {
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_cv_prog_cc_g=yes
3717 else
3718 CFLAGS=""
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731
3732 else
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3734 CFLAGS="-g"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 int
3739 main ()
3740 {
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_g=yes
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_c_werror_flag=$ac_save_c_werror_flag
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3757 $as_echo "$ac_cv_prog_cc_g" >&6; }
3758 if test "$ac_test_CFLAGS" = set; then
3759 CFLAGS=$ac_save_CFLAGS
3760 elif test $ac_cv_prog_cc_g = yes; then
3761 if test "$GCC" = yes; then
3762 CFLAGS="-g -O2"
3763 else
3764 CFLAGS="-g"
3765 fi
3766 else
3767 if test "$GCC" = yes; then
3768 CFLAGS="-O2"
3769 else
3770 CFLAGS=
3771 fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3774 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3775 if ${ac_cv_prog_cc_c89+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 ac_cv_prog_cc_c89=no
3779 ac_save_CC=$CC
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 #include <stdarg.h>
3783 #include <stdio.h>
3784 struct stat;
3785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3786 struct buf { int x; };
3787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3788 static char *e (p, i)
3789 char **p;
3790 int i;
3791 {
3792 return p[i];
3793 }
3794 static char *f (char * (*g) (char **, int), char **p, ...)
3795 {
3796 char *s;
3797 va_list v;
3798 va_start (v,p);
3799 s = g (p, va_arg (v,int));
3800 va_end (v);
3801 return s;
3802 }
3803
3804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3805 function prototypes and stuff, but not '\xHH' hex character constants.
3806 These don't provoke an error unfortunately, instead are silently treated
3807 as 'x'. The following induces an error, until -std is added to get
3808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3809 array size at least. It's necessary to write '\x00'==0 to get something
3810 that's true only with -std. */
3811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3812
3813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3814 inside strings and character constants. */
3815 #define FOO(x) 'x'
3816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3817
3818 int test (int i, double x);
3819 struct s1 {int (*f) (int a);};
3820 struct s2 {int (*f) (double a);};
3821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3822 int argc;
3823 char **argv;
3824 int
3825 main ()
3826 {
3827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3834 do
3835 CC="$ac_save_CC $ac_arg"
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_c89=$ac_arg
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 done
3842 rm -f conftest.$ac_ext
3843 CC=$ac_save_CC
3844
3845 fi
3846 # AC_CACHE_VAL
3847 case "x$ac_cv_prog_cc_c89" in
3848 x)
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850 $as_echo "none needed" >&6; } ;;
3851 xno)
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3853 $as_echo "unsupported" >&6; } ;;
3854 *)
3855 CC="$CC $ac_cv_prog_cc_c89"
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858 esac
3859 if test "x$ac_cv_prog_cc_c89" != xno; then :
3860
3861 fi
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3875 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3876 if ${am_cv_prog_cc_c_o+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 # Make sure it works both with $CC and with simple cc.
3891 # Following AC_PROG_CC_C_O, we do the test twice because some
3892 # compilers refuse to overwrite an existing .o file with -o,
3893 # though they will create one.
3894 am_cv_prog_cc_c_o=yes
3895 for am_i in 1 2; do
3896 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3897 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } \
3901 && test -f conftest2.$ac_objext; then
3902 : OK
3903 else
3904 am_cv_prog_cc_c_o=no
3905 break
3906 fi
3907 done
3908 rm -f core conftest*
3909 unset am_i
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3912 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3913 if test "$am_cv_prog_cc_c_o" != yes; then
3914 # Losing compiler, so override with the script.
3915 # FIXME: It is wrong to rewrite CC.
3916 # But if we don't then we get into trouble of one sort or another.
3917 # A longer-term fix would be to have automake use am__CC in this case,
3918 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3919 CC="$am_aux_dir/compile $CC"
3920 fi
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928 depcc="$CC" am_compiler_list=
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931 $as_echo_n "checking dependency style of $depcc... " >&6; }
3932 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936 # We make a subdir and do the tests there. Otherwise we can end up
3937 # making bogus files that we don't know about and never remove. For
3938 # instance it was reported that on HP-UX the gcc test will end up
3939 # making a dummy file named 'D' -- because '-MD' means "put the output
3940 # in D".
3941 rm -rf conftest.dir
3942 mkdir conftest.dir
3943 # Copy depcomp to subdir because otherwise we won't find it if we're
3944 # using a relative directory.
3945 cp "$am_depcomp" conftest.dir
3946 cd conftest.dir
3947 # We will build objects and dependencies in a subdirectory because
3948 # it helps to detect inapplicable dependency modes. For instance
3949 # both Tru64's cc and ICC support -MD to output dependencies as a
3950 # side effect of compilation, but ICC will put the dependencies in
3951 # the current directory while Tru64 will put them in the object
3952 # directory.
3953 mkdir sub
3954
3955 am_cv_CC_dependencies_compiler_type=none
3956 if test "$am_compiler_list" = ""; then
3957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958 fi
3959 am__universal=false
3960 case " $depcc " in #(
3961 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3962 esac
3963
3964 for depmode in $am_compiler_list; do
3965 # Setup a source with many dependencies, because some compilers
3966 # like to wrap large dependency lists on column 80 (with \), and
3967 # we should not choose a depcomp mode which is confused by this.
3968 #
3969 # We need to recreate these files for each test, as the compiler may
3970 # overwrite some of them when testing with obscure command lines.
3971 # This happens at least with the AIX C compiler.
3972 : > sub/conftest.c
3973 for i in 1 2 3 4 5 6; do
3974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3975 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3976 # Solaris 10 /bin/sh.
3977 echo '/* dummy */' > sub/conftst$i.h
3978 done
3979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3980
3981 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3982 # mode. It turns out that the SunPro C++ compiler does not properly
3983 # handle '-M -o', and we need to detect this. Also, some Intel
3984 # versions had trouble with output in subdirs.
3985 am__obj=sub/conftest.${OBJEXT-o}
3986 am__minus_obj="-o $am__obj"
3987 case $depmode in
3988 gcc)
3989 # This depmode causes a compiler race in universal mode.
3990 test "$am__universal" = false || continue
3991 ;;
3992 nosideeffect)
3993 # After this tag, mechanisms are not by side-effect, so they'll
3994 # only be used when explicitly requested.
3995 if test "x$enable_dependency_tracking" = xyes; then
3996 continue
3997 else
3998 break
3999 fi
4000 ;;
4001 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4002 # This compiler won't grok '-c -o', but also, the minuso test has
4003 # not run yet. These depmodes are late enough in the game, and
4004 # so weak that their functioning should not be impacted.
4005 am__obj=conftest.${OBJEXT-o}
4006 am__minus_obj=
4007 ;;
4008 none) break ;;
4009 esac
4010 if depmode=$depmode \
4011 source=sub/conftest.c object=$am__obj \
4012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4014 >/dev/null 2>conftest.err &&
4015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4019 # icc doesn't choke on unknown options, it will just issue warnings
4020 # or remarks (even with -Werror). So we grep stderr for any message
4021 # that says an option was ignored or not supported.
4022 # When given -MP, icc 7.0 and 7.1 complain thusly:
4023 # icc: Command line warning: ignoring option '-M'; no argument required
4024 # The diagnosis changed in icc 8.0:
4025 # icc: Command line remark: option '-MP' not supported
4026 if (grep 'ignoring option' conftest.err ||
4027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4028 am_cv_CC_dependencies_compiler_type=$depmode
4029 break
4030 fi
4031 fi
4032 done
4033
4034 cd ..
4035 rm -rf conftest.dir
4036 else
4037 am_cv_CC_dependencies_compiler_type=none
4038 fi
4039
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4042 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4044
4045 if
4046 test "x$enable_dependency_tracking" != xno \
4047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4048 am__fastdepCC_TRUE=
4049 am__fastdepCC_FALSE='#'
4050 else
4051 am__fastdepCC_TRUE='#'
4052 am__fastdepCC_FALSE=
4053 fi
4054
4055
4056
4057 if test -n "$ac_tool_prefix"; then
4058 for ac_prog in ar lib "link -lib"
4059 do
4060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_AR+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$AR"; then
4068 ac_cv_prog_AR="$AR" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081 done
4082 done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 AR=$ac_cv_prog_AR
4088 if test -n "$AR"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4090 $as_echo "$AR" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 fi
4095
4096
4097 test -n "$AR" && break
4098 done
4099 fi
4100 if test -z "$AR"; then
4101 ac_ct_AR=$AR
4102 for ac_prog in ar lib "link -lib"
4103 do
4104 # Extract the first word of "$ac_prog", so it can be a program name with args.
4105 set dummy $ac_prog; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test -n "$ac_ct_AR"; then
4112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_AR="$ac_prog"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4124 fi
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4132 if test -n "$ac_ct_AR"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4134 $as_echo "$ac_ct_AR" >&6; }
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140
4141 test -n "$ac_ct_AR" && break
4142 done
4143
4144 if test "x$ac_ct_AR" = x; then
4145 AR="false"
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153 AR=$ac_ct_AR
4154 fi
4155 fi
4156
4157 : ${AR=ar}
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4160 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4161 if ${am_cv_ar_interface+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170 am_cv_ar_interface=ar
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 int some_variable = 0;
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4178 (eval $am_ar_try) 2>&5
4179 ac_status=$?
4180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; }
4182 if test "$ac_status" -eq 0; then
4183 am_cv_ar_interface=ar
4184 else
4185 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4187 (eval $am_ar_try) 2>&5
4188 ac_status=$?
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }
4191 if test "$ac_status" -eq 0; then
4192 am_cv_ar_interface=lib
4193 else
4194 am_cv_ar_interface=unknown
4195 fi
4196 fi
4197 rm -f conftest.lib libconftest.a
4198
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_ext=cpp
4202 ac_cpp='$CXXCPP $CPPFLAGS'
4203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4206
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4209 $as_echo "$am_cv_ar_interface" >&6; }
4210
4211 case $am_cv_ar_interface in
4212 ar)
4213 ;;
4214 lib)
4215 # Microsoft lib, so override with the ar-lib wrapper script.
4216 # FIXME: It is wrong to rewrite AR.
4217 # But if we don't then we get into trouble of one sort or another.
4218 # A longer-term fix would be to have automake use am__AR in this case,
4219 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4220 # similar.
4221 AR="$am_aux_dir/ar-lib $AR"
4222 ;;
4223 unknown)
4224 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4225 ;;
4226 esac
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 if test -z "$ac_cv_prog_CC"; then
4273 ac_ct_CC=$CC
4274 # Extract the first word of "gcc", so it can be a program name with args.
4275 set dummy gcc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$ac_ct_CC"; then
4282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_ac_ct_CC="gcc"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4302 if test -n "$ac_ct_CC"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4304 $as_echo "$ac_ct_CC" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310 if test "x$ac_ct_CC" = x; then
4311 CC=""
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319 CC=$ac_ct_CC
4320 fi
4321 else
4322 CC="$ac_cv_prog_CC"
4323 fi
4324
4325 if test -z "$CC"; then
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}cc; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_CC="${ac_tool_prefix}cc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 fi
4353 fi
4354 CC=$ac_cv_prog_CC
4355 if test -n "$CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 $as_echo "$CC" >&6; }
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 fi
4362
4363
4364 fi
4365 fi
4366 if test -z "$CC"; then
4367 # Extract the first word of "cc", so it can be a program name with args.
4368 set dummy cc; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_CC+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -n "$CC"; then
4375 ac_cv_prog_CC="$CC" # Let the user override the test.
4376 else
4377 ac_prog_rejected=no
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4386 ac_prog_rejected=yes
4387 continue
4388 fi
4389 ac_cv_prog_CC="cc"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395 IFS=$as_save_IFS
4396
4397 if test $ac_prog_rejected = yes; then
4398 # We found a bogon in the path, so make sure we never use it.
4399 set dummy $ac_cv_prog_CC
4400 shift
4401 if test $# != 0; then
4402 # We chose a different compiler from the bogus one.
4403 # However, it has the same basename, so the bogon will be chosen
4404 # first if we set CC to just the basename; use the full file name.
4405 shift
4406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4407 fi
4408 fi
4409 fi
4410 fi
4411 CC=$ac_cv_prog_CC
4412 if test -n "$CC"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4414 $as_echo "$CC" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$CC"; then
4423 if test -n "$ac_tool_prefix"; then
4424 for ac_prog in cl.exe
4425 do
4426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_CC+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 CC=$ac_cv_prog_CC
4454 if test -n "$CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4456 $as_echo "$CC" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463 test -n "$CC" && break
4464 done
4465 fi
4466 if test -z "$CC"; then
4467 ac_ct_CC=$CC
4468 for ac_prog in cl.exe
4469 do
4470 # Extract the first word of "$ac_prog", so it can be a program name with args.
4471 set dummy $ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$ac_ct_CC"; then
4478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_ac_ct_CC="$ac_prog"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506
4507 test -n "$ac_ct_CC" && break
4508 done
4509
4510 if test "x$ac_ct_CC" = x; then
4511 CC=""
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4518 esac
4519 CC=$ac_ct_CC
4520 fi
4521 fi
4522
4523 fi
4524
4525
4526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error $? "no acceptable C compiler found in \$PATH
4529 See \`config.log' for more details" "$LINENO" 5; }
4530
4531 # Provide some information about the compiler.
4532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4533 set X $ac_compile
4534 ac_compiler=$2
4535 for ac_option in --version -v -V -qversion; do
4536 { { ac_try="$ac_compiler $ac_option >&5"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4544 ac_status=$?
4545 if test -s conftest.err; then
4546 sed '10a\
4547 ... rest of stderr output deleted ...
4548 10q' conftest.err >conftest.er1
4549 cat conftest.er1 >&5
4550 fi
4551 rm -f conftest.er1 conftest.err
4552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553 test $ac_status = 0; }
4554 done
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4558 if ${ac_cv_c_compiler_gnu+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563
4564 int
4565 main ()
4566 {
4567 #ifndef __GNUC__
4568 choke me
4569 #endif
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 ac_compiler_gnu=yes
4577 else
4578 ac_compiler_gnu=no
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4582
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4586 if test $ac_compiler_gnu = yes; then
4587 GCC=yes
4588 else
4589 GCC=
4590 fi
4591 ac_test_CFLAGS=${CFLAGS+set}
4592 ac_save_CFLAGS=$CFLAGS
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4595 if ${ac_cv_prog_cc_g+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 ac_save_c_werror_flag=$ac_c_werror_flag
4599 ac_c_werror_flag=yes
4600 ac_cv_prog_cc_g=no
4601 CFLAGS="-g"
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604
4605 int
4606 main ()
4607 {
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_prog_cc_g=yes
4615 else
4616 CFLAGS=""
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619
4620 int
4621 main ()
4622 {
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"; then :
4629
4630 else
4631 ac_c_werror_flag=$ac_save_c_werror_flag
4632 CFLAGS="-g"
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635
4636 int
4637 main ()
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_cv_prog_cc_g=yes
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_c_werror_flag=$ac_save_c_werror_flag
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4655 $as_echo "$ac_cv_prog_cc_g" >&6; }
4656 if test "$ac_test_CFLAGS" = set; then
4657 CFLAGS=$ac_save_CFLAGS
4658 elif test $ac_cv_prog_cc_g = yes; then
4659 if test "$GCC" = yes; then
4660 CFLAGS="-g -O2"
4661 else
4662 CFLAGS="-g"
4663 fi
4664 else
4665 if test "$GCC" = yes; then
4666 CFLAGS="-O2"
4667 else
4668 CFLAGS=
4669 fi
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4673 if ${ac_cv_prog_cc_c89+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 ac_cv_prog_cc_c89=no
4677 ac_save_CC=$CC
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <stdarg.h>
4681 #include <stdio.h>
4682 struct stat;
4683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4684 struct buf { int x; };
4685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4686 static char *e (p, i)
4687 char **p;
4688 int i;
4689 {
4690 return p[i];
4691 }
4692 static char *f (char * (*g) (char **, int), char **p, ...)
4693 {
4694 char *s;
4695 va_list v;
4696 va_start (v,p);
4697 s = g (p, va_arg (v,int));
4698 va_end (v);
4699 return s;
4700 }
4701
4702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4703 function prototypes and stuff, but not '\xHH' hex character constants.
4704 These don't provoke an error unfortunately, instead are silently treated
4705 as 'x'. The following induces an error, until -std is added to get
4706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4707 array size at least. It's necessary to write '\x00'==0 to get something
4708 that's true only with -std. */
4709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4710
4711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4712 inside strings and character constants. */
4713 #define FOO(x) 'x'
4714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4715
4716 int test (int i, double x);
4717 struct s1 {int (*f) (int a);};
4718 struct s2 {int (*f) (double a);};
4719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4720 int argc;
4721 char **argv;
4722 int
4723 main ()
4724 {
4725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4732 do
4733 CC="$ac_save_CC $ac_arg"
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_prog_cc_c89=$ac_arg
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext
4738 test "x$ac_cv_prog_cc_c89" != "xno" && break
4739 done
4740 rm -f conftest.$ac_ext
4741 CC=$ac_save_CC
4742
4743 fi
4744 # AC_CACHE_VAL
4745 case "x$ac_cv_prog_cc_c89" in
4746 x)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4748 $as_echo "none needed" >&6; } ;;
4749 xno)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4751 $as_echo "unsupported" >&6; } ;;
4752 *)
4753 CC="$CC $ac_cv_prog_cc_c89"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4756 esac
4757 if test "x$ac_cv_prog_cc_c89" != xno; then :
4758
4759 fi
4760
4761 ac_ext=cpp
4762 ac_cpp='$CXXCPP $CPPFLAGS'
4763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4766
4767 ac_ext=c
4768 ac_cpp='$CPP $CPPFLAGS'
4769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4773 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4774 if ${am_cv_prog_cc_c_o+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main ()
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 # Make sure it works both with $CC and with simple cc.
4789 # Following AC_PROG_CC_C_O, we do the test twice because some
4790 # compilers refuse to overwrite an existing .o file with -o,
4791 # though they will create one.
4792 am_cv_prog_cc_c_o=yes
4793 for am_i in 1 2; do
4794 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4795 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } \
4799 && test -f conftest2.$ac_objext; then
4800 : OK
4801 else
4802 am_cv_prog_cc_c_o=no
4803 break
4804 fi
4805 done
4806 rm -f core conftest*
4807 unset am_i
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4810 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4811 if test "$am_cv_prog_cc_c_o" != yes; then
4812 # Losing compiler, so override with the script.
4813 # FIXME: It is wrong to rewrite CC.
4814 # But if we don't then we get into trouble of one sort or another.
4815 # A longer-term fix would be to have automake use am__CC in this case,
4816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817 CC="$am_aux_dir/compile $CC"
4818 fi
4819 ac_ext=cpp
4820 ac_cpp='$CXXCPP $CPPFLAGS'
4821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4824
4825
4826 depcc="$CC" am_compiler_list=
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4829 $as_echo_n "checking dependency style of $depcc... " >&6; }
4830 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4834 # We make a subdir and do the tests there. Otherwise we can end up
4835 # making bogus files that we don't know about and never remove. For
4836 # instance it was reported that on HP-UX the gcc test will end up
4837 # making a dummy file named 'D' -- because '-MD' means "put the output
4838 # in D".
4839 rm -rf conftest.dir
4840 mkdir conftest.dir
4841 # Copy depcomp to subdir because otherwise we won't find it if we're
4842 # using a relative directory.
4843 cp "$am_depcomp" conftest.dir
4844 cd conftest.dir
4845 # We will build objects and dependencies in a subdirectory because
4846 # it helps to detect inapplicable dependency modes. For instance
4847 # both Tru64's cc and ICC support -MD to output dependencies as a
4848 # side effect of compilation, but ICC will put the dependencies in
4849 # the current directory while Tru64 will put them in the object
4850 # directory.
4851 mkdir sub
4852
4853 am_cv_CC_dependencies_compiler_type=none
4854 if test "$am_compiler_list" = ""; then
4855 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4856 fi
4857 am__universal=false
4858 case " $depcc " in #(
4859 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4860 esac
4861
4862 for depmode in $am_compiler_list; do
4863 # Setup a source with many dependencies, because some compilers
4864 # like to wrap large dependency lists on column 80 (with \), and
4865 # we should not choose a depcomp mode which is confused by this.
4866 #
4867 # We need to recreate these files for each test, as the compiler may
4868 # overwrite some of them when testing with obscure command lines.
4869 # This happens at least with the AIX C compiler.
4870 : > sub/conftest.c
4871 for i in 1 2 3 4 5 6; do
4872 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4873 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4874 # Solaris 10 /bin/sh.
4875 echo '/* dummy */' > sub/conftst$i.h
4876 done
4877 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4878
4879 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4880 # mode. It turns out that the SunPro C++ compiler does not properly
4881 # handle '-M -o', and we need to detect this. Also, some Intel
4882 # versions had trouble with output in subdirs.
4883 am__obj=sub/conftest.${OBJEXT-o}
4884 am__minus_obj="-o $am__obj"
4885 case $depmode in
4886 gcc)
4887 # This depmode causes a compiler race in universal mode.
4888 test "$am__universal" = false || continue
4889 ;;
4890 nosideeffect)
4891 # After this tag, mechanisms are not by side-effect, so they'll
4892 # only be used when explicitly requested.
4893 if test "x$enable_dependency_tracking" = xyes; then
4894 continue
4895 else
4896 break
4897 fi
4898 ;;
4899 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4900 # This compiler won't grok '-c -o', but also, the minuso test has
4901 # not run yet. These depmodes are late enough in the game, and
4902 # so weak that their functioning should not be impacted.
4903 am__obj=conftest.${OBJEXT-o}
4904 am__minus_obj=
4905 ;;
4906 none) break ;;
4907 esac
4908 if depmode=$depmode \
4909 source=sub/conftest.c object=$am__obj \
4910 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4911 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4912 >/dev/null 2>conftest.err &&
4913 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4915 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4917 # icc doesn't choke on unknown options, it will just issue warnings
4918 # or remarks (even with -Werror). So we grep stderr for any message
4919 # that says an option was ignored or not supported.
4920 # When given -MP, icc 7.0 and 7.1 complain thusly:
4921 # icc: Command line warning: ignoring option '-M'; no argument required
4922 # The diagnosis changed in icc 8.0:
4923 # icc: Command line remark: option '-MP' not supported
4924 if (grep 'ignoring option' conftest.err ||
4925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4926 am_cv_CC_dependencies_compiler_type=$depmode
4927 break
4928 fi
4929 fi
4930 done
4931
4932 cd ..
4933 rm -rf conftest.dir
4934 else
4935 am_cv_CC_dependencies_compiler_type=none
4936 fi
4937
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4940 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4941 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4942
4943 if
4944 test "x$enable_dependency_tracking" != xno \
4945 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4946 am__fastdepCC_TRUE=
4947 am__fastdepCC_FALSE='#'
4948 else
4949 am__fastdepCC_TRUE='#'
4950 am__fastdepCC_FALSE=
4951 fi
4952
4953
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4960 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4961 # On Suns, sometimes $CPP names a directory.
4962 if test -n "$CPP" && test -d "$CPP"; then
4963 CPP=
4964 fi
4965 if test -z "$CPP"; then
4966 if ${ac_cv_prog_CPP+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 # Double quotes because CPP needs to be expanded
4970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4971 do
4972 ac_preproc_ok=false
4973 for ac_c_preproc_warn_flag in '' yes
4974 do
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 #ifdef __STDC__
4984 # include <limits.h>
4985 #else
4986 # include <assert.h>
4987 #endif
4988 Syntax error
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991
4992 else
4993 # Broken: fails on valid input.
4994 continue
4995 fi
4996 rm -f conftest.err conftest.i conftest.$ac_ext
4997
4998 # OK, works on sane cases. Now check whether nonexistent headers
4999 # can be detected and how.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5005 # Broken: success on invalid input.
5006 continue
5007 else
5008 # Passes both tests.
5009 ac_preproc_ok=:
5010 break
5011 fi
5012 rm -f conftest.err conftest.i conftest.$ac_ext
5013
5014 done
5015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016 rm -f conftest.i conftest.err conftest.$ac_ext
5017 if $ac_preproc_ok; then :
5018 break
5019 fi
5020
5021 done
5022 ac_cv_prog_CPP=$CPP
5023
5024 fi
5025 CPP=$ac_cv_prog_CPP
5026 else
5027 ac_cv_prog_CPP=$CPP
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5030 $as_echo "$CPP" >&6; }
5031 ac_preproc_ok=false
5032 for ac_c_preproc_warn_flag in '' yes
5033 do
5034 # Use a header file that comes with gcc, so configuring glibc
5035 # with a fresh cross-compiler works.
5036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5037 # <limits.h> exists even on freestanding compilers.
5038 # On the NeXT, cc -E runs the code through the compiler's parser,
5039 # not just through cpp. "Syntax error" is here to catch this case.
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047 Syntax error
5048 _ACEOF
5049 if ac_fn_c_try_cpp "$LINENO"; then :
5050
5051 else
5052 # Broken: fails on valid input.
5053 continue
5054 fi
5055 rm -f conftest.err conftest.i conftest.$ac_ext
5056
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <ac_nonexistent.h>
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5064 # Broken: success on invalid input.
5065 continue
5066 else
5067 # Passes both tests.
5068 ac_preproc_ok=:
5069 break
5070 fi
5071 rm -f conftest.err conftest.i conftest.$ac_ext
5072
5073 done
5074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5075 rm -f conftest.i conftest.err conftest.$ac_ext
5076 if $ac_preproc_ok; then :
5077
5078 else
5079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5082 See \`config.log' for more details" "$LINENO" 5; }
5083 fi
5084
5085 ac_ext=cpp
5086 ac_cpp='$CXXCPP $CPPFLAGS'
5087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5090
5091 ac_ext=cpp
5092 ac_cpp='$CXXCPP $CPPFLAGS'
5093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096 if test -z "$CXX"; then
5097 if test -n "$CCC"; then
5098 CXX=$CCC
5099 else
5100 if test -n "$ac_tool_prefix"; then
5101 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5102 do
5103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_CXX+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$CXX"; then
5111 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 CXX=$ac_cv_prog_CXX
5131 if test -n "$CXX"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5133 $as_echo "$CXX" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140 test -n "$CXX" && break
5141 done
5142 fi
5143 if test -z "$CXX"; then
5144 ac_ct_CXX=$CXX
5145 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5146 do
5147 # Extract the first word of "$ac_prog", so it can be a program name with args.
5148 set dummy $ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$ac_ct_CXX"; then
5155 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_ac_ct_CXX="$ac_prog"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5175 if test -n "$ac_ct_CXX"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5177 $as_echo "$ac_ct_CXX" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184 test -n "$ac_ct_CXX" && break
5185 done
5186
5187 if test "x$ac_ct_CXX" = x; then
5188 CXX="g++"
5189 else
5190 case $cross_compiling:$ac_tool_warned in
5191 yes:)
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194 ac_tool_warned=yes ;;
5195 esac
5196 CXX=$ac_ct_CXX
5197 fi
5198 fi
5199
5200 fi
5201 fi
5202 # Provide some information about the compiler.
5203 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5204 set X $ac_compile
5205 ac_compiler=$2
5206 for ac_option in --version -v -V -qversion; do
5207 { { ac_try="$ac_compiler $ac_option >&5"
5208 case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5213 $as_echo "$ac_try_echo"; } >&5
5214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5215 ac_status=$?
5216 if test -s conftest.err; then
5217 sed '10a\
5218 ... rest of stderr output deleted ...
5219 10q' conftest.err >conftest.er1
5220 cat conftest.er1 >&5
5221 fi
5222 rm -f conftest.er1 conftest.err
5223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5224 test $ac_status = 0; }
5225 done
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5228 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5229 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234
5235 int
5236 main ()
5237 {
5238 #ifndef __GNUC__
5239 choke me
5240 #endif
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_cxx_try_compile "$LINENO"; then :
5247 ac_compiler_gnu=yes
5248 else
5249 ac_compiler_gnu=no
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5253
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5256 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5257 if test $ac_compiler_gnu = yes; then
5258 GXX=yes
5259 else
5260 GXX=
5261 fi
5262 ac_test_CXXFLAGS=${CXXFLAGS+set}
5263 ac_save_CXXFLAGS=$CXXFLAGS
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5265 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5266 if ${ac_cv_prog_cxx_g+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5270 ac_cxx_werror_flag=yes
5271 ac_cv_prog_cxx_g=no
5272 CXXFLAGS="-g"
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275
5276 int
5277 main ()
5278 {
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_cxx_try_compile "$LINENO"; then :
5285 ac_cv_prog_cxx_g=yes
5286 else
5287 CXXFLAGS=""
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290
5291 int
5292 main ()
5293 {
5294
5295 ;
5296 return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_cxx_try_compile "$LINENO"; then :
5300
5301 else
5302 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5303 CXXFLAGS="-g"
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306
5307 int
5308 main ()
5309 {
5310
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_cxx_try_compile "$LINENO"; then :
5316 ac_cv_prog_cxx_g=yes
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5326 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5327 if test "$ac_test_CXXFLAGS" = set; then
5328 CXXFLAGS=$ac_save_CXXFLAGS
5329 elif test $ac_cv_prog_cxx_g = yes; then
5330 if test "$GXX" = yes; then
5331 CXXFLAGS="-g -O2"
5332 else
5333 CXXFLAGS="-g"
5334 fi
5335 else
5336 if test "$GXX" = yes; then
5337 CXXFLAGS="-O2"
5338 else
5339 CXXFLAGS=
5340 fi
5341 fi
5342 ac_ext=cpp
5343 ac_cpp='$CXXCPP $CPPFLAGS'
5344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5347
5348 depcc="$CXX" am_compiler_list=
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5351 $as_echo_n "checking dependency style of $depcc... " >&6; }
5352 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5356 # We make a subdir and do the tests there. Otherwise we can end up
5357 # making bogus files that we don't know about and never remove. For
5358 # instance it was reported that on HP-UX the gcc test will end up
5359 # making a dummy file named 'D' -- because '-MD' means "put the output
5360 # in D".
5361 rm -rf conftest.dir
5362 mkdir conftest.dir
5363 # Copy depcomp to subdir because otherwise we won't find it if we're
5364 # using a relative directory.
5365 cp "$am_depcomp" conftest.dir
5366 cd conftest.dir
5367 # We will build objects and dependencies in a subdirectory because
5368 # it helps to detect inapplicable dependency modes. For instance
5369 # both Tru64's cc and ICC support -MD to output dependencies as a
5370 # side effect of compilation, but ICC will put the dependencies in
5371 # the current directory while Tru64 will put them in the object
5372 # directory.
5373 mkdir sub
5374
5375 am_cv_CXX_dependencies_compiler_type=none
5376 if test "$am_compiler_list" = ""; then
5377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5378 fi
5379 am__universal=false
5380 case " $depcc " in #(
5381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5382 esac
5383
5384 for depmode in $am_compiler_list; do
5385 # Setup a source with many dependencies, because some compilers
5386 # like to wrap large dependency lists on column 80 (with \), and
5387 # we should not choose a depcomp mode which is confused by this.
5388 #
5389 # We need to recreate these files for each test, as the compiler may
5390 # overwrite some of them when testing with obscure command lines.
5391 # This happens at least with the AIX C compiler.
5392 : > sub/conftest.c
5393 for i in 1 2 3 4 5 6; do
5394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5395 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5396 # Solaris 10 /bin/sh.
5397 echo '/* dummy */' > sub/conftst$i.h
5398 done
5399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5400
5401 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5402 # mode. It turns out that the SunPro C++ compiler does not properly
5403 # handle '-M -o', and we need to detect this. Also, some Intel
5404 # versions had trouble with output in subdirs.
5405 am__obj=sub/conftest.${OBJEXT-o}
5406 am__minus_obj="-o $am__obj"
5407 case $depmode in
5408 gcc)
5409 # This depmode causes a compiler race in universal mode.
5410 test "$am__universal" = false || continue
5411 ;;
5412 nosideeffect)
5413 # After this tag, mechanisms are not by side-effect, so they'll
5414 # only be used when explicitly requested.
5415 if test "x$enable_dependency_tracking" = xyes; then
5416 continue
5417 else
5418 break
5419 fi
5420 ;;
5421 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5422 # This compiler won't grok '-c -o', but also, the minuso test has
5423 # not run yet. These depmodes are late enough in the game, and
5424 # so weak that their functioning should not be impacted.
5425 am__obj=conftest.${OBJEXT-o}
5426 am__minus_obj=
5427 ;;
5428 none) break ;;
5429 esac
5430 if depmode=$depmode \
5431 source=sub/conftest.c object=$am__obj \
5432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5434 >/dev/null 2>conftest.err &&
5435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5439 # icc doesn't choke on unknown options, it will just issue warnings
5440 # or remarks (even with -Werror). So we grep stderr for any message
5441 # that says an option was ignored or not supported.
5442 # When given -MP, icc 7.0 and 7.1 complain thusly:
5443 # icc: Command line warning: ignoring option '-M'; no argument required
5444 # The diagnosis changed in icc 8.0:
5445 # icc: Command line remark: option '-MP' not supported
5446 if (grep 'ignoring option' conftest.err ||
5447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5448 am_cv_CXX_dependencies_compiler_type=$depmode
5449 break
5450 fi
5451 fi
5452 done
5453
5454 cd ..
5455 rm -rf conftest.dir
5456 else
5457 am_cv_CXX_dependencies_compiler_type=none
5458 fi
5459
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5462 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5463 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5464
5465 if
5466 test "x$enable_dependency_tracking" != xno \
5467 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5468 am__fastdepCXX_TRUE=
5469 am__fastdepCXX_FALSE='#'
5470 else
5471 am__fastdepCXX_TRUE='#'
5472 am__fastdepCXX_FALSE=
5473 fi
5474
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5478 $as_echo_n "checking whether ln -s works... " >&6; }
5479 LN_S=$as_ln_s
5480 if test "$LN_S" = "ln -s"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5485 $as_echo "no, using $LN_S" >&6; }
5486 fi
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5489 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5490 set x ${MAKE-make}
5491 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5492 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 cat >conftest.make <<\_ACEOF
5496 SHELL = /bin/sh
5497 all:
5498 @echo '@@@%%%=$(MAKE)=@@@%%%'
5499 _ACEOF
5500 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5501 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5502 *@@@%%%=?*=@@@%%%*)
5503 eval ac_cv_prog_make_${ac_make}_set=yes;;
5504 *)
5505 eval ac_cv_prog_make_${ac_make}_set=no;;
5506 esac
5507 rm -f conftest.make
5508 fi
5509 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5512 SET_MAKE=
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 SET_MAKE="MAKE=${MAKE-make}"
5517 fi
5518
5519 case `pwd` in
5520 *\ * | *\ *)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5522 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5523 esac
5524
5525
5526
5527 macro_version='2.4.6'
5528 macro_revision='2.4.6'
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 ltmain=$ac_aux_dir/ltmain.sh
5543
5544 # Make sure we can run config.sub.
5545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5546 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5549 $as_echo_n "checking build system type... " >&6; }
5550 if ${ac_cv_build+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 ac_build_alias=$build_alias
5554 test "x$ac_build_alias" = x &&
5555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5556 test "x$ac_build_alias" = x &&
5557 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5558 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5560
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5563 $as_echo "$ac_cv_build" >&6; }
5564 case $ac_cv_build in
5565 *-*-*) ;;
5566 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5567 esac
5568 build=$ac_cv_build
5569 ac_save_IFS=$IFS; IFS='-'
5570 set x $ac_cv_build
5571 shift
5572 build_cpu=$1
5573 build_vendor=$2
5574 shift; shift
5575 # Remember, the first character of IFS is used to create $*,
5576 # except with old shells:
5577 build_os=$*
5578 IFS=$ac_save_IFS
5579 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5580
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5583 $as_echo_n "checking host system type... " >&6; }
5584 if ${ac_cv_host+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test "x$host_alias" = x; then
5588 ac_cv_host=$ac_cv_build
5589 else
5590 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5592 fi
5593
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5596 $as_echo "$ac_cv_host" >&6; }
5597 case $ac_cv_host in
5598 *-*-*) ;;
5599 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5600 esac
5601 host=$ac_cv_host
5602 ac_save_IFS=$IFS; IFS='-'
5603 set x $ac_cv_host
5604 shift
5605 host_cpu=$1
5606 host_vendor=$2
5607 shift; shift
5608 # Remember, the first character of IFS is used to create $*,
5609 # except with old shells:
5610 host_os=$*
5611 IFS=$ac_save_IFS
5612 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5613
5614
5615 # Backslashify metacharacters that are still active within
5616 # double-quoted strings.
5617 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5618
5619 # Same as above, but do not quote variable references.
5620 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5621
5622 # Sed substitution to delay expansion of an escaped shell variable in a
5623 # double_quote_subst'ed string.
5624 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5625
5626 # Sed substitution to delay expansion of an escaped single quote.
5627 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5628
5629 # Sed substitution to avoid accidental globbing in evaled expressions
5630 no_glob_subst='s/\*/\\\*/g'
5631
5632 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5633 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5634 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5637 $as_echo_n "checking how to print strings... " >&6; }
5638 # Test print first, because it will be a builtin if present.
5639 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5640 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5641 ECHO='print -r --'
5642 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5643 ECHO='printf %s\n'
5644 else
5645 # Use this function as a fallback that always works.
5646 func_fallback_echo ()
5647 {
5648 eval 'cat <<_LTECHO_EOF
5649 $1
5650 _LTECHO_EOF'
5651 }
5652 ECHO='func_fallback_echo'
5653 fi
5654
5655 # func_echo_all arg...
5656 # Invoke $ECHO with all args, space-separated.
5657 func_echo_all ()
5658 {
5659 $ECHO ""
5660 }
5661
5662 case $ECHO in
5663 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5664 $as_echo "printf" >&6; } ;;
5665 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5666 $as_echo "print -r" >&6; } ;;
5667 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5668 $as_echo "cat" >&6; } ;;
5669 esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5685 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5686 if ${ac_cv_path_SED+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5690 for ac_i in 1 2 3 4 5 6 7; do
5691 ac_script="$ac_script$as_nl$ac_script"
5692 done
5693 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5694 { ac_script=; unset ac_script;}
5695 if test -z "$SED"; then
5696 ac_path_SED_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_prog in sed gsed; do
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5706 as_fn_executable_p "$ac_path_SED" || continue
5707 # Check for GNU ac_path_SED and select it if it is found.
5708 # Check for GNU $ac_path_SED
5709 case `"$ac_path_SED" --version 2>&1` in
5710 *GNU*)
5711 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5712 *)
5713 ac_count=0
5714 $as_echo_n 0123456789 >"conftest.in"
5715 while :
5716 do
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo '' >> "conftest.nl"
5721 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723 as_fn_arith $ac_count + 1 && ac_count=$as_val
5724 if test $ac_count -gt ${ac_path_SED_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_SED="$ac_path_SED"
5727 ac_path_SED_max=$ac_count
5728 fi
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5731 done
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733 esac
5734
5735 $ac_path_SED_found && break 3
5736 done
5737 done
5738 done
5739 IFS=$as_save_IFS
5740 if test -z "$ac_cv_path_SED"; then
5741 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5742 fi
5743 else
5744 ac_cv_path_SED=$SED
5745 fi
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5749 $as_echo "$ac_cv_path_SED" >&6; }
5750 SED="$ac_cv_path_SED"
5751 rm -f conftest.sed
5752
5753 test -z "$SED" && SED=sed
5754 Xsed="$SED -e 1s/^X//"
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5767 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5768 if ${ac_cv_path_GREP+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -z "$GREP"; then
5772 ac_path_GREP_found=false
5773 # Loop through the user's path and test for each of PROGNAME-LIST
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_prog in grep ggrep; do
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5782 as_fn_executable_p "$ac_path_GREP" || continue
5783 # Check for GNU ac_path_GREP and select it if it is found.
5784 # Check for GNU $ac_path_GREP
5785 case `"$ac_path_GREP" --version 2>&1` in
5786 *GNU*)
5787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5788 *)
5789 ac_count=0
5790 $as_echo_n 0123456789 >"conftest.in"
5791 while :
5792 do
5793 cat "conftest.in" "conftest.in" >"conftest.tmp"
5794 mv "conftest.tmp" "conftest.in"
5795 cp "conftest.in" "conftest.nl"
5796 $as_echo 'GREP' >> "conftest.nl"
5797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5799 as_fn_arith $ac_count + 1 && ac_count=$as_val
5800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5801 # Best one so far, save it but keep looking for a better one
5802 ac_cv_path_GREP="$ac_path_GREP"
5803 ac_path_GREP_max=$ac_count
5804 fi
5805 # 10*(2^10) chars as input seems more than enough
5806 test $ac_count -gt 10 && break
5807 done
5808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5809 esac
5810
5811 $ac_path_GREP_found && break 3
5812 done
5813 done
5814 done
5815 IFS=$as_save_IFS
5816 if test -z "$ac_cv_path_GREP"; then
5817 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5818 fi
5819 else
5820 ac_cv_path_GREP=$GREP
5821 fi
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5825 $as_echo "$ac_cv_path_GREP" >&6; }
5826 GREP="$ac_cv_path_GREP"
5827
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5830 $as_echo_n "checking for egrep... " >&6; }
5831 if ${ac_cv_path_EGREP+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5835 then ac_cv_path_EGREP="$GREP -E"
5836 else
5837 if test -z "$EGREP"; then
5838 ac_path_EGREP_found=false
5839 # Loop through the user's path and test for each of PROGNAME-LIST
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5842 do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_prog in egrep; do
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5848 as_fn_executable_p "$ac_path_EGREP" || continue
5849 # Check for GNU ac_path_EGREP and select it if it is found.
5850 # Check for GNU $ac_path_EGREP
5851 case `"$ac_path_EGREP" --version 2>&1` in
5852 *GNU*)
5853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5854 *)
5855 ac_count=0
5856 $as_echo_n 0123456789 >"conftest.in"
5857 while :
5858 do
5859 cat "conftest.in" "conftest.in" >"conftest.tmp"
5860 mv "conftest.tmp" "conftest.in"
5861 cp "conftest.in" "conftest.nl"
5862 $as_echo 'EGREP' >> "conftest.nl"
5863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5865 as_fn_arith $ac_count + 1 && ac_count=$as_val
5866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5867 # Best one so far, save it but keep looking for a better one
5868 ac_cv_path_EGREP="$ac_path_EGREP"
5869 ac_path_EGREP_max=$ac_count
5870 fi
5871 # 10*(2^10) chars as input seems more than enough
5872 test $ac_count -gt 10 && break
5873 done
5874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5875 esac
5876
5877 $ac_path_EGREP_found && break 3
5878 done
5879 done
5880 done
5881 IFS=$as_save_IFS
5882 if test -z "$ac_cv_path_EGREP"; then
5883 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5884 fi
5885 else
5886 ac_cv_path_EGREP=$EGREP
5887 fi
5888
5889 fi
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5892 $as_echo "$ac_cv_path_EGREP" >&6; }
5893 EGREP="$ac_cv_path_EGREP"
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5897 $as_echo_n "checking for fgrep... " >&6; }
5898 if ${ac_cv_path_FGREP+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5902 then ac_cv_path_FGREP="$GREP -F"
5903 else
5904 if test -z "$FGREP"; then
5905 ac_path_FGREP_found=false
5906 # Loop through the user's path and test for each of PROGNAME-LIST
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_prog in fgrep; do
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5915 as_fn_executable_p "$ac_path_FGREP" || continue
5916 # Check for GNU ac_path_FGREP and select it if it is found.
5917 # Check for GNU $ac_path_FGREP
5918 case `"$ac_path_FGREP" --version 2>&1` in
5919 *GNU*)
5920 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5921 *)
5922 ac_count=0
5923 $as_echo_n 0123456789 >"conftest.in"
5924 while :
5925 do
5926 cat "conftest.in" "conftest.in" >"conftest.tmp"
5927 mv "conftest.tmp" "conftest.in"
5928 cp "conftest.in" "conftest.nl"
5929 $as_echo 'FGREP' >> "conftest.nl"
5930 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5932 as_fn_arith $ac_count + 1 && ac_count=$as_val
5933 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5934 # Best one so far, save it but keep looking for a better one
5935 ac_cv_path_FGREP="$ac_path_FGREP"
5936 ac_path_FGREP_max=$ac_count
5937 fi
5938 # 10*(2^10) chars as input seems more than enough
5939 test $ac_count -gt 10 && break
5940 done
5941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5942 esac
5943
5944 $ac_path_FGREP_found && break 3
5945 done
5946 done
5947 done
5948 IFS=$as_save_IFS
5949 if test -z "$ac_cv_path_FGREP"; then
5950 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5951 fi
5952 else
5953 ac_cv_path_FGREP=$FGREP
5954 fi
5955
5956 fi
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5959 $as_echo "$ac_cv_path_FGREP" >&6; }
5960 FGREP="$ac_cv_path_FGREP"
5961
5962
5963 test -z "$GREP" && GREP=grep
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 # Check whether --with-gnu-ld was given.
5984 if test "${with_gnu_ld+set}" = set; then :
5985 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5986 else
5987 with_gnu_ld=no
5988 fi
5989
5990 ac_prog=ld
5991 if test yes = "$GCC"; then
5992 # Check if gcc -print-prog-name=ld gives a path.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5994 $as_echo_n "checking for ld used by $CC... " >&6; }
5995 case $host in
5996 *-*-mingw*)
5997 # gcc leaves a trailing carriage return, which upsets mingw
5998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5999 *)
6000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6001 esac
6002 case $ac_prog in
6003 # Accept absolute paths.
6004 [\\/]* | ?:[\\/]*)
6005 re_direlt='/[^/][^/]*/\.\./'
6006 # Canonicalize the pathname of ld
6007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6010 done
6011 test -z "$LD" && LD=$ac_prog
6012 ;;
6013 "")
6014 # If it fails, then pretend we aren't using GCC.
6015 ac_prog=ld
6016 ;;
6017 *)
6018 # If it is relative, then search for the first ld in PATH.
6019 with_gnu_ld=unknown
6020 ;;
6021 esac
6022 elif test yes = "$with_gnu_ld"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6024 $as_echo_n "checking for GNU ld... " >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6027 $as_echo_n "checking for non-GNU ld... " >&6; }
6028 fi
6029 if ${lt_cv_path_LD+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -z "$LD"; then
6033 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH; do
6035 IFS=$lt_save_ifs
6036 test -z "$ac_dir" && ac_dir=.
6037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6038 lt_cv_path_LD=$ac_dir/$ac_prog
6039 # Check to see if the program is GNU ld. I'd rather use --version,
6040 # but apparently some variants of GNU ld only accept -v.
6041 # Break only if it was the GNU/non-GNU ld that we prefer.
6042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6043 *GNU* | *'with BFD'*)
6044 test no != "$with_gnu_ld" && break
6045 ;;
6046 *)
6047 test yes != "$with_gnu_ld" && break
6048 ;;
6049 esac
6050 fi
6051 done
6052 IFS=$lt_save_ifs
6053 else
6054 lt_cv_path_LD=$LD # Let the user override the test with a path.
6055 fi
6056 fi
6057
6058 LD=$lt_cv_path_LD
6059 if test -n "$LD"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6061 $as_echo "$LD" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6069 if ${lt_cv_prog_gnu_ld+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6073 case `$LD -v 2>&1 </dev/null` in
6074 *GNU* | *'with BFD'*)
6075 lt_cv_prog_gnu_ld=yes
6076 ;;
6077 *)
6078 lt_cv_prog_gnu_ld=no
6079 ;;
6080 esac
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6084 with_gnu_ld=$lt_cv_prog_gnu_ld
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6095 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6096 if ${lt_cv_path_NM+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$NM"; then
6100 # Let the user override the test.
6101 lt_cv_path_NM=$NM
6102 else
6103 lt_nm_to_check=${ac_tool_prefix}nm
6104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6105 lt_nm_to_check="$lt_nm_to_check nm"
6106 fi
6107 for lt_tmp_nm in $lt_nm_to_check; do
6108 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6110 IFS=$lt_save_ifs
6111 test -z "$ac_dir" && ac_dir=.
6112 tmp_nm=$ac_dir/$lt_tmp_nm
6113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6114 # Check to see if the nm accepts a BSD-compat flag.
6115 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6116 # nm: unknown option "B" ignored
6117 # Tru64's nm complains that /dev/null is an invalid object file
6118 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6119 case $build_os in
6120 mingw*) lt_bad_file=conftest.nm/nofile ;;
6121 *) lt_bad_file=/dev/null ;;
6122 esac
6123 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6124 *$lt_bad_file* | *'Invalid file or object type'*)
6125 lt_cv_path_NM="$tmp_nm -B"
6126 break 2
6127 ;;
6128 *)
6129 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6130 */dev/null*)
6131 lt_cv_path_NM="$tmp_nm -p"
6132 break 2
6133 ;;
6134 *)
6135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6136 continue # so that we can try to find one that supports BSD flags
6137 ;;
6138 esac
6139 ;;
6140 esac
6141 fi
6142 done
6143 IFS=$lt_save_ifs
6144 done
6145 : ${lt_cv_path_NM=no}
6146 fi
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6149 $as_echo "$lt_cv_path_NM" >&6; }
6150 if test no != "$lt_cv_path_NM"; then
6151 NM=$lt_cv_path_NM
6152 else
6153 # Didn't find any BSD compatible name lister, look for dumpbin.
6154 if test -n "$DUMPBIN"; then :
6155 # Let the user override the test.
6156 else
6157 if test -n "$ac_tool_prefix"; then
6158 for ac_prog in dumpbin "link -dump"
6159 do
6160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_prog_DUMPBIN+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$DUMPBIN"; then
6168 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 DUMPBIN=$ac_cv_prog_DUMPBIN
6188 if test -n "$DUMPBIN"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6190 $as_echo "$DUMPBIN" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197 test -n "$DUMPBIN" && break
6198 done
6199 fi
6200 if test -z "$DUMPBIN"; then
6201 ac_ct_DUMPBIN=$DUMPBIN
6202 for ac_prog in dumpbin "link -dump"
6203 do
6204 # Extract the first word of "$ac_prog", so it can be a program name with args.
6205 set dummy $ac_prog; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$ac_ct_DUMPBIN"; then
6212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6232 if test -n "$ac_ct_DUMPBIN"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6234 $as_echo "$ac_ct_DUMPBIN" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 test -n "$ac_ct_DUMPBIN" && break
6242 done
6243
6244 if test "x$ac_ct_DUMPBIN" = x; then
6245 DUMPBIN=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 DUMPBIN=$ac_ct_DUMPBIN
6254 fi
6255 fi
6256
6257 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6258 *COFF*)
6259 DUMPBIN="$DUMPBIN -symbols -headers"
6260 ;;
6261 *)
6262 DUMPBIN=:
6263 ;;
6264 esac
6265 fi
6266
6267 if test : != "$DUMPBIN"; then
6268 NM=$DUMPBIN
6269 fi
6270 fi
6271 test -z "$NM" && NM=nm
6272
6273
6274
6275
6276
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6279 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6280 if ${lt_cv_nm_interface+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 lt_cv_nm_interface="BSD nm"
6284 echo "int some_variable = 0;" > conftest.$ac_ext
6285 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6286 (eval "$ac_compile" 2>conftest.err)
6287 cat conftest.err >&5
6288 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6289 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6290 cat conftest.err >&5
6291 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6292 cat conftest.out >&5
6293 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6294 lt_cv_nm_interface="MS dumpbin"
6295 fi
6296 rm -f conftest*
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6299 $as_echo "$lt_cv_nm_interface" >&6; }
6300
6301 # find the maximum length of command line arguments
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6303 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6304 if ${lt_cv_sys_max_cmd_len+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 i=0
6308 teststring=ABCD
6309
6310 case $build_os in
6311 msdosdjgpp*)
6312 # On DJGPP, this test can blow up pretty badly due to problems in libc
6313 # (any single argument exceeding 2000 bytes causes a buffer overrun
6314 # during glob expansion). Even if it were fixed, the result of this
6315 # check would be larger than it should be.
6316 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6317 ;;
6318
6319 gnu*)
6320 # Under GNU Hurd, this test is not required because there is
6321 # no limit to the length of command line arguments.
6322 # Libtool will interpret -1 as no limit whatsoever
6323 lt_cv_sys_max_cmd_len=-1;
6324 ;;
6325
6326 cygwin* | mingw* | cegcc*)
6327 # On Win9x/ME, this test blows up -- it succeeds, but takes
6328 # about 5 minutes as the teststring grows exponentially.
6329 # Worse, since 9x/ME are not pre-emptively multitasking,
6330 # you end up with a "frozen" computer, even though with patience
6331 # the test eventually succeeds (with a max line length of 256k).
6332 # Instead, let's just punt: use the minimum linelength reported by
6333 # all of the supported platforms: 8192 (on NT/2K/XP).
6334 lt_cv_sys_max_cmd_len=8192;
6335 ;;
6336
6337 mint*)
6338 # On MiNT this can take a long time and run out of memory.
6339 lt_cv_sys_max_cmd_len=8192;
6340 ;;
6341
6342 amigaos*)
6343 # On AmigaOS with pdksh, this test takes hours, literally.
6344 # So we just punt and use a minimum line length of 8192.
6345 lt_cv_sys_max_cmd_len=8192;
6346 ;;
6347
6348 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6349 # This has been around since 386BSD, at least. Likely further.
6350 if test -x /sbin/sysctl; then
6351 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6352 elif test -x /usr/sbin/sysctl; then
6353 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6354 else
6355 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6356 fi
6357 # And add a safety zone
6358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6360 ;;
6361
6362 interix*)
6363 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6364 lt_cv_sys_max_cmd_len=196608
6365 ;;
6366
6367 os2*)
6368 # The test takes a long time on OS/2.
6369 lt_cv_sys_max_cmd_len=8192
6370 ;;
6371
6372 osf*)
6373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375 # nice to cause kernel panics so lets avoid the loop below.
6376 # First set a reasonable default.
6377 lt_cv_sys_max_cmd_len=16384
6378 #
6379 if test -x /sbin/sysconfig; then
6380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382 esac
6383 fi
6384 ;;
6385 sco3.2v5*)
6386 lt_cv_sys_max_cmd_len=102400
6387 ;;
6388 sysv5* | sco5v6* | sysv4.2uw2*)
6389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390 if test -n "$kargmax"; then
6391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6392 else
6393 lt_cv_sys_max_cmd_len=32768
6394 fi
6395 ;;
6396 *)
6397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398 if test -n "$lt_cv_sys_max_cmd_len" && \
6399 test undefined != "$lt_cv_sys_max_cmd_len"; then
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6402 else
6403 # Make teststring a little bigger before we do anything with it.
6404 # a 1K string should be a reasonable start.
6405 for i in 1 2 3 4 5 6 7 8; do
6406 teststring=$teststring$teststring
6407 done
6408 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6409 # If test is not a shell built-in, we'll probably end up computing a
6410 # maximum length that is only half of the actual maximum length, but
6411 # we can't tell.
6412 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6413 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6414 test 17 != "$i" # 1/2 MB should be enough
6415 do
6416 i=`expr $i + 1`
6417 teststring=$teststring$teststring
6418 done
6419 # Only check the string length outside the loop.
6420 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6421 teststring=
6422 # Add a significant safety factor because C++ compilers can tack on
6423 # massive amounts of additional arguments before passing them to the
6424 # linker. It appears as though 1/2 is a usable value.
6425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6426 fi
6427 ;;
6428 esac
6429
6430 fi
6431
6432 if test -n "$lt_cv_sys_max_cmd_len"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6434 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6437 $as_echo "none" >&6; }
6438 fi
6439 max_cmd_len=$lt_cv_sys_max_cmd_len
6440
6441
6442
6443
6444
6445
6446 : ${CP="cp -f"}
6447 : ${MV="mv -f"}
6448 : ${RM="rm -f"}
6449
6450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6451 lt_unset=unset
6452 else
6453 lt_unset=false
6454 fi
6455
6456
6457
6458
6459
6460 # test EBCDIC or ASCII
6461 case `echo X|tr X '\101'` in
6462 A) # ASCII based system
6463 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6464 lt_SP2NL='tr \040 \012'
6465 lt_NL2SP='tr \015\012 \040\040'
6466 ;;
6467 *) # EBCDIC based system
6468 lt_SP2NL='tr \100 \n'
6469 lt_NL2SP='tr \r\n \100\100'
6470 ;;
6471 esac
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6482 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6483 if ${lt_cv_to_host_file_cmd+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 case $host in
6487 *-*-mingw* )
6488 case $build in
6489 *-*-mingw* ) # actually msys
6490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6491 ;;
6492 *-*-cygwin* )
6493 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6494 ;;
6495 * ) # otherwise, assume *nix
6496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6497 ;;
6498 esac
6499 ;;
6500 *-*-cygwin* )
6501 case $build in
6502 *-*-mingw* ) # actually msys
6503 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6504 ;;
6505 *-*-cygwin* )
6506 lt_cv_to_host_file_cmd=func_convert_file_noop
6507 ;;
6508 * ) # otherwise, assume *nix
6509 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6510 ;;
6511 esac
6512 ;;
6513 * ) # unhandled hosts (and "normal" native builds)
6514 lt_cv_to_host_file_cmd=func_convert_file_noop
6515 ;;
6516 esac
6517
6518 fi
6519
6520 to_host_file_cmd=$lt_cv_to_host_file_cmd
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6522 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6523
6524
6525
6526
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6529 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6530 if ${lt_cv_to_tool_file_cmd+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 #assume ordinary cross tools, or native build.
6534 lt_cv_to_tool_file_cmd=func_convert_file_noop
6535 case $host in
6536 *-*-mingw* )
6537 case $build in
6538 *-*-mingw* ) # actually msys
6539 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6540 ;;
6541 esac
6542 ;;
6543 esac
6544
6545 fi
6546
6547 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6549 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6550
6551
6552
6553
6554
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6556 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6557 if ${lt_cv_ld_reload_flag+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 lt_cv_ld_reload_flag='-r'
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6563 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6564 reload_flag=$lt_cv_ld_reload_flag
6565 case $reload_flag in
6566 "" | " "*) ;;
6567 *) reload_flag=" $reload_flag" ;;
6568 esac
6569 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6570 case $host_os in
6571 cygwin* | mingw* | pw32* | cegcc*)
6572 if test yes != "$GCC"; then
6573 reload_cmds=false
6574 fi
6575 ;;
6576 darwin*)
6577 if test yes = "$GCC"; then
6578 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6579 else
6580 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6581 fi
6582 ;;
6583 esac
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_OBJDUMP+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$OBJDUMP"; then
6602 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 OBJDUMP=$ac_cv_prog_OBJDUMP
6622 if test -n "$OBJDUMP"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6624 $as_echo "$OBJDUMP" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_OBJDUMP"; then
6633 ac_ct_OBJDUMP=$OBJDUMP
6634 # Extract the first word of "objdump", so it can be a program name with args.
6635 set dummy objdump; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$ac_ct_OBJDUMP"; then
6642 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6662 if test -n "$ac_ct_OBJDUMP"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6664 $as_echo "$ac_ct_OBJDUMP" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670 if test "x$ac_ct_OBJDUMP" = x; then
6671 OBJDUMP="false"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679 OBJDUMP=$ac_ct_OBJDUMP
6680 fi
6681 else
6682 OBJDUMP="$ac_cv_prog_OBJDUMP"
6683 fi
6684
6685 test -z "$OBJDUMP" && OBJDUMP=objdump
6686
6687
6688
6689
6690
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6693 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6694 if ${lt_cv_deplibs_check_method+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 lt_cv_file_magic_cmd='$MAGIC_CMD'
6698 lt_cv_file_magic_test_file=
6699 lt_cv_deplibs_check_method='unknown'
6700 # Need to set the preceding variable on all platforms that support
6701 # interlibrary dependencies.
6702 # 'none' -- dependencies not supported.
6703 # 'unknown' -- same as none, but documents that we really don't know.
6704 # 'pass_all' -- all dependencies passed with no checks.
6705 # 'test_compile' -- check by making test program.
6706 # 'file_magic [[regex]]' -- check by looking for files in library path
6707 # that responds to the $file_magic_cmd with a given extended regex.
6708 # If you have 'file' or equivalent on your system and you're not sure
6709 # whether 'pass_all' will *always* work, you probably want this one.
6710
6711 case $host_os in
6712 aix[4-9]*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716 beos*)
6717 lt_cv_deplibs_check_method=pass_all
6718 ;;
6719
6720 bsdi[45]*)
6721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6722 lt_cv_file_magic_cmd='/usr/bin/file -L'
6723 lt_cv_file_magic_test_file=/shlib/libc.so
6724 ;;
6725
6726 cygwin*)
6727 # func_win32_libid is a shell function defined in ltmain.sh
6728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6729 lt_cv_file_magic_cmd='func_win32_libid'
6730 ;;
6731
6732 mingw* | pw32*)
6733 # Base MSYS/MinGW do not provide the 'file' command needed by
6734 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6735 # unless we find 'file', for example because we are cross-compiling.
6736 if ( file / ) >/dev/null 2>&1; then
6737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6738 lt_cv_file_magic_cmd='func_win32_libid'
6739 else
6740 # Keep this pattern in sync with the one in func_win32_libid.
6741 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6742 lt_cv_file_magic_cmd='$OBJDUMP -f'
6743 fi
6744 ;;
6745
6746 cegcc*)
6747 # use the weaker test based on 'objdump'. See mingw*.
6748 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6749 lt_cv_file_magic_cmd='$OBJDUMP -f'
6750 ;;
6751
6752 darwin* | rhapsody*)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755
6756 freebsd* | dragonfly*)
6757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6758 case $host_cpu in
6759 i*86 )
6760 # Not sure whether the presence of OpenBSD here was a mistake.
6761 # Let's accept both of them until this is cleared up.
6762 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6763 lt_cv_file_magic_cmd=/usr/bin/file
6764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6765 ;;
6766 esac
6767 else
6768 lt_cv_deplibs_check_method=pass_all
6769 fi
6770 ;;
6771
6772 haiku*)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775
6776 hpux10.20* | hpux11*)
6777 lt_cv_file_magic_cmd=/usr/bin/file
6778 case $host_cpu in
6779 ia64*)
6780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6781 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6782 ;;
6783 hppa*64*)
6784 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]'
6785 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6786 ;;
6787 *)
6788 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6789 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6790 ;;
6791 esac
6792 ;;
6793
6794 interix[3-9]*)
6795 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6797 ;;
6798
6799 irix5* | irix6* | nonstopux*)
6800 case $LD in
6801 *-32|*"-32 ") libmagic=32-bit;;
6802 *-n32|*"-n32 ") libmagic=N32;;
6803 *-64|*"-64 ") libmagic=64-bit;;
6804 *) libmagic=never-match;;
6805 esac
6806 lt_cv_deplibs_check_method=pass_all
6807 ;;
6808
6809 # This must be glibc/ELF.
6810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
6813
6814 netbsd*)
6815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6817 else
6818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6819 fi
6820 ;;
6821
6822 newos6*)
6823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6824 lt_cv_file_magic_cmd=/usr/bin/file
6825 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6826 ;;
6827
6828 *nto* | *qnx*)
6829 lt_cv_deplibs_check_method=pass_all
6830 ;;
6831
6832 openbsd* | bitrig*)
6833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6835 else
6836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6837 fi
6838 ;;
6839
6840 osf3* | osf4* | osf5*)
6841 lt_cv_deplibs_check_method=pass_all
6842 ;;
6843
6844 rdos*)
6845 lt_cv_deplibs_check_method=pass_all
6846 ;;
6847
6848 solaris*)
6849 lt_cv_deplibs_check_method=pass_all
6850 ;;
6851
6852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6853 lt_cv_deplibs_check_method=pass_all
6854 ;;
6855
6856 sysv4 | sysv4.3*)
6857 case $host_vendor in
6858 motorola)
6859 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]'
6860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6861 ;;
6862 ncr)
6863 lt_cv_deplibs_check_method=pass_all
6864 ;;
6865 sequent)
6866 lt_cv_file_magic_cmd='/bin/file'
6867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6868 ;;
6869 sni)
6870 lt_cv_file_magic_cmd='/bin/file'
6871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6872 lt_cv_file_magic_test_file=/lib/libc.so
6873 ;;
6874 siemens)
6875 lt_cv_deplibs_check_method=pass_all
6876 ;;
6877 pc)
6878 lt_cv_deplibs_check_method=pass_all
6879 ;;
6880 esac
6881 ;;
6882
6883 tpf*)
6884 lt_cv_deplibs_check_method=pass_all
6885 ;;
6886 os2*)
6887 lt_cv_deplibs_check_method=pass_all
6888 ;;
6889 esac
6890
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6894
6895 file_magic_glob=
6896 want_nocaseglob=no
6897 if test "$build" = "$host"; then
6898 case $host_os in
6899 mingw* | pw32*)
6900 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6901 want_nocaseglob=yes
6902 else
6903 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6904 fi
6905 ;;
6906 esac
6907 fi
6908
6909 file_magic_cmd=$lt_cv_file_magic_cmd
6910 deplibs_check_method=$lt_cv_deplibs_check_method
6911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_prog_DLLTOOL+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$DLLTOOL"; then
6943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 DLLTOOL=$ac_cv_prog_DLLTOOL
6963 if test -n "$DLLTOOL"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6965 $as_echo "$DLLTOOL" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_DLLTOOL"; then
6974 ac_ct_DLLTOOL=$DLLTOOL
6975 # Extract the first word of "dlltool", so it can be a program name with args.
6976 set dummy dlltool; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$ac_ct_DLLTOOL"; then
6983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7003 if test -n "$ac_ct_DLLTOOL"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7005 $as_echo "$ac_ct_DLLTOOL" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011 if test "x$ac_ct_DLLTOOL" = x; then
7012 DLLTOOL="false"
7013 else
7014 case $cross_compiling:$ac_tool_warned in
7015 yes:)
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7018 ac_tool_warned=yes ;;
7019 esac
7020 DLLTOOL=$ac_ct_DLLTOOL
7021 fi
7022 else
7023 DLLTOOL="$ac_cv_prog_DLLTOOL"
7024 fi
7025
7026 test -z "$DLLTOOL" && DLLTOOL=dlltool
7027
7028
7029
7030
7031
7032
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7035 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7036 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 lt_cv_sharedlib_from_linklib_cmd='unknown'
7040
7041 case $host_os in
7042 cygwin* | mingw* | pw32* | cegcc*)
7043 # two different shell functions defined in ltmain.sh;
7044 # decide which one to use based on capabilities of $DLLTOOL
7045 case `$DLLTOOL --help 2>&1` in
7046 *--identify-strict*)
7047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7048 ;;
7049 *)
7050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7051 ;;
7052 esac
7053 ;;
7054 *)
7055 # fallback: assume linklib IS sharedlib
7056 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7057 ;;
7058 esac
7059
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7062 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7063 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7064 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7065
7066
7067
7068
7069
7070
7071
7072
7073 if test -n "$ac_tool_prefix"; then
7074 for ac_prog in ar
7075 do
7076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_AR+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$AR"; then
7084 ac_cv_prog_AR="$AR" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 AR=$ac_cv_prog_AR
7104 if test -n "$AR"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7106 $as_echo "$AR" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 test -n "$AR" && break
7114 done
7115 fi
7116 if test -z "$AR"; then
7117 ac_ct_AR=$AR
7118 for ac_prog in ar
7119 do
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$ac_ct_AR"; then
7128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_ac_ct_AR="$ac_prog"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7148 if test -n "$ac_ct_AR"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7150 $as_echo "$ac_ct_AR" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 test -n "$ac_ct_AR" && break
7158 done
7159
7160 if test "x$ac_ct_AR" = x; then
7161 AR="false"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 AR=$ac_ct_AR
7170 fi
7171 fi
7172
7173 : ${AR=ar}
7174 : ${AR_FLAGS=cru}
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7187 $as_echo_n "checking for archiver @FILE support... " >&6; }
7188 if ${lt_cv_ar_at_file+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 lt_cv_ar_at_file=no
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194
7195 int
7196 main ()
7197 {
7198
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_cxx_try_compile "$LINENO"; then :
7204 echo conftest.$ac_objext > conftest.lst
7205 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7207 (eval $lt_ar_try) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }
7211 if test 0 -eq "$ac_status"; then
7212 # Ensure the archiver fails upon bogus file names.
7213 rm -f conftest.$ac_objext libconftest.a
7214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7215 (eval $lt_ar_try) 2>&5
7216 ac_status=$?
7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218 test $ac_status = 0; }
7219 if test 0 -ne "$ac_status"; then
7220 lt_cv_ar_at_file=@
7221 fi
7222 fi
7223 rm -f conftest.* libconftest.a
7224
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7230 $as_echo "$lt_cv_ar_at_file" >&6; }
7231
7232 if test no = "$lt_cv_ar_at_file"; then
7233 archiver_list_spec=
7234 else
7235 archiver_list_spec=$lt_cv_ar_at_file
7236 fi
7237
7238
7239
7240
7241
7242
7243
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}strip; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_STRIP+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$STRIP"; then
7253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 STRIP=$ac_cv_prog_STRIP
7273 if test -n "$STRIP"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7275 $as_echo "$STRIP" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_STRIP"; then
7284 ac_ct_STRIP=$STRIP
7285 # Extract the first word of "strip", so it can be a program name with args.
7286 set dummy strip; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_STRIP"; then
7293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_STRIP="strip"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7313 if test -n "$ac_ct_STRIP"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7315 $as_echo "$ac_ct_STRIP" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_STRIP" = x; then
7322 STRIP=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 STRIP=$ac_ct_STRIP
7331 fi
7332 else
7333 STRIP="$ac_cv_prog_STRIP"
7334 fi
7335
7336 test -z "$STRIP" && STRIP=:
7337
7338
7339
7340
7341
7342
7343 if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_RANLIB+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$RANLIB"; then
7352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 RANLIB=$ac_cv_prog_RANLIB
7372 if test -n "$RANLIB"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7374 $as_echo "$RANLIB" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380
7381 fi
7382 if test -z "$ac_cv_prog_RANLIB"; then
7383 ac_ct_RANLIB=$RANLIB
7384 # Extract the first word of "ranlib", so it can be a program name with args.
7385 set dummy ranlib; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$ac_ct_RANLIB"; then
7392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_ac_ct_RANLIB="ranlib"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7412 if test -n "$ac_ct_RANLIB"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7414 $as_echo "$ac_ct_RANLIB" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420 if test "x$ac_ct_RANLIB" = x; then
7421 RANLIB=":"
7422 else
7423 case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 RANLIB=$ac_ct_RANLIB
7430 fi
7431 else
7432 RANLIB="$ac_cv_prog_RANLIB"
7433 fi
7434
7435 test -z "$RANLIB" && RANLIB=:
7436
7437
7438
7439
7440
7441
7442 # Determine commands to create old-style static archives.
7443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7444 old_postinstall_cmds='chmod 644 $oldlib'
7445 old_postuninstall_cmds=
7446
7447 if test -n "$RANLIB"; then
7448 case $host_os in
7449 bitrig* | openbsd*)
7450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7451 ;;
7452 *)
7453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7454 ;;
7455 esac
7456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7457 fi
7458
7459 case $host_os in
7460 darwin*)
7461 lock_old_archive_extraction=yes ;;
7462 *)
7463 lock_old_archive_extraction=no ;;
7464 esac
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 # If no C compiler was specified, use CC.
7505 LTCC=${LTCC-"$CC"}
7506
7507 # If no C compiler flags were specified, use CFLAGS.
7508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7509
7510 # Allow CC to be a program name with arguments.
7511 compiler=$CC
7512
7513
7514 # Check for command to grab the raw symbol name followed by C symbol from nm.
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7517 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520
7521 # These are sane defaults that work on at least a few old systems.
7522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7523
7524 # Character class describing NM global symbol codes.
7525 symcode='[BCDEGRST]'
7526
7527 # Regexp to match symbols that can be accessed directly from C.
7528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7529
7530 # Define system-specific variables.
7531 case $host_os in
7532 aix*)
7533 symcode='[BCDT]'
7534 ;;
7535 cygwin* | mingw* | pw32* | cegcc*)
7536 symcode='[ABCDGISTW]'
7537 ;;
7538 hpux*)
7539 if test ia64 = "$host_cpu"; then
7540 symcode='[ABCDEGRST]'
7541 fi
7542 ;;
7543 irix* | nonstopux*)
7544 symcode='[BCDEGRST]'
7545 ;;
7546 osf*)
7547 symcode='[BCDEGQRST]'
7548 ;;
7549 solaris*)
7550 symcode='[BDRT]'
7551 ;;
7552 sco3.2v5*)
7553 symcode='[DT]'
7554 ;;
7555 sysv4.2uw2*)
7556 symcode='[DT]'
7557 ;;
7558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7559 symcode='[ABDT]'
7560 ;;
7561 sysv4)
7562 symcode='[DFNSTU]'
7563 ;;
7564 esac
7565
7566 # If we're using GNU nm, then use its standard symbol codes.
7567 case `$NM -V 2>&1` in
7568 *GNU* | *'with BFD'*)
7569 symcode='[ABCDGIRSTW]' ;;
7570 esac
7571
7572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7573 # Gets list of data symbols to import.
7574 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7575 # Adjust the below global symbol transforms to fixup imported variables.
7576 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7577 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7578 lt_c_name_lib_hook="\
7579 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7580 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7581 else
7582 # Disable hooks by default.
7583 lt_cv_sys_global_symbol_to_import=
7584 lt_cdecl_hook=
7585 lt_c_name_hook=
7586 lt_c_name_lib_hook=
7587 fi
7588
7589 # Transform an extracted symbol line into a proper C declaration.
7590 # Some systems (esp. on ia64) link data and code symbols differently,
7591 # so use this general approach.
7592 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7593 $lt_cdecl_hook\
7594 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7595 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7596
7597 # Transform an extracted symbol line into symbol name and symbol address
7598 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7599 $lt_c_name_hook\
7600 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7601 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7602
7603 # Transform an extracted symbol line into symbol name with lib prefix and
7604 # symbol address.
7605 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7606 $lt_c_name_lib_hook\
7607 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7608 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7609 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7610
7611 # Handle CRLF in mingw tool chain
7612 opt_cr=
7613 case $build_os in
7614 mingw*)
7615 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7616 ;;
7617 esac
7618
7619 # Try without a prefix underscore, then with it.
7620 for ac_symprfx in "" "_"; do
7621
7622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7623 symxfrm="\\1 $ac_symprfx\\2 \\2"
7624
7625 # Write the raw and C identifiers.
7626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7627 # Fake it for dumpbin and say T for any non-static function,
7628 # D for any global variable and I for any imported variable.
7629 # Also find C++ and __fastcall symbols from MSVC++,
7630 # which start with @ or ?.
7631 lt_cv_sys_global_symbol_pipe="$AWK '"\
7632 " {last_section=section; section=\$ 3};"\
7633 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7634 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7635 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7636 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7637 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7638 " \$ 0!~/External *\|/{next};"\
7639 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7640 " {if(hide[section]) next};"\
7641 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7642 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7643 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7644 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7645 " ' prfx=^$ac_symprfx"
7646 else
7647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7648 fi
7649 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7650
7651 # Check to see that the pipe works correctly.
7652 pipe_works=no
7653
7654 rm -f conftest*
7655 cat > conftest.$ac_ext <<_LT_EOF
7656 #ifdef __cplusplus
7657 extern "C" {
7658 #endif
7659 char nm_test_var;
7660 void nm_test_func(void);
7661 void nm_test_func(void){}
7662 #ifdef __cplusplus
7663 }
7664 #endif
7665 int main(){nm_test_var='a';nm_test_func();return(0);}
7666 _LT_EOF
7667
7668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7669 (eval $ac_compile) 2>&5
7670 ac_status=$?
7671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672 test $ac_status = 0; }; then
7673 # Now try to grab the symbols.
7674 nlist=conftest.nm
7675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7676 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7677 ac_status=$?
7678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7679 test $ac_status = 0; } && test -s "$nlist"; then
7680 # Try sorting and uniquifying the output.
7681 if sort "$nlist" | uniq > "$nlist"T; then
7682 mv -f "$nlist"T "$nlist"
7683 else
7684 rm -f "$nlist"T
7685 fi
7686
7687 # Make sure that we snagged all the symbols we need.
7688 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7689 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7690 cat <<_LT_EOF > conftest.$ac_ext
7691 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7692 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7693 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7694 relocations are performed -- see ld's documentation on pseudo-relocs. */
7695 # define LT_DLSYM_CONST
7696 #elif defined __osf__
7697 /* This system does not cope well with relocations in const data. */
7698 # define LT_DLSYM_CONST
7699 #else
7700 # define LT_DLSYM_CONST const
7701 #endif
7702
7703 #ifdef __cplusplus
7704 extern "C" {
7705 #endif
7706
7707 _LT_EOF
7708 # Now generate the symbol file.
7709 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7710
7711 cat <<_LT_EOF >> conftest.$ac_ext
7712
7713 /* The mapping between symbol names and symbols. */
7714 LT_DLSYM_CONST struct {
7715 const char *name;
7716 void *address;
7717 }
7718 lt__PROGRAM__LTX_preloaded_symbols[] =
7719 {
7720 { "@PROGRAM@", (void *) 0 },
7721 _LT_EOF
7722 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7723 cat <<\_LT_EOF >> conftest.$ac_ext
7724 {0, (void *) 0}
7725 };
7726
7727 /* This works around a problem in FreeBSD linker */
7728 #ifdef FREEBSD_WORKAROUND
7729 static const void *lt_preloaded_setup() {
7730 return lt__PROGRAM__LTX_preloaded_symbols;
7731 }
7732 #endif
7733
7734 #ifdef __cplusplus
7735 }
7736 #endif
7737 _LT_EOF
7738 # Now try linking the two files.
7739 mv conftest.$ac_objext conftstm.$ac_objext
7740 lt_globsym_save_LIBS=$LIBS
7741 lt_globsym_save_CFLAGS=$CFLAGS
7742 LIBS=conftstm.$ac_objext
7743 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7745 (eval $ac_link) 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7749 pipe_works=yes
7750 fi
7751 LIBS=$lt_globsym_save_LIBS
7752 CFLAGS=$lt_globsym_save_CFLAGS
7753 else
7754 echo "cannot find nm_test_func in $nlist" >&5
7755 fi
7756 else
7757 echo "cannot find nm_test_var in $nlist" >&5
7758 fi
7759 else
7760 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7761 fi
7762 else
7763 echo "$progname: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 fi
7766 rm -rf conftest* conftst*
7767
7768 # Do not use the global_symbol_pipe unless it works.
7769 if test yes = "$pipe_works"; then
7770 break
7771 else
7772 lt_cv_sys_global_symbol_pipe=
7773 fi
7774 done
7775
7776 fi
7777
7778 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7779 lt_cv_sys_global_symbol_to_cdecl=
7780 fi
7781 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7783 $as_echo "failed" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7786 $as_echo "ok" >&6; }
7787 fi
7788
7789 # Response file support.
7790 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7791 nm_file_list_spec='@'
7792 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7793 nm_file_list_spec='@'
7794 fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7833 $as_echo_n "checking for sysroot... " >&6; }
7834
7835 # Check whether --with-sysroot was given.
7836 if test "${with_sysroot+set}" = set; then :
7837 withval=$with_sysroot;
7838 else
7839 with_sysroot=no
7840 fi
7841
7842
7843 lt_sysroot=
7844 case $with_sysroot in #(
7845 yes)
7846 if test yes = "$GCC"; then
7847 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7848 fi
7849 ;; #(
7850 /*)
7851 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7852 ;; #(
7853 no|'')
7854 ;; #(
7855 *)
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7857 $as_echo "$with_sysroot" >&6; }
7858 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7859 ;;
7860 esac
7861
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7863 $as_echo "${lt_sysroot:-no}" >&6; }
7864
7865
7866
7867
7868
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7870 $as_echo_n "checking for a working dd... " >&6; }
7871 if ${ac_cv_path_lt_DD+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 printf 0123456789abcdef0123456789abcdef >conftest.i
7875 cat conftest.i conftest.i >conftest2.i
7876 : ${lt_DD:=$DD}
7877 if test -z "$lt_DD"; then
7878 ac_path_lt_DD_found=false
7879 # Loop through the user's path and test for each of PROGNAME-LIST
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_prog in dd; do
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7888 as_fn_executable_p "$ac_path_lt_DD" || continue
7889 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7890 cmp -s conftest.i conftest.out \
7891 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7892 fi
7893 $ac_path_lt_DD_found && break 3
7894 done
7895 done
7896 done
7897 IFS=$as_save_IFS
7898 if test -z "$ac_cv_path_lt_DD"; then
7899 :
7900 fi
7901 else
7902 ac_cv_path_lt_DD=$lt_DD
7903 fi
7904
7905 rm -f conftest.i conftest2.i conftest.out
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7908 $as_echo "$ac_cv_path_lt_DD" >&6; }
7909
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7912 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7913 if ${lt_cv_truncate_bin+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 printf 0123456789abcdef0123456789abcdef >conftest.i
7917 cat conftest.i conftest.i >conftest2.i
7918 lt_cv_truncate_bin=
7919 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7920 cmp -s conftest.i conftest.out \
7921 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7922 fi
7923 rm -f conftest.i conftest2.i conftest.out
7924 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7927 $as_echo "$lt_cv_truncate_bin" >&6; }
7928
7929
7930
7931
7932
7933
7934
7935 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7936 func_cc_basename ()
7937 {
7938 for cc_temp in $*""; do
7939 case $cc_temp in
7940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7942 \-*) ;;
7943 *) break;;
7944 esac
7945 done
7946 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7947 }
7948
7949 # Check whether --enable-libtool-lock was given.
7950 if test "${enable_libtool_lock+set}" = set; then :
7951 enableval=$enable_libtool_lock;
7952 fi
7953
7954 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7955
7956 # Some flags need to be propagated to the compiler or linker for good
7957 # libtool support.
7958 case $host in
7959 ia64-*-hpux*)
7960 # Find out what ABI is being produced by ac_compile, and set mode
7961 # options accordingly.
7962 echo 'int i;' > conftest.$ac_ext
7963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7964 (eval $ac_compile) 2>&5
7965 ac_status=$?
7966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967 test $ac_status = 0; }; then
7968 case `/usr/bin/file conftest.$ac_objext` in
7969 *ELF-32*)
7970 HPUX_IA64_MODE=32
7971 ;;
7972 *ELF-64*)
7973 HPUX_IA64_MODE=64
7974 ;;
7975 esac
7976 fi
7977 rm -rf conftest*
7978 ;;
7979 *-*-irix6*)
7980 # Find out what ABI is being produced by ac_compile, and set linker
7981 # options accordingly.
7982 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7984 (eval $ac_compile) 2>&5
7985 ac_status=$?
7986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7987 test $ac_status = 0; }; then
7988 if test yes = "$lt_cv_prog_gnu_ld"; then
7989 case `/usr/bin/file conftest.$ac_objext` in
7990 *32-bit*)
7991 LD="${LD-ld} -melf32bsmip"
7992 ;;
7993 *N32*)
7994 LD="${LD-ld} -melf32bmipn32"
7995 ;;
7996 *64-bit*)
7997 LD="${LD-ld} -melf64bmip"
7998 ;;
7999 esac
8000 else
8001 case `/usr/bin/file conftest.$ac_objext` in
8002 *32-bit*)
8003 LD="${LD-ld} -32"
8004 ;;
8005 *N32*)
8006 LD="${LD-ld} -n32"
8007 ;;
8008 *64-bit*)
8009 LD="${LD-ld} -64"
8010 ;;
8011 esac
8012 fi
8013 fi
8014 rm -rf conftest*
8015 ;;
8016
8017 mips64*-*linux*)
8018 # Find out what ABI is being produced by ac_compile, and set linker
8019 # options accordingly.
8020 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8022 (eval $ac_compile) 2>&5
8023 ac_status=$?
8024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8025 test $ac_status = 0; }; then
8026 emul=elf
8027 case `/usr/bin/file conftest.$ac_objext` in
8028 *32-bit*)
8029 emul="${emul}32"
8030 ;;
8031 *64-bit*)
8032 emul="${emul}64"
8033 ;;
8034 esac
8035 case `/usr/bin/file conftest.$ac_objext` in
8036 *MSB*)
8037 emul="${emul}btsmip"
8038 ;;
8039 *LSB*)
8040 emul="${emul}ltsmip"
8041 ;;
8042 esac
8043 case `/usr/bin/file conftest.$ac_objext` in
8044 *N32*)
8045 emul="${emul}n32"
8046 ;;
8047 esac
8048 LD="${LD-ld} -m $emul"
8049 fi
8050 rm -rf conftest*
8051 ;;
8052
8053 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8054 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8055 # Find out what ABI is being produced by ac_compile, and set linker
8056 # options accordingly. Note that the listed cases only cover the
8057 # situations where additional linker options are needed (such as when
8058 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8059 # vice versa); the common cases where no linker options are needed do
8060 # not appear in the list.
8061 echo 'int i;' > conftest.$ac_ext
8062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8063 (eval $ac_compile) 2>&5
8064 ac_status=$?
8065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8066 test $ac_status = 0; }; then
8067 case `/usr/bin/file conftest.o` in
8068 *32-bit*)
8069 case $host in
8070 x86_64-*kfreebsd*-gnu)
8071 LD="${LD-ld} -m elf_i386_fbsd"
8072 ;;
8073 x86_64-*linux*)
8074 case `/usr/bin/file conftest.o` in
8075 *x86-64*)
8076 LD="${LD-ld} -m elf32_x86_64"
8077 ;;
8078 *)
8079 LD="${LD-ld} -m elf_i386"
8080 ;;
8081 esac
8082 ;;
8083 powerpc64le-*linux*)
8084 LD="${LD-ld} -m elf32lppclinux"
8085 ;;
8086 powerpc64-*linux*)
8087 LD="${LD-ld} -m elf32ppclinux"
8088 ;;
8089 s390x-*linux*)
8090 LD="${LD-ld} -m elf_s390"
8091 ;;
8092 sparc64-*linux*)
8093 LD="${LD-ld} -m elf32_sparc"
8094 ;;
8095 esac
8096 ;;
8097 *64-bit*)
8098 case $host in
8099 x86_64-*kfreebsd*-gnu)
8100 LD="${LD-ld} -m elf_x86_64_fbsd"
8101 ;;
8102 x86_64-*linux*)
8103 LD="${LD-ld} -m elf_x86_64"
8104 ;;
8105 powerpcle-*linux*)
8106 LD="${LD-ld} -m elf64lppc"
8107 ;;
8108 powerpc-*linux*)
8109 LD="${LD-ld} -m elf64ppc"
8110 ;;
8111 s390*-*linux*|s390*-*tpf*)
8112 LD="${LD-ld} -m elf64_s390"
8113 ;;
8114 sparc*-*linux*)
8115 LD="${LD-ld} -m elf64_sparc"
8116 ;;
8117 esac
8118 ;;
8119 esac
8120 fi
8121 rm -rf conftest*
8122 ;;
8123
8124 *-*-sco3.2v5*)
8125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8126 SAVE_CFLAGS=$CFLAGS
8127 CFLAGS="$CFLAGS -belf"
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8129 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8130 if ${lt_cv_cc_needs_belf+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 ac_ext=c
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141
8142 int
8143 main ()
8144 {
8145
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 lt_cv_cc_needs_belf=yes
8152 else
8153 lt_cv_cc_needs_belf=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 ac_ext=c
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8165 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8166 if test yes != "$lt_cv_cc_needs_belf"; then
8167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8168 CFLAGS=$SAVE_CFLAGS
8169 fi
8170 ;;
8171 *-*solaris*)
8172 # Find out what ABI is being produced by ac_compile, and set linker
8173 # options accordingly.
8174 echo 'int i;' > conftest.$ac_ext
8175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8179 test $ac_status = 0; }; then
8180 case `/usr/bin/file conftest.o` in
8181 *64-bit*)
8182 case $lt_cv_prog_gnu_ld in
8183 yes*)
8184 case $host in
8185 i?86-*-solaris*|x86_64-*-solaris*)
8186 LD="${LD-ld} -m elf_x86_64"
8187 ;;
8188 sparc*-*-solaris*)
8189 LD="${LD-ld} -m elf64_sparc"
8190 ;;
8191 esac
8192 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8193 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8194 LD=${LD-ld}_sol2
8195 fi
8196 ;;
8197 *)
8198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8199 LD="${LD-ld} -64"
8200 fi
8201 ;;
8202 esac
8203 ;;
8204 esac
8205 fi
8206 rm -rf conftest*
8207 ;;
8208 esac
8209
8210 need_locks=$enable_libtool_lock
8211
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}mt; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$MANIFEST_TOOL"; then
8221 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8241 if test -n "$MANIFEST_TOOL"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8243 $as_echo "$MANIFEST_TOOL" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249
8250 fi
8251 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8252 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8253 # Extract the first word of "mt", so it can be a program name with args.
8254 set dummy mt; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$ac_ct_MANIFEST_TOOL"; then
8261 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274 done
8275 done
8276 IFS=$as_save_IFS
8277
8278 fi
8279 fi
8280 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8281 if test -n "$ac_ct_MANIFEST_TOOL"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8283 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8290 MANIFEST_TOOL=":"
8291 else
8292 case $cross_compiling:$ac_tool_warned in
8293 yes:)
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8296 ac_tool_warned=yes ;;
8297 esac
8298 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8299 fi
8300 else
8301 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8302 fi
8303
8304 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8306 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8307 if ${lt_cv_path_mainfest_tool+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 lt_cv_path_mainfest_tool=no
8311 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8312 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8313 cat conftest.err >&5
8314 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8315 lt_cv_path_mainfest_tool=yes
8316 fi
8317 rm -f conftest*
8318 fi
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8320 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8321 if test yes != "$lt_cv_path_mainfest_tool"; then
8322 MANIFEST_TOOL=:
8323 fi
8324
8325
8326
8327
8328
8329
8330 case $host_os in
8331 rhapsody* | darwin*)
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 if test -n "$DSYMUTIL"; then
8341 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8353 fi
8354 done
8355 done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8361 if test -n "$DSYMUTIL"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8363 $as_echo "$DSYMUTIL" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370 fi
8371 if test -z "$ac_cv_prog_DSYMUTIL"; then
8372 ac_ct_DSYMUTIL=$DSYMUTIL
8373 # Extract the first word of "dsymutil", so it can be a program name with args.
8374 set dummy dsymutil; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$ac_ct_DSYMUTIL"; then
8381 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394 done
8395 done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8401 if test -n "$ac_ct_DSYMUTIL"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8403 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409 if test "x$ac_ct_DSYMUTIL" = x; then
8410 DSYMUTIL=":"
8411 else
8412 case $cross_compiling:$ac_tool_warned in
8413 yes:)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8417 esac
8418 DSYMUTIL=$ac_ct_DSYMUTIL
8419 fi
8420 else
8421 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8422 fi
8423
8424 if test -n "$ac_tool_prefix"; then
8425 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_NMEDIT+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 if test -n "$NMEDIT"; then
8433 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8445 fi
8446 done
8447 done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 NMEDIT=$ac_cv_prog_NMEDIT
8453 if test -n "$NMEDIT"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8455 $as_echo "$NMEDIT" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462 fi
8463 if test -z "$ac_cv_prog_NMEDIT"; then
8464 ac_ct_NMEDIT=$NMEDIT
8465 # Extract the first word of "nmedit", so it can be a program name with args.
8466 set dummy nmedit; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 if test -n "$ac_ct_NMEDIT"; then
8473 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8493 if test -n "$ac_ct_NMEDIT"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8495 $as_echo "$ac_ct_NMEDIT" >&6; }
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501 if test "x$ac_ct_NMEDIT" = x; then
8502 NMEDIT=":"
8503 else
8504 case $cross_compiling:$ac_tool_warned in
8505 yes:)
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508 ac_tool_warned=yes ;;
8509 esac
8510 NMEDIT=$ac_ct_NMEDIT
8511 fi
8512 else
8513 NMEDIT="$ac_cv_prog_NMEDIT"
8514 fi
8515
8516 if test -n "$ac_tool_prefix"; then
8517 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8518 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_LIPO+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 if test -n "$LIPO"; then
8525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538 done
8539 done
8540 IFS=$as_save_IFS
8541
8542 fi
8543 fi
8544 LIPO=$ac_cv_prog_LIPO
8545 if test -n "$LIPO"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8547 $as_echo "$LIPO" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553
8554 fi
8555 if test -z "$ac_cv_prog_LIPO"; then
8556 ac_ct_LIPO=$LIPO
8557 # Extract the first word of "lipo", so it can be a program name with args.
8558 set dummy lipo; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$ac_ct_LIPO"; then
8565 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_ac_ct_LIPO="lipo"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8585 if test -n "$ac_ct_LIPO"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8587 $as_echo "$ac_ct_LIPO" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593 if test "x$ac_ct_LIPO" = x; then
8594 LIPO=":"
8595 else
8596 case $cross_compiling:$ac_tool_warned in
8597 yes:)
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8600 ac_tool_warned=yes ;;
8601 esac
8602 LIPO=$ac_ct_LIPO
8603 fi
8604 else
8605 LIPO="$ac_cv_prog_LIPO"
8606 fi
8607
8608 if test -n "$ac_tool_prefix"; then
8609 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}otool; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_OTOOL+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 if test -n "$OTOOL"; then
8617 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 break 2
8629 fi
8630 done
8631 done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 OTOOL=$ac_cv_prog_OTOOL
8637 if test -n "$OTOOL"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8639 $as_echo "$OTOOL" >&6; }
8640 else
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644
8645
8646 fi
8647 if test -z "$ac_cv_prog_OTOOL"; then
8648 ac_ct_OTOOL=$OTOOL
8649 # Extract the first word of "otool", so it can be a program name with args.
8650 set dummy otool; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 if test -n "$ac_ct_OTOOL"; then
8657 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_ac_ct_OTOOL="otool"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8669 fi
8670 done
8671 done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8677 if test -n "$ac_ct_OTOOL"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8679 $as_echo "$ac_ct_OTOOL" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685 if test "x$ac_ct_OTOOL" = x; then
8686 OTOOL=":"
8687 else
8688 case $cross_compiling:$ac_tool_warned in
8689 yes:)
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8692 ac_tool_warned=yes ;;
8693 esac
8694 OTOOL=$ac_ct_OTOOL
8695 fi
8696 else
8697 OTOOL="$ac_cv_prog_OTOOL"
8698 fi
8699
8700 if test -n "$ac_tool_prefix"; then
8701 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8702 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_OTOOL64+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 if test -n "$OTOOL64"; then
8709 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8710 else
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8713 do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722 done
8723 done
8724 IFS=$as_save_IFS
8725
8726 fi
8727 fi
8728 OTOOL64=$ac_cv_prog_OTOOL64
8729 if test -n "$OTOOL64"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8731 $as_echo "$OTOOL64" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737
8738 fi
8739 if test -z "$ac_cv_prog_OTOOL64"; then
8740 ac_ct_OTOOL64=$OTOOL64
8741 # Extract the first word of "otool64", so it can be a program name with args.
8742 set dummy otool64; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 if test -n "$ac_ct_OTOOL64"; then
8749 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_ac_ct_OTOOL64="otool64"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762 done
8763 done
8764 IFS=$as_save_IFS
8765
8766 fi
8767 fi
8768 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8769 if test -n "$ac_ct_OTOOL64"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8771 $as_echo "$ac_ct_OTOOL64" >&6; }
8772 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775 fi
8776
8777 if test "x$ac_ct_OTOOL64" = x; then
8778 OTOOL64=":"
8779 else
8780 case $cross_compiling:$ac_tool_warned in
8781 yes:)
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8784 ac_tool_warned=yes ;;
8785 esac
8786 OTOOL64=$ac_ct_OTOOL64
8787 fi
8788 else
8789 OTOOL64="$ac_cv_prog_OTOOL64"
8790 fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8819 $as_echo_n "checking for -single_module linker flag... " >&6; }
8820 if ${lt_cv_apple_cc_single_mod+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 lt_cv_apple_cc_single_mod=no
8824 if test -z "$LT_MULTI_MODULE"; then
8825 # By default we will add the -single_module flag. You can override
8826 # by either setting the environment variable LT_MULTI_MODULE
8827 # non-empty at configure time, or by adding -multi_module to the
8828 # link flags.
8829 rm -rf libconftest.dylib*
8830 echo "int foo(void){return 1;}" > conftest.c
8831 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8832 -dynamiclib -Wl,-single_module conftest.c" >&5
8833 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8834 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8835 _lt_result=$?
8836 # If there is a non-empty error log, and "single_module"
8837 # appears in it, assume the flag caused a linker warning
8838 if test -s conftest.err && $GREP single_module conftest.err; then
8839 cat conftest.err >&5
8840 # Otherwise, if the output was created with a 0 exit code from
8841 # the compiler, it worked.
8842 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8843 lt_cv_apple_cc_single_mod=yes
8844 else
8845 cat conftest.err >&5
8846 fi
8847 rm -rf libconftest.dylib*
8848 rm -f conftest.*
8849 fi
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8852 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8855 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8856 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 lt_cv_ld_exported_symbols_list=no
8860 save_LDFLAGS=$LDFLAGS
8861 echo "_main" > conftest.sym
8862 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865
8866 int
8867 main ()
8868 {
8869
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875 lt_cv_ld_exported_symbols_list=yes
8876 else
8877 lt_cv_ld_exported_symbols_list=no
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 LDFLAGS=$save_LDFLAGS
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8885 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8888 $as_echo_n "checking for -force_load linker flag... " >&6; }
8889 if ${lt_cv_ld_force_load+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 lt_cv_ld_force_load=no
8893 cat > conftest.c << _LT_EOF
8894 int forced_loaded() { return 2;}
8895 _LT_EOF
8896 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8897 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8898 echo "$AR cru libconftest.a conftest.o" >&5
8899 $AR cru libconftest.a conftest.o 2>&5
8900 echo "$RANLIB libconftest.a" >&5
8901 $RANLIB libconftest.a 2>&5
8902 cat > conftest.c << _LT_EOF
8903 int main() { return 0;}
8904 _LT_EOF
8905 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8906 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8907 _lt_result=$?
8908 if test -s conftest.err && $GREP force_load conftest.err; then
8909 cat conftest.err >&5
8910 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8911 lt_cv_ld_force_load=yes
8912 else
8913 cat conftest.err >&5
8914 fi
8915 rm -f conftest.err libconftest.a conftest conftest.c
8916 rm -rf conftest.dSYM
8917
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8920 $as_echo "$lt_cv_ld_force_load" >&6; }
8921 case $host_os in
8922 rhapsody* | darwin1.[012])
8923 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8924 darwin1.*)
8925 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8926 darwin*) # darwin 5.x on
8927 # if running on 10.5 or later, the deployment target defaults
8928 # to the OS version, if on x86, and 10.4, the deployment
8929 # target defaults to 10.4. Don't you love it?
8930 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8931 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8932 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8933 10.[012][,.]*)
8934 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8935 10.*)
8936 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8937 esac
8938 ;;
8939 esac
8940 if test yes = "$lt_cv_apple_cc_single_mod"; then
8941 _lt_dar_single_mod='$single_module'
8942 fi
8943 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8944 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8945 else
8946 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8947 fi
8948 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8949 _lt_dsymutil='~$DSYMUTIL $lib || :'
8950 else
8951 _lt_dsymutil=
8952 fi
8953 ;;
8954 esac
8955
8956 # func_munge_path_list VARIABLE PATH
8957 # -----------------------------------
8958 # VARIABLE is name of variable containing _space_ separated list of
8959 # directories to be munged by the contents of PATH, which is string
8960 # having a format:
8961 # "DIR[:DIR]:"
8962 # string "DIR[ DIR]" will be prepended to VARIABLE
8963 # ":DIR[:DIR]"
8964 # string "DIR[ DIR]" will be appended to VARIABLE
8965 # "DIRP[:DIRP]::[DIRA:]DIRA"
8966 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8967 # "DIRA[ DIRA]" will be appended to VARIABLE
8968 # "DIR[:DIR]"
8969 # VARIABLE will be replaced by "DIR[ DIR]"
8970 func_munge_path_list ()
8971 {
8972 case x$2 in
8973 x)
8974 ;;
8975 *:)
8976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8977 ;;
8978 x:*)
8979 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8980 ;;
8981 *::*)
8982 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8983 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8984 ;;
8985 *)
8986 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8987 ;;
8988 esac
8989 }
8990
8991
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8993 $as_echo_n "checking for ANSI C header files... " >&6; }
8994 if ${ac_cv_header_stdc+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 #include <stdlib.h>
9000 #include <stdarg.h>
9001 #include <string.h>
9002 #include <float.h>
9003
9004 int
9005 main ()
9006 {
9007
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013 ac_cv_header_stdc=yes
9014 else
9015 ac_cv_header_stdc=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018
9019 if test $ac_cv_header_stdc = yes; then
9020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <string.h>
9024
9025 _ACEOF
9026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9027 $EGREP "memchr" >/dev/null 2>&1; then :
9028
9029 else
9030 ac_cv_header_stdc=no
9031 fi
9032 rm -f conftest*
9033
9034 fi
9035
9036 if test $ac_cv_header_stdc = yes; then
9037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 #include <stdlib.h>
9041
9042 _ACEOF
9043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044 $EGREP "free" >/dev/null 2>&1; then :
9045
9046 else
9047 ac_cv_header_stdc=no
9048 fi
9049 rm -f conftest*
9050
9051 fi
9052
9053 if test $ac_cv_header_stdc = yes; then
9054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9055 if test "$cross_compiling" = yes; then :
9056 :
9057 else
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 #include <ctype.h>
9061 #include <stdlib.h>
9062 #if ((' ' & 0x0FF) == 0x020)
9063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9065 #else
9066 # define ISLOWER(c) \
9067 (('a' <= (c) && (c) <= 'i') \
9068 || ('j' <= (c) && (c) <= 'r') \
9069 || ('s' <= (c) && (c) <= 'z'))
9070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9071 #endif
9072
9073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9074 int
9075 main ()
9076 {
9077 int i;
9078 for (i = 0; i < 256; i++)
9079 if (XOR (islower (i), ISLOWER (i))
9080 || toupper (i) != TOUPPER (i))
9081 return 2;
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_run "$LINENO"; then :
9086
9087 else
9088 ac_cv_header_stdc=no
9089 fi
9090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9091 conftest.$ac_objext conftest.beam conftest.$ac_ext
9092 fi
9093
9094 fi
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9097 $as_echo "$ac_cv_header_stdc" >&6; }
9098 if test $ac_cv_header_stdc = yes; then
9099
9100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9101
9102 fi
9103
9104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9106 inttypes.h stdint.h unistd.h
9107 do :
9108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9110 "
9111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9112 cat >>confdefs.h <<_ACEOF
9113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114 _ACEOF
9115
9116 fi
9117
9118 done
9119
9120
9121 for ac_header in dlfcn.h
9122 do :
9123 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9124 "
9125 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9126 cat >>confdefs.h <<_ACEOF
9127 #define HAVE_DLFCN_H 1
9128 _ACEOF
9129
9130 fi
9131
9132 done
9133
9134
9135
9136 func_stripname_cnf ()
9137 {
9138 case $2 in
9139 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9140 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9141 esac
9142 } # func_stripname_cnf
9143
9144
9145
9146
9147
9148 # Set options
9149 enable_win32_dll=yes
9150
9151 case $host in
9152 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9153 if test -n "$ac_tool_prefix"; then
9154 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9155 set dummy ${ac_tool_prefix}as; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_prog_AS+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$AS"; then
9162 ac_cv_prog_AS="$AS" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_AS="${ac_tool_prefix}as"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 fi
9180 fi
9181 AS=$ac_cv_prog_AS
9182 if test -n "$AS"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9184 $as_echo "$AS" >&6; }
9185 else
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9188 fi
9189
9190
9191 fi
9192 if test -z "$ac_cv_prog_AS"; then
9193 ac_ct_AS=$AS
9194 # Extract the first word of "as", so it can be a program name with args.
9195 set dummy as; ac_word=$2
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9197 $as_echo_n "checking for $ac_word... " >&6; }
9198 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 if test -n "$ac_ct_AS"; then
9202 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9203 else
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9206 do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211 ac_cv_prog_ac_ct_AS="as"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9214 fi
9215 done
9216 done
9217 IFS=$as_save_IFS
9218
9219 fi
9220 fi
9221 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9222 if test -n "$ac_ct_AS"; then
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9224 $as_echo "$ac_ct_AS" >&6; }
9225 else
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9227 $as_echo "no" >&6; }
9228 fi
9229
9230 if test "x$ac_ct_AS" = x; then
9231 AS="false"
9232 else
9233 case $cross_compiling:$ac_tool_warned in
9234 yes:)
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9237 ac_tool_warned=yes ;;
9238 esac
9239 AS=$ac_ct_AS
9240 fi
9241 else
9242 AS="$ac_cv_prog_AS"
9243 fi
9244
9245 if test -n "$ac_tool_prefix"; then
9246 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9247 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_prog_DLLTOOL+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$DLLTOOL"; then
9254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267 done
9268 done
9269 IFS=$as_save_IFS
9270
9271 fi
9272 fi
9273 DLLTOOL=$ac_cv_prog_DLLTOOL
9274 if test -n "$DLLTOOL"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9276 $as_echo "$DLLTOOL" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9280 fi
9281
9282
9283 fi
9284 if test -z "$ac_cv_prog_DLLTOOL"; then
9285 ac_ct_DLLTOOL=$DLLTOOL
9286 # Extract the first word of "dlltool", so it can be a program name with args.
9287 set dummy dlltool; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -n "$ac_ct_DLLTOOL"; then
9294 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9306 fi
9307 done
9308 done
9309 IFS=$as_save_IFS
9310
9311 fi
9312 fi
9313 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9314 if test -n "$ac_ct_DLLTOOL"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9316 $as_echo "$ac_ct_DLLTOOL" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9320 fi
9321
9322 if test "x$ac_ct_DLLTOOL" = x; then
9323 DLLTOOL="false"
9324 else
9325 case $cross_compiling:$ac_tool_warned in
9326 yes:)
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9329 ac_tool_warned=yes ;;
9330 esac
9331 DLLTOOL=$ac_ct_DLLTOOL
9332 fi
9333 else
9334 DLLTOOL="$ac_cv_prog_DLLTOOL"
9335 fi
9336
9337 if test -n "$ac_tool_prefix"; then
9338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9339 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_prog_OBJDUMP+:} false; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 if test -n "$OBJDUMP"; then
9346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9347 else
9348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in $PATH
9350 do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 break 2
9358 fi
9359 done
9360 done
9361 IFS=$as_save_IFS
9362
9363 fi
9364 fi
9365 OBJDUMP=$ac_cv_prog_OBJDUMP
9366 if test -n "$OBJDUMP"; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9368 $as_echo "$OBJDUMP" >&6; }
9369 else
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9372 fi
9373
9374
9375 fi
9376 if test -z "$ac_cv_prog_OBJDUMP"; then
9377 ac_ct_OBJDUMP=$OBJDUMP
9378 # Extract the first word of "objdump", so it can be a program name with args.
9379 set dummy objdump; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 if test -n "$ac_ct_OBJDUMP"; then
9386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399 done
9400 done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9406 if test -n "$ac_ct_OBJDUMP"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9408 $as_echo "$ac_ct_OBJDUMP" >&6; }
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9412 fi
9413
9414 if test "x$ac_ct_OBJDUMP" = x; then
9415 OBJDUMP="false"
9416 else
9417 case $cross_compiling:$ac_tool_warned in
9418 yes:)
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9421 ac_tool_warned=yes ;;
9422 esac
9423 OBJDUMP=$ac_ct_OBJDUMP
9424 fi
9425 else
9426 OBJDUMP="$ac_cv_prog_OBJDUMP"
9427 fi
9428
9429 ;;
9430 esac
9431
9432 test -z "$AS" && AS=as
9433
9434
9435
9436
9437
9438 test -z "$DLLTOOL" && DLLTOOL=dlltool
9439
9440
9441
9442
9443
9444 test -z "$OBJDUMP" && OBJDUMP=objdump
9445
9446
9447
9448
9449 # Check whether --enable-static was given.
9450 if test "${enable_static+set}" = set; then :
9451 enableval=$enable_static; p=${PACKAGE-default}
9452 case $enableval in
9453 yes) enable_static=yes ;;
9454 no) enable_static=no ;;
9455 *)
9456 enable_static=no
9457 # Look at the argument we got. We use all the common list separators.
9458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9459 for pkg in $enableval; do
9460 IFS=$lt_save_ifs
9461 if test "X$pkg" = "X$p"; then
9462 enable_static=yes
9463 fi
9464 done
9465 IFS=$lt_save_ifs
9466 ;;
9467 esac
9468 else
9469 enable_static=no
9470 fi
9471
9472
9473
9474
9475
9476
9477
9478
9479 # Check whether --with-pic was given.
9480 if test "${with_pic+set}" = set; then :
9481 withval=$with_pic; lt_p=${PACKAGE-default}
9482 case $withval in
9483 yes|no) pic_mode=$withval ;;
9484 *)
9485 pic_mode=default
9486 # Look at the argument we got. We use all the common list separators.
9487 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9488 for lt_pkg in $withval; do
9489 IFS=$lt_save_ifs
9490 if test "X$lt_pkg" = "X$lt_p"; then
9491 pic_mode=yes
9492 fi
9493 done
9494 IFS=$lt_save_ifs
9495 ;;
9496 esac
9497 else
9498 pic_mode=yes
9499 fi
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509 enable_dlopen=no
9510
9511
9512
9513 # Check whether --enable-shared was given.
9514 if test "${enable_shared+set}" = set; then :
9515 enableval=$enable_shared; p=${PACKAGE-default}
9516 case $enableval in
9517 yes) enable_shared=yes ;;
9518 no) enable_shared=no ;;
9519 *)
9520 enable_shared=no
9521 # Look at the argument we got. We use all the common list separators.
9522 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9523 for pkg in $enableval; do
9524 IFS=$lt_save_ifs
9525 if test "X$pkg" = "X$p"; then
9526 enable_shared=yes
9527 fi
9528 done
9529 IFS=$lt_save_ifs
9530 ;;
9531 esac
9532 else
9533 enable_shared=yes
9534 fi
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 # Check whether --enable-fast-install was given.
9547 if test "${enable_fast_install+set}" = set; then :
9548 enableval=$enable_fast_install; p=${PACKAGE-default}
9549 case $enableval in
9550 yes) enable_fast_install=yes ;;
9551 no) enable_fast_install=no ;;
9552 *)
9553 enable_fast_install=no
9554 # Look at the argument we got. We use all the common list separators.
9555 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9556 for pkg in $enableval; do
9557 IFS=$lt_save_ifs
9558 if test "X$pkg" = "X$p"; then
9559 enable_fast_install=yes
9560 fi
9561 done
9562 IFS=$lt_save_ifs
9563 ;;
9564 esac
9565 else
9566 enable_fast_install=yes
9567 fi
9568
9569
9570
9571
9572
9573
9574
9575
9576 shared_archive_member_spec=
9577 case $host,$enable_shared in
9578 power*-*-aix[5-9]*,yes)
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9580 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9581
9582 # Check whether --with-aix-soname was given.
9583 if test "${with_aix_soname+set}" = set; then :
9584 withval=$with_aix_soname; case $withval in
9585 aix|svr4|both)
9586 ;;
9587 *)
9588 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9589 ;;
9590 esac
9591 lt_cv_with_aix_soname=$with_aix_soname
9592 else
9593 if ${lt_cv_with_aix_soname+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 lt_cv_with_aix_soname=aix
9597 fi
9598
9599 with_aix_soname=$lt_cv_with_aix_soname
9600 fi
9601
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9603 $as_echo "$with_aix_soname" >&6; }
9604 if test aix != "$with_aix_soname"; then
9605 # For the AIX way of multilib, we name the shared archive member
9606 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9607 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9608 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9609 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9610 if test 64 = "${OBJECT_MODE-32}"; then
9611 shared_archive_member_spec=shr_64
9612 else
9613 shared_archive_member_spec=shr
9614 fi
9615 fi
9616 ;;
9617 *)
9618 with_aix_soname=aix
9619 ;;
9620 esac
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631 # This can be used to rebuild libtool when needed
9632 LIBTOOL_DEPS=$ltmain
9633
9634 # Always use our own libtool.
9635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666 test -z "$LN_S" && LN_S="ln -s"
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 if test -n "${ZSH_VERSION+set}"; then
9682 setopt NO_GLOB_SUBST
9683 fi
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9686 $as_echo_n "checking for objdir... " >&6; }
9687 if ${lt_cv_objdir+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 rm -f .libs 2>/dev/null
9691 mkdir .libs 2>/dev/null
9692 if test -d .libs; then
9693 lt_cv_objdir=.libs
9694 else
9695 # MS-DOS does not allow filenames that begin with a dot.
9696 lt_cv_objdir=_libs
9697 fi
9698 rmdir .libs 2>/dev/null
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9701 $as_echo "$lt_cv_objdir" >&6; }
9702 objdir=$lt_cv_objdir
9703
9704
9705
9706
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define LT_OBJDIR "$lt_cv_objdir/"
9710 _ACEOF
9711
9712
9713
9714
9715 case $host_os in
9716 aix3*)
9717 # AIX sometimes has problems with the GCC collect2 program. For some
9718 # reason, if we set the COLLECT_NAMES environment variable, the problems
9719 # vanish in a puff of smoke.
9720 if test set != "${COLLECT_NAMES+set}"; then
9721 COLLECT_NAMES=
9722 export COLLECT_NAMES
9723 fi
9724 ;;
9725 esac
9726
9727 # Global variables:
9728 ofile=libtool
9729 can_build_shared=yes
9730
9731 # All known linkers require a '.a' archive for static linking (except MSVC,
9732 # which needs '.lib').
9733 libext=a
9734
9735 with_gnu_ld=$lt_cv_prog_gnu_ld
9736
9737 old_CC=$CC
9738 old_CFLAGS=$CFLAGS
9739
9740 # Set sane defaults for various variables
9741 test -z "$CC" && CC=cc
9742 test -z "$LTCC" && LTCC=$CC
9743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9744 test -z "$LD" && LD=ld
9745 test -z "$ac_objext" && ac_objext=o
9746
9747 func_cc_basename $compiler
9748 cc_basename=$func_cc_basename_result
9749
9750
9751 # Only perform the check for file, if the check method requires it
9752 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9753 case $deplibs_check_method in
9754 file_magic*)
9755 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9757 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9758 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 case $MAGIC_CMD in
9762 [\\/*] | ?:[\\/]*)
9763 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9764 ;;
9765 *)
9766 lt_save_MAGIC_CMD=$MAGIC_CMD
9767 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9769 for ac_dir in $ac_dummy; do
9770 IFS=$lt_save_ifs
9771 test -z "$ac_dir" && ac_dir=.
9772 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9773 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9774 if test -n "$file_magic_test_file"; then
9775 case $deplibs_check_method in
9776 "file_magic "*)
9777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9778 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9780 $EGREP "$file_magic_regex" > /dev/null; then
9781 :
9782 else
9783 cat <<_LT_EOF 1>&2
9784
9785 *** Warning: the command libtool uses to detect shared libraries,
9786 *** $file_magic_cmd, produces output that libtool cannot recognize.
9787 *** The result is that libtool may fail to recognize shared libraries
9788 *** as such. This will affect the creation of libtool libraries that
9789 *** depend on shared libraries, but programs linked with such libtool
9790 *** libraries will work regardless of this problem. Nevertheless, you
9791 *** may want to report the problem to your system manager and/or to
9792 *** [email protected]
9793
9794 _LT_EOF
9795 fi ;;
9796 esac
9797 fi
9798 break
9799 fi
9800 done
9801 IFS=$lt_save_ifs
9802 MAGIC_CMD=$lt_save_MAGIC_CMD
9803 ;;
9804 esac
9805 fi
9806
9807 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9808 if test -n "$MAGIC_CMD"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9810 $as_echo "$MAGIC_CMD" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9814 fi
9815
9816
9817
9818
9819
9820 if test -z "$lt_cv_path_MAGIC_CMD"; then
9821 if test -n "$ac_tool_prefix"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9823 $as_echo_n "checking for file... " >&6; }
9824 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 case $MAGIC_CMD in
9828 [\\/*] | ?:[\\/]*)
9829 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9830 ;;
9831 *)
9832 lt_save_MAGIC_CMD=$MAGIC_CMD
9833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9835 for ac_dir in $ac_dummy; do
9836 IFS=$lt_save_ifs
9837 test -z "$ac_dir" && ac_dir=.
9838 if test -f "$ac_dir/file"; then
9839 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9840 if test -n "$file_magic_test_file"; then
9841 case $deplibs_check_method in
9842 "file_magic "*)
9843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9844 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9846 $EGREP "$file_magic_regex" > /dev/null; then
9847 :
9848 else
9849 cat <<_LT_EOF 1>&2
9850
9851 *** Warning: the command libtool uses to detect shared libraries,
9852 *** $file_magic_cmd, produces output that libtool cannot recognize.
9853 *** The result is that libtool may fail to recognize shared libraries
9854 *** as such. This will affect the creation of libtool libraries that
9855 *** depend on shared libraries, but programs linked with such libtool
9856 *** libraries will work regardless of this problem. Nevertheless, you
9857 *** may want to report the problem to your system manager and/or to
9858 *** [email protected]
9859
9860 _LT_EOF
9861 fi ;;
9862 esac
9863 fi
9864 break
9865 fi
9866 done
9867 IFS=$lt_save_ifs
9868 MAGIC_CMD=$lt_save_MAGIC_CMD
9869 ;;
9870 esac
9871 fi
9872
9873 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9874 if test -n "$MAGIC_CMD"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9876 $as_echo "$MAGIC_CMD" >&6; }
9877 else
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9880 fi
9881
9882
9883 else
9884 MAGIC_CMD=:
9885 fi
9886 fi
9887
9888 fi
9889 ;;
9890 esac
9891
9892 # Use C for the default configuration in the libtool script
9893
9894 lt_save_CC=$CC
9895 ac_ext=c
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9900
9901
9902 # Source file extension for C test sources.
9903 ac_ext=c
9904
9905 # Object file extension for compiled C test sources.
9906 objext=o
9907 objext=$objext
9908
9909 # Code to be used in simple compile tests
9910 lt_simple_compile_test_code="int some_variable = 0;"
9911
9912 # Code to be used in simple link tests
9913 lt_simple_link_test_code='int main(){return(0);}'
9914
9915
9916
9917
9918
9919
9920
9921 # If no C compiler was specified, use CC.
9922 LTCC=${LTCC-"$CC"}
9923
9924 # If no C compiler flags were specified, use CFLAGS.
9925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9926
9927 # Allow CC to be a program name with arguments.
9928 compiler=$CC
9929
9930 # Save the default compiler, since it gets overwritten when the other
9931 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9932 compiler_DEFAULT=$CC
9933
9934 # save warnings/boilerplate of simple test code
9935 ac_outfile=conftest.$ac_objext
9936 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9938 _lt_compiler_boilerplate=`cat conftest.err`
9939 $RM conftest*
9940
9941 ac_outfile=conftest.$ac_objext
9942 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9944 _lt_linker_boilerplate=`cat conftest.err`
9945 $RM -r conftest*
9946
9947
9948 ## CAVEAT EMPTOR:
9949 ## There is no encapsulation within the following macros, do not change
9950 ## the running order or otherwise move them around unless you know exactly
9951 ## what you are doing...
9952 if test -n "$compiler"; then
9953
9954 lt_prog_compiler_no_builtin_flag=
9955
9956 if test yes = "$GCC"; then
9957 case $cc_basename in
9958 nvcc*)
9959 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9960 *)
9961 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9962 esac
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9965 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9966 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 lt_cv_prog_compiler_rtti_exceptions=no
9970 ac_outfile=conftest.$ac_objext
9971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9972 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9973 # Insert the option either (1) after the last *FLAGS variable, or
9974 # (2) before a word containing "conftest.", or (3) at the end.
9975 # Note that $ac_compile itself does not contain backslashes and begins
9976 # with a dollar sign (not a hyphen), so the echo should work correctly.
9977 # The option is referenced via a variable to avoid confusing sed.
9978 lt_compile=`echo "$ac_compile" | $SED \
9979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9981 -e 's:$: $lt_compiler_flag:'`
9982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9983 (eval "$lt_compile" 2>conftest.err)
9984 ac_status=$?
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 if (exit $ac_status) && test -s "$ac_outfile"; then
9988 # The compiler can only warn and ignore the option if not recognized
9989 # So say no if there are warnings other than the usual output.
9990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9993 lt_cv_prog_compiler_rtti_exceptions=yes
9994 fi
9995 fi
9996 $RM conftest*
9997
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10000 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10001
10002 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10003 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10004 else
10005 :
10006 fi
10007
10008 fi
10009
10010
10011
10012
10013
10014
10015 lt_prog_compiler_wl=
10016 lt_prog_compiler_pic=
10017 lt_prog_compiler_static=
10018
10019
10020 if test yes = "$GCC"; then
10021 lt_prog_compiler_wl='-Wl,'
10022 lt_prog_compiler_static='-static'
10023
10024 case $host_os in
10025 aix*)
10026 # All AIX code is PIC.
10027 if test ia64 = "$host_cpu"; then
10028 # AIX 5 now supports IA64 processor
10029 lt_prog_compiler_static='-Bstatic'
10030 fi
10031 lt_prog_compiler_pic='-fPIC'
10032 ;;
10033
10034 amigaos*)
10035 case $host_cpu in
10036 powerpc)
10037 # see comment about AmigaOS4 .so support
10038 lt_prog_compiler_pic='-fPIC'
10039 ;;
10040 m68k)
10041 # FIXME: we need at least 68020 code to build shared libraries, but
10042 # adding the '-m68020' flag to GCC prevents building anything better,
10043 # like '-m68040'.
10044 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10045 ;;
10046 esac
10047 ;;
10048
10049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10050 # PIC is the default for these OSes.
10051 ;;
10052
10053 mingw* | cygwin* | pw32* | os2* | cegcc*)
10054 # This hack is so that the source file can tell whether it is being
10055 # built for inclusion in a dll (and should export symbols for example).
10056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10057 # (--disable-auto-import) libraries
10058 lt_prog_compiler_pic='-DDLL_EXPORT'
10059 case $host_os in
10060 os2*)
10061 lt_prog_compiler_static='$wl-static'
10062 ;;
10063 esac
10064 ;;
10065
10066 darwin* | rhapsody*)
10067 # PIC is the default on this platform
10068 # Common symbols not allowed in MH_DYLIB files
10069 lt_prog_compiler_pic='-fno-common'
10070 ;;
10071
10072 haiku*)
10073 # PIC is the default for Haiku.
10074 # The "-static" flag exists, but is broken.
10075 lt_prog_compiler_static=
10076 ;;
10077
10078 hpux*)
10079 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10080 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10081 # sets the default TLS model and affects inlining.
10082 case $host_cpu in
10083 hppa*64*)
10084 # +Z the default
10085 ;;
10086 *)
10087 lt_prog_compiler_pic='-fPIC'
10088 ;;
10089 esac
10090 ;;
10091
10092 interix[3-9]*)
10093 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10094 # Instead, we relocate shared libraries at runtime.
10095 ;;
10096
10097 msdosdjgpp*)
10098 # Just because we use GCC doesn't mean we suddenly get shared libraries
10099 # on systems that don't support them.
10100 lt_prog_compiler_can_build_shared=no
10101 enable_shared=no
10102 ;;
10103
10104 *nto* | *qnx*)
10105 # QNX uses GNU C++, but need to define -shared option too, otherwise
10106 # it will coredump.
10107 lt_prog_compiler_pic='-fPIC -shared'
10108 ;;
10109
10110 sysv4*MP*)
10111 if test -d /usr/nec; then
10112 lt_prog_compiler_pic=-Kconform_pic
10113 fi
10114 ;;
10115
10116 *)
10117 lt_prog_compiler_pic='-fPIC'
10118 ;;
10119 esac
10120
10121 case $cc_basename in
10122 nvcc*) # Cuda Compiler Driver 2.2
10123 lt_prog_compiler_wl='-Xlinker '
10124 if test -n "$lt_prog_compiler_pic"; then
10125 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10126 fi
10127 ;;
10128 esac
10129 else
10130 # PORTME Check for flag to pass linker flags through the system compiler.
10131 case $host_os in
10132 aix*)
10133 lt_prog_compiler_wl='-Wl,'
10134 if test ia64 = "$host_cpu"; then
10135 # AIX 5 now supports IA64 processor
10136 lt_prog_compiler_static='-Bstatic'
10137 else
10138 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10139 fi
10140 ;;
10141
10142 darwin* | rhapsody*)
10143 # PIC is the default on this platform
10144 # Common symbols not allowed in MH_DYLIB files
10145 lt_prog_compiler_pic='-fno-common'
10146 case $cc_basename in
10147 nagfor*)
10148 # NAG Fortran compiler
10149 lt_prog_compiler_wl='-Wl,-Wl,,'
10150 lt_prog_compiler_pic='-PIC'
10151 lt_prog_compiler_static='-Bstatic'
10152 ;;
10153 esac
10154 ;;
10155
10156 mingw* | cygwin* | pw32* | os2* | cegcc*)
10157 # This hack is so that the source file can tell whether it is being
10158 # built for inclusion in a dll (and should export symbols for example).
10159 lt_prog_compiler_pic='-DDLL_EXPORT'
10160 case $host_os in
10161 os2*)
10162 lt_prog_compiler_static='$wl-static'
10163 ;;
10164 esac
10165 ;;
10166
10167 hpux9* | hpux10* | hpux11*)
10168 lt_prog_compiler_wl='-Wl,'
10169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10170 # not for PA HP-UX.
10171 case $host_cpu in
10172 hppa*64*|ia64*)
10173 # +Z the default
10174 ;;
10175 *)
10176 lt_prog_compiler_pic='+Z'
10177 ;;
10178 esac
10179 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10180 lt_prog_compiler_static='$wl-a ${wl}archive'
10181 ;;
10182
10183 irix5* | irix6* | nonstopux*)
10184 lt_prog_compiler_wl='-Wl,'
10185 # PIC (with -KPIC) is the default.
10186 lt_prog_compiler_static='-non_shared'
10187 ;;
10188
10189 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10190 case $cc_basename in
10191 # old Intel for x86_64, which still supported -KPIC.
10192 ecc*)
10193 lt_prog_compiler_wl='-Wl,'
10194 lt_prog_compiler_pic='-KPIC'
10195 lt_prog_compiler_static='-static'
10196 ;;
10197 # icc used to be incompatible with GCC.
10198 # ICC 10 doesn't accept -KPIC any more.
10199 icc* | ifort*)
10200 lt_prog_compiler_wl='-Wl,'
10201 lt_prog_compiler_pic='-fPIC'
10202 lt_prog_compiler_static='-static'
10203 ;;
10204 # Lahey Fortran 8.1.
10205 lf95*)
10206 lt_prog_compiler_wl='-Wl,'
10207 lt_prog_compiler_pic='--shared'
10208 lt_prog_compiler_static='--static'
10209 ;;
10210 nagfor*)
10211 # NAG Fortran compiler
10212 lt_prog_compiler_wl='-Wl,-Wl,,'
10213 lt_prog_compiler_pic='-PIC'
10214 lt_prog_compiler_static='-Bstatic'
10215 ;;
10216 tcc*)
10217 # Fabrice Bellard et al's Tiny C Compiler
10218 lt_prog_compiler_wl='-Wl,'
10219 lt_prog_compiler_pic='-fPIC'
10220 lt_prog_compiler_static='-static'
10221 ;;
10222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10223 # Portland Group compilers (*not* the Pentium gcc compiler,
10224 # which looks to be a dead project)
10225 lt_prog_compiler_wl='-Wl,'
10226 lt_prog_compiler_pic='-fpic'
10227 lt_prog_compiler_static='-Bstatic'
10228 ;;
10229 ccc*)
10230 lt_prog_compiler_wl='-Wl,'
10231 # All Alpha code is PIC.
10232 lt_prog_compiler_static='-non_shared'
10233 ;;
10234 xl* | bgxl* | bgf* | mpixl*)
10235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10236 lt_prog_compiler_wl='-Wl,'
10237 lt_prog_compiler_pic='-qpic'
10238 lt_prog_compiler_static='-qstaticlink'
10239 ;;
10240 *)
10241 case `$CC -V 2>&1 | sed 5q` in
10242 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10244 lt_prog_compiler_pic='-KPIC'
10245 lt_prog_compiler_static='-Bstatic'
10246 lt_prog_compiler_wl=''
10247 ;;
10248 *Sun\ F* | *Sun*Fortran*)
10249 lt_prog_compiler_pic='-KPIC'
10250 lt_prog_compiler_static='-Bstatic'
10251 lt_prog_compiler_wl='-Qoption ld '
10252 ;;
10253 *Sun\ C*)
10254 # Sun C 5.9
10255 lt_prog_compiler_pic='-KPIC'
10256 lt_prog_compiler_static='-Bstatic'
10257 lt_prog_compiler_wl='-Wl,'
10258 ;;
10259 *Intel*\ [CF]*Compiler*)
10260 lt_prog_compiler_wl='-Wl,'
10261 lt_prog_compiler_pic='-fPIC'
10262 lt_prog_compiler_static='-static'
10263 ;;
10264 *Portland\ Group*)
10265 lt_prog_compiler_wl='-Wl,'
10266 lt_prog_compiler_pic='-fpic'
10267 lt_prog_compiler_static='-Bstatic'
10268 ;;
10269 esac
10270 ;;
10271 esac
10272 ;;
10273
10274 newsos6)
10275 lt_prog_compiler_pic='-KPIC'
10276 lt_prog_compiler_static='-Bstatic'
10277 ;;
10278
10279 *nto* | *qnx*)
10280 # QNX uses GNU C++, but need to define -shared option too, otherwise
10281 # it will coredump.
10282 lt_prog_compiler_pic='-fPIC -shared'
10283 ;;
10284
10285 osf3* | osf4* | osf5*)
10286 lt_prog_compiler_wl='-Wl,'
10287 # All OSF/1 code is PIC.
10288 lt_prog_compiler_static='-non_shared'
10289 ;;
10290
10291 rdos*)
10292 lt_prog_compiler_static='-non_shared'
10293 ;;
10294
10295 solaris*)
10296 lt_prog_compiler_pic='-KPIC'
10297 lt_prog_compiler_static='-Bstatic'
10298 case $cc_basename in
10299 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10300 lt_prog_compiler_wl='-Qoption ld ';;
10301 *)
10302 lt_prog_compiler_wl='-Wl,';;
10303 esac
10304 ;;
10305
10306 sunos4*)
10307 lt_prog_compiler_wl='-Qoption ld '
10308 lt_prog_compiler_pic='-PIC'
10309 lt_prog_compiler_static='-Bstatic'
10310 ;;
10311
10312 sysv4 | sysv4.2uw2* | sysv4.3*)
10313 lt_prog_compiler_wl='-Wl,'
10314 lt_prog_compiler_pic='-KPIC'
10315 lt_prog_compiler_static='-Bstatic'
10316 ;;
10317
10318 sysv4*MP*)
10319 if test -d /usr/nec; then
10320 lt_prog_compiler_pic='-Kconform_pic'
10321 lt_prog_compiler_static='-Bstatic'
10322 fi
10323 ;;
10324
10325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10326 lt_prog_compiler_wl='-Wl,'
10327 lt_prog_compiler_pic='-KPIC'
10328 lt_prog_compiler_static='-Bstatic'
10329 ;;
10330
10331 unicos*)
10332 lt_prog_compiler_wl='-Wl,'
10333 lt_prog_compiler_can_build_shared=no
10334 ;;
10335
10336 uts4*)
10337 lt_prog_compiler_pic='-pic'
10338 lt_prog_compiler_static='-Bstatic'
10339 ;;
10340
10341 *)
10342 lt_prog_compiler_can_build_shared=no
10343 ;;
10344 esac
10345 fi
10346
10347 case $host_os in
10348 # For platforms that do not support PIC, -DPIC is meaningless:
10349 *djgpp*)
10350 lt_prog_compiler_pic=
10351 ;;
10352 *)
10353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10354 ;;
10355 esac
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10359 if ${lt_cv_prog_compiler_pic+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10365 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10366 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10367
10368 #
10369 # Check to make sure the PIC flag actually works.
10370 #
10371 if test -n "$lt_prog_compiler_pic"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10374 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 lt_cv_prog_compiler_pic_works=no
10378 ac_outfile=conftest.$ac_objext
10379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10380 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10381 # Insert the option either (1) after the last *FLAGS variable, or
10382 # (2) before a word containing "conftest.", or (3) at the end.
10383 # Note that $ac_compile itself does not contain backslashes and begins
10384 # with a dollar sign (not a hyphen), so the echo should work correctly.
10385 # The option is referenced via a variable to avoid confusing sed.
10386 lt_compile=`echo "$ac_compile" | $SED \
10387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10389 -e 's:$: $lt_compiler_flag:'`
10390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10391 (eval "$lt_compile" 2>conftest.err)
10392 ac_status=$?
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 if (exit $ac_status) && test -s "$ac_outfile"; then
10396 # The compiler can only warn and ignore the option if not recognized
10397 # So say no if there are warnings other than the usual output.
10398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10401 lt_cv_prog_compiler_pic_works=yes
10402 fi
10403 fi
10404 $RM conftest*
10405
10406 fi
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10408 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10409
10410 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10411 case $lt_prog_compiler_pic in
10412 "" | " "*) ;;
10413 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10414 esac
10415 else
10416 lt_prog_compiler_pic=
10417 lt_prog_compiler_can_build_shared=no
10418 fi
10419
10420 fi
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 #
10433 # Check to make sure the static flag actually works.
10434 #
10435 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10438 if ${lt_cv_prog_compiler_static_works+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 lt_cv_prog_compiler_static_works=no
10442 save_LDFLAGS=$LDFLAGS
10443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10446 # The linker can only warn and ignore the option if not recognized
10447 # So say no if there are warnings
10448 if test -s conftest.err; then
10449 # Append any errors to the config.log.
10450 cat conftest.err 1>&5
10451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10453 if diff conftest.exp conftest.er2 >/dev/null; then
10454 lt_cv_prog_compiler_static_works=yes
10455 fi
10456 else
10457 lt_cv_prog_compiler_static_works=yes
10458 fi
10459 fi
10460 $RM -r conftest*
10461 LDFLAGS=$save_LDFLAGS
10462
10463 fi
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10465 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10466
10467 if test yes = "$lt_cv_prog_compiler_static_works"; then
10468 :
10469 else
10470 lt_prog_compiler_static=
10471 fi
10472
10473
10474
10475
10476
10477
10478
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10481 if ${lt_cv_prog_compiler_c_o+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 lt_cv_prog_compiler_c_o=no
10485 $RM -r conftest 2>/dev/null
10486 mkdir conftest
10487 cd conftest
10488 mkdir out
10489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491 lt_compiler_flag="-o out/conftest2.$ac_objext"
10492 # Insert the option either (1) after the last *FLAGS variable, or
10493 # (2) before a word containing "conftest.", or (3) at the end.
10494 # Note that $ac_compile itself does not contain backslashes and begins
10495 # with a dollar sign (not a hyphen), so the echo should work correctly.
10496 lt_compile=`echo "$ac_compile" | $SED \
10497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10499 -e 's:$: $lt_compiler_flag:'`
10500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10501 (eval "$lt_compile" 2>out/conftest.err)
10502 ac_status=$?
10503 cat out/conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10506 then
10507 # The compiler can only warn and ignore the option if not recognized
10508 # So say no if there are warnings
10509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10512 lt_cv_prog_compiler_c_o=yes
10513 fi
10514 fi
10515 chmod u+w . 2>&5
10516 $RM conftest*
10517 # SGI C++ compiler will create directory out/ii_files/ for
10518 # template instantiation
10519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10520 $RM out/* && rmdir out
10521 cd ..
10522 $RM -r conftest
10523 $RM conftest*
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10527 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10528
10529
10530
10531
10532
10533
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10536 if ${lt_cv_prog_compiler_c_o+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 lt_cv_prog_compiler_c_o=no
10540 $RM -r conftest 2>/dev/null
10541 mkdir conftest
10542 cd conftest
10543 mkdir out
10544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10545
10546 lt_compiler_flag="-o out/conftest2.$ac_objext"
10547 # Insert the option either (1) after the last *FLAGS variable, or
10548 # (2) before a word containing "conftest.", or (3) at the end.
10549 # Note that $ac_compile itself does not contain backslashes and begins
10550 # with a dollar sign (not a hyphen), so the echo should work correctly.
10551 lt_compile=`echo "$ac_compile" | $SED \
10552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10554 -e 's:$: $lt_compiler_flag:'`
10555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10556 (eval "$lt_compile" 2>out/conftest.err)
10557 ac_status=$?
10558 cat out/conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10561 then
10562 # The compiler can only warn and ignore the option if not recognized
10563 # So say no if there are warnings
10564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10567 lt_cv_prog_compiler_c_o=yes
10568 fi
10569 fi
10570 chmod u+w . 2>&5
10571 $RM conftest*
10572 # SGI C++ compiler will create directory out/ii_files/ for
10573 # template instantiation
10574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10575 $RM out/* && rmdir out
10576 cd ..
10577 $RM -r conftest
10578 $RM conftest*
10579
10580 fi
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10583
10584
10585
10586
10587 hard_links=nottested
10588 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10589 # do not overwrite the value of need_locks provided by the user
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10591 $as_echo_n "checking if we can lock with hard links... " >&6; }
10592 hard_links=yes
10593 $RM conftest*
10594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10595 touch conftest.a
10596 ln conftest.a conftest.b 2>&5 || hard_links=no
10597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10599 $as_echo "$hard_links" >&6; }
10600 if test no = "$hard_links"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10602 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10603 need_locks=warn
10604 fi
10605 else
10606 need_locks=no
10607 fi
10608
10609
10610
10611
10612
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10616
10617 runpath_var=
10618 allow_undefined_flag=
10619 always_export_symbols=no
10620 archive_cmds=
10621 archive_expsym_cmds=
10622 compiler_needs_object=no
10623 enable_shared_with_static_runtimes=no
10624 export_dynamic_flag_spec=
10625 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10626 hardcode_automatic=no
10627 hardcode_direct=no
10628 hardcode_direct_absolute=no
10629 hardcode_libdir_flag_spec=
10630 hardcode_libdir_separator=
10631 hardcode_minus_L=no
10632 hardcode_shlibpath_var=unsupported
10633 inherit_rpath=no
10634 link_all_deplibs=unknown
10635 module_cmds=
10636 module_expsym_cmds=
10637 old_archive_from_new_cmds=
10638 old_archive_from_expsyms_cmds=
10639 thread_safe_flag_spec=
10640 whole_archive_flag_spec=
10641 # include_expsyms should be a list of space-separated symbols to be *always*
10642 # included in the symbol list
10643 include_expsyms=
10644 # exclude_expsyms can be an extended regexp of symbols to exclude
10645 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10646 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10647 # as well as any symbol that contains 'd'.
10648 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10650 # platforms (ab)use it in PIC code, but their linkers get confused if
10651 # the symbol is explicitly referenced. Since portable code cannot
10652 # rely on this symbol name, it's probably fine to never include it in
10653 # preloaded symbol tables.
10654 # Exclude shared library initialization/finalization symbols.
10655 extract_expsyms_cmds=
10656
10657 case $host_os in
10658 cygwin* | mingw* | pw32* | cegcc*)
10659 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10660 # When not using gcc, we currently assume that we are using
10661 # Microsoft Visual C++.
10662 if test yes != "$GCC"; then
10663 with_gnu_ld=no
10664 fi
10665 ;;
10666 interix*)
10667 # we just hope/assume this is gcc and not c89 (= MSVC++)
10668 with_gnu_ld=yes
10669 ;;
10670 openbsd* | bitrig*)
10671 with_gnu_ld=no
10672 ;;
10673 esac
10674
10675 ld_shlibs=yes
10676
10677 # On some targets, GNU ld is compatible enough with the native linker
10678 # that we're better off using the native interface for both.
10679 lt_use_gnu_ld_interface=no
10680 if test yes = "$with_gnu_ld"; then
10681 case $host_os in
10682 aix*)
10683 # The AIX port of GNU ld has always aspired to compatibility
10684 # with the native linker. However, as the warning in the GNU ld
10685 # block says, versions before 2.19.5* couldn't really create working
10686 # shared libraries, regardless of the interface used.
10687 case `$LD -v 2>&1` in
10688 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10689 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10690 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10691 *)
10692 lt_use_gnu_ld_interface=yes
10693 ;;
10694 esac
10695 ;;
10696 *)
10697 lt_use_gnu_ld_interface=yes
10698 ;;
10699 esac
10700 fi
10701
10702 if test yes = "$lt_use_gnu_ld_interface"; then
10703 # If archive_cmds runs LD, not CC, wlarc should be empty
10704 wlarc='$wl'
10705
10706 # Set some defaults for GNU ld with shared library support. These
10707 # are reset later if shared libraries are not supported. Putting them
10708 # here allows them to be overridden if necessary.
10709 runpath_var=LD_RUN_PATH
10710 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10711 export_dynamic_flag_spec='$wl--export-dynamic'
10712 # ancient GNU ld didn't support --whole-archive et. al.
10713 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10714 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10715 else
10716 whole_archive_flag_spec=
10717 fi
10718 supports_anon_versioning=no
10719 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10720 *GNU\ gold*) supports_anon_versioning=yes ;;
10721 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10722 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10723 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10724 *\ 2.11.*) ;; # other 2.11 versions
10725 *) supports_anon_versioning=yes ;;
10726 esac
10727
10728 # See if GNU ld supports shared libraries.
10729 case $host_os in
10730 aix[3-9]*)
10731 # On AIX/PPC, the GNU linker is very broken
10732 if test ia64 != "$host_cpu"; then
10733 ld_shlibs=no
10734 cat <<_LT_EOF 1>&2
10735
10736 *** Warning: the GNU linker, at least up to release 2.19, is reported
10737 *** to be unable to reliably create shared libraries on AIX.
10738 *** Therefore, libtool is disabling shared libraries support. If you
10739 *** really care for shared libraries, you may want to install binutils
10740 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10741 *** You will then need to restart the configuration process.
10742
10743 _LT_EOF
10744 fi
10745 ;;
10746
10747 amigaos*)
10748 case $host_cpu in
10749 powerpc)
10750 # see comment about AmigaOS4 .so support
10751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10752 archive_expsym_cmds=''
10753 ;;
10754 m68k)
10755 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)'
10756 hardcode_libdir_flag_spec='-L$libdir'
10757 hardcode_minus_L=yes
10758 ;;
10759 esac
10760 ;;
10761
10762 beos*)
10763 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10764 allow_undefined_flag=unsupported
10765 # Joseph Beckenbach <[email protected]> says some releases of gcc
10766 # support --undefined. This deserves some investigation. FIXME
10767 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10768 else
10769 ld_shlibs=no
10770 fi
10771 ;;
10772
10773 cygwin* | mingw* | pw32* | cegcc*)
10774 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10775 # as there is no search path for DLLs.
10776 hardcode_libdir_flag_spec='-L$libdir'
10777 export_dynamic_flag_spec='$wl--export-all-symbols'
10778 allow_undefined_flag=unsupported
10779 always_export_symbols=no
10780 enable_shared_with_static_runtimes=yes
10781 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'
10782 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10783
10784 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10786 # If the export-symbols file already is a .def file, use it as
10787 # is; otherwise, prepend EXPORTS...
10788 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10789 cp $export_symbols $output_objdir/$soname.def;
10790 else
10791 echo EXPORTS > $output_objdir/$soname.def;
10792 cat $export_symbols >> $output_objdir/$soname.def;
10793 fi~
10794 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10795 else
10796 ld_shlibs=no
10797 fi
10798 ;;
10799
10800 haiku*)
10801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10802 link_all_deplibs=yes
10803 ;;
10804
10805 os2*)
10806 hardcode_libdir_flag_spec='-L$libdir'
10807 hardcode_minus_L=yes
10808 allow_undefined_flag=unsupported
10809 shrext_cmds=.dll
10810 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10811 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10812 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10813 $ECHO EXPORTS >> $output_objdir/$libname.def~
10814 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10815 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10816 emximp -o $lib $output_objdir/$libname.def'
10817 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10818 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10819 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10820 $ECHO EXPORTS >> $output_objdir/$libname.def~
10821 prefix_cmds="$SED"~
10822 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10823 prefix_cmds="$prefix_cmds -e 1d";
10824 fi~
10825 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10826 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10827 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10828 emximp -o $lib $output_objdir/$libname.def'
10829 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10830 enable_shared_with_static_runtimes=yes
10831 ;;
10832
10833 interix[3-9]*)
10834 hardcode_direct=no
10835 hardcode_shlibpath_var=no
10836 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10837 export_dynamic_flag_spec='$wl-E'
10838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10839 # Instead, shared libraries are loaded at an image base (0x10000000 by
10840 # default) and relocated if they conflict, which is a slow very memory
10841 # consuming and fragmenting process. To avoid this, we pick a random,
10842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10845 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'
10846 ;;
10847
10848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10849 tmp_diet=no
10850 if test linux-dietlibc = "$host_os"; then
10851 case $cc_basename in
10852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10853 esac
10854 fi
10855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10856 && test no = "$tmp_diet"
10857 then
10858 tmp_addflag=' $pic_flag'
10859 tmp_sharedflag='-shared'
10860 case $cc_basename,$host_cpu in
10861 pgcc*) # Portland Group C compiler
10862 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'
10863 tmp_addflag=' $pic_flag'
10864 ;;
10865 pgf77* | pgf90* | pgf95* | pgfortran*)
10866 # Portland Group f77 and f90 compilers
10867 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'
10868 tmp_addflag=' $pic_flag -Mnomain' ;;
10869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10870 tmp_addflag=' -i_dynamic' ;;
10871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10872 tmp_addflag=' -i_dynamic -nofor_main' ;;
10873 ifc* | ifort*) # Intel Fortran compiler
10874 tmp_addflag=' -nofor_main' ;;
10875 lf95*) # Lahey Fortran 8.1
10876 whole_archive_flag_spec=
10877 tmp_sharedflag='--shared' ;;
10878 nagfor*) # NAGFOR 5.3
10879 tmp_sharedflag='-Wl,-shared' ;;
10880 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10881 tmp_sharedflag='-qmkshrobj'
10882 tmp_addflag= ;;
10883 nvcc*) # Cuda Compiler Driver 2.2
10884 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'
10885 compiler_needs_object=yes
10886 ;;
10887 esac
10888 case `$CC -V 2>&1 | sed 5q` in
10889 *Sun\ C*) # Sun C 5.9
10890 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'
10891 compiler_needs_object=yes
10892 tmp_sharedflag='-G' ;;
10893 *Sun\ F*) # Sun Fortran 8.3
10894 tmp_sharedflag='-G' ;;
10895 esac
10896 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10897
10898 if test yes = "$supports_anon_versioning"; then
10899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10901 echo "local: *; };" >> $output_objdir/$libname.ver~
10902 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10903 fi
10904
10905 case $cc_basename in
10906 tcc*)
10907 export_dynamic_flag_spec='-rdynamic'
10908 ;;
10909 xlf* | bgf* | bgxlf* | mpixlf*)
10910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10913 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10914 if test yes = "$supports_anon_versioning"; then
10915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10917 echo "local: *; };" >> $output_objdir/$libname.ver~
10918 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10919 fi
10920 ;;
10921 esac
10922 else
10923 ld_shlibs=no
10924 fi
10925 ;;
10926
10927 netbsd*)
10928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10930 wlarc=
10931 else
10932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10934 fi
10935 ;;
10936
10937 solaris*)
10938 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10939 ld_shlibs=no
10940 cat <<_LT_EOF 1>&2
10941
10942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10943 *** create shared libraries on Solaris systems. Therefore, libtool
10944 *** is disabling shared libraries support. We urge you to upgrade GNU
10945 *** binutils to release 2.9.1 or newer. Another option is to modify
10946 *** your PATH or compiler configuration so that the native linker is
10947 *** used, and then restart.
10948
10949 _LT_EOF
10950 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10953 else
10954 ld_shlibs=no
10955 fi
10956 ;;
10957
10958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10959 case `$LD -v 2>&1` in
10960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10961 ld_shlibs=no
10962 cat <<_LT_EOF 1>&2
10963
10964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10965 *** reliably create shared libraries on SCO systems. Therefore, libtool
10966 *** is disabling shared libraries support. We urge you to upgrade GNU
10967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10968 *** your PATH or compiler configuration so that the native linker is
10969 *** used, and then restart.
10970
10971 _LT_EOF
10972 ;;
10973 *)
10974 # For security reasons, it is highly recommended that you always
10975 # use absolute paths for naming shared libraries, and exclude the
10976 # DT_RUNPATH tag from executables and libraries. But doing so
10977 # requires that you compile everything twice, which is a pain.
10978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10982 else
10983 ld_shlibs=no
10984 fi
10985 ;;
10986 esac
10987 ;;
10988
10989 sunos4*)
10990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10991 wlarc=
10992 hardcode_direct=yes
10993 hardcode_shlibpath_var=no
10994 ;;
10995
10996 *)
10997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10999 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11000 else
11001 ld_shlibs=no
11002 fi
11003 ;;
11004 esac
11005
11006 if test no = "$ld_shlibs"; then
11007 runpath_var=
11008 hardcode_libdir_flag_spec=
11009 export_dynamic_flag_spec=
11010 whole_archive_flag_spec=
11011 fi
11012 else
11013 # PORTME fill in a description of your system's linker (not GNU ld)
11014 case $host_os in
11015 aix3*)
11016 allow_undefined_flag=unsupported
11017 always_export_symbols=yes
11018 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'
11019 # Note: this linker hardcodes the directories in LIBPATH if there
11020 # are no directories specified by -L.
11021 hardcode_minus_L=yes
11022 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11023 # Neither direct hardcoding nor static linking is supported with a
11024 # broken collect2.
11025 hardcode_direct=unsupported
11026 fi
11027 ;;
11028
11029 aix[4-9]*)
11030 if test ia64 = "$host_cpu"; then
11031 # On IA64, the linker does run time linking by default, so we don't
11032 # have to do anything special.
11033 aix_use_runtimelinking=no
11034 exp_sym_flag='-Bexport'
11035 no_entry_flag=
11036 else
11037 # If we're using GNU nm, then we don't want the "-C" option.
11038 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11039 # Without the "-l" option, or with the "-B" option, AIX nm treats
11040 # weak defined symbols like other global defined symbols, whereas
11041 # GNU nm marks them as "W".
11042 # While the 'weak' keyword is ignored in the Export File, we need
11043 # it in the Import File for the 'aix-soname' feature, so we have
11044 # to replace the "-B" option with "-P" for AIX nm.
11045 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11046 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'
11047 else
11048 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'
11049 fi
11050 aix_use_runtimelinking=no
11051
11052 # Test if we are trying to use run time linking or normal
11053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11054 # have runtime linking enabled, and use it for executables.
11055 # For shared libraries, we enable/disable runtime linking
11056 # depending on the kind of the shared library created -
11057 # when "with_aix_soname,aix_use_runtimelinking" is:
11058 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11059 # "aix,yes" lib.so shared, rtl:yes, for executables
11060 # lib.a static archive
11061 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11062 # lib.a(lib.so.V) shared, rtl:no, for executables
11063 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11064 # lib.a(lib.so.V) shared, rtl:no
11065 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11066 # lib.a static archive
11067 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11068 for ld_flag in $LDFLAGS; do
11069 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11070 aix_use_runtimelinking=yes
11071 break
11072 fi
11073 done
11074 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11075 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11076 # so we don't have lib.a shared libs to link our executables.
11077 # We have to force runtime linking in this case.
11078 aix_use_runtimelinking=yes
11079 LDFLAGS="$LDFLAGS -Wl,-brtl"
11080 fi
11081 ;;
11082 esac
11083
11084 exp_sym_flag='-bexport'
11085 no_entry_flag='-bnoentry'
11086 fi
11087
11088 # When large executables or shared objects are built, AIX ld can
11089 # have problems creating the table of contents. If linking a library
11090 # or program results in "error TOC overflow" add -mminimal-toc to
11091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11093
11094 archive_cmds=''
11095 hardcode_direct=yes
11096 hardcode_direct_absolute=yes
11097 hardcode_libdir_separator=':'
11098 link_all_deplibs=yes
11099 file_list_spec='$wl-f,'
11100 case $with_aix_soname,$aix_use_runtimelinking in
11101 aix,*) ;; # traditional, no import file
11102 svr4,* | *,yes) # use import file
11103 # The Import File defines what to hardcode.
11104 hardcode_direct=no
11105 hardcode_direct_absolute=no
11106 ;;
11107 esac
11108
11109 if test yes = "$GCC"; then
11110 case $host_os in aix4.[012]|aix4.[012].*)
11111 # We only want to do this on AIX 4.2 and lower, the check
11112 # below for broken collect2 doesn't work under 4.3+
11113 collect2name=`$CC -print-prog-name=collect2`
11114 if test -f "$collect2name" &&
11115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11116 then
11117 # We have reworked collect2
11118 :
11119 else
11120 # We have old collect2
11121 hardcode_direct=unsupported
11122 # It fails to find uninstalled libraries when the uninstalled
11123 # path is not listed in the libpath. Setting hardcode_minus_L
11124 # to unsupported forces relinking
11125 hardcode_minus_L=yes
11126 hardcode_libdir_flag_spec='-L$libdir'
11127 hardcode_libdir_separator=
11128 fi
11129 ;;
11130 esac
11131 shared_flag='-shared'
11132 if test yes = "$aix_use_runtimelinking"; then
11133 shared_flag="$shared_flag "'$wl-G'
11134 fi
11135 # Need to ensure runtime linking is disabled for the traditional
11136 # shared library, or the linker may eventually find shared libraries
11137 # /with/ Import File - we do not want to mix them.
11138 shared_flag_aix='-shared'
11139 shared_flag_svr4='-shared $wl-G'
11140 else
11141 # not using gcc
11142 if test ia64 = "$host_cpu"; then
11143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11144 # chokes on -Wl,-G. The following line is correct:
11145 shared_flag='-G'
11146 else
11147 if test yes = "$aix_use_runtimelinking"; then
11148 shared_flag='$wl-G'
11149 else
11150 shared_flag='$wl-bM:SRE'
11151 fi
11152 shared_flag_aix='$wl-bM:SRE'
11153 shared_flag_svr4='$wl-G'
11154 fi
11155 fi
11156
11157 export_dynamic_flag_spec='$wl-bexpall'
11158 # It seems that -bexpall does not export symbols beginning with
11159 # underscore (_), so it is better to generate a list of symbols to export.
11160 always_export_symbols=yes
11161 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11162 # Warning - without using the other runtime loading flags (-brtl),
11163 # -berok will link without error, but may produce a broken library.
11164 allow_undefined_flag='-berok'
11165 # Determine the default libpath from the value encoded in an
11166 # empty executable.
11167 if test set = "${lt_cv_aix_libpath+set}"; then
11168 aix_libpath=$lt_cv_aix_libpath
11169 else
11170 if ${lt_cv_aix_libpath_+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175
11176 int
11177 main ()
11178 {
11179
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185
11186 lt_aix_libpath_sed='
11187 /Import File Strings/,/^$/ {
11188 /^0/ {
11189 s/^0 *\([^ ]*\) *$/\1/
11190 p
11191 }
11192 }'
11193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194 # Check for a 64-bit object if we didn't find anything.
11195 if test -z "$lt_cv_aix_libpath_"; then
11196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11197 fi
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 if test -z "$lt_cv_aix_libpath_"; then
11202 lt_cv_aix_libpath_=/usr/lib:/lib
11203 fi
11204
11205 fi
11206
11207 aix_libpath=$lt_cv_aix_libpath_
11208 fi
11209
11210 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11211 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
11212 else
11213 if test ia64 = "$host_cpu"; then
11214 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11215 allow_undefined_flag="-z nodefs"
11216 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"
11217 else
11218 # Determine the default libpath from the value encoded in an
11219 # empty executable.
11220 if test set = "${lt_cv_aix_libpath+set}"; then
11221 aix_libpath=$lt_cv_aix_libpath
11222 else
11223 if ${lt_cv_aix_libpath_+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228
11229 int
11230 main ()
11231 {
11232
11233 ;
11234 return 0;
11235 }
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11238
11239 lt_aix_libpath_sed='
11240 /Import File Strings/,/^$/ {
11241 /^0/ {
11242 s/^0 *\([^ ]*\) *$/\1/
11243 p
11244 }
11245 }'
11246 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11247 # Check for a 64-bit object if we didn't find anything.
11248 if test -z "$lt_cv_aix_libpath_"; then
11249 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11250 fi
11251 fi
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 if test -z "$lt_cv_aix_libpath_"; then
11255 lt_cv_aix_libpath_=/usr/lib:/lib
11256 fi
11257
11258 fi
11259
11260 aix_libpath=$lt_cv_aix_libpath_
11261 fi
11262
11263 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11264 # Warning - without using the other run time loading flags,
11265 # -berok will link without error, but may produce a broken library.
11266 no_undefined_flag=' $wl-bernotok'
11267 allow_undefined_flag=' $wl-berok'
11268 if test yes = "$with_gnu_ld"; then
11269 # We only use this code for GNU lds that support --whole-archive.
11270 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11271 else
11272 # Exported symbols can be pulled into shared objects from archives
11273 whole_archive_flag_spec='$convenience'
11274 fi
11275 archive_cmds_need_lc=yes
11276 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11277 # -brtl affects multiple linker settings, -berok does not and is overridden later
11278 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11279 if test svr4 != "$with_aix_soname"; then
11280 # This is similar to how AIX traditionally builds its shared libraries.
11281 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'
11282 fi
11283 if test aix != "$with_aix_soname"; then
11284 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'
11285 else
11286 # used by -dlpreopen to get the symbols
11287 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11288 fi
11289 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11290 fi
11291 fi
11292 ;;
11293
11294 amigaos*)
11295 case $host_cpu in
11296 powerpc)
11297 # see comment about AmigaOS4 .so support
11298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11299 archive_expsym_cmds=''
11300 ;;
11301 m68k)
11302 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)'
11303 hardcode_libdir_flag_spec='-L$libdir'
11304 hardcode_minus_L=yes
11305 ;;
11306 esac
11307 ;;
11308
11309 bsdi[45]*)
11310 export_dynamic_flag_spec=-rdynamic
11311 ;;
11312
11313 cygwin* | mingw* | pw32* | cegcc*)
11314 # When not using gcc, we currently assume that we are using
11315 # Microsoft Visual C++.
11316 # hardcode_libdir_flag_spec is actually meaningless, as there is
11317 # no search path for DLLs.
11318 case $cc_basename in
11319 cl*)
11320 # Native MSVC
11321 hardcode_libdir_flag_spec=' '
11322 allow_undefined_flag=unsupported
11323 always_export_symbols=yes
11324 file_list_spec='@'
11325 # Tell ltmain to make .lib files, not .a files.
11326 libext=lib
11327 # Tell ltmain to make .dll files, not .so files.
11328 shrext_cmds=.dll
11329 # FIXME: Setting linknames here is a bad hack.
11330 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11331 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11332 cp "$export_symbols" "$output_objdir/$soname.def";
11333 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11334 else
11335 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11336 fi~
11337 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11338 linknames='
11339 # The linker will not automatically build a static lib if we build a DLL.
11340 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11341 enable_shared_with_static_runtimes=yes
11342 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11344 # Don't use ranlib
11345 old_postinstall_cmds='chmod 644 $oldlib'
11346 postlink_cmds='lt_outputfile="@OUTPUT@"~
11347 lt_tool_outputfile="@TOOL_OUTPUT@"~
11348 case $lt_outputfile in
11349 *.exe|*.EXE) ;;
11350 *)
11351 lt_outputfile=$lt_outputfile.exe
11352 lt_tool_outputfile=$lt_tool_outputfile.exe
11353 ;;
11354 esac~
11355 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11356 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11357 $RM "$lt_outputfile.manifest";
11358 fi'
11359 ;;
11360 *)
11361 # Assume MSVC wrapper
11362 hardcode_libdir_flag_spec=' '
11363 allow_undefined_flag=unsupported
11364 # Tell ltmain to make .lib files, not .a files.
11365 libext=lib
11366 # Tell ltmain to make .dll files, not .so files.
11367 shrext_cmds=.dll
11368 # FIXME: Setting linknames here is a bad hack.
11369 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11370 # The linker will automatically build a .lib file if we build a DLL.
11371 old_archive_from_new_cmds='true'
11372 # FIXME: Should let the user specify the lib program.
11373 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11374 enable_shared_with_static_runtimes=yes
11375 ;;
11376 esac
11377 ;;
11378
11379 darwin* | rhapsody*)
11380
11381
11382 archive_cmds_need_lc=no
11383 hardcode_direct=no
11384 hardcode_automatic=yes
11385 hardcode_shlibpath_var=unsupported
11386 if test yes = "$lt_cv_ld_force_load"; then
11387 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\"`'
11388
11389 else
11390 whole_archive_flag_spec=''
11391 fi
11392 link_all_deplibs=yes
11393 allow_undefined_flag=$_lt_dar_allow_undefined
11394 case $cc_basename in
11395 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11396 *) _lt_dar_can_shared=$GCC ;;
11397 esac
11398 if test yes = "$_lt_dar_can_shared"; then
11399 output_verbose_link_cmd=func_echo_all
11400 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11401 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11402 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"
11403 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"
11404
11405 else
11406 ld_shlibs=no
11407 fi
11408
11409 ;;
11410
11411 dgux*)
11412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11413 hardcode_libdir_flag_spec='-L$libdir'
11414 hardcode_shlibpath_var=no
11415 ;;
11416
11417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11418 # support. Future versions do this automatically, but an explicit c++rt0.o
11419 # does not break anything, and helps significantly (at the cost of a little
11420 # extra space).
11421 freebsd2.2*)
11422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11423 hardcode_libdir_flag_spec='-R$libdir'
11424 hardcode_direct=yes
11425 hardcode_shlibpath_var=no
11426 ;;
11427
11428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11429 freebsd2.*)
11430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11431 hardcode_direct=yes
11432 hardcode_minus_L=yes
11433 hardcode_shlibpath_var=no
11434 ;;
11435
11436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11437 freebsd* | dragonfly*)
11438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11439 hardcode_libdir_flag_spec='-R$libdir'
11440 hardcode_direct=yes
11441 hardcode_shlibpath_var=no
11442 ;;
11443
11444 hpux9*)
11445 if test yes = "$GCC"; then
11446 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'
11447 else
11448 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'
11449 fi
11450 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11451 hardcode_libdir_separator=:
11452 hardcode_direct=yes
11453
11454 # hardcode_minus_L: Not really in the search PATH,
11455 # but as the default location of the library.
11456 hardcode_minus_L=yes
11457 export_dynamic_flag_spec='$wl-E'
11458 ;;
11459
11460 hpux10*)
11461 if test yes,no = "$GCC,$with_gnu_ld"; then
11462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11463 else
11464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11465 fi
11466 if test no = "$with_gnu_ld"; then
11467 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11468 hardcode_libdir_separator=:
11469 hardcode_direct=yes
11470 hardcode_direct_absolute=yes
11471 export_dynamic_flag_spec='$wl-E'
11472 # hardcode_minus_L: Not really in the search PATH,
11473 # but as the default location of the library.
11474 hardcode_minus_L=yes
11475 fi
11476 ;;
11477
11478 hpux11*)
11479 if test yes,no = "$GCC,$with_gnu_ld"; then
11480 case $host_cpu in
11481 hppa*64*)
11482 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 ;;
11484 ia64*)
11485 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11486 ;;
11487 *)
11488 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11489 ;;
11490 esac
11491 else
11492 case $host_cpu in
11493 hppa*64*)
11494 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 ;;
11496 ia64*)
11497 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11498 ;;
11499 *)
11500
11501 # Older versions of the 11.00 compiler do not understand -b yet
11502 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11504 $as_echo_n "checking if $CC understands -b... " >&6; }
11505 if ${lt_cv_prog_compiler__b+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 lt_cv_prog_compiler__b=no
11509 save_LDFLAGS=$LDFLAGS
11510 LDFLAGS="$LDFLAGS -b"
11511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11513 # The linker can only warn and ignore the option if not recognized
11514 # So say no if there are warnings
11515 if test -s conftest.err; then
11516 # Append any errors to the config.log.
11517 cat conftest.err 1>&5
11518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11520 if diff conftest.exp conftest.er2 >/dev/null; then
11521 lt_cv_prog_compiler__b=yes
11522 fi
11523 else
11524 lt_cv_prog_compiler__b=yes
11525 fi
11526 fi
11527 $RM -r conftest*
11528 LDFLAGS=$save_LDFLAGS
11529
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11532 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11533
11534 if test yes = "$lt_cv_prog_compiler__b"; then
11535 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11536 else
11537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11538 fi
11539
11540 ;;
11541 esac
11542 fi
11543 if test no = "$with_gnu_ld"; then
11544 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11545 hardcode_libdir_separator=:
11546
11547 case $host_cpu in
11548 hppa*64*|ia64*)
11549 hardcode_direct=no
11550 hardcode_shlibpath_var=no
11551 ;;
11552 *)
11553 hardcode_direct=yes
11554 hardcode_direct_absolute=yes
11555 export_dynamic_flag_spec='$wl-E'
11556
11557 # hardcode_minus_L: Not really in the search PATH,
11558 # but as the default location of the library.
11559 hardcode_minus_L=yes
11560 ;;
11561 esac
11562 fi
11563 ;;
11564
11565 irix5* | irix6* | nonstopux*)
11566 if test yes = "$GCC"; then
11567 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'
11568 # Try to use the -exported_symbol ld option, if it does not
11569 # work, assume that -exports_file does not work either and
11570 # implicitly export all symbols.
11571 # This should be the same for all languages, so no per-tag cache variable.
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11573 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11574 if ${lt_cv_irix_exported_symbol+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 save_LDFLAGS=$LDFLAGS
11578 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11581 int foo (void) { return 0; }
11582 _ACEOF
11583 if ac_fn_c_try_link "$LINENO"; then :
11584 lt_cv_irix_exported_symbol=yes
11585 else
11586 lt_cv_irix_exported_symbol=no
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LDFLAGS=$save_LDFLAGS
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11593 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11594 if test yes = "$lt_cv_irix_exported_symbol"; then
11595 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'
11596 fi
11597 else
11598 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'
11599 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'
11600 fi
11601 archive_cmds_need_lc='no'
11602 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11603 hardcode_libdir_separator=:
11604 inherit_rpath=yes
11605 link_all_deplibs=yes
11606 ;;
11607
11608 linux*)
11609 case $cc_basename in
11610 tcc*)
11611 # Fabrice Bellard et al's Tiny C Compiler
11612 ld_shlibs=yes
11613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11614 ;;
11615 esac
11616 ;;
11617
11618 netbsd*)
11619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11621 else
11622 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11623 fi
11624 hardcode_libdir_flag_spec='-R$libdir'
11625 hardcode_direct=yes
11626 hardcode_shlibpath_var=no
11627 ;;
11628
11629 newsos6)
11630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11631 hardcode_direct=yes
11632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11633 hardcode_libdir_separator=:
11634 hardcode_shlibpath_var=no
11635 ;;
11636
11637 *nto* | *qnx*)
11638 ;;
11639
11640 openbsd* | bitrig*)
11641 if test -f /usr/libexec/ld.so; then
11642 hardcode_direct=yes
11643 hardcode_shlibpath_var=no
11644 hardcode_direct_absolute=yes
11645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11648 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11649 export_dynamic_flag_spec='$wl-E'
11650 else
11651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11652 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11653 fi
11654 else
11655 ld_shlibs=no
11656 fi
11657 ;;
11658
11659 os2*)
11660 hardcode_libdir_flag_spec='-L$libdir'
11661 hardcode_minus_L=yes
11662 allow_undefined_flag=unsupported
11663 shrext_cmds=.dll
11664 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11667 $ECHO EXPORTS >> $output_objdir/$libname.def~
11668 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11669 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11670 emximp -o $lib $output_objdir/$libname.def'
11671 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11672 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11673 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11674 $ECHO EXPORTS >> $output_objdir/$libname.def~
11675 prefix_cmds="$SED"~
11676 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11677 prefix_cmds="$prefix_cmds -e 1d";
11678 fi~
11679 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11680 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11681 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11682 emximp -o $lib $output_objdir/$libname.def'
11683 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11684 enable_shared_with_static_runtimes=yes
11685 ;;
11686
11687 osf3*)
11688 if test yes = "$GCC"; then
11689 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11690 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'
11691 else
11692 allow_undefined_flag=' -expect_unresolved \*'
11693 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'
11694 fi
11695 archive_cmds_need_lc='no'
11696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11697 hardcode_libdir_separator=:
11698 ;;
11699
11700 osf4* | osf5*) # as osf3* with the addition of -msym flag
11701 if test yes = "$GCC"; then
11702 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11703 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'
11704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11705 else
11706 allow_undefined_flag=' -expect_unresolved \*'
11707 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'
11708 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~
11709 $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'
11710
11711 # Both c and cxx compiler support -rpath directly
11712 hardcode_libdir_flag_spec='-rpath $libdir'
11713 fi
11714 archive_cmds_need_lc='no'
11715 hardcode_libdir_separator=:
11716 ;;
11717
11718 solaris*)
11719 no_undefined_flag=' -z defs'
11720 if test yes = "$GCC"; then
11721 wlarc='$wl'
11722 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11724 $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'
11725 else
11726 case `$CC -V 2>&1` in
11727 *"Compilers 5.0"*)
11728 wlarc=''
11729 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11731 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11732 ;;
11733 *)
11734 wlarc='$wl'
11735 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11737 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11738 ;;
11739 esac
11740 fi
11741 hardcode_libdir_flag_spec='-R$libdir'
11742 hardcode_shlibpath_var=no
11743 case $host_os in
11744 solaris2.[0-5] | solaris2.[0-5].*) ;;
11745 *)
11746 # The compiler driver will combine and reorder linker options,
11747 # but understands '-z linker_flag'. GCC discards it without '$wl',
11748 # but is careful enough not to reorder.
11749 # Supported since Solaris 2.6 (maybe 2.5.1?)
11750 if test yes = "$GCC"; then
11751 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11752 else
11753 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11754 fi
11755 ;;
11756 esac
11757 link_all_deplibs=yes
11758 ;;
11759
11760 sunos4*)
11761 if test sequent = "$host_vendor"; then
11762 # Use $CC to link under sequent, because it throws in some extra .o
11763 # files that make .init and .fini sections work.
11764 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11765 else
11766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11767 fi
11768 hardcode_libdir_flag_spec='-L$libdir'
11769 hardcode_direct=yes
11770 hardcode_minus_L=yes
11771 hardcode_shlibpath_var=no
11772 ;;
11773
11774 sysv4)
11775 case $host_vendor in
11776 sni)
11777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11778 hardcode_direct=yes # is this really true???
11779 ;;
11780 siemens)
11781 ## LD is ld it makes a PLAMLIB
11782 ## CC just makes a GrossModule.
11783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11784 reload_cmds='$CC -r -o $output$reload_objs'
11785 hardcode_direct=no
11786 ;;
11787 motorola)
11788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11790 ;;
11791 esac
11792 runpath_var='LD_RUN_PATH'
11793 hardcode_shlibpath_var=no
11794 ;;
11795
11796 sysv4.3*)
11797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11798 hardcode_shlibpath_var=no
11799 export_dynamic_flag_spec='-Bexport'
11800 ;;
11801
11802 sysv4*MP*)
11803 if test -d /usr/nec; then
11804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11805 hardcode_shlibpath_var=no
11806 runpath_var=LD_RUN_PATH
11807 hardcode_runpath_var=yes
11808 ld_shlibs=yes
11809 fi
11810 ;;
11811
11812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11813 no_undefined_flag='$wl-z,text'
11814 archive_cmds_need_lc=no
11815 hardcode_shlibpath_var=no
11816 runpath_var='LD_RUN_PATH'
11817
11818 if test yes = "$GCC"; then
11819 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11820 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11821 else
11822 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 fi
11825 ;;
11826
11827 sysv5* | sco3.2v5* | sco5v6*)
11828 # Note: We CANNOT use -z defs as we might desire, because we do not
11829 # link with -lc, and that would cause any symbols used from libc to
11830 # always be unresolved, which means just about no library would
11831 # ever link correctly. If we're not using GNU ld we use -z text
11832 # though, which does catch some bad symbols but isn't as heavy-handed
11833 # as -z defs.
11834 no_undefined_flag='$wl-z,text'
11835 allow_undefined_flag='$wl-z,nodefs'
11836 archive_cmds_need_lc=no
11837 hardcode_shlibpath_var=no
11838 hardcode_libdir_flag_spec='$wl-R,$libdir'
11839 hardcode_libdir_separator=':'
11840 link_all_deplibs=yes
11841 export_dynamic_flag_spec='$wl-Bexport'
11842 runpath_var='LD_RUN_PATH'
11843
11844 if test yes = "$GCC"; then
11845 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11846 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11847 else
11848 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11850 fi
11851 ;;
11852
11853 uts4*)
11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11855 hardcode_libdir_flag_spec='-L$libdir'
11856 hardcode_shlibpath_var=no
11857 ;;
11858
11859 *)
11860 ld_shlibs=no
11861 ;;
11862 esac
11863
11864 if test sni = "$host_vendor"; then
11865 case $host in
11866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11867 export_dynamic_flag_spec='$wl-Blargedynsym'
11868 ;;
11869 esac
11870 fi
11871 fi
11872
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11874 $as_echo "$ld_shlibs" >&6; }
11875 test no = "$ld_shlibs" && can_build_shared=no
11876
11877 with_gnu_ld=$with_gnu_ld
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893 #
11894 # Do we need to explicitly link libc?
11895 #
11896 case "x$archive_cmds_need_lc" in
11897 x|xyes)
11898 # Assume -lc should be added
11899 archive_cmds_need_lc=yes
11900
11901 if test yes,yes = "$GCC,$enable_shared"; then
11902 case $archive_cmds in
11903 *'~'*)
11904 # FIXME: we may have to deal with multi-command sequences.
11905 ;;
11906 '$CC '*)
11907 # Test whether the compiler implicitly links with -lc since on some
11908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11909 # to ld, don't add -lc before -lgcc.
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11912 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 $RM conftest*
11916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11917
11918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11919 (eval $ac_compile) 2>&5
11920 ac_status=$?
11921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11922 test $ac_status = 0; } 2>conftest.err; then
11923 soname=conftest
11924 lib=conftest
11925 libobjs=conftest.$ac_objext
11926 deplibs=
11927 wl=$lt_prog_compiler_wl
11928 pic_flag=$lt_prog_compiler_pic
11929 compiler_flags=-v
11930 linker_flags=-v
11931 verstring=
11932 output_objdir=.
11933 libname=conftest
11934 lt_save_allow_undefined_flag=$allow_undefined_flag
11935 allow_undefined_flag=
11936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11937 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11938 ac_status=$?
11939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11940 test $ac_status = 0; }
11941 then
11942 lt_cv_archive_cmds_need_lc=no
11943 else
11944 lt_cv_archive_cmds_need_lc=yes
11945 fi
11946 allow_undefined_flag=$lt_save_allow_undefined_flag
11947 else
11948 cat conftest.err 1>&5
11949 fi
11950 $RM conftest*
11951
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11954 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11955 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11956 ;;
11957 esac
11958 fi
11959 ;;
11960 esac
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
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12114 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12115
12116 if test yes = "$GCC"; then
12117 case $host_os in
12118 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12119 *) lt_awk_arg='/^libraries:/' ;;
12120 esac
12121 case $host_os in
12122 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12123 *) lt_sed_strip_eq='s|=/|/|g' ;;
12124 esac
12125 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12126 case $lt_search_path_spec in
12127 *\;*)
12128 # if the path contains ";" then we assume it to be the separator
12129 # otherwise default to the standard path separator (i.e. ":") - it is
12130 # assumed that no part of a normal pathname contains ";" but that should
12131 # okay in the real world where ";" in dirpaths is itself problematic.
12132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12133 ;;
12134 *)
12135 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12136 ;;
12137 esac
12138 # Ok, now we have the path, separated by spaces, we can step through it
12139 # and add multilib dir if necessary...
12140 lt_tmp_lt_search_path_spec=
12141 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12142 # ...but if some path component already ends with the multilib dir we assume
12143 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12144 case "$lt_multi_os_dir; $lt_search_path_spec " in
12145 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12146 lt_multi_os_dir=
12147 ;;
12148 esac
12149 for lt_sys_path in $lt_search_path_spec; do
12150 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12152 elif test -n "$lt_multi_os_dir"; then
12153 test -d "$lt_sys_path" && \
12154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12155 fi
12156 done
12157 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12158 BEGIN {RS = " "; FS = "/|\n";} {
12159 lt_foo = "";
12160 lt_count = 0;
12161 for (lt_i = NF; lt_i > 0; lt_i--) {
12162 if ($lt_i != "" && $lt_i != ".") {
12163 if ($lt_i == "..") {
12164 lt_count++;
12165 } else {
12166 if (lt_count == 0) {
12167 lt_foo = "/" $lt_i lt_foo;
12168 } else {
12169 lt_count--;
12170 }
12171 }
12172 }
12173 }
12174 if (lt_foo != "") { lt_freq[lt_foo]++; }
12175 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12176 }'`
12177 # AWK program above erroneously prepends '/' to C:/dos/paths
12178 # for these hosts.
12179 case $host_os in
12180 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12181 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12182 esac
12183 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12184 else
12185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12186 fi
12187 library_names_spec=
12188 libname_spec='lib$name'
12189 soname_spec=
12190 shrext_cmds=.so
12191 postinstall_cmds=
12192 postuninstall_cmds=
12193 finish_cmds=
12194 finish_eval=
12195 shlibpath_var=
12196 shlibpath_overrides_runpath=unknown
12197 version_type=none
12198 dynamic_linker="$host_os ld.so"
12199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12200 need_lib_prefix=unknown
12201 hardcode_into_libs=no
12202
12203 # when you set need_version to no, make sure it does not cause -set_version
12204 # flags to be left without arguments
12205 need_version=unknown
12206
12207
12208
12209 case $host_os in
12210 aix3*)
12211 version_type=linux # correct to gnu/linux during the next big refactor
12212 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12213 shlibpath_var=LIBPATH
12214
12215 # AIX 3 has no versioning support, so we append a major version to the name.
12216 soname_spec='$libname$release$shared_ext$major'
12217 ;;
12218
12219 aix[4-9]*)
12220 version_type=linux # correct to gnu/linux during the next big refactor
12221 need_lib_prefix=no
12222 need_version=no
12223 hardcode_into_libs=yes
12224 if test ia64 = "$host_cpu"; then
12225 # AIX 5 supports IA64
12226 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 else
12229 # With GCC up to 2.95.x, collect2 would create an import file
12230 # for dependence libraries. The import file would start with
12231 # the line '#! .'. This would cause the generated library to
12232 # depend on '.', always an invalid library. This was fixed in
12233 # development snapshots of GCC prior to 3.0.
12234 case $host_os in
12235 aix4 | aix4.[01] | aix4.[01].*)
12236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12237 echo ' yes '
12238 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12239 :
12240 else
12241 can_build_shared=no
12242 fi
12243 ;;
12244 esac
12245 # Using Import Files as archive members, it is possible to support
12246 # filename-based versioning of shared library archives on AIX. While
12247 # this would work for both with and without runtime linking, it will
12248 # prevent static linking of such archives. So we do filename-based
12249 # shared library versioning with .so extension only, which is used
12250 # when both runtime linking and shared linking is enabled.
12251 # Unfortunately, runtime linking may impact performance, so we do
12252 # not want this to be the default eventually. Also, we use the
12253 # versioned .so libs for executables only if there is the -brtl
12254 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12255 # To allow for filename-based versioning support, we need to create
12256 # libNAME.so.V as an archive file, containing:
12257 # *) an Import File, referring to the versioned filename of the
12258 # archive as well as the shared archive member, telling the
12259 # bitwidth (32 or 64) of that shared object, and providing the
12260 # list of exported symbols of that shared object, eventually
12261 # decorated with the 'weak' keyword
12262 # *) the shared object with the F_LOADONLY flag set, to really avoid
12263 # it being seen by the linker.
12264 # At run time we better use the real file rather than another symlink,
12265 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12266
12267 case $with_aix_soname,$aix_use_runtimelinking in
12268 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12269 # soname into executable. Probably we can add versioning support to
12270 # collect2, so additional links can be useful in future.
12271 aix,yes) # traditional libtool
12272 dynamic_linker='AIX unversionable lib.so'
12273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12274 # instead of lib<name>.a to let people know that these are not
12275 # typical AIX shared libraries.
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277 ;;
12278 aix,no) # traditional AIX only
12279 dynamic_linker='AIX lib.a(lib.so.V)'
12280 # We preserve .a as extension for shared libraries through AIX4.2
12281 # and later when we are not doing run time linking.
12282 library_names_spec='$libname$release.a $libname.a'
12283 soname_spec='$libname$release$shared_ext$major'
12284 ;;
12285 svr4,*) # full svr4 only
12286 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12287 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12288 # We do not specify a path in Import Files, so LIBPATH fires.
12289 shlibpath_overrides_runpath=yes
12290 ;;
12291 *,yes) # both, prefer svr4
12292 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12293 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12294 # unpreferred sharedlib libNAME.a needs extra handling
12295 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"'
12296 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"'
12297 # We do not specify a path in Import Files, so LIBPATH fires.
12298 shlibpath_overrides_runpath=yes
12299 ;;
12300 *,no) # both, prefer aix
12301 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12302 library_names_spec='$libname$release.a $libname.a'
12303 soname_spec='$libname$release$shared_ext$major'
12304 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12305 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)'
12306 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"'
12307 ;;
12308 esac
12309 shlibpath_var=LIBPATH
12310 fi
12311 ;;
12312
12313 amigaos*)
12314 case $host_cpu in
12315 powerpc)
12316 # Since July 2007 AmigaOS4 officially supports .so libraries.
12317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319 ;;
12320 m68k)
12321 library_names_spec='$libname.ixlibrary $libname.a'
12322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12323 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'
12324 ;;
12325 esac
12326 ;;
12327
12328 beos*)
12329 library_names_spec='$libname$shared_ext'
12330 dynamic_linker="$host_os ld.so"
12331 shlibpath_var=LIBRARY_PATH
12332 ;;
12333
12334 bsdi[45]*)
12335 version_type=linux # correct to gnu/linux during the next big refactor
12336 need_version=no
12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12338 soname_spec='$libname$release$shared_ext$major'
12339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12343 # the default ld.so.conf also contains /usr/contrib/lib and
12344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12345 # libtool to hard-code these into programs
12346 ;;
12347
12348 cygwin* | mingw* | pw32* | cegcc*)
12349 version_type=windows
12350 shrext_cmds=.dll
12351 need_version=no
12352 need_lib_prefix=no
12353
12354 case $GCC,$cc_basename in
12355 yes,*)
12356 # gcc
12357 library_names_spec='$libname.dll.a'
12358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12359 postinstall_cmds='base_file=`basename \$file`~
12360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12361 dldir=$destdir/`dirname \$dlpath`~
12362 test -d \$dldir || mkdir -p \$dldir~
12363 $install_prog $dir/$dlname \$dldir/$dlname~
12364 chmod a+x \$dldir/$dlname~
12365 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12366 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12367 fi'
12368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12369 dlpath=$dir/\$dldll~
12370 $RM \$dlpath'
12371 shlibpath_overrides_runpath=yes
12372
12373 case $host_os in
12374 cygwin*)
12375 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12376 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12377
12378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12379 ;;
12380 mingw* | cegcc*)
12381 # MinGW DLLs use traditional 'lib' prefix
12382 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12383 ;;
12384 pw32*)
12385 # pw32 DLLs use 'pw' prefix rather than 'lib'
12386 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12387 ;;
12388 esac
12389 dynamic_linker='Win32 ld.exe'
12390 ;;
12391
12392 *,cl*)
12393 # Native MSVC
12394 libname_spec='$name'
12395 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12396 library_names_spec='$libname.dll.lib'
12397
12398 case $build_os in
12399 mingw*)
12400 sys_lib_search_path_spec=
12401 lt_save_ifs=$IFS
12402 IFS=';'
12403 for lt_path in $LIB
12404 do
12405 IFS=$lt_save_ifs
12406 # Let DOS variable expansion print the short 8.3 style file name.
12407 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12408 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12409 done
12410 IFS=$lt_save_ifs
12411 # Convert to MSYS style.
12412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12413 ;;
12414 cygwin*)
12415 # Convert to unix form, then to dos form, then back to unix form
12416 # but this time dos style (no spaces!) so that the unix form looks
12417 # like /cygdrive/c/PROGRA~1:/cygdr...
12418 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12419 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12420 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12421 ;;
12422 *)
12423 sys_lib_search_path_spec=$LIB
12424 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12425 # It is most probably a Windows format PATH.
12426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12427 else
12428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12429 fi
12430 # FIXME: find the short name or the path components, as spaces are
12431 # common. (e.g. "Program Files" -> "PROGRA~1")
12432 ;;
12433 esac
12434
12435 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12436 postinstall_cmds='base_file=`basename \$file`~
12437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12438 dldir=$destdir/`dirname \$dlpath`~
12439 test -d \$dldir || mkdir -p \$dldir~
12440 $install_prog $dir/$dlname \$dldir/$dlname'
12441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12442 dlpath=$dir/\$dldll~
12443 $RM \$dlpath'
12444 shlibpath_overrides_runpath=yes
12445 dynamic_linker='Win32 link.exe'
12446 ;;
12447
12448 *)
12449 # Assume MSVC wrapper
12450 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12451 dynamic_linker='Win32 ld.exe'
12452 ;;
12453 esac
12454 # FIXME: first we should search . and the directory the executable is in
12455 shlibpath_var=PATH
12456 ;;
12457
12458 darwin* | rhapsody*)
12459 dynamic_linker="$host_os dyld"
12460 version_type=darwin
12461 need_lib_prefix=no
12462 need_version=no
12463 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12464 soname_spec='$libname$release$major$shared_ext'
12465 shlibpath_overrides_runpath=yes
12466 shlibpath_var=DYLD_LIBRARY_PATH
12467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12468
12469 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12471 ;;
12472
12473 dgux*)
12474 version_type=linux # correct to gnu/linux during the next big refactor
12475 need_lib_prefix=no
12476 need_version=no
12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478 soname_spec='$libname$release$shared_ext$major'
12479 shlibpath_var=LD_LIBRARY_PATH
12480 ;;
12481
12482 freebsd* | dragonfly*)
12483 # DragonFly does not have aout. When/if they implement a new
12484 # versioning mechanism, adjust this.
12485 if test -x /usr/bin/objformat; then
12486 objformat=`/usr/bin/objformat`
12487 else
12488 case $host_os in
12489 freebsd[23].*) objformat=aout ;;
12490 *) objformat=elf ;;
12491 esac
12492 fi
12493 version_type=freebsd-$objformat
12494 case $version_type in
12495 freebsd-elf*)
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 soname_spec='$libname$release$shared_ext$major'
12498 need_version=no
12499 need_lib_prefix=no
12500 ;;
12501 freebsd-*)
12502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12503 need_version=yes
12504 ;;
12505 esac
12506 shlibpath_var=LD_LIBRARY_PATH
12507 case $host_os in
12508 freebsd2.*)
12509 shlibpath_overrides_runpath=yes
12510 ;;
12511 freebsd3.[01]* | freebsdelf3.[01]*)
12512 shlibpath_overrides_runpath=yes
12513 hardcode_into_libs=yes
12514 ;;
12515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12517 shlibpath_overrides_runpath=no
12518 hardcode_into_libs=yes
12519 ;;
12520 *) # from 4.6 on, and DragonFly
12521 shlibpath_overrides_runpath=yes
12522 hardcode_into_libs=yes
12523 ;;
12524 esac
12525 ;;
12526
12527 haiku*)
12528 version_type=linux # correct to gnu/linux during the next big refactor
12529 need_lib_prefix=no
12530 need_version=no
12531 dynamic_linker="$host_os runtime_loader"
12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12533 soname_spec='$libname$release$shared_ext$major'
12534 shlibpath_var=LIBRARY_PATH
12535 shlibpath_overrides_runpath=no
12536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12537 hardcode_into_libs=yes
12538 ;;
12539
12540 hpux9* | hpux10* | hpux11*)
12541 # Give a soname corresponding to the major version so that dld.sl refuses to
12542 # link against other versions.
12543 version_type=sunos
12544 need_lib_prefix=no
12545 need_version=no
12546 case $host_cpu in
12547 ia64*)
12548 shrext_cmds='.so'
12549 hardcode_into_libs=yes
12550 dynamic_linker="$host_os dld.so"
12551 shlibpath_var=LD_LIBRARY_PATH
12552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554 soname_spec='$libname$release$shared_ext$major'
12555 if test 32 = "$HPUX_IA64_MODE"; then
12556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12557 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12558 else
12559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12560 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12561 fi
12562 ;;
12563 hppa*64*)
12564 shrext_cmds='.sl'
12565 hardcode_into_libs=yes
12566 dynamic_linker="$host_os dld.sl"
12567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12570 soname_spec='$libname$release$shared_ext$major'
12571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12573 ;;
12574 *)
12575 shrext_cmds='.sl'
12576 dynamic_linker="$host_os dld.sl"
12577 shlibpath_var=SHLIB_PATH
12578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12580 soname_spec='$libname$release$shared_ext$major'
12581 ;;
12582 esac
12583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12584 postinstall_cmds='chmod 555 $lib'
12585 # or fails outright, so override atomically:
12586 install_override_mode=555
12587 ;;
12588
12589 interix[3-9]*)
12590 version_type=linux # correct to gnu/linux during the next big refactor
12591 need_lib_prefix=no
12592 need_version=no
12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12594 soname_spec='$libname$release$shared_ext$major'
12595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12596 shlibpath_var=LD_LIBRARY_PATH
12597 shlibpath_overrides_runpath=no
12598 hardcode_into_libs=yes
12599 ;;
12600
12601 irix5* | irix6* | nonstopux*)
12602 case $host_os in
12603 nonstopux*) version_type=nonstopux ;;
12604 *)
12605 if test yes = "$lt_cv_prog_gnu_ld"; then
12606 version_type=linux # correct to gnu/linux during the next big refactor
12607 else
12608 version_type=irix
12609 fi ;;
12610 esac
12611 need_lib_prefix=no
12612 need_version=no
12613 soname_spec='$libname$release$shared_ext$major'
12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12615 case $host_os in
12616 irix5* | nonstopux*)
12617 libsuff= shlibsuff=
12618 ;;
12619 *)
12620 case $LD in # libtool.m4 will add one of these switches to LD
12621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12622 libsuff= shlibsuff= libmagic=32-bit;;
12623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12624 libsuff=32 shlibsuff=N32 libmagic=N32;;
12625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12627 *) libsuff= shlibsuff= libmagic=never-match;;
12628 esac
12629 ;;
12630 esac
12631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12632 shlibpath_overrides_runpath=no
12633 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12634 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12635 hardcode_into_libs=yes
12636 ;;
12637
12638 # No shared lib support for Linux oldld, aout, or coff.
12639 linux*oldld* | linux*aout* | linux*coff*)
12640 dynamic_linker=no
12641 ;;
12642
12643 linux*android*)
12644 version_type=none # Android doesn't support versioned libraries.
12645 need_lib_prefix=no
12646 need_version=no
12647 library_names_spec='$libname$release$shared_ext'
12648 soname_spec='$libname$release$shared_ext'
12649 finish_cmds=
12650 shlibpath_var=LD_LIBRARY_PATH
12651 shlibpath_overrides_runpath=yes
12652
12653 # This implies no fast_install, which is unacceptable.
12654 # Some rework will be needed to allow for fast_install
12655 # before this can be enabled.
12656 hardcode_into_libs=yes
12657
12658 dynamic_linker='Android linker'
12659 # Don't embed -rpath directories since the linker doesn't support them.
12660 hardcode_libdir_flag_spec='-L$libdir'
12661 ;;
12662
12663 # This must be glibc/ELF.
12664 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12665 version_type=linux # correct to gnu/linux during the next big refactor
12666 need_lib_prefix=no
12667 need_version=no
12668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12669 soname_spec='$libname$release$shared_ext$major'
12670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12671 shlibpath_var=LD_LIBRARY_PATH
12672 shlibpath_overrides_runpath=no
12673
12674 # Some binutils ld are patched to set DT_RUNPATH
12675 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 lt_cv_shlibpath_overrides_runpath=no
12679 save_LDFLAGS=$LDFLAGS
12680 save_libdir=$libdir
12681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685
12686 int
12687 main ()
12688 {
12689
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12696 lt_cv_shlibpath_overrides_runpath=yes
12697 fi
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LDFLAGS=$save_LDFLAGS
12702 libdir=$save_libdir
12703
12704 fi
12705
12706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12707
12708 # This implies no fast_install, which is unacceptable.
12709 # Some rework will be needed to allow for fast_install
12710 # before this can be enabled.
12711 hardcode_into_libs=yes
12712
12713 # Add ABI-specific directories to the system library path.
12714 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12715
12716 # Ideally, we could use ldconfig to report *all* directores which are
12717 # searched for libraries, however this is still not possible. Aside from not
12718 # being certain /sbin/ldconfig is available, command
12719 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12720 # even though it is searched at run-time. Try to do the best guess by
12721 # appending ld.so.conf contents (and includes) to the search path.
12722 if test -f /etc/ld.so.conf; then
12723 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' ' '`
12724 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12725 fi
12726
12727 # We used to test for /lib/ld.so.1 and disable shared libraries on
12728 # powerpc, because MkLinux only supported shared libraries with the
12729 # GNU dynamic linker. Since this was broken with cross compilers,
12730 # most powerpc-linux boxes support dynamic linking these days and
12731 # people can always --disable-shared, the test was removed, and we
12732 # assume the GNU/Linux dynamic linker is in use.
12733 dynamic_linker='GNU/Linux ld.so'
12734 ;;
12735
12736 netbsd*)
12737 version_type=sunos
12738 need_lib_prefix=no
12739 need_version=no
12740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12743 dynamic_linker='NetBSD (a.out) ld.so'
12744 else
12745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12746 soname_spec='$libname$release$shared_ext$major'
12747 dynamic_linker='NetBSD ld.elf_so'
12748 fi
12749 shlibpath_var=LD_LIBRARY_PATH
12750 shlibpath_overrides_runpath=yes
12751 hardcode_into_libs=yes
12752 ;;
12753
12754 newsos6)
12755 version_type=linux # correct to gnu/linux during the next big refactor
12756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12757 shlibpath_var=LD_LIBRARY_PATH
12758 shlibpath_overrides_runpath=yes
12759 ;;
12760
12761 *nto* | *qnx*)
12762 version_type=qnx
12763 need_lib_prefix=no
12764 need_version=no
12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766 soname_spec='$libname$release$shared_ext$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath=no
12769 hardcode_into_libs=yes
12770 dynamic_linker='ldqnx.so'
12771 ;;
12772
12773 openbsd* | bitrig*)
12774 version_type=sunos
12775 sys_lib_dlsearch_path_spec=/usr/lib
12776 need_lib_prefix=no
12777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12778 need_version=no
12779 else
12780 need_version=yes
12781 fi
12782 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 shlibpath_overrides_runpath=yes
12786 ;;
12787
12788 os2*)
12789 libname_spec='$name'
12790 version_type=windows
12791 shrext_cmds=.dll
12792 need_version=no
12793 need_lib_prefix=no
12794 # OS/2 can only load a DLL with a base name of 8 characters or less.
12795 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12796 v=$($ECHO $release$versuffix | tr -d .-);
12797 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12798 $ECHO $n$v`$shared_ext'
12799 library_names_spec='${libname}_dll.$libext'
12800 dynamic_linker='OS/2 ld.exe'
12801 shlibpath_var=BEGINLIBPATH
12802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12804 postinstall_cmds='base_file=`basename \$file`~
12805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12806 dldir=$destdir/`dirname \$dlpath`~
12807 test -d \$dldir || mkdir -p \$dldir~
12808 $install_prog $dir/$dlname \$dldir/$dlname~
12809 chmod a+x \$dldir/$dlname~
12810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12812 fi'
12813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12814 dlpath=$dir/\$dldll~
12815 $RM \$dlpath'
12816 ;;
12817
12818 osf3* | osf4* | osf5*)
12819 version_type=osf
12820 need_lib_prefix=no
12821 need_version=no
12822 soname_spec='$libname$release$shared_ext$major'
12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12827 ;;
12828
12829 rdos*)
12830 dynamic_linker=no
12831 ;;
12832
12833 solaris*)
12834 version_type=linux # correct to gnu/linux during the next big refactor
12835 need_lib_prefix=no
12836 need_version=no
12837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12838 soname_spec='$libname$release$shared_ext$major'
12839 shlibpath_var=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath=yes
12841 hardcode_into_libs=yes
12842 # ldd complains unless libraries are executable
12843 postinstall_cmds='chmod +x $lib'
12844 ;;
12845
12846 sunos4*)
12847 version_type=sunos
12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 shlibpath_overrides_runpath=yes
12852 if test yes = "$with_gnu_ld"; then
12853 need_lib_prefix=no
12854 fi
12855 need_version=yes
12856 ;;
12857
12858 sysv4 | sysv4.3*)
12859 version_type=linux # correct to gnu/linux during the next big refactor
12860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12861 soname_spec='$libname$release$shared_ext$major'
12862 shlibpath_var=LD_LIBRARY_PATH
12863 case $host_vendor in
12864 sni)
12865 shlibpath_overrides_runpath=no
12866 need_lib_prefix=no
12867 runpath_var=LD_RUN_PATH
12868 ;;
12869 siemens)
12870 need_lib_prefix=no
12871 ;;
12872 motorola)
12873 need_lib_prefix=no
12874 need_version=no
12875 shlibpath_overrides_runpath=no
12876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12877 ;;
12878 esac
12879 ;;
12880
12881 sysv4*MP*)
12882 if test -d /usr/nec; then
12883 version_type=linux # correct to gnu/linux during the next big refactor
12884 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12885 soname_spec='$libname$shared_ext.$major'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 fi
12888 ;;
12889
12890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12891 version_type=sco
12892 need_lib_prefix=no
12893 need_version=no
12894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12895 soname_spec='$libname$release$shared_ext$major'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 shlibpath_overrides_runpath=yes
12898 hardcode_into_libs=yes
12899 if test yes = "$with_gnu_ld"; then
12900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12901 else
12902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12903 case $host_os in
12904 sco3.2v5*)
12905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12906 ;;
12907 esac
12908 fi
12909 sys_lib_dlsearch_path_spec='/usr/lib'
12910 ;;
12911
12912 tpf*)
12913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12914 version_type=linux # correct to gnu/linux during the next big refactor
12915 need_lib_prefix=no
12916 need_version=no
12917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12918 shlibpath_var=LD_LIBRARY_PATH
12919 shlibpath_overrides_runpath=no
12920 hardcode_into_libs=yes
12921 ;;
12922
12923 uts4*)
12924 version_type=linux # correct to gnu/linux during the next big refactor
12925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12926 soname_spec='$libname$release$shared_ext$major'
12927 shlibpath_var=LD_LIBRARY_PATH
12928 ;;
12929
12930 *)
12931 dynamic_linker=no
12932 ;;
12933 esac
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12935 $as_echo "$dynamic_linker" >&6; }
12936 test no = "$dynamic_linker" && can_build_shared=no
12937
12938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12939 if test yes = "$GCC"; then
12940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12941 fi
12942
12943 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12944 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12945 fi
12946
12947 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12948 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12949 fi
12950
12951 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12952 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12953
12954 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12955 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12956
12957 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12958 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13057 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13058 hardcode_action=
13059 if test -n "$hardcode_libdir_flag_spec" ||
13060 test -n "$runpath_var" ||
13061 test yes = "$hardcode_automatic"; then
13062
13063 # We can hardcode non-existent directories.
13064 if test no != "$hardcode_direct" &&
13065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13066 # have to relink, otherwise we might link with an installed library
13067 # when we should be linking with a yet-to-be-installed one
13068 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13069 test no != "$hardcode_minus_L"; then
13070 # Linking always hardcodes the temporary library directory.
13071 hardcode_action=relink
13072 else
13073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13074 hardcode_action=immediate
13075 fi
13076 else
13077 # We cannot hardcode anything, or else we can only hardcode existing
13078 # directories.
13079 hardcode_action=unsupported
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13082 $as_echo "$hardcode_action" >&6; }
13083
13084 if test relink = "$hardcode_action" ||
13085 test yes = "$inherit_rpath"; then
13086 # Fast installation is not supported
13087 enable_fast_install=no
13088 elif test yes = "$shlibpath_overrides_runpath" ||
13089 test no = "$enable_shared"; then
13090 # Fast installation is not necessary
13091 enable_fast_install=needless
13092 fi
13093
13094
13095
13096
13097
13098
13099 if test yes != "$enable_dlopen"; then
13100 enable_dlopen=unknown
13101 enable_dlopen_self=unknown
13102 enable_dlopen_self_static=unknown
13103 else
13104 lt_cv_dlopen=no
13105 lt_cv_dlopen_libs=
13106
13107 case $host_os in
13108 beos*)
13109 lt_cv_dlopen=load_add_on
13110 lt_cv_dlopen_libs=
13111 lt_cv_dlopen_self=yes
13112 ;;
13113
13114 mingw* | pw32* | cegcc*)
13115 lt_cv_dlopen=LoadLibrary
13116 lt_cv_dlopen_libs=
13117 ;;
13118
13119 cygwin*)
13120 lt_cv_dlopen=dlopen
13121 lt_cv_dlopen_libs=
13122 ;;
13123
13124 darwin*)
13125 # if libdl is installed we need to link against it
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13127 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13128 if ${ac_cv_lib_dl_dlopen+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-ldl $LIBS"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 char dlopen ();
13143 int
13144 main ()
13145 {
13146 return dlopen ();
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_dl_dlopen=yes
13153 else
13154 ac_cv_lib_dl_dlopen=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13161 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13162 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13163 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13164 else
13165
13166 lt_cv_dlopen=dyld
13167 lt_cv_dlopen_libs=
13168 lt_cv_dlopen_self=yes
13169
13170 fi
13171
13172 ;;
13173
13174 tpf*)
13175 # Don't try to run any link tests for TPF. We know it's impossible
13176 # because TPF is a cross-compiler, and we know how we open DSOs.
13177 lt_cv_dlopen=dlopen
13178 lt_cv_dlopen_libs=
13179 lt_cv_dlopen_self=no
13180 ;;
13181
13182 *)
13183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13184 if test "x$ac_cv_func_shl_load" = xyes; then :
13185 lt_cv_dlopen=shl_load
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13188 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13189 if ${ac_cv_lib_dld_shl_load+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-ldld $LIBS"
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13196
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char shl_load ();
13204 int
13205 main ()
13206 {
13207 return shl_load ();
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 ac_cv_lib_dld_shl_load=yes
13214 else
13215 ac_cv_lib_dld_shl_load=no
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13222 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13223 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13224 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13225 else
13226 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13227 if test "x$ac_cv_func_dlopen" = xyes; then :
13228 lt_cv_dlopen=dlopen
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13232 if ${ac_cv_lib_dl_dlopen+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-ldl $LIBS"
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239
13240 /* Override any GCC internal prototype to avoid an error.
13241 Use char because int might match the return type of a GCC
13242 builtin and then its argument prototype would still apply. */
13243 #ifdef __cplusplus
13244 extern "C"
13245 #endif
13246 char dlopen ();
13247 int
13248 main ()
13249 {
13250 return dlopen ();
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 ac_cv_lib_dl_dlopen=yes
13257 else
13258 ac_cv_lib_dl_dlopen=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13263 fi
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13267 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13270 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13271 if ${ac_cv_lib_svld_dlopen+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-lsvld $LIBS"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char dlopen ();
13286 int
13287 main ()
13288 {
13289 return dlopen ();
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_link "$LINENO"; then :
13295 ac_cv_lib_svld_dlopen=yes
13296 else
13297 ac_cv_lib_svld_dlopen=no
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13304 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13305 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13306 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13309 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13310 if ${ac_cv_lib_dld_dld_link+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 ac_check_lib_save_LIBS=$LIBS
13314 LIBS="-ldld $LIBS"
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317
13318 /* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13321 #ifdef __cplusplus
13322 extern "C"
13323 #endif
13324 char dld_link ();
13325 int
13326 main ()
13327 {
13328 return dld_link ();
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_link "$LINENO"; then :
13334 ac_cv_lib_dld_dld_link=yes
13335 else
13336 ac_cv_lib_dld_dld_link=no
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13340 LIBS=$ac_check_lib_save_LIBS
13341 fi
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13343 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13344 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13345 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13346 fi
13347
13348
13349 fi
13350
13351
13352 fi
13353
13354
13355 fi
13356
13357
13358 fi
13359
13360
13361 fi
13362
13363 ;;
13364 esac
13365
13366 if test no = "$lt_cv_dlopen"; then
13367 enable_dlopen=no
13368 else
13369 enable_dlopen=yes
13370 fi
13371
13372 case $lt_cv_dlopen in
13373 dlopen)
13374 save_CPPFLAGS=$CPPFLAGS
13375 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13376
13377 save_LDFLAGS=$LDFLAGS
13378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13379
13380 save_LIBS=$LIBS
13381 LIBS="$lt_cv_dlopen_libs $LIBS"
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13384 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13385 if ${lt_cv_dlopen_self+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 if test yes = "$cross_compiling"; then :
13389 lt_cv_dlopen_self=cross
13390 else
13391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13392 lt_status=$lt_dlunknown
13393 cat > conftest.$ac_ext <<_LT_EOF
13394 #line $LINENO "configure"
13395 #include "confdefs.h"
13396
13397 #if HAVE_DLFCN_H
13398 #include <dlfcn.h>
13399 #endif
13400
13401 #include <stdio.h>
13402
13403 #ifdef RTLD_GLOBAL
13404 # define LT_DLGLOBAL RTLD_GLOBAL
13405 #else
13406 # ifdef DL_GLOBAL
13407 # define LT_DLGLOBAL DL_GLOBAL
13408 # else
13409 # define LT_DLGLOBAL 0
13410 # endif
13411 #endif
13412
13413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13414 find out it does not work in some platform. */
13415 #ifndef LT_DLLAZY_OR_NOW
13416 # ifdef RTLD_LAZY
13417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13418 # else
13419 # ifdef DL_LAZY
13420 # define LT_DLLAZY_OR_NOW DL_LAZY
13421 # else
13422 # ifdef RTLD_NOW
13423 # define LT_DLLAZY_OR_NOW RTLD_NOW
13424 # else
13425 # ifdef DL_NOW
13426 # define LT_DLLAZY_OR_NOW DL_NOW
13427 # else
13428 # define LT_DLLAZY_OR_NOW 0
13429 # endif
13430 # endif
13431 # endif
13432 # endif
13433 #endif
13434
13435 /* When -fvisibility=hidden is used, assume the code has been annotated
13436 correspondingly for the symbols needed. */
13437 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13438 int fnord () __attribute__((visibility("default")));
13439 #endif
13440
13441 int fnord () { return 42; }
13442 int main ()
13443 {
13444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13445 int status = $lt_dlunknown;
13446
13447 if (self)
13448 {
13449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13450 else
13451 {
13452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13453 else puts (dlerror ());
13454 }
13455 /* dlclose (self); */
13456 }
13457 else
13458 puts (dlerror ());
13459
13460 return status;
13461 }
13462 _LT_EOF
13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13464 (eval $ac_link) 2>&5
13465 ac_status=$?
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13467 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13468 (./conftest; exit; ) >&5 2>/dev/null
13469 lt_status=$?
13470 case x$lt_status in
13471 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13472 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13473 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13474 esac
13475 else :
13476 # compilation failed
13477 lt_cv_dlopen_self=no
13478 fi
13479 fi
13480 rm -fr conftest*
13481
13482
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13485 $as_echo "$lt_cv_dlopen_self" >&6; }
13486
13487 if test yes = "$lt_cv_dlopen_self"; then
13488 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13490 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13491 if ${lt_cv_dlopen_self_static+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 if test yes = "$cross_compiling"; then :
13495 lt_cv_dlopen_self_static=cross
13496 else
13497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13498 lt_status=$lt_dlunknown
13499 cat > conftest.$ac_ext <<_LT_EOF
13500 #line $LINENO "configure"
13501 #include "confdefs.h"
13502
13503 #if HAVE_DLFCN_H
13504 #include <dlfcn.h>
13505 #endif
13506
13507 #include <stdio.h>
13508
13509 #ifdef RTLD_GLOBAL
13510 # define LT_DLGLOBAL RTLD_GLOBAL
13511 #else
13512 # ifdef DL_GLOBAL
13513 # define LT_DLGLOBAL DL_GLOBAL
13514 # else
13515 # define LT_DLGLOBAL 0
13516 # endif
13517 #endif
13518
13519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13520 find out it does not work in some platform. */
13521 #ifndef LT_DLLAZY_OR_NOW
13522 # ifdef RTLD_LAZY
13523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13524 # else
13525 # ifdef DL_LAZY
13526 # define LT_DLLAZY_OR_NOW DL_LAZY
13527 # else
13528 # ifdef RTLD_NOW
13529 # define LT_DLLAZY_OR_NOW RTLD_NOW
13530 # else
13531 # ifdef DL_NOW
13532 # define LT_DLLAZY_OR_NOW DL_NOW
13533 # else
13534 # define LT_DLLAZY_OR_NOW 0
13535 # endif
13536 # endif
13537 # endif
13538 # endif
13539 #endif
13540
13541 /* When -fvisibility=hidden is used, assume the code has been annotated
13542 correspondingly for the symbols needed. */
13543 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13544 int fnord () __attribute__((visibility("default")));
13545 #endif
13546
13547 int fnord () { return 42; }
13548 int main ()
13549 {
13550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13551 int status = $lt_dlunknown;
13552
13553 if (self)
13554 {
13555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13556 else
13557 {
13558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13559 else puts (dlerror ());
13560 }
13561 /* dlclose (self); */
13562 }
13563 else
13564 puts (dlerror ());
13565
13566 return status;
13567 }
13568 _LT_EOF
13569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13570 (eval $ac_link) 2>&5
13571 ac_status=$?
13572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13573 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13574 (./conftest; exit; ) >&5 2>/dev/null
13575 lt_status=$?
13576 case x$lt_status in
13577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13579 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13580 esac
13581 else :
13582 # compilation failed
13583 lt_cv_dlopen_self_static=no
13584 fi
13585 fi
13586 rm -fr conftest*
13587
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13591 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13592 fi
13593
13594 CPPFLAGS=$save_CPPFLAGS
13595 LDFLAGS=$save_LDFLAGS
13596 LIBS=$save_LIBS
13597 ;;
13598 esac
13599
13600 case $lt_cv_dlopen_self in
13601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13602 *) enable_dlopen_self=unknown ;;
13603 esac
13604
13605 case $lt_cv_dlopen_self_static in
13606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13607 *) enable_dlopen_self_static=unknown ;;
13608 esac
13609 fi
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627 striplib=
13628 old_striplib=
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13630 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13631 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13635 $as_echo "yes" >&6; }
13636 else
13637 # FIXME - insert some real tests, host_os isn't really good enough
13638 case $host_os in
13639 darwin*)
13640 if test -n "$STRIP"; then
13641 striplib="$STRIP -x"
13642 old_striplib="$STRIP -S"
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13644 $as_echo "yes" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648 fi
13649 ;;
13650 *)
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 ;;
13654 esac
13655 fi
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668 # Report what library types will actually be built
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13670 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13672 $as_echo "$can_build_shared" >&6; }
13673
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13675 $as_echo_n "checking whether to build shared libraries... " >&6; }
13676 test no = "$can_build_shared" && enable_shared=no
13677
13678 # On AIX, shared libraries and static libraries use the same namespace, and
13679 # are all built from PIC.
13680 case $host_os in
13681 aix3*)
13682 test yes = "$enable_shared" && enable_static=no
13683 if test -n "$RANLIB"; then
13684 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13685 postinstall_cmds='$RANLIB $lib'
13686 fi
13687 ;;
13688
13689 aix[4-9]*)
13690 if test ia64 != "$host_cpu"; then
13691 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13692 yes,aix,yes) ;; # shared object as lib.so file only
13693 yes,svr4,*) ;; # shared object as lib.so archive member only
13694 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13695 esac
13696 fi
13697 ;;
13698 esac
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13700 $as_echo "$enable_shared" >&6; }
13701
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13703 $as_echo_n "checking whether to build static libraries... " >&6; }
13704 # Make sure either enable_shared or enable_static is yes.
13705 test yes = "$enable_shared" || enable_static=yes
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13707 $as_echo "$enable_static" >&6; }
13708
13709
13710
13711
13712 fi
13713 ac_ext=cpp
13714 ac_cpp='$CXXCPP $CPPFLAGS'
13715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13718
13719 CC=$lt_save_CC
13720
13721 if test -n "$CXX" && ( test no != "$CXX" &&
13722 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13723 (test g++ != "$CXX"))); then
13724 ac_ext=cpp
13725 ac_cpp='$CXXCPP $CPPFLAGS'
13726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13730 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13731 if test -z "$CXXCPP"; then
13732 if ${ac_cv_prog_CXXCPP+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 # Double quotes because CXXCPP needs to be expanded
13736 for CXXCPP in "$CXX -E" "/lib/cpp"
13737 do
13738 ac_preproc_ok=false
13739 for ac_cxx_preproc_warn_flag in '' yes
13740 do
13741 # Use a header file that comes with gcc, so configuring glibc
13742 # with a fresh cross-compiler works.
13743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13744 # <limits.h> exists even on freestanding compilers.
13745 # On the NeXT, cc -E runs the code through the compiler's parser,
13746 # not just through cpp. "Syntax error" is here to catch this case.
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 #ifdef __STDC__
13750 # include <limits.h>
13751 #else
13752 # include <assert.h>
13753 #endif
13754 Syntax error
13755 _ACEOF
13756 if ac_fn_cxx_try_cpp "$LINENO"; then :
13757
13758 else
13759 # Broken: fails on valid input.
13760 continue
13761 fi
13762 rm -f conftest.err conftest.i conftest.$ac_ext
13763
13764 # OK, works on sane cases. Now check whether nonexistent headers
13765 # can be detected and how.
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 #include <ac_nonexistent.h>
13769 _ACEOF
13770 if ac_fn_cxx_try_cpp "$LINENO"; then :
13771 # Broken: success on invalid input.
13772 continue
13773 else
13774 # Passes both tests.
13775 ac_preproc_ok=:
13776 break
13777 fi
13778 rm -f conftest.err conftest.i conftest.$ac_ext
13779
13780 done
13781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13782 rm -f conftest.i conftest.err conftest.$ac_ext
13783 if $ac_preproc_ok; then :
13784 break
13785 fi
13786
13787 done
13788 ac_cv_prog_CXXCPP=$CXXCPP
13789
13790 fi
13791 CXXCPP=$ac_cv_prog_CXXCPP
13792 else
13793 ac_cv_prog_CXXCPP=$CXXCPP
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13796 $as_echo "$CXXCPP" >&6; }
13797 ac_preproc_ok=false
13798 for ac_cxx_preproc_warn_flag in '' yes
13799 do
13800 # Use a header file that comes with gcc, so configuring glibc
13801 # with a fresh cross-compiler works.
13802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13803 # <limits.h> exists even on freestanding compilers.
13804 # On the NeXT, cc -E runs the code through the compiler's parser,
13805 # not just through cpp. "Syntax error" is here to catch this case.
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 #ifdef __STDC__
13809 # include <limits.h>
13810 #else
13811 # include <assert.h>
13812 #endif
13813 Syntax error
13814 _ACEOF
13815 if ac_fn_cxx_try_cpp "$LINENO"; then :
13816
13817 else
13818 # Broken: fails on valid input.
13819 continue
13820 fi
13821 rm -f conftest.err conftest.i conftest.$ac_ext
13822
13823 # OK, works on sane cases. Now check whether nonexistent headers
13824 # can be detected and how.
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 #include <ac_nonexistent.h>
13828 _ACEOF
13829 if ac_fn_cxx_try_cpp "$LINENO"; then :
13830 # Broken: success on invalid input.
13831 continue
13832 else
13833 # Passes both tests.
13834 ac_preproc_ok=:
13835 break
13836 fi
13837 rm -f conftest.err conftest.i conftest.$ac_ext
13838
13839 done
13840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13841 rm -f conftest.i conftest.err conftest.$ac_ext
13842 if $ac_preproc_ok; then :
13843
13844 else
13845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13847 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13848 See \`config.log' for more details" "$LINENO" 5; }
13849 fi
13850
13851 ac_ext=cpp
13852 ac_cpp='$CXXCPP $CPPFLAGS'
13853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13856
13857 else
13858 _lt_caught_CXX_error=yes
13859 fi
13860
13861 ac_ext=cpp
13862 ac_cpp='$CXXCPP $CPPFLAGS'
13863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13866
13867 archive_cmds_need_lc_CXX=no
13868 allow_undefined_flag_CXX=
13869 always_export_symbols_CXX=no
13870 archive_expsym_cmds_CXX=
13871 compiler_needs_object_CXX=no
13872 export_dynamic_flag_spec_CXX=
13873 hardcode_direct_CXX=no
13874 hardcode_direct_absolute_CXX=no
13875 hardcode_libdir_flag_spec_CXX=
13876 hardcode_libdir_separator_CXX=
13877 hardcode_minus_L_CXX=no
13878 hardcode_shlibpath_var_CXX=unsupported
13879 hardcode_automatic_CXX=no
13880 inherit_rpath_CXX=no
13881 module_cmds_CXX=
13882 module_expsym_cmds_CXX=
13883 link_all_deplibs_CXX=unknown
13884 old_archive_cmds_CXX=$old_archive_cmds
13885 reload_flag_CXX=$reload_flag
13886 reload_cmds_CXX=$reload_cmds
13887 no_undefined_flag_CXX=
13888 whole_archive_flag_spec_CXX=
13889 enable_shared_with_static_runtimes_CXX=no
13890
13891 # Source file extension for C++ test sources.
13892 ac_ext=cpp
13893
13894 # Object file extension for compiled C++ test sources.
13895 objext=o
13896 objext_CXX=$objext
13897
13898 # No sense in running all these tests if we already determined that
13899 # the CXX compiler isn't working. Some variables (like enable_shared)
13900 # are currently assumed to apply to all compilers on this platform,
13901 # and will be corrupted by setting them based on a non-working compiler.
13902 if test yes != "$_lt_caught_CXX_error"; then
13903 # Code to be used in simple compile tests
13904 lt_simple_compile_test_code="int some_variable = 0;"
13905
13906 # Code to be used in simple link tests
13907 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13908
13909 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13910
13911
13912
13913
13914
13915
13916 # If no C compiler was specified, use CC.
13917 LTCC=${LTCC-"$CC"}
13918
13919 # If no C compiler flags were specified, use CFLAGS.
13920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13921
13922 # Allow CC to be a program name with arguments.
13923 compiler=$CC
13924
13925
13926 # save warnings/boilerplate of simple test code
13927 ac_outfile=conftest.$ac_objext
13928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13930 _lt_compiler_boilerplate=`cat conftest.err`
13931 $RM conftest*
13932
13933 ac_outfile=conftest.$ac_objext
13934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13936 _lt_linker_boilerplate=`cat conftest.err`
13937 $RM -r conftest*
13938
13939
13940 # Allow CC to be a program name with arguments.
13941 lt_save_CC=$CC
13942 lt_save_CFLAGS=$CFLAGS
13943 lt_save_LD=$LD
13944 lt_save_GCC=$GCC
13945 GCC=$GXX
13946 lt_save_with_gnu_ld=$with_gnu_ld
13947 lt_save_path_LD=$lt_cv_path_LD
13948 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13949 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13950 else
13951 $as_unset lt_cv_prog_gnu_ld
13952 fi
13953 if test -n "${lt_cv_path_LDCXX+set}"; then
13954 lt_cv_path_LD=$lt_cv_path_LDCXX
13955 else
13956 $as_unset lt_cv_path_LD
13957 fi
13958 test -z "${LDCXX+set}" || LD=$LDCXX
13959 CC=${CXX-"c++"}
13960 CFLAGS=$CXXFLAGS
13961 compiler=$CC
13962 compiler_CXX=$CC
13963 func_cc_basename $compiler
13964 cc_basename=$func_cc_basename_result
13965
13966
13967 if test -n "$compiler"; then
13968 # We don't want -fno-exception when compiling C++ code, so set the
13969 # no_builtin_flag separately
13970 if test yes = "$GXX"; then
13971 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13972 else
13973 lt_prog_compiler_no_builtin_flag_CXX=
13974 fi
13975
13976 if test yes = "$GXX"; then
13977 # Set up default GNU C++ configuration
13978
13979
13980
13981 # Check whether --with-gnu-ld was given.
13982 if test "${with_gnu_ld+set}" = set; then :
13983 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13984 else
13985 with_gnu_ld=no
13986 fi
13987
13988 ac_prog=ld
13989 if test yes = "$GCC"; then
13990 # Check if gcc -print-prog-name=ld gives a path.
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13992 $as_echo_n "checking for ld used by $CC... " >&6; }
13993 case $host in
13994 *-*-mingw*)
13995 # gcc leaves a trailing carriage return, which upsets mingw
13996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13997 *)
13998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13999 esac
14000 case $ac_prog in
14001 # Accept absolute paths.
14002 [\\/]* | ?:[\\/]*)
14003 re_direlt='/[^/][^/]*/\.\./'
14004 # Canonicalize the pathname of ld
14005 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14006 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14007 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14008 done
14009 test -z "$LD" && LD=$ac_prog
14010 ;;
14011 "")
14012 # If it fails, then pretend we aren't using GCC.
14013 ac_prog=ld
14014 ;;
14015 *)
14016 # If it is relative, then search for the first ld in PATH.
14017 with_gnu_ld=unknown
14018 ;;
14019 esac
14020 elif test yes = "$with_gnu_ld"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14022 $as_echo_n "checking for GNU ld... " >&6; }
14023 else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14025 $as_echo_n "checking for non-GNU ld... " >&6; }
14026 fi
14027 if ${lt_cv_path_LD+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 if test -z "$LD"; then
14031 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14032 for ac_dir in $PATH; do
14033 IFS=$lt_save_ifs
14034 test -z "$ac_dir" && ac_dir=.
14035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14036 lt_cv_path_LD=$ac_dir/$ac_prog
14037 # Check to see if the program is GNU ld. I'd rather use --version,
14038 # but apparently some variants of GNU ld only accept -v.
14039 # Break only if it was the GNU/non-GNU ld that we prefer.
14040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14041 *GNU* | *'with BFD'*)
14042 test no != "$with_gnu_ld" && break
14043 ;;
14044 *)
14045 test yes != "$with_gnu_ld" && break
14046 ;;
14047 esac
14048 fi
14049 done
14050 IFS=$lt_save_ifs
14051 else
14052 lt_cv_path_LD=$LD # Let the user override the test with a path.
14053 fi
14054 fi
14055
14056 LD=$lt_cv_path_LD
14057 if test -n "$LD"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14059 $as_echo "$LD" >&6; }
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14063 fi
14064 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14066 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14067 if ${lt_cv_prog_gnu_ld+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14071 case `$LD -v 2>&1 </dev/null` in
14072 *GNU* | *'with BFD'*)
14073 lt_cv_prog_gnu_ld=yes
14074 ;;
14075 *)
14076 lt_cv_prog_gnu_ld=no
14077 ;;
14078 esac
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14081 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14082 with_gnu_ld=$lt_cv_prog_gnu_ld
14083
14084
14085
14086
14087
14088
14089
14090 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14091 # archiving commands below assume that GNU ld is being used.
14092 if test yes = "$with_gnu_ld"; then
14093 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14094 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'
14095
14096 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14097 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14098
14099 # If archive_cmds runs LD, not CC, wlarc should be empty
14100 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14101 # investigate it a little bit more. (MM)
14102 wlarc='$wl'
14103
14104 # ancient GNU ld didn't support --whole-archive et. al.
14105 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14106 $GREP 'no-whole-archive' > /dev/null; then
14107 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14108 else
14109 whole_archive_flag_spec_CXX=
14110 fi
14111 else
14112 with_gnu_ld=no
14113 wlarc=
14114
14115 # A generic and very simple default shared library creation
14116 # command for GNU C++ for the case where it uses the native
14117 # linker, instead of GNU ld. If possible, this setting should
14118 # overridden to take advantage of the native linker features on
14119 # the platform it is being used on.
14120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14121 fi
14122
14123 # Commands to make compiler produce verbose output that lists
14124 # what "hidden" libraries, object files and flags are used when
14125 # linking a shared library.
14126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14127
14128 else
14129 GXX=no
14130 with_gnu_ld=no
14131 wlarc=
14132 fi
14133
14134 # PORTME: fill in a description of your system's C++ link characteristics
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14137 ld_shlibs_CXX=yes
14138 case $host_os in
14139 aix3*)
14140 # FIXME: insert proper C++ library support
14141 ld_shlibs_CXX=no
14142 ;;
14143 aix[4-9]*)
14144 if test ia64 = "$host_cpu"; then
14145 # On IA64, the linker does run time linking by default, so we don't
14146 # have to do anything special.
14147 aix_use_runtimelinking=no
14148 exp_sym_flag='-Bexport'
14149 no_entry_flag=
14150 else
14151 aix_use_runtimelinking=no
14152
14153 # Test if we are trying to use run time linking or normal
14154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14155 # have runtime linking enabled, and use it for executables.
14156 # For shared libraries, we enable/disable runtime linking
14157 # depending on the kind of the shared library created -
14158 # when "with_aix_soname,aix_use_runtimelinking" is:
14159 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14160 # "aix,yes" lib.so shared, rtl:yes, for executables
14161 # lib.a static archive
14162 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14163 # lib.a(lib.so.V) shared, rtl:no, for executables
14164 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14165 # lib.a(lib.so.V) shared, rtl:no
14166 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14167 # lib.a static archive
14168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14169 for ld_flag in $LDFLAGS; do
14170 case $ld_flag in
14171 *-brtl*)
14172 aix_use_runtimelinking=yes
14173 break
14174 ;;
14175 esac
14176 done
14177 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14178 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14179 # so we don't have lib.a shared libs to link our executables.
14180 # We have to force runtime linking in this case.
14181 aix_use_runtimelinking=yes
14182 LDFLAGS="$LDFLAGS -Wl,-brtl"
14183 fi
14184 ;;
14185 esac
14186
14187 exp_sym_flag='-bexport'
14188 no_entry_flag='-bnoentry'
14189 fi
14190
14191 # When large executables or shared objects are built, AIX ld can
14192 # have problems creating the table of contents. If linking a library
14193 # or program results in "error TOC overflow" add -mminimal-toc to
14194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14196
14197 archive_cmds_CXX=''
14198 hardcode_direct_CXX=yes
14199 hardcode_direct_absolute_CXX=yes
14200 hardcode_libdir_separator_CXX=':'
14201 link_all_deplibs_CXX=yes
14202 file_list_spec_CXX='$wl-f,'
14203 case $with_aix_soname,$aix_use_runtimelinking in
14204 aix,*) ;; # no import file
14205 svr4,* | *,yes) # use import file
14206 # The Import File defines what to hardcode.
14207 hardcode_direct_CXX=no
14208 hardcode_direct_absolute_CXX=no
14209 ;;
14210 esac
14211
14212 if test yes = "$GXX"; then
14213 case $host_os in aix4.[012]|aix4.[012].*)
14214 # We only want to do this on AIX 4.2 and lower, the check
14215 # below for broken collect2 doesn't work under 4.3+
14216 collect2name=`$CC -print-prog-name=collect2`
14217 if test -f "$collect2name" &&
14218 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14219 then
14220 # We have reworked collect2
14221 :
14222 else
14223 # We have old collect2
14224 hardcode_direct_CXX=unsupported
14225 # It fails to find uninstalled libraries when the uninstalled
14226 # path is not listed in the libpath. Setting hardcode_minus_L
14227 # to unsupported forces relinking
14228 hardcode_minus_L_CXX=yes
14229 hardcode_libdir_flag_spec_CXX='-L$libdir'
14230 hardcode_libdir_separator_CXX=
14231 fi
14232 esac
14233 shared_flag='-shared'
14234 if test yes = "$aix_use_runtimelinking"; then
14235 shared_flag=$shared_flag' $wl-G'
14236 fi
14237 # Need to ensure runtime linking is disabled for the traditional
14238 # shared library, or the linker may eventually find shared libraries
14239 # /with/ Import File - we do not want to mix them.
14240 shared_flag_aix='-shared'
14241 shared_flag_svr4='-shared $wl-G'
14242 else
14243 # not using gcc
14244 if test ia64 = "$host_cpu"; then
14245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14246 # chokes on -Wl,-G. The following line is correct:
14247 shared_flag='-G'
14248 else
14249 if test yes = "$aix_use_runtimelinking"; then
14250 shared_flag='$wl-G'
14251 else
14252 shared_flag='$wl-bM:SRE'
14253 fi
14254 shared_flag_aix='$wl-bM:SRE'
14255 shared_flag_svr4='$wl-G'
14256 fi
14257 fi
14258
14259 export_dynamic_flag_spec_CXX='$wl-bexpall'
14260 # It seems that -bexpall does not export symbols beginning with
14261 # underscore (_), so it is better to generate a list of symbols to
14262 # export.
14263 always_export_symbols_CXX=yes
14264 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14265 # Warning - without using the other runtime loading flags (-brtl),
14266 # -berok will link without error, but may produce a broken library.
14267 # The "-G" linker flag allows undefined symbols.
14268 no_undefined_flag_CXX='-bernotok'
14269 # Determine the default libpath from the value encoded in an empty
14270 # executable.
14271 if test set = "${lt_cv_aix_libpath+set}"; then
14272 aix_libpath=$lt_cv_aix_libpath
14273 else
14274 if ${lt_cv_aix_libpath__CXX+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279
14280 int
14281 main ()
14282 {
14283
14284 ;
14285 return 0;
14286 }
14287 _ACEOF
14288 if ac_fn_cxx_try_link "$LINENO"; then :
14289
14290 lt_aix_libpath_sed='
14291 /Import File Strings/,/^$/ {
14292 /^0/ {
14293 s/^0 *\([^ ]*\) *$/\1/
14294 p
14295 }
14296 }'
14297 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14298 # Check for a 64-bit object if we didn't find anything.
14299 if test -z "$lt_cv_aix_libpath__CXX"; then
14300 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14301 fi
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 if test -z "$lt_cv_aix_libpath__CXX"; then
14306 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14307 fi
14308
14309 fi
14310
14311 aix_libpath=$lt_cv_aix_libpath__CXX
14312 fi
14313
14314 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14315
14316 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
14317 else
14318 if test ia64 = "$host_cpu"; then
14319 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14320 allow_undefined_flag_CXX="-z nodefs"
14321 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"
14322 else
14323 # Determine the default libpath from the value encoded in an
14324 # empty executable.
14325 if test set = "${lt_cv_aix_libpath+set}"; then
14326 aix_libpath=$lt_cv_aix_libpath
14327 else
14328 if ${lt_cv_aix_libpath__CXX+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333
14334 int
14335 main ()
14336 {
14337
14338 ;
14339 return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_cxx_try_link "$LINENO"; then :
14343
14344 lt_aix_libpath_sed='
14345 /Import File Strings/,/^$/ {
14346 /^0/ {
14347 s/^0 *\([^ ]*\) *$/\1/
14348 p
14349 }
14350 }'
14351 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14352 # Check for a 64-bit object if we didn't find anything.
14353 if test -z "$lt_cv_aix_libpath__CXX"; then
14354 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14355 fi
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14359 if test -z "$lt_cv_aix_libpath__CXX"; then
14360 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14361 fi
14362
14363 fi
14364
14365 aix_libpath=$lt_cv_aix_libpath__CXX
14366 fi
14367
14368 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14369 # Warning - without using the other run time loading flags,
14370 # -berok will link without error, but may produce a broken library.
14371 no_undefined_flag_CXX=' $wl-bernotok'
14372 allow_undefined_flag_CXX=' $wl-berok'
14373 if test yes = "$with_gnu_ld"; then
14374 # We only use this code for GNU lds that support --whole-archive.
14375 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14376 else
14377 # Exported symbols can be pulled into shared objects from archives
14378 whole_archive_flag_spec_CXX='$convenience'
14379 fi
14380 archive_cmds_need_lc_CXX=yes
14381 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14382 # -brtl affects multiple linker settings, -berok does not and is overridden later
14383 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14384 if test svr4 != "$with_aix_soname"; then
14385 # This is similar to how AIX traditionally builds its shared
14386 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14387 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'
14388 fi
14389 if test aix != "$with_aix_soname"; then
14390 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'
14391 else
14392 # used by -dlpreopen to get the symbols
14393 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14394 fi
14395 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14396 fi
14397 fi
14398 ;;
14399
14400 beos*)
14401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14402 allow_undefined_flag_CXX=unsupported
14403 # Joseph Beckenbach <[email protected]> says some releases of gcc
14404 # support --undefined. This deserves some investigation. FIXME
14405 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14406 else
14407 ld_shlibs_CXX=no
14408 fi
14409 ;;
14410
14411 chorus*)
14412 case $cc_basename in
14413 *)
14414 # FIXME: insert proper C++ library support
14415 ld_shlibs_CXX=no
14416 ;;
14417 esac
14418 ;;
14419
14420 cygwin* | mingw* | pw32* | cegcc*)
14421 case $GXX,$cc_basename in
14422 ,cl* | no,cl*)
14423 # Native MSVC
14424 # hardcode_libdir_flag_spec is actually meaningless, as there is
14425 # no search path for DLLs.
14426 hardcode_libdir_flag_spec_CXX=' '
14427 allow_undefined_flag_CXX=unsupported
14428 always_export_symbols_CXX=yes
14429 file_list_spec_CXX='@'
14430 # Tell ltmain to make .lib files, not .a files.
14431 libext=lib
14432 # Tell ltmain to make .dll files, not .so files.
14433 shrext_cmds=.dll
14434 # FIXME: Setting linknames here is a bad hack.
14435 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14436 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14437 cp "$export_symbols" "$output_objdir/$soname.def";
14438 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14439 else
14440 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14441 fi~
14442 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14443 linknames='
14444 # The linker will not automatically build a static lib if we build a DLL.
14445 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14446 enable_shared_with_static_runtimes_CXX=yes
14447 # Don't use ranlib
14448 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14449 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14450 lt_tool_outputfile="@TOOL_OUTPUT@"~
14451 case $lt_outputfile in
14452 *.exe|*.EXE) ;;
14453 *)
14454 lt_outputfile=$lt_outputfile.exe
14455 lt_tool_outputfile=$lt_tool_outputfile.exe
14456 ;;
14457 esac~
14458 func_to_tool_file "$lt_outputfile"~
14459 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14460 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14461 $RM "$lt_outputfile.manifest";
14462 fi'
14463 ;;
14464 *)
14465 # g++
14466 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14467 # as there is no search path for DLLs.
14468 hardcode_libdir_flag_spec_CXX='-L$libdir'
14469 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14470 allow_undefined_flag_CXX=unsupported
14471 always_export_symbols_CXX=no
14472 enable_shared_with_static_runtimes_CXX=yes
14473
14474 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14475 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'
14476 # If the export-symbols file already is a .def file, use it as
14477 # is; otherwise, prepend EXPORTS...
14478 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14479 cp $export_symbols $output_objdir/$soname.def;
14480 else
14481 echo EXPORTS > $output_objdir/$soname.def;
14482 cat $export_symbols >> $output_objdir/$soname.def;
14483 fi~
14484 $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'
14485 else
14486 ld_shlibs_CXX=no
14487 fi
14488 ;;
14489 esac
14490 ;;
14491 darwin* | rhapsody*)
14492
14493
14494 archive_cmds_need_lc_CXX=no
14495 hardcode_direct_CXX=no
14496 hardcode_automatic_CXX=yes
14497 hardcode_shlibpath_var_CXX=unsupported
14498 if test yes = "$lt_cv_ld_force_load"; then
14499 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\"`'
14500
14501 else
14502 whole_archive_flag_spec_CXX=''
14503 fi
14504 link_all_deplibs_CXX=yes
14505 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14506 case $cc_basename in
14507 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14508 *) _lt_dar_can_shared=$GCC ;;
14509 esac
14510 if test yes = "$_lt_dar_can_shared"; then
14511 output_verbose_link_cmd=func_echo_all
14512 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"
14513 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14514 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"
14515 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"
14516 if test yes != "$lt_cv_apple_cc_single_mod"; then
14517 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"
14518 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"
14519 fi
14520
14521 else
14522 ld_shlibs_CXX=no
14523 fi
14524
14525 ;;
14526
14527 os2*)
14528 hardcode_libdir_flag_spec_CXX='-L$libdir'
14529 hardcode_minus_L_CXX=yes
14530 allow_undefined_flag_CXX=unsupported
14531 shrext_cmds=.dll
14532 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14533 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14534 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14535 $ECHO EXPORTS >> $output_objdir/$libname.def~
14536 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14537 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14538 emximp -o $lib $output_objdir/$libname.def'
14539 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14540 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14541 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14542 $ECHO EXPORTS >> $output_objdir/$libname.def~
14543 prefix_cmds="$SED"~
14544 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14545 prefix_cmds="$prefix_cmds -e 1d";
14546 fi~
14547 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14548 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14549 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14550 emximp -o $lib $output_objdir/$libname.def'
14551 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14552 enable_shared_with_static_runtimes_CXX=yes
14553 ;;
14554
14555 dgux*)
14556 case $cc_basename in
14557 ec++*)
14558 # FIXME: insert proper C++ library support
14559 ld_shlibs_CXX=no
14560 ;;
14561 ghcx*)
14562 # Green Hills C++ Compiler
14563 # FIXME: insert proper C++ library support
14564 ld_shlibs_CXX=no
14565 ;;
14566 *)
14567 # FIXME: insert proper C++ library support
14568 ld_shlibs_CXX=no
14569 ;;
14570 esac
14571 ;;
14572
14573 freebsd2.*)
14574 # C++ shared libraries reported to be fairly broken before
14575 # switch to ELF
14576 ld_shlibs_CXX=no
14577 ;;
14578
14579 freebsd-elf*)
14580 archive_cmds_need_lc_CXX=no
14581 ;;
14582
14583 freebsd* | dragonfly*)
14584 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14585 # conventions
14586 ld_shlibs_CXX=yes
14587 ;;
14588
14589 haiku*)
14590 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14591 link_all_deplibs_CXX=yes
14592 ;;
14593
14594 hpux9*)
14595 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14596 hardcode_libdir_separator_CXX=:
14597 export_dynamic_flag_spec_CXX='$wl-E'
14598 hardcode_direct_CXX=yes
14599 hardcode_minus_L_CXX=yes # Not in the search PATH,
14600 # but as the default
14601 # location of the library.
14602
14603 case $cc_basename in
14604 CC*)
14605 # FIXME: insert proper C++ library support
14606 ld_shlibs_CXX=no
14607 ;;
14608 aCC*)
14609 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'
14610 # Commands to make compiler produce verbose output that lists
14611 # what "hidden" libraries, object files and flags are used when
14612 # linking a shared library.
14613 #
14614 # There doesn't appear to be a way to prevent this compiler from
14615 # explicitly linking system object files so we need to strip them
14616 # from the output so that they don't get included in the library
14617 # dependencies.
14618 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"'
14619 ;;
14620 *)
14621 if test yes = "$GXX"; then
14622 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'
14623 else
14624 # FIXME: insert proper C++ library support
14625 ld_shlibs_CXX=no
14626 fi
14627 ;;
14628 esac
14629 ;;
14630
14631 hpux10*|hpux11*)
14632 if test no = "$with_gnu_ld"; then
14633 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14634 hardcode_libdir_separator_CXX=:
14635
14636 case $host_cpu in
14637 hppa*64*|ia64*)
14638 ;;
14639 *)
14640 export_dynamic_flag_spec_CXX='$wl-E'
14641 ;;
14642 esac
14643 fi
14644 case $host_cpu in
14645 hppa*64*|ia64*)
14646 hardcode_direct_CXX=no
14647 hardcode_shlibpath_var_CXX=no
14648 ;;
14649 *)
14650 hardcode_direct_CXX=yes
14651 hardcode_direct_absolute_CXX=yes
14652 hardcode_minus_L_CXX=yes # Not in the search PATH,
14653 # but as the default
14654 # location of the library.
14655 ;;
14656 esac
14657
14658 case $cc_basename in
14659 CC*)
14660 # FIXME: insert proper C++ library support
14661 ld_shlibs_CXX=no
14662 ;;
14663 aCC*)
14664 case $host_cpu in
14665 hppa*64*)
14666 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14667 ;;
14668 ia64*)
14669 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14670 ;;
14671 *)
14672 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14673 ;;
14674 esac
14675 # Commands to make compiler produce verbose output that lists
14676 # what "hidden" libraries, object files and flags are used when
14677 # linking a shared library.
14678 #
14679 # There doesn't appear to be a way to prevent this compiler from
14680 # explicitly linking system object files so we need to strip them
14681 # from the output so that they don't get included in the library
14682 # dependencies.
14683 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"'
14684 ;;
14685 *)
14686 if test yes = "$GXX"; then
14687 if test no = "$with_gnu_ld"; then
14688 case $host_cpu in
14689 hppa*64*)
14690 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14691 ;;
14692 ia64*)
14693 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14694 ;;
14695 *)
14696 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'
14697 ;;
14698 esac
14699 fi
14700 else
14701 # FIXME: insert proper C++ library support
14702 ld_shlibs_CXX=no
14703 fi
14704 ;;
14705 esac
14706 ;;
14707
14708 interix[3-9]*)
14709 hardcode_direct_CXX=no
14710 hardcode_shlibpath_var_CXX=no
14711 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14712 export_dynamic_flag_spec_CXX='$wl-E'
14713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14714 # Instead, shared libraries are loaded at an image base (0x10000000 by
14715 # default) and relocated if they conflict, which is a slow very memory
14716 # consuming and fragmenting process. To avoid this, we pick a random,
14717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14719 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'
14720 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'
14721 ;;
14722 irix5* | irix6*)
14723 case $cc_basename in
14724 CC*)
14725 # SGI C++
14726 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'
14727
14728 # Archives containing C++ object files must be created using
14729 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14730 # necessary to make sure instantiated templates are included
14731 # in the archive.
14732 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14733 ;;
14734 *)
14735 if test yes = "$GXX"; then
14736 if test no = "$with_gnu_ld"; then
14737 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'
14738 else
14739 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'
14740 fi
14741 fi
14742 link_all_deplibs_CXX=yes
14743 ;;
14744 esac
14745 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14746 hardcode_libdir_separator_CXX=:
14747 inherit_rpath_CXX=yes
14748 ;;
14749
14750 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14751 case $cc_basename in
14752 KCC*)
14753 # Kuck and Associates, Inc. (KAI) C++ Compiler
14754
14755 # KCC will only create a shared library if the output file
14756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14757 # to its proper name (with version) after linking.
14758 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'
14759 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'
14760 # Commands to make compiler produce verbose output that lists
14761 # what "hidden" libraries, object files and flags are used when
14762 # linking a shared library.
14763 #
14764 # There doesn't appear to be a way to prevent this compiler from
14765 # explicitly linking system object files so we need to strip them
14766 # from the output so that they don't get included in the library
14767 # dependencies.
14768 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"'
14769
14770 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14771 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14772
14773 # Archives containing C++ object files must be created using
14774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14776 ;;
14777 icpc* | ecpc* )
14778 # Intel C++
14779 with_gnu_ld=yes
14780 # version 8.0 and above of icpc choke on multiply defined symbols
14781 # if we add $predep_objects and $postdep_objects, however 7.1 and
14782 # earlier do not add the objects themselves.
14783 case `$CC -V 2>&1` in
14784 *"Version 7."*)
14785 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14786 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'
14787 ;;
14788 *) # Version 8.0 or newer
14789 tmp_idyn=
14790 case $host_cpu in
14791 ia64*) tmp_idyn=' -i_dynamic';;
14792 esac
14793 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14794 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'
14795 ;;
14796 esac
14797 archive_cmds_need_lc_CXX=no
14798 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14799 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14800 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14801 ;;
14802 pgCC* | pgcpp*)
14803 # Portland Group C++ compiler
14804 case `$CC -V` in
14805 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14806 prelink_cmds_CXX='tpldir=Template.dir~
14807 rm -rf $tpldir~
14808 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14809 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14810 old_archive_cmds_CXX='tpldir=Template.dir~
14811 rm -rf $tpldir~
14812 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14813 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14814 $RANLIB $oldlib'
14815 archive_cmds_CXX='tpldir=Template.dir~
14816 rm -rf $tpldir~
14817 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14818 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14819 archive_expsym_cmds_CXX='tpldir=Template.dir~
14820 rm -rf $tpldir~
14821 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14822 $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'
14823 ;;
14824 *) # Version 6 and above use weak symbols
14825 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14826 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'
14827 ;;
14828 esac
14829
14830 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14831 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14832 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'
14833 ;;
14834 cxx*)
14835 # Compaq C++
14836 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14837 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'
14838
14839 runpath_var=LD_RUN_PATH
14840 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14841 hardcode_libdir_separator_CXX=:
14842
14843 # Commands to make compiler produce verbose output that lists
14844 # what "hidden" libraries, object files and flags are used when
14845 # linking a shared library.
14846 #
14847 # There doesn't appear to be a way to prevent this compiler from
14848 # explicitly linking system object files so we need to strip them
14849 # from the output so that they don't get included in the library
14850 # dependencies.
14851 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'
14852 ;;
14853 xl* | mpixl* | bgxl*)
14854 # IBM XL 8.0 on PPC, with GNU ld
14855 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14856 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14857 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14858 if test yes = "$supports_anon_versioning"; then
14859 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14861 echo "local: *; };" >> $output_objdir/$libname.ver~
14862 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14863 fi
14864 ;;
14865 *)
14866 case `$CC -V 2>&1 | sed 5q` in
14867 *Sun\ C*)
14868 # Sun C++ 5.9
14869 no_undefined_flag_CXX=' -zdefs'
14870 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14871 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'
14872 hardcode_libdir_flag_spec_CXX='-R$libdir'
14873 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'
14874 compiler_needs_object_CXX=yes
14875
14876 # Not sure whether something based on
14877 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14878 # would be better.
14879 output_verbose_link_cmd='func_echo_all'
14880
14881 # Archives containing C++ object files must be created using
14882 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14883 # necessary to make sure instantiated templates are included
14884 # in the archive.
14885 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14886 ;;
14887 esac
14888 ;;
14889 esac
14890 ;;
14891
14892 lynxos*)
14893 # FIXME: insert proper C++ library support
14894 ld_shlibs_CXX=no
14895 ;;
14896
14897 m88k*)
14898 # FIXME: insert proper C++ library support
14899 ld_shlibs_CXX=no
14900 ;;
14901
14902 mvs*)
14903 case $cc_basename in
14904 cxx*)
14905 # FIXME: insert proper C++ library support
14906 ld_shlibs_CXX=no
14907 ;;
14908 *)
14909 # FIXME: insert proper C++ library support
14910 ld_shlibs_CXX=no
14911 ;;
14912 esac
14913 ;;
14914
14915 netbsd*)
14916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14917 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14918 wlarc=
14919 hardcode_libdir_flag_spec_CXX='-R$libdir'
14920 hardcode_direct_CXX=yes
14921 hardcode_shlibpath_var_CXX=no
14922 fi
14923 # Workaround some broken pre-1.5 toolchains
14924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14925 ;;
14926
14927 *nto* | *qnx*)
14928 ld_shlibs_CXX=yes
14929 ;;
14930
14931 openbsd* | bitrig*)
14932 if test -f /usr/libexec/ld.so; then
14933 hardcode_direct_CXX=yes
14934 hardcode_shlibpath_var_CXX=no
14935 hardcode_direct_absolute_CXX=yes
14936 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14937 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14939 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14940 export_dynamic_flag_spec_CXX='$wl-E'
14941 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14942 fi
14943 output_verbose_link_cmd=func_echo_all
14944 else
14945 ld_shlibs_CXX=no
14946 fi
14947 ;;
14948
14949 osf3* | osf4* | osf5*)
14950 case $cc_basename in
14951 KCC*)
14952 # Kuck and Associates, Inc. (KAI) C++ Compiler
14953
14954 # KCC will only create a shared library if the output file
14955 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14956 # to its proper name (with version) after linking.
14957 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'
14958
14959 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14960 hardcode_libdir_separator_CXX=:
14961
14962 # Archives containing C++ object files must be created using
14963 # the KAI C++ compiler.
14964 case $host in
14965 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14966 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14967 esac
14968 ;;
14969 RCC*)
14970 # Rational C++ 2.4.1
14971 # FIXME: insert proper C++ library support
14972 ld_shlibs_CXX=no
14973 ;;
14974 cxx*)
14975 case $host in
14976 osf3*)
14977 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14978 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'
14979 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14980 ;;
14981 *)
14982 allow_undefined_flag_CXX=' -expect_unresolved \*'
14983 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'
14984 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14985 echo "-hidden">> $lib.exp~
14986 $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~
14987 $RM $lib.exp'
14988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14989 ;;
14990 esac
14991
14992 hardcode_libdir_separator_CXX=:
14993
14994 # Commands to make compiler produce verbose output that lists
14995 # what "hidden" libraries, object files and flags are used when
14996 # linking a shared library.
14997 #
14998 # There doesn't appear to be a way to prevent this compiler from
14999 # explicitly linking system object files so we need to strip them
15000 # from the output so that they don't get included in the library
15001 # dependencies.
15002 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"'
15003 ;;
15004 *)
15005 if test yes,no = "$GXX,$with_gnu_ld"; then
15006 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15007 case $host in
15008 osf3*)
15009 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'
15010 ;;
15011 *)
15012 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'
15013 ;;
15014 esac
15015
15016 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15017 hardcode_libdir_separator_CXX=:
15018
15019 # Commands to make compiler produce verbose output that lists
15020 # what "hidden" libraries, object files and flags are used when
15021 # linking a shared library.
15022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15023
15024 else
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 fi
15028 ;;
15029 esac
15030 ;;
15031
15032 psos*)
15033 # FIXME: insert proper C++ library support
15034 ld_shlibs_CXX=no
15035 ;;
15036
15037 sunos4*)
15038 case $cc_basename in
15039 CC*)
15040 # Sun C++ 4.x
15041 # FIXME: insert proper C++ library support
15042 ld_shlibs_CXX=no
15043 ;;
15044 lcc*)
15045 # Lucid
15046 # FIXME: insert proper C++ library support
15047 ld_shlibs_CXX=no
15048 ;;
15049 *)
15050 # FIXME: insert proper C++ library support
15051 ld_shlibs_CXX=no
15052 ;;
15053 esac
15054 ;;
15055
15056 solaris*)
15057 case $cc_basename in
15058 CC* | sunCC*)
15059 # Sun C++ 4.2, 5.x and Centerline C++
15060 archive_cmds_need_lc_CXX=yes
15061 no_undefined_flag_CXX=' -zdefs'
15062 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15063 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15064 $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'
15065
15066 hardcode_libdir_flag_spec_CXX='-R$libdir'
15067 hardcode_shlibpath_var_CXX=no
15068 case $host_os in
15069 solaris2.[0-5] | solaris2.[0-5].*) ;;
15070 *)
15071 # The compiler driver will combine and reorder linker options,
15072 # but understands '-z linker_flag'.
15073 # Supported since Solaris 2.6 (maybe 2.5.1?)
15074 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15075 ;;
15076 esac
15077 link_all_deplibs_CXX=yes
15078
15079 output_verbose_link_cmd='func_echo_all'
15080
15081 # Archives containing C++ object files must be created using
15082 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15083 # necessary to make sure instantiated templates are included
15084 # in the archive.
15085 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15086 ;;
15087 gcx*)
15088 # Green Hills C++ Compiler
15089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15090
15091 # The C++ compiler must be used to create the archive.
15092 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15093 ;;
15094 *)
15095 # GNU C++ compiler with Solaris linker
15096 if test yes,no = "$GXX,$with_gnu_ld"; then
15097 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15098 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15099 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15100 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15101 $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'
15102
15103 # Commands to make compiler produce verbose output that lists
15104 # what "hidden" libraries, object files and flags are used when
15105 # linking a shared library.
15106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15107 else
15108 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15109 # platform.
15110 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15111 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15112 $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'
15113
15114 # Commands to make compiler produce verbose output that lists
15115 # what "hidden" libraries, object files and flags are used when
15116 # linking a shared library.
15117 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15118 fi
15119
15120 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15121 case $host_os in
15122 solaris2.[0-5] | solaris2.[0-5].*) ;;
15123 *)
15124 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15125 ;;
15126 esac
15127 fi
15128 ;;
15129 esac
15130 ;;
15131
15132 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15133 no_undefined_flag_CXX='$wl-z,text'
15134 archive_cmds_need_lc_CXX=no
15135 hardcode_shlibpath_var_CXX=no
15136 runpath_var='LD_RUN_PATH'
15137
15138 case $cc_basename in
15139 CC*)
15140 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15141 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15142 ;;
15143 *)
15144 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15145 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15146 ;;
15147 esac
15148 ;;
15149
15150 sysv5* | sco3.2v5* | sco5v6*)
15151 # Note: We CANNOT use -z defs as we might desire, because we do not
15152 # link with -lc, and that would cause any symbols used from libc to
15153 # always be unresolved, which means just about no library would
15154 # ever link correctly. If we're not using GNU ld we use -z text
15155 # though, which does catch some bad symbols but isn't as heavy-handed
15156 # as -z defs.
15157 no_undefined_flag_CXX='$wl-z,text'
15158 allow_undefined_flag_CXX='$wl-z,nodefs'
15159 archive_cmds_need_lc_CXX=no
15160 hardcode_shlibpath_var_CXX=no
15161 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15162 hardcode_libdir_separator_CXX=':'
15163 link_all_deplibs_CXX=yes
15164 export_dynamic_flag_spec_CXX='$wl-Bexport'
15165 runpath_var='LD_RUN_PATH'
15166
15167 case $cc_basename in
15168 CC*)
15169 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15172 '"$old_archive_cmds_CXX"
15173 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15174 '"$reload_cmds_CXX"
15175 ;;
15176 *)
15177 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15178 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15179 ;;
15180 esac
15181 ;;
15182
15183 tandem*)
15184 case $cc_basename in
15185 NCC*)
15186 # NonStop-UX NCC 3.20
15187 # FIXME: insert proper C++ library support
15188 ld_shlibs_CXX=no
15189 ;;
15190 *)
15191 # FIXME: insert proper C++ library support
15192 ld_shlibs_CXX=no
15193 ;;
15194 esac
15195 ;;
15196
15197 vxworks*)
15198 # FIXME: insert proper C++ library support
15199 ld_shlibs_CXX=no
15200 ;;
15201
15202 *)
15203 # FIXME: insert proper C++ library support
15204 ld_shlibs_CXX=no
15205 ;;
15206 esac
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15209 $as_echo "$ld_shlibs_CXX" >&6; }
15210 test no = "$ld_shlibs_CXX" && can_build_shared=no
15211
15212 GCC_CXX=$GXX
15213 LD_CXX=$LD
15214
15215 ## CAVEAT EMPTOR:
15216 ## There is no encapsulation within the following macros, do not change
15217 ## the running order or otherwise move them around unless you know exactly
15218 ## what you are doing...
15219 # Dependencies to place before and after the object being linked:
15220 predep_objects_CXX=
15221 postdep_objects_CXX=
15222 predeps_CXX=
15223 postdeps_CXX=
15224 compiler_lib_search_path_CXX=
15225
15226 cat > conftest.$ac_ext <<_LT_EOF
15227 class Foo
15228 {
15229 public:
15230 Foo (void) { a = 0; }
15231 private:
15232 int a;
15233 };
15234 _LT_EOF
15235
15236
15237 _lt_libdeps_save_CFLAGS=$CFLAGS
15238 case "$CC $CFLAGS " in #(
15239 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15240 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15241 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15242 esac
15243
15244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15245 (eval $ac_compile) 2>&5
15246 ac_status=$?
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; then
15249 # Parse the compiler output and extract the necessary
15250 # objects, libraries and library flags.
15251
15252 # Sentinel used to keep track of whether or not we are before
15253 # the conftest object file.
15254 pre_test_object_deps_done=no
15255
15256 for p in `eval "$output_verbose_link_cmd"`; do
15257 case $prev$p in
15258
15259 -L* | -R* | -l*)
15260 # Some compilers place space between "-{L,R}" and the path.
15261 # Remove the space.
15262 if test x-L = "$p" ||
15263 test x-R = "$p"; then
15264 prev=$p
15265 continue
15266 fi
15267
15268 # Expand the sysroot to ease extracting the directories later.
15269 if test -z "$prev"; then
15270 case $p in
15271 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15272 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15273 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15274 esac
15275 fi
15276 case $p in
15277 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15278 esac
15279 if test no = "$pre_test_object_deps_done"; then
15280 case $prev in
15281 -L | -R)
15282 # Internal compiler library paths should come after those
15283 # provided the user. The postdeps already come after the
15284 # user supplied libs so there is no need to process them.
15285 if test -z "$compiler_lib_search_path_CXX"; then
15286 compiler_lib_search_path_CXX=$prev$p
15287 else
15288 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15289 fi
15290 ;;
15291 # The "-l" case would never come before the object being
15292 # linked, so don't bother handling this case.
15293 esac
15294 else
15295 if test -z "$postdeps_CXX"; then
15296 postdeps_CXX=$prev$p
15297 else
15298 postdeps_CXX="${postdeps_CXX} $prev$p"
15299 fi
15300 fi
15301 prev=
15302 ;;
15303
15304 *.lto.$objext) ;; # Ignore GCC LTO objects
15305 *.$objext)
15306 # This assumes that the test object file only shows up
15307 # once in the compiler output.
15308 if test "$p" = "conftest.$objext"; then
15309 pre_test_object_deps_done=yes
15310 continue
15311 fi
15312
15313 if test no = "$pre_test_object_deps_done"; then
15314 if test -z "$predep_objects_CXX"; then
15315 predep_objects_CXX=$p
15316 else
15317 predep_objects_CXX="$predep_objects_CXX $p"
15318 fi
15319 else
15320 if test -z "$postdep_objects_CXX"; then
15321 postdep_objects_CXX=$p
15322 else
15323 postdep_objects_CXX="$postdep_objects_CXX $p"
15324 fi
15325 fi
15326 ;;
15327
15328 *) ;; # Ignore the rest.
15329
15330 esac
15331 done
15332
15333 # Clean up.
15334 rm -f a.out a.exe
15335 else
15336 echo "libtool.m4: error: problem compiling CXX test program"
15337 fi
15338
15339 $RM -f confest.$objext
15340 CFLAGS=$_lt_libdeps_save_CFLAGS
15341
15342 # PORTME: override above test on systems where it is broken
15343 case $host_os in
15344 interix[3-9]*)
15345 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15346 # hack all around it, let's just trust "g++" to DTRT.
15347 predep_objects_CXX=
15348 postdep_objects_CXX=
15349 postdeps_CXX=
15350 ;;
15351 esac
15352
15353
15354 case " $postdeps_CXX " in
15355 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15356 esac
15357 compiler_lib_search_dirs_CXX=
15358 if test -n "${compiler_lib_search_path_CXX}"; then
15359 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15360 fi
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392 lt_prog_compiler_wl_CXX=
15393 lt_prog_compiler_pic_CXX=
15394 lt_prog_compiler_static_CXX=
15395
15396
15397 # C++ specific cases for pic, static, wl, etc.
15398 if test yes = "$GXX"; then
15399 lt_prog_compiler_wl_CXX='-Wl,'
15400 lt_prog_compiler_static_CXX='-static'
15401
15402 case $host_os in
15403 aix*)
15404 # All AIX code is PIC.
15405 if test ia64 = "$host_cpu"; then
15406 # AIX 5 now supports IA64 processor
15407 lt_prog_compiler_static_CXX='-Bstatic'
15408 fi
15409 lt_prog_compiler_pic_CXX='-fPIC'
15410 ;;
15411
15412 amigaos*)
15413 case $host_cpu in
15414 powerpc)
15415 # see comment about AmigaOS4 .so support
15416 lt_prog_compiler_pic_CXX='-fPIC'
15417 ;;
15418 m68k)
15419 # FIXME: we need at least 68020 code to build shared libraries, but
15420 # adding the '-m68020' flag to GCC prevents building anything better,
15421 # like '-m68040'.
15422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15423 ;;
15424 esac
15425 ;;
15426
15427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15428 # PIC is the default for these OSes.
15429 ;;
15430 mingw* | cygwin* | os2* | pw32* | cegcc*)
15431 # This hack is so that the source file can tell whether it is being
15432 # built for inclusion in a dll (and should export symbols for example).
15433 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15434 # (--disable-auto-import) libraries
15435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15436 case $host_os in
15437 os2*)
15438 lt_prog_compiler_static_CXX='$wl-static'
15439 ;;
15440 esac
15441 ;;
15442 darwin* | rhapsody*)
15443 # PIC is the default on this platform
15444 # Common symbols not allowed in MH_DYLIB files
15445 lt_prog_compiler_pic_CXX='-fno-common'
15446 ;;
15447 *djgpp*)
15448 # DJGPP does not support shared libraries at all
15449 lt_prog_compiler_pic_CXX=
15450 ;;
15451 haiku*)
15452 # PIC is the default for Haiku.
15453 # The "-static" flag exists, but is broken.
15454 lt_prog_compiler_static_CXX=
15455 ;;
15456 interix[3-9]*)
15457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15458 # Instead, we relocate shared libraries at runtime.
15459 ;;
15460 sysv4*MP*)
15461 if test -d /usr/nec; then
15462 lt_prog_compiler_pic_CXX=-Kconform_pic
15463 fi
15464 ;;
15465 hpux*)
15466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15468 # sets the default TLS model and affects inlining.
15469 case $host_cpu in
15470 hppa*64*)
15471 ;;
15472 *)
15473 lt_prog_compiler_pic_CXX='-fPIC'
15474 ;;
15475 esac
15476 ;;
15477 *qnx* | *nto*)
15478 # QNX uses GNU C++, but need to define -shared option too, otherwise
15479 # it will coredump.
15480 lt_prog_compiler_pic_CXX='-fPIC -shared'
15481 ;;
15482 *)
15483 lt_prog_compiler_pic_CXX='-fPIC'
15484 ;;
15485 esac
15486 else
15487 case $host_os in
15488 aix[4-9]*)
15489 # All AIX code is PIC.
15490 if test ia64 = "$host_cpu"; then
15491 # AIX 5 now supports IA64 processor
15492 lt_prog_compiler_static_CXX='-Bstatic'
15493 else
15494 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15495 fi
15496 ;;
15497 chorus*)
15498 case $cc_basename in
15499 cxch68*)
15500 # Green Hills C++ Compiler
15501 # _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"
15502 ;;
15503 esac
15504 ;;
15505 mingw* | cygwin* | os2* | pw32* | cegcc*)
15506 # This hack is so that the source file can tell whether it is being
15507 # built for inclusion in a dll (and should export symbols for example).
15508 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15509 ;;
15510 dgux*)
15511 case $cc_basename in
15512 ec++*)
15513 lt_prog_compiler_pic_CXX='-KPIC'
15514 ;;
15515 ghcx*)
15516 # Green Hills C++ Compiler
15517 lt_prog_compiler_pic_CXX='-pic'
15518 ;;
15519 *)
15520 ;;
15521 esac
15522 ;;
15523 freebsd* | dragonfly*)
15524 # FreeBSD uses GNU C++
15525 ;;
15526 hpux9* | hpux10* | hpux11*)
15527 case $cc_basename in
15528 CC*)
15529 lt_prog_compiler_wl_CXX='-Wl,'
15530 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15531 if test ia64 != "$host_cpu"; then
15532 lt_prog_compiler_pic_CXX='+Z'
15533 fi
15534 ;;
15535 aCC*)
15536 lt_prog_compiler_wl_CXX='-Wl,'
15537 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15538 case $host_cpu in
15539 hppa*64*|ia64*)
15540 # +Z the default
15541 ;;
15542 *)
15543 lt_prog_compiler_pic_CXX='+Z'
15544 ;;
15545 esac
15546 ;;
15547 *)
15548 ;;
15549 esac
15550 ;;
15551 interix*)
15552 # This is c89, which is MS Visual C++ (no shared libs)
15553 # Anyone wants to do a port?
15554 ;;
15555 irix5* | irix6* | nonstopux*)
15556 case $cc_basename in
15557 CC*)
15558 lt_prog_compiler_wl_CXX='-Wl,'
15559 lt_prog_compiler_static_CXX='-non_shared'
15560 # CC pic flag -KPIC is the default.
15561 ;;
15562 *)
15563 ;;
15564 esac
15565 ;;
15566 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15567 case $cc_basename in
15568 KCC*)
15569 # KAI C++ Compiler
15570 lt_prog_compiler_wl_CXX='--backend -Wl,'
15571 lt_prog_compiler_pic_CXX='-fPIC'
15572 ;;
15573 ecpc* )
15574 # old Intel C++ for x86_64, which still supported -KPIC.
15575 lt_prog_compiler_wl_CXX='-Wl,'
15576 lt_prog_compiler_pic_CXX='-KPIC'
15577 lt_prog_compiler_static_CXX='-static'
15578 ;;
15579 icpc* )
15580 # Intel C++, used to be incompatible with GCC.
15581 # ICC 10 doesn't accept -KPIC any more.
15582 lt_prog_compiler_wl_CXX='-Wl,'
15583 lt_prog_compiler_pic_CXX='-fPIC'
15584 lt_prog_compiler_static_CXX='-static'
15585 ;;
15586 pgCC* | pgcpp*)
15587 # Portland Group C++ compiler
15588 lt_prog_compiler_wl_CXX='-Wl,'
15589 lt_prog_compiler_pic_CXX='-fpic'
15590 lt_prog_compiler_static_CXX='-Bstatic'
15591 ;;
15592 cxx*)
15593 # Compaq C++
15594 # Make sure the PIC flag is empty. It appears that all Alpha
15595 # Linux and Compaq Tru64 Unix objects are PIC.
15596 lt_prog_compiler_pic_CXX=
15597 lt_prog_compiler_static_CXX='-non_shared'
15598 ;;
15599 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15600 # IBM XL 8.0, 9.0 on PPC and BlueGene
15601 lt_prog_compiler_wl_CXX='-Wl,'
15602 lt_prog_compiler_pic_CXX='-qpic'
15603 lt_prog_compiler_static_CXX='-qstaticlink'
15604 ;;
15605 *)
15606 case `$CC -V 2>&1 | sed 5q` in
15607 *Sun\ C*)
15608 # Sun C++ 5.9
15609 lt_prog_compiler_pic_CXX='-KPIC'
15610 lt_prog_compiler_static_CXX='-Bstatic'
15611 lt_prog_compiler_wl_CXX='-Qoption ld '
15612 ;;
15613 esac
15614 ;;
15615 esac
15616 ;;
15617 lynxos*)
15618 ;;
15619 m88k*)
15620 ;;
15621 mvs*)
15622 case $cc_basename in
15623 cxx*)
15624 lt_prog_compiler_pic_CXX='-W c,exportall'
15625 ;;
15626 *)
15627 ;;
15628 esac
15629 ;;
15630 netbsd*)
15631 ;;
15632 *qnx* | *nto*)
15633 # QNX uses GNU C++, but need to define -shared option too, otherwise
15634 # it will coredump.
15635 lt_prog_compiler_pic_CXX='-fPIC -shared'
15636 ;;
15637 osf3* | osf4* | osf5*)
15638 case $cc_basename in
15639 KCC*)
15640 lt_prog_compiler_wl_CXX='--backend -Wl,'
15641 ;;
15642 RCC*)
15643 # Rational C++ 2.4.1
15644 lt_prog_compiler_pic_CXX='-pic'
15645 ;;
15646 cxx*)
15647 # Digital/Compaq C++
15648 lt_prog_compiler_wl_CXX='-Wl,'
15649 # Make sure the PIC flag is empty. It appears that all Alpha
15650 # Linux and Compaq Tru64 Unix objects are PIC.
15651 lt_prog_compiler_pic_CXX=
15652 lt_prog_compiler_static_CXX='-non_shared'
15653 ;;
15654 *)
15655 ;;
15656 esac
15657 ;;
15658 psos*)
15659 ;;
15660 solaris*)
15661 case $cc_basename in
15662 CC* | sunCC*)
15663 # Sun C++ 4.2, 5.x and Centerline C++
15664 lt_prog_compiler_pic_CXX='-KPIC'
15665 lt_prog_compiler_static_CXX='-Bstatic'
15666 lt_prog_compiler_wl_CXX='-Qoption ld '
15667 ;;
15668 gcx*)
15669 # Green Hills C++ Compiler
15670 lt_prog_compiler_pic_CXX='-PIC'
15671 ;;
15672 *)
15673 ;;
15674 esac
15675 ;;
15676 sunos4*)
15677 case $cc_basename in
15678 CC*)
15679 # Sun C++ 4.x
15680 lt_prog_compiler_pic_CXX='-pic'
15681 lt_prog_compiler_static_CXX='-Bstatic'
15682 ;;
15683 lcc*)
15684 # Lucid
15685 lt_prog_compiler_pic_CXX='-pic'
15686 ;;
15687 *)
15688 ;;
15689 esac
15690 ;;
15691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15692 case $cc_basename in
15693 CC*)
15694 lt_prog_compiler_wl_CXX='-Wl,'
15695 lt_prog_compiler_pic_CXX='-KPIC'
15696 lt_prog_compiler_static_CXX='-Bstatic'
15697 ;;
15698 esac
15699 ;;
15700 tandem*)
15701 case $cc_basename in
15702 NCC*)
15703 # NonStop-UX NCC 3.20
15704 lt_prog_compiler_pic_CXX='-KPIC'
15705 ;;
15706 *)
15707 ;;
15708 esac
15709 ;;
15710 vxworks*)
15711 ;;
15712 *)
15713 lt_prog_compiler_can_build_shared_CXX=no
15714 ;;
15715 esac
15716 fi
15717
15718 case $host_os in
15719 # For platforms that do not support PIC, -DPIC is meaningless:
15720 *djgpp*)
15721 lt_prog_compiler_pic_CXX=
15722 ;;
15723 *)
15724 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15725 ;;
15726 esac
15727
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15729 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15730 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15734 fi
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15736 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15738
15739 #
15740 # Check to make sure the PIC flag actually works.
15741 #
15742 if test -n "$lt_prog_compiler_pic_CXX"; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15745 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 lt_cv_prog_compiler_pic_works_CXX=no
15749 ac_outfile=conftest.$ac_objext
15750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15752 # Insert the option either (1) after the last *FLAGS variable, or
15753 # (2) before a word containing "conftest.", or (3) at the end.
15754 # Note that $ac_compile itself does not contain backslashes and begins
15755 # with a dollar sign (not a hyphen), so the echo should work correctly.
15756 # The option is referenced via a variable to avoid confusing sed.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>conftest.err)
15763 ac_status=$?
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s "$ac_outfile"; then
15767 # The compiler can only warn and ignore the option if not recognized
15768 # So say no if there are warnings other than the usual output.
15769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772 lt_cv_prog_compiler_pic_works_CXX=yes
15773 fi
15774 fi
15775 $RM conftest*
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15779 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15780
15781 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15782 case $lt_prog_compiler_pic_CXX in
15783 "" | " "*) ;;
15784 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15785 esac
15786 else
15787 lt_prog_compiler_pic_CXX=
15788 lt_prog_compiler_can_build_shared_CXX=no
15789 fi
15790
15791 fi
15792
15793
15794
15795
15796
15797 #
15798 # Check to make sure the static flag actually works.
15799 #
15800 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15802 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15803 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 lt_cv_prog_compiler_static_works_CXX=no
15807 save_LDFLAGS=$LDFLAGS
15808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15809 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15811 # The linker can only warn and ignore the option if not recognized
15812 # So say no if there are warnings
15813 if test -s conftest.err; then
15814 # Append any errors to the config.log.
15815 cat conftest.err 1>&5
15816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818 if diff conftest.exp conftest.er2 >/dev/null; then
15819 lt_cv_prog_compiler_static_works_CXX=yes
15820 fi
15821 else
15822 lt_cv_prog_compiler_static_works_CXX=yes
15823 fi
15824 fi
15825 $RM -r conftest*
15826 LDFLAGS=$save_LDFLAGS
15827
15828 fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15830 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15831
15832 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15833 :
15834 else
15835 lt_prog_compiler_static_CXX=
15836 fi
15837
15838
15839
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15843 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 lt_cv_prog_compiler_c_o_CXX=no
15847 $RM -r conftest 2>/dev/null
15848 mkdir conftest
15849 cd conftest
15850 mkdir out
15851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15852
15853 lt_compiler_flag="-o out/conftest2.$ac_objext"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 lt_compile=`echo "$ac_compile" | $SED \
15859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15861 -e 's:$: $lt_compiler_flag:'`
15862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15863 (eval "$lt_compile" 2>out/conftest.err)
15864 ac_status=$?
15865 cat out/conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15868 then
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_c_o_CXX=yes
15875 fi
15876 fi
15877 chmod u+w . 2>&5
15878 $RM conftest*
15879 # SGI C++ compiler will create directory out/ii_files/ for
15880 # template instantiation
15881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15882 $RM out/* && rmdir out
15883 cd ..
15884 $RM -r conftest
15885 $RM conftest*
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15889 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15890
15891
15892
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15895 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15896 $as_echo_n "(cached) " >&6
15897 else
15898 lt_cv_prog_compiler_c_o_CXX=no
15899 $RM -r conftest 2>/dev/null
15900 mkdir conftest
15901 cd conftest
15902 mkdir out
15903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15904
15905 lt_compiler_flag="-o out/conftest2.$ac_objext"
15906 # Insert the option either (1) after the last *FLAGS variable, or
15907 # (2) before a word containing "conftest.", or (3) at the end.
15908 # Note that $ac_compile itself does not contain backslashes and begins
15909 # with a dollar sign (not a hyphen), so the echo should work correctly.
15910 lt_compile=`echo "$ac_compile" | $SED \
15911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913 -e 's:$: $lt_compiler_flag:'`
15914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15915 (eval "$lt_compile" 2>out/conftest.err)
15916 ac_status=$?
15917 cat out/conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15920 then
15921 # The compiler can only warn and ignore the option if not recognized
15922 # So say no if there are warnings
15923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15926 lt_cv_prog_compiler_c_o_CXX=yes
15927 fi
15928 fi
15929 chmod u+w . 2>&5
15930 $RM conftest*
15931 # SGI C++ compiler will create directory out/ii_files/ for
15932 # template instantiation
15933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15934 $RM out/* && rmdir out
15935 cd ..
15936 $RM -r conftest
15937 $RM conftest*
15938
15939 fi
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15941 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15942
15943
15944
15945
15946 hard_links=nottested
15947 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15948 # do not overwrite the value of need_locks provided by the user
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15950 $as_echo_n "checking if we can lock with hard links... " >&6; }
15951 hard_links=yes
15952 $RM conftest*
15953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15954 touch conftest.a
15955 ln conftest.a conftest.b 2>&5 || hard_links=no
15956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15958 $as_echo "$hard_links" >&6; }
15959 if test no = "$hard_links"; then
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15961 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15962 need_locks=warn
15963 fi
15964 else
15965 need_locks=no
15966 fi
15967
15968
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15972
15973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15974 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15975 case $host_os in
15976 aix[4-9]*)
15977 # If we're using GNU nm, then we don't want the "-C" option.
15978 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15979 # Without the "-l" option, or with the "-B" option, AIX nm treats
15980 # weak defined symbols like other global defined symbols, whereas
15981 # GNU nm marks them as "W".
15982 # While the 'weak' keyword is ignored in the Export File, we need
15983 # it in the Import File for the 'aix-soname' feature, so we have
15984 # to replace the "-B" option with "-P" for AIX nm.
15985 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15986 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'
15987 else
15988 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'
15989 fi
15990 ;;
15991 pw32*)
15992 export_symbols_cmds_CXX=$ltdll_cmds
15993 ;;
15994 cygwin* | mingw* | cegcc*)
15995 case $cc_basename in
15996 cl*)
15997 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15998 ;;
15999 *)
16000 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'
16001 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16002 ;;
16003 esac
16004 ;;
16005 *)
16006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16007 ;;
16008 esac
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16011 $as_echo "$ld_shlibs_CXX" >&6; }
16012 test no = "$ld_shlibs_CXX" && can_build_shared=no
16013
16014 with_gnu_ld_CXX=$with_gnu_ld
16015
16016
16017
16018
16019
16020
16021 #
16022 # Do we need to explicitly link libc?
16023 #
16024 case "x$archive_cmds_need_lc_CXX" in
16025 x|xyes)
16026 # Assume -lc should be added
16027 archive_cmds_need_lc_CXX=yes
16028
16029 if test yes,yes = "$GCC,$enable_shared"; then
16030 case $archive_cmds_CXX in
16031 *'~'*)
16032 # FIXME: we may have to deal with multi-command sequences.
16033 ;;
16034 '$CC '*)
16035 # Test whether the compiler implicitly links with -lc since on some
16036 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16037 # to ld, don't add -lc before -lgcc.
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16039 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16040 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16041 $as_echo_n "(cached) " >&6
16042 else
16043 $RM conftest*
16044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16045
16046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16047 (eval $ac_compile) 2>&5
16048 ac_status=$?
16049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16050 test $ac_status = 0; } 2>conftest.err; then
16051 soname=conftest
16052 lib=conftest
16053 libobjs=conftest.$ac_objext
16054 deplibs=
16055 wl=$lt_prog_compiler_wl_CXX
16056 pic_flag=$lt_prog_compiler_pic_CXX
16057 compiler_flags=-v
16058 linker_flags=-v
16059 verstring=
16060 output_objdir=.
16061 libname=conftest
16062 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16063 allow_undefined_flag_CXX=
16064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16065 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16066 ac_status=$?
16067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068 test $ac_status = 0; }
16069 then
16070 lt_cv_archive_cmds_need_lc_CXX=no
16071 else
16072 lt_cv_archive_cmds_need_lc_CXX=yes
16073 fi
16074 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16075 else
16076 cat conftest.err 1>&5
16077 fi
16078 $RM conftest*
16079
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16082 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16083 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16084 ;;
16085 esac
16086 fi
16087 ;;
16088 esac
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16152 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16153
16154 library_names_spec=
16155 libname_spec='lib$name'
16156 soname_spec=
16157 shrext_cmds=.so
16158 postinstall_cmds=
16159 postuninstall_cmds=
16160 finish_cmds=
16161 finish_eval=
16162 shlibpath_var=
16163 shlibpath_overrides_runpath=unknown
16164 version_type=none
16165 dynamic_linker="$host_os ld.so"
16166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16167 need_lib_prefix=unknown
16168 hardcode_into_libs=no
16169
16170 # when you set need_version to no, make sure it does not cause -set_version
16171 # flags to be left without arguments
16172 need_version=unknown
16173
16174
16175
16176 case $host_os in
16177 aix3*)
16178 version_type=linux # correct to gnu/linux during the next big refactor
16179 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16180 shlibpath_var=LIBPATH
16181
16182 # AIX 3 has no versioning support, so we append a major version to the name.
16183 soname_spec='$libname$release$shared_ext$major'
16184 ;;
16185
16186 aix[4-9]*)
16187 version_type=linux # correct to gnu/linux during the next big refactor
16188 need_lib_prefix=no
16189 need_version=no
16190 hardcode_into_libs=yes
16191 if test ia64 = "$host_cpu"; then
16192 # AIX 5 supports IA64
16193 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 else
16196 # With GCC up to 2.95.x, collect2 would create an import file
16197 # for dependence libraries. The import file would start with
16198 # the line '#! .'. This would cause the generated library to
16199 # depend on '.', always an invalid library. This was fixed in
16200 # development snapshots of GCC prior to 3.0.
16201 case $host_os in
16202 aix4 | aix4.[01] | aix4.[01].*)
16203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16204 echo ' yes '
16205 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16206 :
16207 else
16208 can_build_shared=no
16209 fi
16210 ;;
16211 esac
16212 # Using Import Files as archive members, it is possible to support
16213 # filename-based versioning of shared library archives on AIX. While
16214 # this would work for both with and without runtime linking, it will
16215 # prevent static linking of such archives. So we do filename-based
16216 # shared library versioning with .so extension only, which is used
16217 # when both runtime linking and shared linking is enabled.
16218 # Unfortunately, runtime linking may impact performance, so we do
16219 # not want this to be the default eventually. Also, we use the
16220 # versioned .so libs for executables only if there is the -brtl
16221 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16222 # To allow for filename-based versioning support, we need to create
16223 # libNAME.so.V as an archive file, containing:
16224 # *) an Import File, referring to the versioned filename of the
16225 # archive as well as the shared archive member, telling the
16226 # bitwidth (32 or 64) of that shared object, and providing the
16227 # list of exported symbols of that shared object, eventually
16228 # decorated with the 'weak' keyword
16229 # *) the shared object with the F_LOADONLY flag set, to really avoid
16230 # it being seen by the linker.
16231 # At run time we better use the real file rather than another symlink,
16232 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16233
16234 case $with_aix_soname,$aix_use_runtimelinking in
16235 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16236 # soname into executable. Probably we can add versioning support to
16237 # collect2, so additional links can be useful in future.
16238 aix,yes) # traditional libtool
16239 dynamic_linker='AIX unversionable lib.so'
16240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16241 # instead of lib<name>.a to let people know that these are not
16242 # typical AIX shared libraries.
16243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16244 ;;
16245 aix,no) # traditional AIX only
16246 dynamic_linker='AIX lib.a(lib.so.V)'
16247 # We preserve .a as extension for shared libraries through AIX4.2
16248 # and later when we are not doing run time linking.
16249 library_names_spec='$libname$release.a $libname.a'
16250 soname_spec='$libname$release$shared_ext$major'
16251 ;;
16252 svr4,*) # full svr4 only
16253 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16254 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16255 # We do not specify a path in Import Files, so LIBPATH fires.
16256 shlibpath_overrides_runpath=yes
16257 ;;
16258 *,yes) # both, prefer svr4
16259 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16260 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16261 # unpreferred sharedlib libNAME.a needs extra handling
16262 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"'
16263 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"'
16264 # We do not specify a path in Import Files, so LIBPATH fires.
16265 shlibpath_overrides_runpath=yes
16266 ;;
16267 *,no) # both, prefer aix
16268 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16269 library_names_spec='$libname$release.a $libname.a'
16270 soname_spec='$libname$release$shared_ext$major'
16271 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16272 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)'
16273 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"'
16274 ;;
16275 esac
16276 shlibpath_var=LIBPATH
16277 fi
16278 ;;
16279
16280 amigaos*)
16281 case $host_cpu in
16282 powerpc)
16283 # Since July 2007 AmigaOS4 officially supports .so libraries.
16284 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16286 ;;
16287 m68k)
16288 library_names_spec='$libname.ixlibrary $libname.a'
16289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16290 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'
16291 ;;
16292 esac
16293 ;;
16294
16295 beos*)
16296 library_names_spec='$libname$shared_ext'
16297 dynamic_linker="$host_os ld.so"
16298 shlibpath_var=LIBRARY_PATH
16299 ;;
16300
16301 bsdi[45]*)
16302 version_type=linux # correct to gnu/linux during the next big refactor
16303 need_version=no
16304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16305 soname_spec='$libname$release$shared_ext$major'
16306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16310 # the default ld.so.conf also contains /usr/contrib/lib and
16311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16312 # libtool to hard-code these into programs
16313 ;;
16314
16315 cygwin* | mingw* | pw32* | cegcc*)
16316 version_type=windows
16317 shrext_cmds=.dll
16318 need_version=no
16319 need_lib_prefix=no
16320
16321 case $GCC,$cc_basename in
16322 yes,*)
16323 # gcc
16324 library_names_spec='$libname.dll.a'
16325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16326 postinstall_cmds='base_file=`basename \$file`~
16327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16328 dldir=$destdir/`dirname \$dlpath`~
16329 test -d \$dldir || mkdir -p \$dldir~
16330 $install_prog $dir/$dlname \$dldir/$dlname~
16331 chmod a+x \$dldir/$dlname~
16332 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16333 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16334 fi'
16335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16336 dlpath=$dir/\$dldll~
16337 $RM \$dlpath'
16338 shlibpath_overrides_runpath=yes
16339
16340 case $host_os in
16341 cygwin*)
16342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16343 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16344
16345 ;;
16346 mingw* | cegcc*)
16347 # MinGW DLLs use traditional 'lib' prefix
16348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16349 ;;
16350 pw32*)
16351 # pw32 DLLs use 'pw' prefix rather than 'lib'
16352 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16353 ;;
16354 esac
16355 dynamic_linker='Win32 ld.exe'
16356 ;;
16357
16358 *,cl*)
16359 # Native MSVC
16360 libname_spec='$name'
16361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16362 library_names_spec='$libname.dll.lib'
16363
16364 case $build_os in
16365 mingw*)
16366 sys_lib_search_path_spec=
16367 lt_save_ifs=$IFS
16368 IFS=';'
16369 for lt_path in $LIB
16370 do
16371 IFS=$lt_save_ifs
16372 # Let DOS variable expansion print the short 8.3 style file name.
16373 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16374 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16375 done
16376 IFS=$lt_save_ifs
16377 # Convert to MSYS style.
16378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16379 ;;
16380 cygwin*)
16381 # Convert to unix form, then to dos form, then back to unix form
16382 # but this time dos style (no spaces!) so that the unix form looks
16383 # like /cygdrive/c/PROGRA~1:/cygdr...
16384 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16385 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16386 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16387 ;;
16388 *)
16389 sys_lib_search_path_spec=$LIB
16390 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16391 # It is most probably a Windows format PATH.
16392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16393 else
16394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16395 fi
16396 # FIXME: find the short name or the path components, as spaces are
16397 # common. (e.g. "Program Files" -> "PROGRA~1")
16398 ;;
16399 esac
16400
16401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16402 postinstall_cmds='base_file=`basename \$file`~
16403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16404 dldir=$destdir/`dirname \$dlpath`~
16405 test -d \$dldir || mkdir -p \$dldir~
16406 $install_prog $dir/$dlname \$dldir/$dlname'
16407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16408 dlpath=$dir/\$dldll~
16409 $RM \$dlpath'
16410 shlibpath_overrides_runpath=yes
16411 dynamic_linker='Win32 link.exe'
16412 ;;
16413
16414 *)
16415 # Assume MSVC wrapper
16416 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16417 dynamic_linker='Win32 ld.exe'
16418 ;;
16419 esac
16420 # FIXME: first we should search . and the directory the executable is in
16421 shlibpath_var=PATH
16422 ;;
16423
16424 darwin* | rhapsody*)
16425 dynamic_linker="$host_os dyld"
16426 version_type=darwin
16427 need_lib_prefix=no
16428 need_version=no
16429 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16430 soname_spec='$libname$release$major$shared_ext'
16431 shlibpath_overrides_runpath=yes
16432 shlibpath_var=DYLD_LIBRARY_PATH
16433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16434
16435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16436 ;;
16437
16438 dgux*)
16439 version_type=linux # correct to gnu/linux during the next big refactor
16440 need_lib_prefix=no
16441 need_version=no
16442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16443 soname_spec='$libname$release$shared_ext$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 ;;
16446
16447 freebsd* | dragonfly*)
16448 # DragonFly does not have aout. When/if they implement a new
16449 # versioning mechanism, adjust this.
16450 if test -x /usr/bin/objformat; then
16451 objformat=`/usr/bin/objformat`
16452 else
16453 case $host_os in
16454 freebsd[23].*) objformat=aout ;;
16455 *) objformat=elf ;;
16456 esac
16457 fi
16458 version_type=freebsd-$objformat
16459 case $version_type in
16460 freebsd-elf*)
16461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16462 soname_spec='$libname$release$shared_ext$major'
16463 need_version=no
16464 need_lib_prefix=no
16465 ;;
16466 freebsd-*)
16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16468 need_version=yes
16469 ;;
16470 esac
16471 shlibpath_var=LD_LIBRARY_PATH
16472 case $host_os in
16473 freebsd2.*)
16474 shlibpath_overrides_runpath=yes
16475 ;;
16476 freebsd3.[01]* | freebsdelf3.[01]*)
16477 shlibpath_overrides_runpath=yes
16478 hardcode_into_libs=yes
16479 ;;
16480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16482 shlibpath_overrides_runpath=no
16483 hardcode_into_libs=yes
16484 ;;
16485 *) # from 4.6 on, and DragonFly
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 ;;
16489 esac
16490 ;;
16491
16492 haiku*)
16493 version_type=linux # correct to gnu/linux during the next big refactor
16494 need_lib_prefix=no
16495 need_version=no
16496 dynamic_linker="$host_os runtime_loader"
16497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16498 soname_spec='$libname$release$shared_ext$major'
16499 shlibpath_var=LIBRARY_PATH
16500 shlibpath_overrides_runpath=no
16501 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16502 hardcode_into_libs=yes
16503 ;;
16504
16505 hpux9* | hpux10* | hpux11*)
16506 # Give a soname corresponding to the major version so that dld.sl refuses to
16507 # link against other versions.
16508 version_type=sunos
16509 need_lib_prefix=no
16510 need_version=no
16511 case $host_cpu in
16512 ia64*)
16513 shrext_cmds='.so'
16514 hardcode_into_libs=yes
16515 dynamic_linker="$host_os dld.so"
16516 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16519 soname_spec='$libname$release$shared_ext$major'
16520 if test 32 = "$HPUX_IA64_MODE"; then
16521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16522 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16523 else
16524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16525 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16526 fi
16527 ;;
16528 hppa*64*)
16529 shrext_cmds='.sl'
16530 hardcode_into_libs=yes
16531 dynamic_linker="$host_os dld.sl"
16532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16535 soname_spec='$libname$release$shared_ext$major'
16536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538 ;;
16539 *)
16540 shrext_cmds='.sl'
16541 dynamic_linker="$host_os dld.sl"
16542 shlibpath_var=SHLIB_PATH
16543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16545 soname_spec='$libname$release$shared_ext$major'
16546 ;;
16547 esac
16548 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16549 postinstall_cmds='chmod 555 $lib'
16550 # or fails outright, so override atomically:
16551 install_override_mode=555
16552 ;;
16553
16554 interix[3-9]*)
16555 version_type=linux # correct to gnu/linux during the next big refactor
16556 need_lib_prefix=no
16557 need_version=no
16558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16559 soname_spec='$libname$release$shared_ext$major'
16560 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16561 shlibpath_var=LD_LIBRARY_PATH
16562 shlibpath_overrides_runpath=no
16563 hardcode_into_libs=yes
16564 ;;
16565
16566 irix5* | irix6* | nonstopux*)
16567 case $host_os in
16568 nonstopux*) version_type=nonstopux ;;
16569 *)
16570 if test yes = "$lt_cv_prog_gnu_ld"; then
16571 version_type=linux # correct to gnu/linux during the next big refactor
16572 else
16573 version_type=irix
16574 fi ;;
16575 esac
16576 need_lib_prefix=no
16577 need_version=no
16578 soname_spec='$libname$release$shared_ext$major'
16579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16580 case $host_os in
16581 irix5* | nonstopux*)
16582 libsuff= shlibsuff=
16583 ;;
16584 *)
16585 case $LD in # libtool.m4 will add one of these switches to LD
16586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16587 libsuff= shlibsuff= libmagic=32-bit;;
16588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16589 libsuff=32 shlibsuff=N32 libmagic=N32;;
16590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16592 *) libsuff= shlibsuff= libmagic=never-match;;
16593 esac
16594 ;;
16595 esac
16596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16597 shlibpath_overrides_runpath=no
16598 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16599 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16600 hardcode_into_libs=yes
16601 ;;
16602
16603 # No shared lib support for Linux oldld, aout, or coff.
16604 linux*oldld* | linux*aout* | linux*coff*)
16605 dynamic_linker=no
16606 ;;
16607
16608 linux*android*)
16609 version_type=none # Android doesn't support versioned libraries.
16610 need_lib_prefix=no
16611 need_version=no
16612 library_names_spec='$libname$release$shared_ext'
16613 soname_spec='$libname$release$shared_ext'
16614 finish_cmds=
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=yes
16617
16618 # This implies no fast_install, which is unacceptable.
16619 # Some rework will be needed to allow for fast_install
16620 # before this can be enabled.
16621 hardcode_into_libs=yes
16622
16623 dynamic_linker='Android linker'
16624 # Don't embed -rpath directories since the linker doesn't support them.
16625 hardcode_libdir_flag_spec_CXX='-L$libdir'
16626 ;;
16627
16628 # This must be glibc/ELF.
16629 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16630 version_type=linux # correct to gnu/linux during the next big refactor
16631 need_lib_prefix=no
16632 need_version=no
16633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16634 soname_spec='$libname$release$shared_ext$major'
16635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=no
16638
16639 # Some binutils ld are patched to set DT_RUNPATH
16640 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16641 $as_echo_n "(cached) " >&6
16642 else
16643 lt_cv_shlibpath_overrides_runpath=no
16644 save_LDFLAGS=$LDFLAGS
16645 save_libdir=$libdir
16646 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16647 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16650
16651 int
16652 main ()
16653 {
16654
16655 ;
16656 return 0;
16657 }
16658 _ACEOF
16659 if ac_fn_cxx_try_link "$LINENO"; then :
16660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16661 lt_cv_shlibpath_overrides_runpath=yes
16662 fi
16663 fi
16664 rm -f core conftest.err conftest.$ac_objext \
16665 conftest$ac_exeext conftest.$ac_ext
16666 LDFLAGS=$save_LDFLAGS
16667 libdir=$save_libdir
16668
16669 fi
16670
16671 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16672
16673 # This implies no fast_install, which is unacceptable.
16674 # Some rework will be needed to allow for fast_install
16675 # before this can be enabled.
16676 hardcode_into_libs=yes
16677
16678 # Add ABI-specific directories to the system library path.
16679 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16680
16681 # Ideally, we could use ldconfig to report *all* directores which are
16682 # searched for libraries, however this is still not possible. Aside from not
16683 # being certain /sbin/ldconfig is available, command
16684 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16685 # even though it is searched at run-time. Try to do the best guess by
16686 # appending ld.so.conf contents (and includes) to the search path.
16687 if test -f /etc/ld.so.conf; then
16688 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' ' '`
16689 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16690 fi
16691
16692 # We used to test for /lib/ld.so.1 and disable shared libraries on
16693 # powerpc, because MkLinux only supported shared libraries with the
16694 # GNU dynamic linker. Since this was broken with cross compilers,
16695 # most powerpc-linux boxes support dynamic linking these days and
16696 # people can always --disable-shared, the test was removed, and we
16697 # assume the GNU/Linux dynamic linker is in use.
16698 dynamic_linker='GNU/Linux ld.so'
16699 ;;
16700
16701 netbsd*)
16702 version_type=sunos
16703 need_lib_prefix=no
16704 need_version=no
16705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16706 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16708 dynamic_linker='NetBSD (a.out) ld.so'
16709 else
16710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16711 soname_spec='$libname$release$shared_ext$major'
16712 dynamic_linker='NetBSD ld.elf_so'
16713 fi
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=yes
16716 hardcode_into_libs=yes
16717 ;;
16718
16719 newsos6)
16720 version_type=linux # correct to gnu/linux during the next big refactor
16721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16722 shlibpath_var=LD_LIBRARY_PATH
16723 shlibpath_overrides_runpath=yes
16724 ;;
16725
16726 *nto* | *qnx*)
16727 version_type=qnx
16728 need_lib_prefix=no
16729 need_version=no
16730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16731 soname_spec='$libname$release$shared_ext$major'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 shlibpath_overrides_runpath=no
16734 hardcode_into_libs=yes
16735 dynamic_linker='ldqnx.so'
16736 ;;
16737
16738 openbsd* | bitrig*)
16739 version_type=sunos
16740 sys_lib_dlsearch_path_spec=/usr/lib
16741 need_lib_prefix=no
16742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16743 need_version=no
16744 else
16745 need_version=yes
16746 fi
16747 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=yes
16751 ;;
16752
16753 os2*)
16754 libname_spec='$name'
16755 version_type=windows
16756 shrext_cmds=.dll
16757 need_version=no
16758 need_lib_prefix=no
16759 # OS/2 can only load a DLL with a base name of 8 characters or less.
16760 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16761 v=$($ECHO $release$versuffix | tr -d .-);
16762 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16763 $ECHO $n$v`$shared_ext'
16764 library_names_spec='${libname}_dll.$libext'
16765 dynamic_linker='OS/2 ld.exe'
16766 shlibpath_var=BEGINLIBPATH
16767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16769 postinstall_cmds='base_file=`basename \$file`~
16770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16771 dldir=$destdir/`dirname \$dlpath`~
16772 test -d \$dldir || mkdir -p \$dldir~
16773 $install_prog $dir/$dlname \$dldir/$dlname~
16774 chmod a+x \$dldir/$dlname~
16775 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16776 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16777 fi'
16778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16779 dlpath=$dir/\$dldll~
16780 $RM \$dlpath'
16781 ;;
16782
16783 osf3* | osf4* | osf5*)
16784 version_type=osf
16785 need_lib_prefix=no
16786 need_version=no
16787 soname_spec='$libname$release$shared_ext$major'
16788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16792 ;;
16793
16794 rdos*)
16795 dynamic_linker=no
16796 ;;
16797
16798 solaris*)
16799 version_type=linux # correct to gnu/linux during the next big refactor
16800 need_lib_prefix=no
16801 need_version=no
16802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16803 soname_spec='$libname$release$shared_ext$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 hardcode_into_libs=yes
16807 # ldd complains unless libraries are executable
16808 postinstall_cmds='chmod +x $lib'
16809 ;;
16810
16811 sunos4*)
16812 version_type=sunos
16813 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 shlibpath_overrides_runpath=yes
16817 if test yes = "$with_gnu_ld"; then
16818 need_lib_prefix=no
16819 fi
16820 need_version=yes
16821 ;;
16822
16823 sysv4 | sysv4.3*)
16824 version_type=linux # correct to gnu/linux during the next big refactor
16825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16826 soname_spec='$libname$release$shared_ext$major'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 case $host_vendor in
16829 sni)
16830 shlibpath_overrides_runpath=no
16831 need_lib_prefix=no
16832 runpath_var=LD_RUN_PATH
16833 ;;
16834 siemens)
16835 need_lib_prefix=no
16836 ;;
16837 motorola)
16838 need_lib_prefix=no
16839 need_version=no
16840 shlibpath_overrides_runpath=no
16841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16842 ;;
16843 esac
16844 ;;
16845
16846 sysv4*MP*)
16847 if test -d /usr/nec; then
16848 version_type=linux # correct to gnu/linux during the next big refactor
16849 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16850 soname_spec='$libname$shared_ext.$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 fi
16853 ;;
16854
16855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16856 version_type=sco
16857 need_lib_prefix=no
16858 need_version=no
16859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16860 soname_spec='$libname$release$shared_ext$major'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 shlibpath_overrides_runpath=yes
16863 hardcode_into_libs=yes
16864 if test yes = "$with_gnu_ld"; then
16865 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16866 else
16867 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16868 case $host_os in
16869 sco3.2v5*)
16870 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16871 ;;
16872 esac
16873 fi
16874 sys_lib_dlsearch_path_spec='/usr/lib'
16875 ;;
16876
16877 tpf*)
16878 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16879 version_type=linux # correct to gnu/linux during the next big refactor
16880 need_lib_prefix=no
16881 need_version=no
16882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=no
16885 hardcode_into_libs=yes
16886 ;;
16887
16888 uts4*)
16889 version_type=linux # correct to gnu/linux during the next big refactor
16890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16891 soname_spec='$libname$release$shared_ext$major'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 ;;
16894
16895 *)
16896 dynamic_linker=no
16897 ;;
16898 esac
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16900 $as_echo "$dynamic_linker" >&6; }
16901 test no = "$dynamic_linker" && can_build_shared=no
16902
16903 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16904 if test yes = "$GCC"; then
16905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16906 fi
16907
16908 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16909 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16910 fi
16911
16912 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16913 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16914 fi
16915
16916 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16917 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16918
16919 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16920 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16921
16922 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16923 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16965 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16966 hardcode_action_CXX=
16967 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16968 test -n "$runpath_var_CXX" ||
16969 test yes = "$hardcode_automatic_CXX"; then
16970
16971 # We can hardcode non-existent directories.
16972 if test no != "$hardcode_direct_CXX" &&
16973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16974 # have to relink, otherwise we might link with an installed library
16975 # when we should be linking with a yet-to-be-installed one
16976 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16977 test no != "$hardcode_minus_L_CXX"; then
16978 # Linking always hardcodes the temporary library directory.
16979 hardcode_action_CXX=relink
16980 else
16981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16982 hardcode_action_CXX=immediate
16983 fi
16984 else
16985 # We cannot hardcode anything, or else we can only hardcode existing
16986 # directories.
16987 hardcode_action_CXX=unsupported
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16990 $as_echo "$hardcode_action_CXX" >&6; }
16991
16992 if test relink = "$hardcode_action_CXX" ||
16993 test yes = "$inherit_rpath_CXX"; then
16994 # Fast installation is not supported
16995 enable_fast_install=no
16996 elif test yes = "$shlibpath_overrides_runpath" ||
16997 test no = "$enable_shared"; then
16998 # Fast installation is not necessary
16999 enable_fast_install=needless
17000 fi
17001
17002
17003
17004
17005
17006
17007
17008 fi # test -n "$compiler"
17009
17010 CC=$lt_save_CC
17011 CFLAGS=$lt_save_CFLAGS
17012 LDCXX=$LD
17013 LD=$lt_save_LD
17014 GCC=$lt_save_GCC
17015 with_gnu_ld=$lt_save_with_gnu_ld
17016 lt_cv_path_LDCXX=$lt_cv_path_LD
17017 lt_cv_path_LD=$lt_save_path_LD
17018 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17019 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17020 fi # test yes != "$_lt_caught_CXX_error"
17021
17022 ac_ext=cpp
17023 ac_cpp='$CXXCPP $CPPFLAGS'
17024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042 ac_config_commands="$ac_config_commands libtool"
17043
17044
17045
17046
17047 # Only expand once:
17048
17049
17050
17051
17052 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
17053 ac_ext=cpp
17054 ac_cpp='$CXXCPP $CPPFLAGS'
17055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17058 ac_success=no
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17060 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17061 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17062 $as_echo_n "(cached) " >&6
17063 else
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17066
17067
17068 // If the compiler admits that it is not ready for C++11, why torture it?
17069 // Hopefully, this will speed up the test.
17070
17071 #ifndef __cplusplus
17072
17073 #error "This is not a C++ compiler"
17074
17075 #elif __cplusplus < 201103L && !(defined _MSC_VER)
17076
17077 #error "This is not a C++11 compiler"
17078
17079 #else
17080
17081 namespace cxx11
17082 {
17083
17084 namespace test_static_assert
17085 {
17086
17087 template <typename T>
17088 struct check
17089 {
17090 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17091 };
17092
17093 }
17094
17095 namespace test_final_override
17096 {
17097
17098 struct Base
17099 {
17100 virtual void f() {}
17101 };
17102
17103 struct Derived : public Base
17104 {
17105 virtual void f() override {}
17106 };
17107
17108 }
17109
17110 namespace test_double_right_angle_brackets
17111 {
17112
17113 template < typename T >
17114 struct check {};
17115
17116 typedef check<void> single_type;
17117 typedef check<check<void>> double_type;
17118 typedef check<check<check<void>>> triple_type;
17119 typedef check<check<check<check<void>>>> quadruple_type;
17120
17121 }
17122
17123 namespace test_decltype
17124 {
17125
17126 int
17127 f()
17128 {
17129 int a = 1;
17130 decltype(a) b = 2;
17131 return a + b;
17132 }
17133
17134 }
17135
17136 namespace test_type_deduction
17137 {
17138
17139 template < typename T1, typename T2 >
17140 struct is_same
17141 {
17142 static const bool value = false;
17143 };
17144
17145 template < typename T >
17146 struct is_same<T, T>
17147 {
17148 static const bool value = true;
17149 };
17150
17151 template < typename T1, typename T2 >
17152 auto
17153 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17154 {
17155 return a1 + a2;
17156 }
17157
17158 int
17159 test(const int c, volatile int v)
17160 {
17161 static_assert(is_same<int, decltype(0)>::value == true, "");
17162 static_assert(is_same<int, decltype(c)>::value == false, "");
17163 static_assert(is_same<int, decltype(v)>::value == false, "");
17164 auto ac = c;
17165 auto av = v;
17166 auto sumi = ac + av + 'x';
17167 auto sumf = ac + av + 1.0;
17168 static_assert(is_same<int, decltype(ac)>::value == true, "");
17169 static_assert(is_same<int, decltype(av)>::value == true, "");
17170 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17171 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17172 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17173 return (sumf > 0.0) ? sumi : add(c, v);
17174 }
17175
17176 }
17177
17178 namespace test_noexcept
17179 {
17180
17181 int f() { return 0; }
17182 int g() noexcept { return 0; }
17183
17184 static_assert(noexcept(f()) == false, "");
17185 static_assert(noexcept(g()) == true, "");
17186
17187 }
17188
17189 namespace test_constexpr
17190 {
17191
17192 template < typename CharT >
17193 unsigned long constexpr
17194 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17195 {
17196 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17197 }
17198
17199 template < typename CharT >
17200 unsigned long constexpr
17201 strlen_c(const CharT *const s) noexcept
17202 {
17203 return strlen_c_r(s, 0UL);
17204 }
17205
17206 static_assert(strlen_c("") == 0UL, "");
17207 static_assert(strlen_c("1") == 1UL, "");
17208 static_assert(strlen_c("example") == 7UL, "");
17209 static_assert(strlen_c("another\0example") == 7UL, "");
17210
17211 }
17212
17213 namespace test_rvalue_references
17214 {
17215
17216 template < int N >
17217 struct answer
17218 {
17219 static constexpr int value = N;
17220 };
17221
17222 answer<1> f(int&) { return answer<1>(); }
17223 answer<2> f(const int&) { return answer<2>(); }
17224 answer<3> f(int&&) { return answer<3>(); }
17225
17226 void
17227 test()
17228 {
17229 int i = 0;
17230 const int c = 0;
17231 static_assert(decltype(f(i))::value == 1, "");
17232 static_assert(decltype(f(c))::value == 2, "");
17233 static_assert(decltype(f(0))::value == 3, "");
17234 }
17235
17236 }
17237
17238 namespace test_uniform_initialization
17239 {
17240
17241 struct test
17242 {
17243 static const int zero {};
17244 static const int one {1};
17245 };
17246
17247 static_assert(test::zero == 0, "");
17248 static_assert(test::one == 1, "");
17249
17250 }
17251
17252 namespace test_lambdas
17253 {
17254
17255 void
17256 test1()
17257 {
17258 auto lambda1 = [](){};
17259 auto lambda2 = lambda1;
17260 lambda1();
17261 lambda2();
17262 }
17263
17264 int
17265 test2()
17266 {
17267 auto a = [](int i, int j){ return i + j; }(1, 2);
17268 auto b = []() -> int { return '0'; }();
17269 auto c = [=](){ return a + b; }();
17270 auto d = [&](){ return c; }();
17271 auto e = [a, &b](int x) mutable {
17272 const auto identity = [](int y){ return y; };
17273 for (auto i = 0; i < a; ++i)
17274 a += b--;
17275 return x + identity(a + b);
17276 }(0);
17277 return a + b + c + d + e;
17278 }
17279
17280 int
17281 test3()
17282 {
17283 const auto nullary = [](){ return 0; };
17284 const auto unary = [](int x){ return x; };
17285 using nullary_t = decltype(nullary);
17286 using unary_t = decltype(unary);
17287 const auto higher1st = [](nullary_t f){ return f(); };
17288 const auto higher2nd = [unary](nullary_t f1){
17289 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17290 };
17291 return higher1st(nullary) + higher2nd(nullary)(unary);
17292 }
17293
17294 }
17295
17296 namespace test_variadic_templates
17297 {
17298
17299 template <int...>
17300 struct sum;
17301
17302 template <int N0, int... N1toN>
17303 struct sum<N0, N1toN...>
17304 {
17305 static constexpr auto value = N0 + sum<N1toN...>::value;
17306 };
17307
17308 template <>
17309 struct sum<>
17310 {
17311 static constexpr auto value = 0;
17312 };
17313
17314 static_assert(sum<>::value == 0, "");
17315 static_assert(sum<1>::value == 1, "");
17316 static_assert(sum<23>::value == 23, "");
17317 static_assert(sum<1, 2>::value == 3, "");
17318 static_assert(sum<5, 5, 11>::value == 21, "");
17319 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17320
17321 }
17322
17323 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17324 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17325 // because of this.
17326 namespace test_template_alias_sfinae
17327 {
17328
17329 struct foo {};
17330
17331 template<typename T>
17332 using member = typename T::member_type;
17333
17334 template<typename T>
17335 void func(...) {}
17336
17337 template<typename T>
17338 void func(member<T>*) {}
17339
17340 void test();
17341
17342 void test() { func<foo>(0); }
17343
17344 }
17345
17346 } // namespace cxx11
17347
17348 #endif // __cplusplus >= 201103L
17349
17350
17351
17352 _ACEOF
17353 if ac_fn_cxx_try_compile "$LINENO"; then :
17354 ax_cv_cxx_compile_cxx11=yes
17355 else
17356 ax_cv_cxx_compile_cxx11=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 fi
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17361 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17362 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17363 ac_success=yes
17364 fi
17365
17366 if test x$ac_success = xno; then
17367 for alternative in ${ax_cxx_compile_alternatives}; do
17368 switch="-std=gnu++${alternative}"
17369 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17371 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17372 if eval \${$cachevar+:} false; then :
17373 $as_echo_n "(cached) " >&6
17374 else
17375 ac_save_CXX="$CXX"
17376 CXX="$CXX $switch"
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17379
17380
17381 // If the compiler admits that it is not ready for C++11, why torture it?
17382 // Hopefully, this will speed up the test.
17383
17384 #ifndef __cplusplus
17385
17386 #error "This is not a C++ compiler"
17387
17388 #elif __cplusplus < 201103L && !(defined _MSC_VER)
17389
17390 #error "This is not a C++11 compiler"
17391
17392 #else
17393
17394 namespace cxx11
17395 {
17396
17397 namespace test_static_assert
17398 {
17399
17400 template <typename T>
17401 struct check
17402 {
17403 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17404 };
17405
17406 }
17407
17408 namespace test_final_override
17409 {
17410
17411 struct Base
17412 {
17413 virtual void f() {}
17414 };
17415
17416 struct Derived : public Base
17417 {
17418 virtual void f() override {}
17419 };
17420
17421 }
17422
17423 namespace test_double_right_angle_brackets
17424 {
17425
17426 template < typename T >
17427 struct check {};
17428
17429 typedef check<void> single_type;
17430 typedef check<check<void>> double_type;
17431 typedef check<check<check<void>>> triple_type;
17432 typedef check<check<check<check<void>>>> quadruple_type;
17433
17434 }
17435
17436 namespace test_decltype
17437 {
17438
17439 int
17440 f()
17441 {
17442 int a = 1;
17443 decltype(a) b = 2;
17444 return a + b;
17445 }
17446
17447 }
17448
17449 namespace test_type_deduction
17450 {
17451
17452 template < typename T1, typename T2 >
17453 struct is_same
17454 {
17455 static const bool value = false;
17456 };
17457
17458 template < typename T >
17459 struct is_same<T, T>
17460 {
17461 static const bool value = true;
17462 };
17463
17464 template < typename T1, typename T2 >
17465 auto
17466 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17467 {
17468 return a1 + a2;
17469 }
17470
17471 int
17472 test(const int c, volatile int v)
17473 {
17474 static_assert(is_same<int, decltype(0)>::value == true, "");
17475 static_assert(is_same<int, decltype(c)>::value == false, "");
17476 static_assert(is_same<int, decltype(v)>::value == false, "");
17477 auto ac = c;
17478 auto av = v;
17479 auto sumi = ac + av + 'x';
17480 auto sumf = ac + av + 1.0;
17481 static_assert(is_same<int, decltype(ac)>::value == true, "");
17482 static_assert(is_same<int, decltype(av)>::value == true, "");
17483 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17484 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17485 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17486 return (sumf > 0.0) ? sumi : add(c, v);
17487 }
17488
17489 }
17490
17491 namespace test_noexcept
17492 {
17493
17494 int f() { return 0; }
17495 int g() noexcept { return 0; }
17496
17497 static_assert(noexcept(f()) == false, "");
17498 static_assert(noexcept(g()) == true, "");
17499
17500 }
17501
17502 namespace test_constexpr
17503 {
17504
17505 template < typename CharT >
17506 unsigned long constexpr
17507 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17508 {
17509 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17510 }
17511
17512 template < typename CharT >
17513 unsigned long constexpr
17514 strlen_c(const CharT *const s) noexcept
17515 {
17516 return strlen_c_r(s, 0UL);
17517 }
17518
17519 static_assert(strlen_c("") == 0UL, "");
17520 static_assert(strlen_c("1") == 1UL, "");
17521 static_assert(strlen_c("example") == 7UL, "");
17522 static_assert(strlen_c("another\0example") == 7UL, "");
17523
17524 }
17525
17526 namespace test_rvalue_references
17527 {
17528
17529 template < int N >
17530 struct answer
17531 {
17532 static constexpr int value = N;
17533 };
17534
17535 answer<1> f(int&) { return answer<1>(); }
17536 answer<2> f(const int&) { return answer<2>(); }
17537 answer<3> f(int&&) { return answer<3>(); }
17538
17539 void
17540 test()
17541 {
17542 int i = 0;
17543 const int c = 0;
17544 static_assert(decltype(f(i))::value == 1, "");
17545 static_assert(decltype(f(c))::value == 2, "");
17546 static_assert(decltype(f(0))::value == 3, "");
17547 }
17548
17549 }
17550
17551 namespace test_uniform_initialization
17552 {
17553
17554 struct test
17555 {
17556 static const int zero {};
17557 static const int one {1};
17558 };
17559
17560 static_assert(test::zero == 0, "");
17561 static_assert(test::one == 1, "");
17562
17563 }
17564
17565 namespace test_lambdas
17566 {
17567
17568 void
17569 test1()
17570 {
17571 auto lambda1 = [](){};
17572 auto lambda2 = lambda1;
17573 lambda1();
17574 lambda2();
17575 }
17576
17577 int
17578 test2()
17579 {
17580 auto a = [](int i, int j){ return i + j; }(1, 2);
17581 auto b = []() -> int { return '0'; }();
17582 auto c = [=](){ return a + b; }();
17583 auto d = [&](){ return c; }();
17584 auto e = [a, &b](int x) mutable {
17585 const auto identity = [](int y){ return y; };
17586 for (auto i = 0; i < a; ++i)
17587 a += b--;
17588 return x + identity(a + b);
17589 }(0);
17590 return a + b + c + d + e;
17591 }
17592
17593 int
17594 test3()
17595 {
17596 const auto nullary = [](){ return 0; };
17597 const auto unary = [](int x){ return x; };
17598 using nullary_t = decltype(nullary);
17599 using unary_t = decltype(unary);
17600 const auto higher1st = [](nullary_t f){ return f(); };
17601 const auto higher2nd = [unary](nullary_t f1){
17602 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17603 };
17604 return higher1st(nullary) + higher2nd(nullary)(unary);
17605 }
17606
17607 }
17608
17609 namespace test_variadic_templates
17610 {
17611
17612 template <int...>
17613 struct sum;
17614
17615 template <int N0, int... N1toN>
17616 struct sum<N0, N1toN...>
17617 {
17618 static constexpr auto value = N0 + sum<N1toN...>::value;
17619 };
17620
17621 template <>
17622 struct sum<>
17623 {
17624 static constexpr auto value = 0;
17625 };
17626
17627 static_assert(sum<>::value == 0, "");
17628 static_assert(sum<1>::value == 1, "");
17629 static_assert(sum<23>::value == 23, "");
17630 static_assert(sum<1, 2>::value == 3, "");
17631 static_assert(sum<5, 5, 11>::value == 21, "");
17632 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17633
17634 }
17635
17636 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17637 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17638 // because of this.
17639 namespace test_template_alias_sfinae
17640 {
17641
17642 struct foo {};
17643
17644 template<typename T>
17645 using member = typename T::member_type;
17646
17647 template<typename T>
17648 void func(...) {}
17649
17650 template<typename T>
17651 void func(member<T>*) {}
17652
17653 void test();
17654
17655 void test() { func<foo>(0); }
17656
17657 }
17658
17659 } // namespace cxx11
17660
17661 #endif // __cplusplus >= 201103L
17662
17663
17664
17665 _ACEOF
17666 if ac_fn_cxx_try_compile "$LINENO"; then :
17667 eval $cachevar=yes
17668 else
17669 eval $cachevar=no
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 CXX="$ac_save_CXX"
17673 fi
17674 eval ac_res=\$$cachevar
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17676 $as_echo "$ac_res" >&6; }
17677 if eval test x\$$cachevar = xyes; then
17678 CXX="$CXX $switch"
17679 if test -n "$CXXCPP" ; then
17680 CXXCPP="$CXXCPP $switch"
17681 fi
17682 ac_success=yes
17683 break
17684 fi
17685 done
17686 fi
17687
17688 if test x$ac_success = xno; then
17689 for alternative in ${ax_cxx_compile_alternatives}; do
17690 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17691 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17693 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17694 if eval \${$cachevar+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 ac_save_CXX="$CXX"
17698 CXX="$CXX $switch"
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701
17702
17703 // If the compiler admits that it is not ready for C++11, why torture it?
17704 // Hopefully, this will speed up the test.
17705
17706 #ifndef __cplusplus
17707
17708 #error "This is not a C++ compiler"
17709
17710 #elif __cplusplus < 201103L && !(defined _MSC_VER)
17711
17712 #error "This is not a C++11 compiler"
17713
17714 #else
17715
17716 namespace cxx11
17717 {
17718
17719 namespace test_static_assert
17720 {
17721
17722 template <typename T>
17723 struct check
17724 {
17725 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17726 };
17727
17728 }
17729
17730 namespace test_final_override
17731 {
17732
17733 struct Base
17734 {
17735 virtual void f() {}
17736 };
17737
17738 struct Derived : public Base
17739 {
17740 virtual void f() override {}
17741 };
17742
17743 }
17744
17745 namespace test_double_right_angle_brackets
17746 {
17747
17748 template < typename T >
17749 struct check {};
17750
17751 typedef check<void> single_type;
17752 typedef check<check<void>> double_type;
17753 typedef check<check<check<void>>> triple_type;
17754 typedef check<check<check<check<void>>>> quadruple_type;
17755
17756 }
17757
17758 namespace test_decltype
17759 {
17760
17761 int
17762 f()
17763 {
17764 int a = 1;
17765 decltype(a) b = 2;
17766 return a + b;
17767 }
17768
17769 }
17770
17771 namespace test_type_deduction
17772 {
17773
17774 template < typename T1, typename T2 >
17775 struct is_same
17776 {
17777 static const bool value = false;
17778 };
17779
17780 template < typename T >
17781 struct is_same<T, T>
17782 {
17783 static const bool value = true;
17784 };
17785
17786 template < typename T1, typename T2 >
17787 auto
17788 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17789 {
17790 return a1 + a2;
17791 }
17792
17793 int
17794 test(const int c, volatile int v)
17795 {
17796 static_assert(is_same<int, decltype(0)>::value == true, "");
17797 static_assert(is_same<int, decltype(c)>::value == false, "");
17798 static_assert(is_same<int, decltype(v)>::value == false, "");
17799 auto ac = c;
17800 auto av = v;
17801 auto sumi = ac + av + 'x';
17802 auto sumf = ac + av + 1.0;
17803 static_assert(is_same<int, decltype(ac)>::value == true, "");
17804 static_assert(is_same<int, decltype(av)>::value == true, "");
17805 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17806 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17807 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17808 return (sumf > 0.0) ? sumi : add(c, v);
17809 }
17810
17811 }
17812
17813 namespace test_noexcept
17814 {
17815
17816 int f() { return 0; }
17817 int g() noexcept { return 0; }
17818
17819 static_assert(noexcept(f()) == false, "");
17820 static_assert(noexcept(g()) == true, "");
17821
17822 }
17823
17824 namespace test_constexpr
17825 {
17826
17827 template < typename CharT >
17828 unsigned long constexpr
17829 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17830 {
17831 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17832 }
17833
17834 template < typename CharT >
17835 unsigned long constexpr
17836 strlen_c(const CharT *const s) noexcept
17837 {
17838 return strlen_c_r(s, 0UL);
17839 }
17840
17841 static_assert(strlen_c("") == 0UL, "");
17842 static_assert(strlen_c("1") == 1UL, "");
17843 static_assert(strlen_c("example") == 7UL, "");
17844 static_assert(strlen_c("another\0example") == 7UL, "");
17845
17846 }
17847
17848 namespace test_rvalue_references
17849 {
17850
17851 template < int N >
17852 struct answer
17853 {
17854 static constexpr int value = N;
17855 };
17856
17857 answer<1> f(int&) { return answer<1>(); }
17858 answer<2> f(const int&) { return answer<2>(); }
17859 answer<3> f(int&&) { return answer<3>(); }
17860
17861 void
17862 test()
17863 {
17864 int i = 0;
17865 const int c = 0;
17866 static_assert(decltype(f(i))::value == 1, "");
17867 static_assert(decltype(f(c))::value == 2, "");
17868 static_assert(decltype(f(0))::value == 3, "");
17869 }
17870
17871 }
17872
17873 namespace test_uniform_initialization
17874 {
17875
17876 struct test
17877 {
17878 static const int zero {};
17879 static const int one {1};
17880 };
17881
17882 static_assert(test::zero == 0, "");
17883 static_assert(test::one == 1, "");
17884
17885 }
17886
17887 namespace test_lambdas
17888 {
17889
17890 void
17891 test1()
17892 {
17893 auto lambda1 = [](){};
17894 auto lambda2 = lambda1;
17895 lambda1();
17896 lambda2();
17897 }
17898
17899 int
17900 test2()
17901 {
17902 auto a = [](int i, int j){ return i + j; }(1, 2);
17903 auto b = []() -> int { return '0'; }();
17904 auto c = [=](){ return a + b; }();
17905 auto d = [&](){ return c; }();
17906 auto e = [a, &b](int x) mutable {
17907 const auto identity = [](int y){ return y; };
17908 for (auto i = 0; i < a; ++i)
17909 a += b--;
17910 return x + identity(a + b);
17911 }(0);
17912 return a + b + c + d + e;
17913 }
17914
17915 int
17916 test3()
17917 {
17918 const auto nullary = [](){ return 0; };
17919 const auto unary = [](int x){ return x; };
17920 using nullary_t = decltype(nullary);
17921 using unary_t = decltype(unary);
17922 const auto higher1st = [](nullary_t f){ return f(); };
17923 const auto higher2nd = [unary](nullary_t f1){
17924 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17925 };
17926 return higher1st(nullary) + higher2nd(nullary)(unary);
17927 }
17928
17929 }
17930
17931 namespace test_variadic_templates
17932 {
17933
17934 template <int...>
17935 struct sum;
17936
17937 template <int N0, int... N1toN>
17938 struct sum<N0, N1toN...>
17939 {
17940 static constexpr auto value = N0 + sum<N1toN...>::value;
17941 };
17942
17943 template <>
17944 struct sum<>
17945 {
17946 static constexpr auto value = 0;
17947 };
17948
17949 static_assert(sum<>::value == 0, "");
17950 static_assert(sum<1>::value == 1, "");
17951 static_assert(sum<23>::value == 23, "");
17952 static_assert(sum<1, 2>::value == 3, "");
17953 static_assert(sum<5, 5, 11>::value == 21, "");
17954 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17955
17956 }
17957
17958 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17959 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17960 // because of this.
17961 namespace test_template_alias_sfinae
17962 {
17963
17964 struct foo {};
17965
17966 template<typename T>
17967 using member = typename T::member_type;
17968
17969 template<typename T>
17970 void func(...) {}
17971
17972 template<typename T>
17973 void func(member<T>*) {}
17974
17975 void test();
17976
17977 void test() { func<foo>(0); }
17978
17979 }
17980
17981 } // namespace cxx11
17982
17983 #endif // __cplusplus >= 201103L
17984
17985
17986
17987 _ACEOF
17988 if ac_fn_cxx_try_compile "$LINENO"; then :
17989 eval $cachevar=yes
17990 else
17991 eval $cachevar=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 CXX="$ac_save_CXX"
17995 fi
17996 eval ac_res=\$$cachevar
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17998 $as_echo "$ac_res" >&6; }
17999 if eval test x\$$cachevar = xyes; then
18000 CXX="$CXX $switch"
18001 if test -n "$CXXCPP" ; then
18002 CXXCPP="$CXXCPP $switch"
18003 fi
18004 ac_success=yes
18005 break
18006 fi
18007 done
18008 if test x$ac_success = xyes; then
18009 break
18010 fi
18011 done
18012 fi
18013 ac_ext=cpp
18014 ac_cpp='$CXXCPP $CPPFLAGS'
18015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18018
18019 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18020 if test x$ac_success = xno; then
18021 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18022 fi
18023 fi
18024 if test x$ac_success = xno; then
18025 HAVE_CXX11=0
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18027 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18028 else
18029 HAVE_CXX11=1
18030
18031 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18032
18033 fi
18034
18035
18036
18037
18038
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
18041 $as_echo_n "checking for __attribute__((format))... " >&6; }
18042 if ${ax_cv_have_func_attribute_format+:} false; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048
18049
18050 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
18051
18052 int
18053 main ()
18054 {
18055
18056 ;
18057 return 0;
18058 }
18059
18060 _ACEOF
18061 if ac_fn_cxx_try_link "$LINENO"; then :
18062 if test -s conftest.err; then :
18063 ax_cv_have_func_attribute_format=no
18064 else
18065 ax_cv_have_func_attribute_format=yes
18066 fi
18067 else
18068 ax_cv_have_func_attribute_format=no
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072
18073 fi
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
18075 $as_echo "$ax_cv_have_func_attribute_format" >&6; }
18076
18077 if test yes = $ax_cv_have_func_attribute_format; then :
18078
18079 cat >>confdefs.h <<_ACEOF
18080 #define HAVE_FUNC_ATTRIBUTE_FORMAT 1
18081 _ACEOF
18082
18083 fi
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18096 if test -n "$ac_tool_prefix"; then
18097 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18098 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18100 $as_echo_n "checking for $ac_word... " >&6; }
18101 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 case $PKG_CONFIG in
18105 [\\/]* | ?:[\\/]*)
18106 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18107 ;;
18108 *)
18109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18110 for as_dir in $PATH
18111 do
18112 IFS=$as_save_IFS
18113 test -z "$as_dir" && as_dir=.
18114 for ac_exec_ext in '' $ac_executable_extensions; do
18115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18116 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18118 break 2
18119 fi
18120 done
18121 done
18122 IFS=$as_save_IFS
18123
18124 ;;
18125 esac
18126 fi
18127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18128 if test -n "$PKG_CONFIG"; then
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18130 $as_echo "$PKG_CONFIG" >&6; }
18131 else
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18133 $as_echo "no" >&6; }
18134 fi
18135
18136
18137 fi
18138 if test -z "$ac_cv_path_PKG_CONFIG"; then
18139 ac_pt_PKG_CONFIG=$PKG_CONFIG
18140 # Extract the first word of "pkg-config", so it can be a program name with args.
18141 set dummy pkg-config; ac_word=$2
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18143 $as_echo_n "checking for $ac_word... " >&6; }
18144 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18145 $as_echo_n "(cached) " >&6
18146 else
18147 case $ac_pt_PKG_CONFIG in
18148 [\\/]* | ?:[\\/]*)
18149 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18150 ;;
18151 *)
18152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18153 for as_dir in $PATH
18154 do
18155 IFS=$as_save_IFS
18156 test -z "$as_dir" && as_dir=.
18157 for ac_exec_ext in '' $ac_executable_extensions; do
18158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18159 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18161 break 2
18162 fi
18163 done
18164 done
18165 IFS=$as_save_IFS
18166
18167 ;;
18168 esac
18169 fi
18170 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18171 if test -n "$ac_pt_PKG_CONFIG"; then
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18173 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18174 else
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18177 fi
18178
18179 if test "x$ac_pt_PKG_CONFIG" = x; then
18180 PKG_CONFIG=""
18181 else
18182 case $cross_compiling:$ac_tool_warned in
18183 yes:)
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18186 ac_tool_warned=yes ;;
18187 esac
18188 PKG_CONFIG=$ac_pt_PKG_CONFIG
18189 fi
18190 else
18191 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18192 fi
18193
18194 fi
18195 if test -n "$PKG_CONFIG"; then
18196 _pkg_min_version=0.20
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18198 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18199 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201 $as_echo "yes" >&6; }
18202 else
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18205 PKG_CONFIG=""
18206 fi
18207 fi
18208
18209 # ====================
18210 # Find additional apps
18211 # ====================
18212
18213 pkg_failed=no
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for REVENGE" >&5
18215 $as_echo_n "checking for REVENGE... " >&6; }
18216
18217 if test -n "$REVENGE_CFLAGS"; then
18218 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
18219 elif test -n "$PKG_CONFIG"; then
18220 if test -n "$PKG_CONFIG" && \
18221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
18222 librevenge-0.0
18223 \""; } >&5
18224 ($PKG_CONFIG --exists --print-errors "
18225 librevenge-0.0
18226 ") 2>&5
18227 ac_status=$?
18228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229 test $ac_status = 0; }; then
18230 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "
18231 librevenge-0.0
18232 " 2>/dev/null`
18233 test "x$?" != "x0" && pkg_failed=yes
18234 else
18235 pkg_failed=yes
18236 fi
18237 else
18238 pkg_failed=untried
18239 fi
18240 if test -n "$REVENGE_LIBS"; then
18241 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
18242 elif test -n "$PKG_CONFIG"; then
18243 if test -n "$PKG_CONFIG" && \
18244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
18245 librevenge-0.0
18246 \""; } >&5
18247 ($PKG_CONFIG --exists --print-errors "
18248 librevenge-0.0
18249 ") 2>&5
18250 ac_status=$?
18251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18252 test $ac_status = 0; }; then
18253 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "
18254 librevenge-0.0
18255 " 2>/dev/null`
18256 test "x$?" != "x0" && pkg_failed=yes
18257 else
18258 pkg_failed=yes
18259 fi
18260 else
18261 pkg_failed=untried
18262 fi
18263
18264
18265
18266 if test $pkg_failed = yes; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268 $as_echo "no" >&6; }
18269
18270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18271 _pkg_short_errors_supported=yes
18272 else
18273 _pkg_short_errors_supported=no
18274 fi
18275 if test $_pkg_short_errors_supported = yes; then
18276 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
18277 librevenge-0.0
18278 " 2>&1`
18279 else
18280 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
18281 librevenge-0.0
18282 " 2>&1`
18283 fi
18284 # Put the nasty error message in config.log where it belongs
18285 echo "$REVENGE_PKG_ERRORS" >&5
18286
18287 as_fn_error $? "Package requirements (
18288 librevenge-0.0
18289 ) were not met:
18290
18291 $REVENGE_PKG_ERRORS
18292
18293 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18294 installed software in a non-standard prefix.
18295
18296 Alternatively, you may set the environment variables REVENGE_CFLAGS
18297 and REVENGE_LIBS to avoid the need to call pkg-config.
18298 See the pkg-config man page for more details." "$LINENO" 5
18299 elif test $pkg_failed = untried; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18301 $as_echo "no" >&6; }
18302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18304 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18305 is in your PATH or set the PKG_CONFIG environment variable to the full
18306 path to pkg-config.
18307
18308 Alternatively, you may set the environment variables REVENGE_CFLAGS
18309 and REVENGE_LIBS to avoid the need to call pkg-config.
18310 See the pkg-config man page for more details.
18311
18312 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18313 See \`config.log' for more details" "$LINENO" 5; }
18314 else
18315 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
18316 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18318 $as_echo "yes" >&6; }
18319
18320 fi
18321
18322 # ==================
18323 # Find boost headers
18324 # ==================
18325 saved_CPPFLAGS="${CPPFLAGS}"
18326 CPPFLAGS="${BOOST_CFLAGS} ${CPPFLAGS}"
18327 for ac_header in boost/algorithm/string/classification.hpp \
18328 boost/algorithm/string/join.hpp \
18329 boost/algorithm/string/replace.hpp \
18330 boost/algorithm/string/split.hpp \
18331 boost/algorithm/string/trim.hpp \
18332 boost/assign/list_of.hpp \
18333 boost/cstdint.hpp \
18334 boost/functional/hash.hpp \
18335 boost/uuid/uuid.hpp \
18336 boost/uuid/uuid_generators.hpp \
18337 boost/uuid/uuid_io.hpp \
18338
18339 do :
18340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18341 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18342
18343 "
18344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18345 cat >>confdefs.h <<_ACEOF
18346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18347 _ACEOF
18348
18349 else
18350 as_fn_error $? "Required boost headers not found." "$LINENO" 5
18351 fi
18352
18353 done
18354
18355 CPPFLAGS="${saved_CPPFLAGS}"
18356
18357
18358 # =================================
18359 # Libtool/Version Makefile settings
18360 # =================================
18361 EPUBGEN_MAJOR_VERSION=0
18362
18363 EPUBGEN_MINOR_VERSION=1
18364
18365 EPUBGEN_MICRO_VERSION=1
18366
18367 EPUBGEN_VERSION=0.1.1
18368
18369 # AC_SUBST(LT_RELEASE, [libepubgen_version_major.libepubgen_version_minor])
18370 LT_CURRENT=`expr 100 '*' 0 + 1`
18371 # For 1.0.0 comment the first line and uncomment the second
18372 LT_AGE=0
18373 # LT_AGE=libepubgen_version_minor
18374
18375 LT_REVISION=1
18376
18377
18378
18379 # ==========================
18380 # Platform check for windows
18381 # ==========================
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18383 $as_echo_n "checking for native Win32... " >&6; }
18384 case $host in #(
18385 *-*-mingw*) :
18386
18387 native_win32=yes
18388 LIBEPUBGEN_WIN32_RESOURCE=libepubgen-win32res.lo
18389 EPUBGEN2HTML_WIN32_RESOURCE=epubgen2html-win32res.lo EPUBGEN2RAW_WIN32_RESOURCE=epubgen2raw-win32res.lo EPUBGEN2TEXT_WIN32_RESOURCE=epubgen2text-win32res.lo
18390 ;; #(
18391 *) :
18392
18393 native_win32=no
18394 LIBEPUBGEN_WIN32_RESOURCE=
18395 EPUBGEN2HTML_WIN32_RESOURCE= EPUBGEN2RAW_WIN32_RESOURCE= EPUBGEN2TEXT_WIN32_RESOURCE=
18396
18397 ;;
18398 esac
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
18400 $as_echo "$native_win32" >&6; }
18401 if test "x$native_win32" = "xyes"; then
18402 OS_WIN32_TRUE=
18403 OS_WIN32_FALSE='#'
18404 else
18405 OS_WIN32_TRUE='#'
18406 OS_WIN32_FALSE=
18407 fi
18408
18409
18410
18411
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
18413 $as_echo_n "checking for Win32 platform in general... " >&6; }
18414 case $host in #(
18415 *-*-mingw*|*-*-cygwin*) :
18416 platform_win32=yes ;; #(
18417 *) :
18418 platform_win32=no
18419 ;;
18420 esac
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
18422 $as_echo "$platform_win32" >&6; }
18423 if test "x$platform_win32" = "xyes"; then
18424 PLATFORM_WIN32_TRUE=
18425 PLATFORM_WIN32_FALSE='#'
18426 else
18427 PLATFORM_WIN32_TRUE='#'
18428 PLATFORM_WIN32_FALSE=
18429 fi
18430
18431
18432 if test "x$platform_win32" = "xyes"; then :
18433
18434 else
18435
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
18437 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
18438 saved_CXXFLAGS="$CXXFLAGS"
18439 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18442
18443 int
18444 main ()
18445 {
18446
18447 ;
18448 return 0;
18449 }
18450 _ACEOF
18451 if ac_fn_cxx_try_compile "$LINENO"; then :
18452
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18454 $as_echo "yes" >&6; }
18455 CXXFLAGS="$CXXFLAGS -DLIBEPUBGEN_VISIBILITY"
18456
18457 else
18458
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18461 CXXFLAGS="$saved_CXXFLAGS"
18462
18463
18464 fi
18465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18466
18467
18468 fi
18469
18470 # ================
18471 # Check for cflags
18472 # ================
18473 # Check whether --enable-werror was given.
18474 if test "${enable_werror+set}" = set; then :
18475 enableval=$enable_werror; enable_werror="$enableval"
18476 else
18477 enable_werror=no
18478
18479 fi
18480
18481 if test x"$enable_werror" != "xno"; then :
18482
18483 CFLAGS="$CFLAGS -Werror"
18484 CXXFLAGS="$CXXFLAGS -Werror"
18485
18486 fi
18487 # Check whether --enable-weffc was given.
18488 if test "${enable_weffc+set}" = set; then :
18489 enableval=$enable_weffc; enable_weffc="$enableval"
18490 else
18491 enable_weffc=yes
18492
18493 fi
18494
18495 # Check whether --enable-wparanoic was given.
18496 if test "${enable_wparanoic+set}" = set; then :
18497 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
18498 else
18499 enable_wparanoic=no
18500
18501 fi
18502
18503 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
18504 # is used when compiling for Win32 with gcc.
18505 if test "x$native_win32" = "xyes"; then :
18506
18507 if test -n "$ac_tool_prefix"; then
18508 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18509 set dummy ${ac_tool_prefix}windres; ac_word=$2
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18511 $as_echo_n "checking for $ac_word... " >&6; }
18512 if ${ac_cv_prog_WINDRES+:} false; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 if test -n "$WINDRES"; then
18516 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18517 else
18518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18519 for as_dir in $PATH
18520 do
18521 IFS=$as_save_IFS
18522 test -z "$as_dir" && as_dir=.
18523 for ac_exec_ext in '' $ac_executable_extensions; do
18524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18525 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18527 break 2
18528 fi
18529 done
18530 done
18531 IFS=$as_save_IFS
18532
18533 fi
18534 fi
18535 WINDRES=$ac_cv_prog_WINDRES
18536 if test -n "$WINDRES"; then
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18538 $as_echo "$WINDRES" >&6; }
18539 else
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18542 fi
18543
18544
18545 fi
18546 if test -z "$ac_cv_prog_WINDRES"; then
18547 ac_ct_WINDRES=$WINDRES
18548 # Extract the first word of "windres", so it can be a program name with args.
18549 set dummy windres; ac_word=$2
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18551 $as_echo_n "checking for $ac_word... " >&6; }
18552 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
18553 $as_echo_n "(cached) " >&6
18554 else
18555 if test -n "$ac_ct_WINDRES"; then
18556 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18557 else
18558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18559 for as_dir in $PATH
18560 do
18561 IFS=$as_save_IFS
18562 test -z "$as_dir" && as_dir=.
18563 for ac_exec_ext in '' $ac_executable_extensions; do
18564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18565 ac_cv_prog_ac_ct_WINDRES="windres"
18566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18567 break 2
18568 fi
18569 done
18570 done
18571 IFS=$as_save_IFS
18572
18573 fi
18574 fi
18575 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18576 if test -n "$ac_ct_WINDRES"; then
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
18578 $as_echo "$ac_ct_WINDRES" >&6; }
18579 else
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18581 $as_echo "no" >&6; }
18582 fi
18583
18584 if test "x$ac_ct_WINDRES" = x; then
18585 WINDRES=""
18586 else
18587 case $cross_compiling:$ac_tool_warned in
18588 yes:)
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18591 ac_tool_warned=yes ;;
18592 esac
18593 WINDRES=$ac_ct_WINDRES
18594 fi
18595 else
18596 WINDRES="$ac_cv_prog_WINDRES"
18597 fi
18598
18599 if test x"$GCC" = xyes; then :
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
18602 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
18603 if test -z "$ac_cv_prog_CC"; then :
18604
18605 our_gcc="$CC"
18606
18607 else
18608
18609 our_gcc="$ac_cv_prog_CC"
18610
18611 fi
18612 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then :
18613
18614 msnative_struct="-mms-bitfields"
18615 CFLAGS="$CFLAGS $msnative_struct"
18616 CXXFLAGS="$CXXFLAGS $msnative_struct"
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
18618 $as_echo "${msnative_struct}" >&6; }
18619
18620 else
18621
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
18623 $as_echo "no way" >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
18625 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
18626
18627 fi
18628
18629 fi
18630 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
18631 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
18632
18633 else
18634
18635 if test x"$GCC" = xyes; then :
18636
18637 # Be tough with warnings and produce less careless code
18638 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
18639 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
18640 if test x"$enable_weffc" != "xno"; then :
18641
18642 CXXFLAGS="$CXXFLAGS -Weffc++"
18643
18644 fi
18645 if test x"$enable_wparanoic" != "xno"; then :
18646
18647 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
18648 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
18649 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
18650 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
18651 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
18652 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
18653 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
18654 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
18655 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
18656 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
18657 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
18658 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
18659 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
18660 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
18661 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
18662
18663 fi
18664
18665 fi
18666
18667 fi
18668
18669
18670 # ============
18671 # Debug switch
18672 # ============
18673 # Check whether --enable-debug was given.
18674 if test "${enable_debug+set}" = set; then :
18675 enableval=$enable_debug; enable_debug="$enableval"
18676 else
18677 enable_debug=no
18678
18679 fi
18680
18681 if test "x$enable_debug" = "xyes"; then :
18682
18683 DEBUG_CXXFLAGS="-DDEBUG -g"
18684 CXXFLAGS="$CXXFLAGS -O0"
18685 CFLAGS="$CFLAGS -O0"
18686
18687 else
18688
18689 DEBUG_CXXFLAGS="-DNDEBUG"
18690
18691 fi
18692
18693
18694 # ==========
18695 # Unit tests
18696 # ==========
18697 # Check whether --enable-tests was given.
18698 if test "${enable_tests+set}" = set; then :
18699 enableval=$enable_tests; enable_tests="$enableval"
18700 else
18701 enable_tests=yes
18702
18703 fi
18704
18705 if test "x$enable_tests" = "xyes"; then :
18706
18707
18708 pkg_failed=no
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
18710 $as_echo_n "checking for CPPUNIT... " >&6; }
18711
18712 if test -n "$CPPUNIT_CFLAGS"; then
18713 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
18714 elif test -n "$PKG_CONFIG"; then
18715 if test -n "$PKG_CONFIG" && \
18716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
18717 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
18718 ac_status=$?
18719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18720 test $ac_status = 0; }; then
18721 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
18722 test "x$?" != "x0" && pkg_failed=yes
18723 else
18724 pkg_failed=yes
18725 fi
18726 else
18727 pkg_failed=untried
18728 fi
18729 if test -n "$CPPUNIT_LIBS"; then
18730 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
18731 elif test -n "$PKG_CONFIG"; then
18732 if test -n "$PKG_CONFIG" && \
18733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
18734 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
18735 ac_status=$?
18736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18737 test $ac_status = 0; }; then
18738 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
18739 test "x$?" != "x0" && pkg_failed=yes
18740 else
18741 pkg_failed=yes
18742 fi
18743 else
18744 pkg_failed=untried
18745 fi
18746
18747
18748
18749 if test $pkg_failed = yes; then
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18751 $as_echo "no" >&6; }
18752
18753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18754 _pkg_short_errors_supported=yes
18755 else
18756 _pkg_short_errors_supported=no
18757 fi
18758 if test $_pkg_short_errors_supported = yes; then
18759 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
18760 else
18761 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
18762 fi
18763 # Put the nasty error message in config.log where it belongs
18764 echo "$CPPUNIT_PKG_ERRORS" >&5
18765
18766 as_fn_error $? "Package requirements (cppunit) were not met:
18767
18768 $CPPUNIT_PKG_ERRORS
18769
18770 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18771 installed software in a non-standard prefix.
18772
18773 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
18774 and CPPUNIT_LIBS to avoid the need to call pkg-config.
18775 See the pkg-config man page for more details." "$LINENO" 5
18776 elif test $pkg_failed = untried; then
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18778 $as_echo "no" >&6; }
18779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18781 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18782 is in your PATH or set the PKG_CONFIG environment variable to the full
18783 path to pkg-config.
18784
18785 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
18786 and CPPUNIT_LIBS to avoid the need to call pkg-config.
18787 See the pkg-config man page for more details.
18788
18789 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18790 See \`config.log' for more details" "$LINENO" 5; }
18791 else
18792 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
18793 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18795 $as_echo "yes" >&6; }
18796
18797 fi
18798
18799 pkg_failed=no
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
18801 $as_echo_n "checking for LIBXML... " >&6; }
18802
18803 if test -n "$LIBXML_CFLAGS"; then
18804 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
18805 elif test -n "$PKG_CONFIG"; then
18806 if test -n "$PKG_CONFIG" && \
18807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18808 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
18809 ac_status=$?
18810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18811 test $ac_status = 0; }; then
18812 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
18813 test "x$?" != "x0" && pkg_failed=yes
18814 else
18815 pkg_failed=yes
18816 fi
18817 else
18818 pkg_failed=untried
18819 fi
18820 if test -n "$LIBXML_LIBS"; then
18821 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
18822 elif test -n "$PKG_CONFIG"; then
18823 if test -n "$PKG_CONFIG" && \
18824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18825 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
18826 ac_status=$?
18827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828 test $ac_status = 0; }; then
18829 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
18830 test "x$?" != "x0" && pkg_failed=yes
18831 else
18832 pkg_failed=yes
18833 fi
18834 else
18835 pkg_failed=untried
18836 fi
18837
18838
18839
18840 if test $pkg_failed = yes; then
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18842 $as_echo "no" >&6; }
18843
18844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18845 _pkg_short_errors_supported=yes
18846 else
18847 _pkg_short_errors_supported=no
18848 fi
18849 if test $_pkg_short_errors_supported = yes; then
18850 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
18851 else
18852 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
18853 fi
18854 # Put the nasty error message in config.log where it belongs
18855 echo "$LIBXML_PKG_ERRORS" >&5
18856
18857 as_fn_error $? "Package requirements (libxml-2.0) were not met:
18858
18859 $LIBXML_PKG_ERRORS
18860
18861 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18862 installed software in a non-standard prefix.
18863
18864 Alternatively, you may set the environment variables LIBXML_CFLAGS
18865 and LIBXML_LIBS to avoid the need to call pkg-config.
18866 See the pkg-config man page for more details." "$LINENO" 5
18867 elif test $pkg_failed = untried; then
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18869 $as_echo "no" >&6; }
18870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18872 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18873 is in your PATH or set the PKG_CONFIG environment variable to the full
18874 path to pkg-config.
18875
18876 Alternatively, you may set the environment variables LIBXML_CFLAGS
18877 and LIBXML_LIBS to avoid the need to call pkg-config.
18878 See the pkg-config man page for more details.
18879
18880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18881 See \`config.log' for more details" "$LINENO" 5; }
18882 else
18883 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
18884 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886 $as_echo "yes" >&6; }
18887
18888 fi
18889
18890 fi
18891
18892
18893
18894
18895 if test "x$enable_tests" = "xyes"; then
18896 WITH_TESTS_TRUE=
18897 WITH_TESTS_FALSE='#'
18898 else
18899 WITH_TESTS_TRUE='#'
18900 WITH_TESTS_FALSE=
18901 fi
18902
18903
18904 # =============
18905 # Documentation
18906 # =============
18907
18908 # Check whether --with-docs was given.
18909 if test "${with_docs+set}" = set; then :
18910 withval=$with_docs; with_docs="$withval"
18911 else
18912 if test "x$native_win32" = "xyes"; then :
18913 with_docs=no
18914 else
18915 with_docs=yes
18916 fi
18917
18918 fi
18919
18920 if test "x$with_docs" != "xno"; then :
18921
18922 # Extract the first word of "doxygen", so it can be a program name with args.
18923 set dummy doxygen; ac_word=$2
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18925 $as_echo_n "checking for $ac_word... " >&6; }
18926 if ${ac_cv_path_DOXYGEN+:} false; then :
18927 $as_echo_n "(cached) " >&6
18928 else
18929 case $DOXYGEN in
18930 [\\/]* | ?:[\\/]*)
18931 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18932 ;;
18933 *)
18934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18935 for as_dir in $PATH
18936 do
18937 IFS=$as_save_IFS
18938 test -z "$as_dir" && as_dir=.
18939 for ac_exec_ext in '' $ac_executable_extensions; do
18940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18941 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18943 break 2
18944 fi
18945 done
18946 done
18947 IFS=$as_save_IFS
18948
18949 ;;
18950 esac
18951 fi
18952 DOXYGEN=$ac_cv_path_DOXYGEN
18953 if test -n "$DOXYGEN"; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18955 $as_echo "$DOXYGEN" >&6; }
18956 else
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18958 $as_echo "no" >&6; }
18959 fi
18960
18961
18962 if test -z "$DOXYGEN"; then :
18963
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
18965 $as_echo "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
18967 $as_echo "$as_me: WARNING: *** The documentation will not be built." >&2;}
18968 build_docs=no
18969
18970 else
18971 build_docs=yes
18972 fi
18973
18974 else
18975 build_docs=no
18976 fi
18977 if test "x$build_docs" != "xno"; then
18978 WITH_DOCS_TRUE=
18979 WITH_DOCS_FALSE='#'
18980 else
18981 WITH_DOCS_TRUE='#'
18982 WITH_DOCS_FALSE=
18983 fi
18984
18985
18986 # =====================
18987 # Prepare all .in files
18988 # =====================
18989 ac_config_files="$ac_config_files Makefile inc/Makefile inc/libepubgen/Makefile src/Makefile src/lib/Makefile src/lib/libepubgen.rc src/test/Makefile build/Makefile build/win32/Makefile docs/Makefile docs/doxygen/Makefile libepubgen-$EPUBGEN_MAJOR_VERSION.$EPUBGEN_MINOR_VERSION.pc:libepubgen.pc.in"
18990
18991 cat >confcache <<\_ACEOF
18992 # This file is a shell script that caches the results of configure
18993 # tests run on this system so they can be shared between configure
18994 # scripts and configure runs, see configure's option --config-cache.
18995 # It is not useful on other systems. If it contains results you don't
18996 # want to keep, you may remove or edit it.
18997 #
18998 # config.status only pays attention to the cache file if you give it
18999 # the --recheck option to rerun configure.
19000 #
19001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19003 # following values.
19004
19005 _ACEOF
19006
19007 # The following way of writing the cache mishandles newlines in values,
19008 # but we know of no workaround that is simple, portable, and efficient.
19009 # So, we kill variables containing newlines.
19010 # Ultrix sh set writes to stderr and can't be redirected directly,
19011 # and sets the high bit in the cache file unless we assign to the vars.
19012 (
19013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19014 eval ac_val=\$$ac_var
19015 case $ac_val in #(
19016 *${as_nl}*)
19017 case $ac_var in #(
19018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19020 esac
19021 case $ac_var in #(
19022 _ | IFS | as_nl) ;; #(
19023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19024 *) { eval $ac_var=; unset $ac_var;} ;;
19025 esac ;;
19026 esac
19027 done
19028
19029 (set) 2>&1 |
19030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19031 *${as_nl}ac_space=\ *)
19032 # `set' does not quote correctly, so add quotes: double-quote
19033 # substitution turns \\\\ into \\, and sed turns \\ into \.
19034 sed -n \
19035 "s/'/'\\\\''/g;
19036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19037 ;; #(
19038 *)
19039 # `set' quotes correctly as required by POSIX, so do not add quotes.
19040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19041 ;;
19042 esac |
19043 sort
19044 ) |
19045 sed '
19046 /^ac_cv_env_/b end
19047 t clear
19048 :clear
19049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19050 t end
19051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19052 :end' >>confcache
19053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19054 if test -w "$cache_file"; then
19055 if test "x$cache_file" != "x/dev/null"; then
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19057 $as_echo "$as_me: updating cache $cache_file" >&6;}
19058 if test ! -f "$cache_file" || test -h "$cache_file"; then
19059 cat confcache >"$cache_file"
19060 else
19061 case $cache_file in #(
19062 */* | ?:*)
19063 mv -f confcache "$cache_file"$$ &&
19064 mv -f "$cache_file"$$ "$cache_file" ;; #(
19065 *)
19066 mv -f confcache "$cache_file" ;;
19067 esac
19068 fi
19069 fi
19070 else
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19072 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19073 fi
19074 fi
19075 rm -f confcache
19076
19077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19078 # Let make expand exec_prefix.
19079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19080
19081 DEFS=-DHAVE_CONFIG_H
19082
19083 ac_libobjs=
19084 ac_ltlibobjs=
19085 U=
19086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19087 # 1. Remove the extension, and $U if already installed.
19088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19091 # will be set to the directory where LIBOBJS objects are built.
19092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19094 done
19095 LIBOBJS=$ac_libobjs
19096
19097 LTLIBOBJS=$ac_ltlibobjs
19098
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19101 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19102 if test -n "$am_sleep_pid"; then
19103 # Hide warnings about reused PIDs.
19104 wait $am_sleep_pid 2>/dev/null
19105 fi
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19107 $as_echo "done" >&6; }
19108 if test -n "$EXEEXT"; then
19109 am__EXEEXT_TRUE=
19110 am__EXEEXT_FALSE='#'
19111 else
19112 am__EXEEXT_TRUE='#'
19113 am__EXEEXT_FALSE=
19114 fi
19115
19116 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19117 as_fn_error $? "conditional \"AMDEP\" was never defined.
19118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19119 fi
19120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19121 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19123 fi
19124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19127 fi
19128 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19129 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19131 fi
19132 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19133 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19135 fi
19136 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
19137 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
19138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19139 fi
19140 if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
19141 as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
19142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19143 fi
19144 if test -z "${WITH_DOCS_TRUE}" && test -z "${WITH_DOCS_FALSE}"; then
19145 as_fn_error $? "conditional \"WITH_DOCS\" was never defined.
19146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19147 fi
19148
19149 : "${CONFIG_STATUS=./config.status}"
19150 ac_write_fail=0
19151 ac_clean_files_save=$ac_clean_files
19152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19155 as_write_fail=0
19156 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19157 #! $SHELL
19158 # Generated by $as_me.
19159 # Run this file to recreate the current configuration.
19160 # Compiler output produced by configure, useful for debugging
19161 # configure, is in config.log if it exists.
19162
19163 debug=false
19164 ac_cs_recheck=false
19165 ac_cs_silent=false
19166
19167 SHELL=\${CONFIG_SHELL-$SHELL}
19168 export SHELL
19169 _ASEOF
19170 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19171 ## -------------------- ##
19172 ## M4sh Initialization. ##
19173 ## -------------------- ##
19174
19175 # Be more Bourne compatible
19176 DUALCASE=1; export DUALCASE # for MKS sh
19177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19178 emulate sh
19179 NULLCMD=:
19180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19181 # is contrary to our usage. Disable this feature.
19182 alias -g '${1+"$@"}'='"$@"'
19183 setopt NO_GLOB_SUBST
19184 else
19185 case `(set -o) 2>/dev/null` in #(
19186 *posix*) :
19187 set -o posix ;; #(
19188 *) :
19189 ;;
19190 esac
19191 fi
19192
19193
19194 as_nl='
19195 '
19196 export as_nl
19197 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19198 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19201 # Prefer a ksh shell builtin over an external printf program on Solaris,
19202 # but without wasting forks for bash or zsh.
19203 if test -z "$BASH_VERSION$ZSH_VERSION" \
19204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19205 as_echo='print -r --'
19206 as_echo_n='print -rn --'
19207 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19208 as_echo='printf %s\n'
19209 as_echo_n='printf %s'
19210 else
19211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19213 as_echo_n='/usr/ucb/echo -n'
19214 else
19215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19216 as_echo_n_body='eval
19217 arg=$1;
19218 case $arg in #(
19219 *"$as_nl"*)
19220 expr "X$arg" : "X\\(.*\\)$as_nl";
19221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19222 esac;
19223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19224 '
19225 export as_echo_n_body
19226 as_echo_n='sh -c $as_echo_n_body as_echo'
19227 fi
19228 export as_echo_body
19229 as_echo='sh -c $as_echo_body as_echo'
19230 fi
19231
19232 # The user is always right.
19233 if test "${PATH_SEPARATOR+set}" != set; then
19234 PATH_SEPARATOR=:
19235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19237 PATH_SEPARATOR=';'
19238 }
19239 fi
19240
19241
19242 # IFS
19243 # We need space, tab and new line, in precisely that order. Quoting is
19244 # there to prevent editors from complaining about space-tab.
19245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19246 # splitting by setting IFS to empty value.)
19247 IFS=" "" $as_nl"
19248
19249 # Find who we are. Look in the path if we contain no directory separator.
19250 as_myself=
19251 case $0 in #((
19252 *[\\/]* ) as_myself=$0 ;;
19253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19254 for as_dir in $PATH
19255 do
19256 IFS=$as_save_IFS
19257 test -z "$as_dir" && as_dir=.
19258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19259 done
19260 IFS=$as_save_IFS
19261
19262 ;;
19263 esac
19264 # We did not find ourselves, most probably we were run as `sh COMMAND'
19265 # in which case we are not to be found in the path.
19266 if test "x$as_myself" = x; then
19267 as_myself=$0
19268 fi
19269 if test ! -f "$as_myself"; then
19270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19271 exit 1
19272 fi
19273
19274 # Unset variables that we do not need and which cause bugs (e.g. in
19275 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19276 # suppresses any "Segmentation fault" message there. '((' could
19277 # trigger a bug in pdksh 5.2.14.
19278 for as_var in BASH_ENV ENV MAIL MAILPATH
19279 do eval test x\${$as_var+set} = xset \
19280 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19281 done
19282 PS1='$ '
19283 PS2='> '
19284 PS4='+ '
19285
19286 # NLS nuisances.
19287 LC_ALL=C
19288 export LC_ALL
19289 LANGUAGE=C
19290 export LANGUAGE
19291
19292 # CDPATH.
19293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19294
19295
19296 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19297 # ----------------------------------------
19298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19300 # script with STATUS, using 1 if that was 0.
19301 as_fn_error ()
19302 {
19303 as_status=$1; test $as_status -eq 0 && as_status=1
19304 if test "$4"; then
19305 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19307 fi
19308 $as_echo "$as_me: error: $2" >&2
19309 as_fn_exit $as_status
19310 } # as_fn_error
19311
19312
19313 # as_fn_set_status STATUS
19314 # -----------------------
19315 # Set $? to STATUS, without forking.
19316 as_fn_set_status ()
19317 {
19318 return $1
19319 } # as_fn_set_status
19320
19321 # as_fn_exit STATUS
19322 # -----------------
19323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19324 as_fn_exit ()
19325 {
19326 set +e
19327 as_fn_set_status $1
19328 exit $1
19329 } # as_fn_exit
19330
19331 # as_fn_unset VAR
19332 # ---------------
19333 # Portably unset VAR.
19334 as_fn_unset ()
19335 {
19336 { eval $1=; unset $1;}
19337 }
19338 as_unset=as_fn_unset
19339 # as_fn_append VAR VALUE
19340 # ----------------------
19341 # Append the text in VALUE to the end of the definition contained in VAR. Take
19342 # advantage of any shell optimizations that allow amortized linear growth over
19343 # repeated appends, instead of the typical quadratic growth present in naive
19344 # implementations.
19345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19346 eval 'as_fn_append ()
19347 {
19348 eval $1+=\$2
19349 }'
19350 else
19351 as_fn_append ()
19352 {
19353 eval $1=\$$1\$2
19354 }
19355 fi # as_fn_append
19356
19357 # as_fn_arith ARG...
19358 # ------------------
19359 # Perform arithmetic evaluation on the ARGs, and store the result in the
19360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19361 # must be portable across $(()) and expr.
19362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19363 eval 'as_fn_arith ()
19364 {
19365 as_val=$(( $* ))
19366 }'
19367 else
19368 as_fn_arith ()
19369 {
19370 as_val=`expr "$@" || test $? -eq 1`
19371 }
19372 fi # as_fn_arith
19373
19374
19375 if expr a : '\(a\)' >/dev/null 2>&1 &&
19376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19377 as_expr=expr
19378 else
19379 as_expr=false
19380 fi
19381
19382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19383 as_basename=basename
19384 else
19385 as_basename=false
19386 fi
19387
19388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19389 as_dirname=dirname
19390 else
19391 as_dirname=false
19392 fi
19393
19394 as_me=`$as_basename -- "$0" ||
19395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19396 X"$0" : 'X\(//\)$' \| \
19397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19398 $as_echo X/"$0" |
19399 sed '/^.*\/\([^/][^/]*\)\/*$/{
19400 s//\1/
19401 q
19402 }
19403 /^X\/\(\/\/\)$/{
19404 s//\1/
19405 q
19406 }
19407 /^X\/\(\/\).*/{
19408 s//\1/
19409 q
19410 }
19411 s/.*/./; q'`
19412
19413 # Avoid depending upon Character Ranges.
19414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19417 as_cr_digits='0123456789'
19418 as_cr_alnum=$as_cr_Letters$as_cr_digits
19419
19420 ECHO_C= ECHO_N= ECHO_T=
19421 case `echo -n x` in #(((((
19422 -n*)
19423 case `echo 'xy\c'` in
19424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19425 xy) ECHO_C='\c';;
19426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19427 ECHO_T=' ';;
19428 esac;;
19429 *)
19430 ECHO_N='-n';;
19431 esac
19432
19433 rm -f conf$$ conf$$.exe conf$$.file
19434 if test -d conf$$.dir; then
19435 rm -f conf$$.dir/conf$$.file
19436 else
19437 rm -f conf$$.dir
19438 mkdir conf$$.dir 2>/dev/null
19439 fi
19440 if (echo >conf$$.file) 2>/dev/null; then
19441 if ln -s conf$$.file conf$$ 2>/dev/null; then
19442 as_ln_s='ln -s'
19443 # ... but there are two gotchas:
19444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19446 # In both cases, we have to default to `cp -pR'.
19447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19448 as_ln_s='cp -pR'
19449 elif ln conf$$.file conf$$ 2>/dev/null; then
19450 as_ln_s=ln
19451 else
19452 as_ln_s='cp -pR'
19453 fi
19454 else
19455 as_ln_s='cp -pR'
19456 fi
19457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19458 rmdir conf$$.dir 2>/dev/null
19459
19460
19461 # as_fn_mkdir_p
19462 # -------------
19463 # Create "$as_dir" as a directory, including parents if necessary.
19464 as_fn_mkdir_p ()
19465 {
19466
19467 case $as_dir in #(
19468 -*) as_dir=./$as_dir;;
19469 esac
19470 test -d "$as_dir" || eval $as_mkdir_p || {
19471 as_dirs=
19472 while :; do
19473 case $as_dir in #(
19474 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19475 *) as_qdir=$as_dir;;
19476 esac
19477 as_dirs="'$as_qdir' $as_dirs"
19478 as_dir=`$as_dirname -- "$as_dir" ||
19479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19480 X"$as_dir" : 'X\(//\)[^/]' \| \
19481 X"$as_dir" : 'X\(//\)$' \| \
19482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19483 $as_echo X"$as_dir" |
19484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19485 s//\1/
19486 q
19487 }
19488 /^X\(\/\/\)[^/].*/{
19489 s//\1/
19490 q
19491 }
19492 /^X\(\/\/\)$/{
19493 s//\1/
19494 q
19495 }
19496 /^X\(\/\).*/{
19497 s//\1/
19498 q
19499 }
19500 s/.*/./; q'`
19501 test -d "$as_dir" && break
19502 done
19503 test -z "$as_dirs" || eval "mkdir $as_dirs"
19504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19505
19506
19507 } # as_fn_mkdir_p
19508 if mkdir -p . 2>/dev/null; then
19509 as_mkdir_p='mkdir -p "$as_dir"'
19510 else
19511 test -d ./-p && rmdir ./-p
19512 as_mkdir_p=false
19513 fi
19514
19515
19516 # as_fn_executable_p FILE
19517 # -----------------------
19518 # Test if FILE is an executable regular file.
19519 as_fn_executable_p ()
19520 {
19521 test -f "$1" && test -x "$1"
19522 } # as_fn_executable_p
19523 as_test_x='test -x'
19524 as_executable_p=as_fn_executable_p
19525
19526 # Sed expression to map a string onto a valid CPP name.
19527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19528
19529 # Sed expression to map a string onto a valid variable name.
19530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19531
19532
19533 exec 6>&1
19534 ## ----------------------------------- ##
19535 ## Main body of $CONFIG_STATUS script. ##
19536 ## ----------------------------------- ##
19537 _ASEOF
19538 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19539
19540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19541 # Save the log message, to keep $0 and so on meaningful, and to
19542 # report actual input values of CONFIG_FILES etc. instead of their
19543 # values after options handling.
19544 ac_log="
19545 This file was extended by libepubgen $as_me 0.1.1, which was
19546 generated by GNU Autoconf 2.69. Invocation command line was
19547
19548 CONFIG_FILES = $CONFIG_FILES
19549 CONFIG_HEADERS = $CONFIG_HEADERS
19550 CONFIG_LINKS = $CONFIG_LINKS
19551 CONFIG_COMMANDS = $CONFIG_COMMANDS
19552 $ $0 $@
19553
19554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19555 "
19556
19557 _ACEOF
19558
19559 case $ac_config_files in *"
19560 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19561 esac
19562
19563 case $ac_config_headers in *"
19564 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19565 esac
19566
19567
19568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19569 # Files that config.status was made for.
19570 config_files="$ac_config_files"
19571 config_headers="$ac_config_headers"
19572 config_commands="$ac_config_commands"
19573
19574 _ACEOF
19575
19576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19577 ac_cs_usage="\
19578 \`$as_me' instantiates files and other configuration actions
19579 from templates according to the current configuration. Unless the files
19580 and actions are specified as TAGs, all are instantiated by default.
19581
19582 Usage: $0 [OPTION]... [TAG]...
19583
19584 -h, --help print this help, then exit
19585 -V, --version print version number and configuration settings, then exit
19586 --config print configuration, then exit
19587 -q, --quiet, --silent
19588 do not print progress messages
19589 -d, --debug don't remove temporary files
19590 --recheck update $as_me by reconfiguring in the same conditions
19591 --file=FILE[:TEMPLATE]
19592 instantiate the configuration file FILE
19593 --header=FILE[:TEMPLATE]
19594 instantiate the configuration header FILE
19595
19596 Configuration files:
19597 $config_files
19598
19599 Configuration headers:
19600 $config_headers
19601
19602 Configuration commands:
19603 $config_commands
19604
19605 Report bugs to the package provider."
19606
19607 _ACEOF
19608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19609 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19610 ac_cs_version="\\
19611 libepubgen config.status 0.1.1
19612 configured by $0, generated by GNU Autoconf 2.69,
19613 with options \\"\$ac_cs_config\\"
19614
19615 Copyright (C) 2012 Free Software Foundation, Inc.
19616 This config.status script is free software; the Free Software Foundation
19617 gives unlimited permission to copy, distribute and modify it."
19618
19619 ac_pwd='$ac_pwd'
19620 srcdir='$srcdir'
19621 INSTALL='$INSTALL'
19622 MKDIR_P='$MKDIR_P'
19623 AWK='$AWK'
19624 test -n "\$AWK" || AWK=awk
19625 _ACEOF
19626
19627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19628 # The default lists apply if the user does not specify any file.
19629 ac_need_defaults=:
19630 while test $# != 0
19631 do
19632 case $1 in
19633 --*=?*)
19634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19636 ac_shift=:
19637 ;;
19638 --*=)
19639 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19640 ac_optarg=
19641 ac_shift=:
19642 ;;
19643 *)
19644 ac_option=$1
19645 ac_optarg=$2
19646 ac_shift=shift
19647 ;;
19648 esac
19649
19650 case $ac_option in
19651 # Handling of the options.
19652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19653 ac_cs_recheck=: ;;
19654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19655 $as_echo "$ac_cs_version"; exit ;;
19656 --config | --confi | --conf | --con | --co | --c )
19657 $as_echo "$ac_cs_config"; exit ;;
19658 --debug | --debu | --deb | --de | --d | -d )
19659 debug=: ;;
19660 --file | --fil | --fi | --f )
19661 $ac_shift
19662 case $ac_optarg in
19663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19664 '') as_fn_error $? "missing file argument" ;;
19665 esac
19666 as_fn_append CONFIG_FILES " '$ac_optarg'"
19667 ac_need_defaults=false;;
19668 --header | --heade | --head | --hea )
19669 $ac_shift
19670 case $ac_optarg in
19671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19672 esac
19673 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19674 ac_need_defaults=false;;
19675 --he | --h)
19676 # Conflict between --help and --header
19677 as_fn_error $? "ambiguous option: \`$1'
19678 Try \`$0 --help' for more information.";;
19679 --help | --hel | -h )
19680 $as_echo "$ac_cs_usage"; exit ;;
19681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19683 ac_cs_silent=: ;;
19684
19685 # This is an error.
19686 -*) as_fn_error $? "unrecognized option: \`$1'
19687 Try \`$0 --help' for more information." ;;
19688
19689 *) as_fn_append ac_config_targets " $1"
19690 ac_need_defaults=false ;;
19691
19692 esac
19693 shift
19694 done
19695
19696 ac_configure_extra_args=
19697
19698 if $ac_cs_silent; then
19699 exec 6>/dev/null
19700 ac_configure_extra_args="$ac_configure_extra_args --silent"
19701 fi
19702
19703 _ACEOF
19704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19705 if \$ac_cs_recheck; then
19706 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19707 shift
19708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19709 CONFIG_SHELL='$SHELL'
19710 export CONFIG_SHELL
19711 exec "\$@"
19712 fi
19713
19714 _ACEOF
19715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19716 exec 5>>config.log
19717 {
19718 echo
19719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19720 ## Running $as_me. ##
19721 _ASBOX
19722 $as_echo "$ac_log"
19723 } >&5
19724
19725 _ACEOF
19726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19727 #
19728 # INIT-COMMANDS
19729 #
19730 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19731
19732
19733 # The HP-UX ksh and POSIX shell print the target directory to stdout
19734 # if CDPATH is set.
19735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19736
19737 sed_quote_subst='$sed_quote_subst'
19738 double_quote_subst='$double_quote_subst'
19739 delay_variable_subst='$delay_variable_subst'
19740 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19741 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19742 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19743 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19744 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19745 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19746 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19747 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19748 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19749 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19750 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19751 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19752 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19753 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19754 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19755 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19756 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19757 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19758 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19759 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19760 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19761 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19762 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19763 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19764 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19765 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19766 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19767 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19768 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19769 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19770 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19771 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19772 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19773 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19774 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19775 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19776 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19777 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19778 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19779 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19780 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19781 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19782 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19783 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19784 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19785 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19786 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19787 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19788 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19789 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19790 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19791 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19792 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19793 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19794 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19795 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19796 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19797 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19798 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19799 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"`'
19800 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19801 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19802 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19803 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19804 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19805 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19806 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19807 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19808 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19809 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19810 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19811 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19812 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19813 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19814 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19815 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19816 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19817 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19818 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19819 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19820 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19821 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19822 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19823 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19824 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19825 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19826 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19827 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19828 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19829 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19830 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19831 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19832 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19833 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19834 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19835 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19836 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19837 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19838 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19839 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19840 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19841 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19842 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19843 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19844 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19845 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19846 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19847 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19848 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19849 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19850 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19851 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19852 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19853 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19854 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19855 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19856 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19857 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19858 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19859 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19860 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19861 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19862 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19863 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19864 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19865 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19866 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19867 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19868 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19869 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19870 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19871 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19872 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19873 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19874 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19875 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19876 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19877 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19878 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19879 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19880 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19881 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19882 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19883 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19884 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19885 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19886 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19887 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19888 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19889 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19890 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19891 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19892 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19893 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19894 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19895 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19896 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19897 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19898 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19899 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19900 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19901 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19902 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19903 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19904 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19905 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19906 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19907 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19908 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19909 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19910 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19911 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19912 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19913 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19914 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19915 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19916 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19917 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19918 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19919 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19920 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19921 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19922 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19923 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19924 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19925 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19926 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19927 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19928 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19929 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19930
19931 LTCC='$LTCC'
19932 LTCFLAGS='$LTCFLAGS'
19933 compiler='$compiler_DEFAULT'
19934
19935 # A function that is used when there is no print builtin or printf.
19936 func_fallback_echo ()
19937 {
19938 eval 'cat <<_LTECHO_EOF
19939 \$1
19940 _LTECHO_EOF'
19941 }
19942
19943 # Quote evaled strings.
19944 for var in AS \
19945 DLLTOOL \
19946 OBJDUMP \
19947 SHELL \
19948 ECHO \
19949 PATH_SEPARATOR \
19950 SED \
19951 GREP \
19952 EGREP \
19953 FGREP \
19954 LD \
19955 NM \
19956 LN_S \
19957 lt_SP2NL \
19958 lt_NL2SP \
19959 reload_flag \
19960 deplibs_check_method \
19961 file_magic_cmd \
19962 file_magic_glob \
19963 want_nocaseglob \
19964 sharedlib_from_linklib_cmd \
19965 AR \
19966 AR_FLAGS \
19967 archiver_list_spec \
19968 STRIP \
19969 RANLIB \
19970 CC \
19971 CFLAGS \
19972 compiler \
19973 lt_cv_sys_global_symbol_pipe \
19974 lt_cv_sys_global_symbol_to_cdecl \
19975 lt_cv_sys_global_symbol_to_import \
19976 lt_cv_sys_global_symbol_to_c_name_address \
19977 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19978 lt_cv_nm_interface \
19979 nm_file_list_spec \
19980 lt_cv_truncate_bin \
19981 lt_prog_compiler_no_builtin_flag \
19982 lt_prog_compiler_pic \
19983 lt_prog_compiler_wl \
19984 lt_prog_compiler_static \
19985 lt_cv_prog_compiler_c_o \
19986 need_locks \
19987 MANIFEST_TOOL \
19988 DSYMUTIL \
19989 NMEDIT \
19990 LIPO \
19991 OTOOL \
19992 OTOOL64 \
19993 shrext_cmds \
19994 export_dynamic_flag_spec \
19995 whole_archive_flag_spec \
19996 compiler_needs_object \
19997 with_gnu_ld \
19998 allow_undefined_flag \
19999 no_undefined_flag \
20000 hardcode_libdir_flag_spec \
20001 hardcode_libdir_separator \
20002 exclude_expsyms \
20003 include_expsyms \
20004 file_list_spec \
20005 variables_saved_for_relink \
20006 libname_spec \
20007 library_names_spec \
20008 soname_spec \
20009 install_override_mode \
20010 finish_eval \
20011 old_striplib \
20012 striplib \
20013 compiler_lib_search_dirs \
20014 predep_objects \
20015 postdep_objects \
20016 predeps \
20017 postdeps \
20018 compiler_lib_search_path \
20019 LD_CXX \
20020 reload_flag_CXX \
20021 compiler_CXX \
20022 lt_prog_compiler_no_builtin_flag_CXX \
20023 lt_prog_compiler_pic_CXX \
20024 lt_prog_compiler_wl_CXX \
20025 lt_prog_compiler_static_CXX \
20026 lt_cv_prog_compiler_c_o_CXX \
20027 export_dynamic_flag_spec_CXX \
20028 whole_archive_flag_spec_CXX \
20029 compiler_needs_object_CXX \
20030 with_gnu_ld_CXX \
20031 allow_undefined_flag_CXX \
20032 no_undefined_flag_CXX \
20033 hardcode_libdir_flag_spec_CXX \
20034 hardcode_libdir_separator_CXX \
20035 exclude_expsyms_CXX \
20036 include_expsyms_CXX \
20037 file_list_spec_CXX \
20038 compiler_lib_search_dirs_CXX \
20039 predep_objects_CXX \
20040 postdep_objects_CXX \
20041 predeps_CXX \
20042 postdeps_CXX \
20043 compiler_lib_search_path_CXX; do
20044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20045 *[\\\\\\\`\\"\\\$]*)
20046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20047 ;;
20048 *)
20049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20050 ;;
20051 esac
20052 done
20053
20054 # Double-quote double-evaled strings.
20055 for var in reload_cmds \
20056 old_postinstall_cmds \
20057 old_postuninstall_cmds \
20058 old_archive_cmds \
20059 extract_expsyms_cmds \
20060 old_archive_from_new_cmds \
20061 old_archive_from_expsyms_cmds \
20062 archive_cmds \
20063 archive_expsym_cmds \
20064 module_cmds \
20065 module_expsym_cmds \
20066 export_symbols_cmds \
20067 prelink_cmds \
20068 postlink_cmds \
20069 postinstall_cmds \
20070 postuninstall_cmds \
20071 finish_cmds \
20072 sys_lib_search_path_spec \
20073 configure_time_dlsearch_path \
20074 configure_time_lt_sys_library_path \
20075 reload_cmds_CXX \
20076 old_archive_cmds_CXX \
20077 old_archive_from_new_cmds_CXX \
20078 old_archive_from_expsyms_cmds_CXX \
20079 archive_cmds_CXX \
20080 archive_expsym_cmds_CXX \
20081 module_cmds_CXX \
20082 module_expsym_cmds_CXX \
20083 export_symbols_cmds_CXX \
20084 prelink_cmds_CXX \
20085 postlink_cmds_CXX; do
20086 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20087 *[\\\\\\\`\\"\\\$]*)
20088 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20089 ;;
20090 *)
20091 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20092 ;;
20093 esac
20094 done
20095
20096 ac_aux_dir='$ac_aux_dir'
20097
20098 # See if we are running on zsh, and set the options that allow our
20099 # commands through without removal of \ escapes INIT.
20100 if test -n "\${ZSH_VERSION+set}"; then
20101 setopt NO_GLOB_SUBST
20102 fi
20103
20104
20105 PACKAGE='$PACKAGE'
20106 VERSION='$VERSION'
20107 RM='$RM'
20108 ofile='$ofile'
20109
20110
20111
20112
20113
20114
20115 _ACEOF
20116
20117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20118
20119 # Handling of arguments.
20120 for ac_config_target in $ac_config_targets
20121 do
20122 case $ac_config_target in
20123 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20124 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20125 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20126 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20127 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
20128 "inc/libepubgen/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libepubgen/Makefile" ;;
20129 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20130 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20131 "src/lib/libepubgen.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libepubgen.rc" ;;
20132 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
20133 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
20134 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
20135 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20136 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
20137 "libepubgen-$EPUBGEN_MAJOR_VERSION.$EPUBGEN_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libepubgen-$EPUBGEN_MAJOR_VERSION.$EPUBGEN_MINOR_VERSION.pc:libepubgen.pc.in" ;;
20138
20139 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20140 esac
20141 done
20142
20143
20144 # If the user did not use the arguments to specify the items to instantiate,
20145 # then the envvar interface is used. Set only those that are not.
20146 # We use the long form for the default assignment because of an extremely
20147 # bizarre bug on SunOS 4.1.3.
20148 if $ac_need_defaults; then
20149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20152 fi
20153
20154 # Have a temporary directory for convenience. Make it in the build tree
20155 # simply because there is no reason against having it here, and in addition,
20156 # creating and moving files from /tmp can sometimes cause problems.
20157 # Hook for its removal unless debugging.
20158 # Note that there is a small window in which the directory will not be cleaned:
20159 # after its creation but before its name has been assigned to `$tmp'.
20160 $debug ||
20161 {
20162 tmp= ac_tmp=
20163 trap 'exit_status=$?
20164 : "${ac_tmp:=$tmp}"
20165 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20166 ' 0
20167 trap 'as_fn_exit 1' 1 2 13 15
20168 }
20169 # Create a (secure) tmp directory for tmp files.
20170
20171 {
20172 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20173 test -d "$tmp"
20174 } ||
20175 {
20176 tmp=./conf$$-$RANDOM
20177 (umask 077 && mkdir "$tmp")
20178 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20179 ac_tmp=$tmp
20180
20181 # Set up the scripts for CONFIG_FILES section.
20182 # No need to generate them if there are no CONFIG_FILES.
20183 # This happens for instance with `./config.status config.h'.
20184 if test -n "$CONFIG_FILES"; then
20185
20186
20187 ac_cr=`echo X | tr X '\015'`
20188 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20189 # But we know of no other shell where ac_cr would be empty at this
20190 # point, so we can use a bashism as a fallback.
20191 if test "x$ac_cr" = x; then
20192 eval ac_cr=\$\'\\r\'
20193 fi
20194 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20195 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20196 ac_cs_awk_cr='\\r'
20197 else
20198 ac_cs_awk_cr=$ac_cr
20199 fi
20200
20201 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20202 _ACEOF
20203
20204
20205 {
20206 echo "cat >conf$$subs.awk <<_ACEOF" &&
20207 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20208 echo "_ACEOF"
20209 } >conf$$subs.sh ||
20210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20211 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20212 ac_delim='%!_!# '
20213 for ac_last_try in false false false false false :; do
20214 . ./conf$$subs.sh ||
20215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20216
20217 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20218 if test $ac_delim_n = $ac_delim_num; then
20219 break
20220 elif $ac_last_try; then
20221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20222 else
20223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20224 fi
20225 done
20226 rm -f conf$$subs.sh
20227
20228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20229 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20230 _ACEOF
20231 sed -n '
20232 h
20233 s/^/S["/; s/!.*/"]=/
20234 p
20235 g
20236 s/^[^!]*!//
20237 :repl
20238 t repl
20239 s/'"$ac_delim"'$//
20240 t delim
20241 :nl
20242 h
20243 s/\(.\{148\}\)..*/\1/
20244 t more1
20245 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20246 p
20247 n
20248 b repl
20249 :more1
20250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20251 p
20252 g
20253 s/.\{148\}//
20254 t nl
20255 :delim
20256 h
20257 s/\(.\{148\}\)..*/\1/
20258 t more2
20259 s/["\\]/\\&/g; s/^/"/; s/$/"/
20260 p
20261 b
20262 :more2
20263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20264 p
20265 g
20266 s/.\{148\}//
20267 t delim
20268 ' <conf$$subs.awk | sed '
20269 /^[^""]/{
20270 N
20271 s/\n//
20272 }
20273 ' >>$CONFIG_STATUS || ac_write_fail=1
20274 rm -f conf$$subs.awk
20275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20276 _ACAWK
20277 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20278 for (key in S) S_is_set[key] = 1
20279 FS = ""
20280
20281 }
20282 {
20283 line = $ 0
20284 nfields = split(line, field, "@")
20285 substed = 0
20286 len = length(field[1])
20287 for (i = 2; i < nfields; i++) {
20288 key = field[i]
20289 keylen = length(key)
20290 if (S_is_set[key]) {
20291 value = S[key]
20292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20293 len += length(value) + length(field[++i])
20294 substed = 1
20295 } else
20296 len += 1 + keylen
20297 }
20298
20299 print line
20300 }
20301
20302 _ACAWK
20303 _ACEOF
20304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20305 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20306 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20307 else
20308 cat
20309 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20310 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20311 _ACEOF
20312
20313 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20314 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20315 # trailing colons and then remove the whole line if VPATH becomes empty
20316 # (actually we leave an empty line to preserve line numbers).
20317 if test "x$srcdir" = x.; then
20318 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20319 h
20320 s///
20321 s/^/:/
20322 s/[ ]*$/:/
20323 s/:\$(srcdir):/:/g
20324 s/:\${srcdir}:/:/g
20325 s/:@srcdir@:/:/g
20326 s/^:*//
20327 s/:*$//
20328 x
20329 s/\(=[ ]*\).*/\1/
20330 G
20331 s/\n//
20332 s/^[^=]*=[ ]*$//
20333 }'
20334 fi
20335
20336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20337 fi # test -n "$CONFIG_FILES"
20338
20339 # Set up the scripts for CONFIG_HEADERS section.
20340 # No need to generate them if there are no CONFIG_HEADERS.
20341 # This happens for instance with `./config.status Makefile'.
20342 if test -n "$CONFIG_HEADERS"; then
20343 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20344 BEGIN {
20345 _ACEOF
20346
20347 # Transform confdefs.h into an awk script `defines.awk', embedded as
20348 # here-document in config.status, that substitutes the proper values into
20349 # config.h.in to produce config.h.
20350
20351 # Create a delimiter string that does not exist in confdefs.h, to ease
20352 # handling of long lines.
20353 ac_delim='%!_!# '
20354 for ac_last_try in false false :; do
20355 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20356 if test -z "$ac_tt"; then
20357 break
20358 elif $ac_last_try; then
20359 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20360 else
20361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20362 fi
20363 done
20364
20365 # For the awk script, D is an array of macro values keyed by name,
20366 # likewise P contains macro parameters if any. Preserve backslash
20367 # newline sequences.
20368
20369 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20370 sed -n '
20371 s/.\{148\}/&'"$ac_delim"'/g
20372 t rset
20373 :rset
20374 s/^[ ]*#[ ]*define[ ][ ]*/ /
20375 t def
20376 d
20377 :def
20378 s/\\$//
20379 t bsnl
20380 s/["\\]/\\&/g
20381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20382 D["\1"]=" \3"/p
20383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20384 d
20385 :bsnl
20386 s/["\\]/\\&/g
20387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20388 D["\1"]=" \3\\\\\\n"\\/p
20389 t cont
20390 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20391 t cont
20392 d
20393 :cont
20394 n
20395 s/.\{148\}/&'"$ac_delim"'/g
20396 t clear
20397 :clear
20398 s/\\$//
20399 t bsnlc
20400 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20401 d
20402 :bsnlc
20403 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20404 b cont
20405 ' <confdefs.h | sed '
20406 s/'"$ac_delim"'/"\\\
20407 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20408
20409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20410 for (key in D) D_is_set[key] = 1
20411 FS = ""
20412 }
20413 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20414 line = \$ 0
20415 split(line, arg, " ")
20416 if (arg[1] == "#") {
20417 defundef = arg[2]
20418 mac1 = arg[3]
20419 } else {
20420 defundef = substr(arg[1], 2)
20421 mac1 = arg[2]
20422 }
20423 split(mac1, mac2, "(") #)
20424 macro = mac2[1]
20425 prefix = substr(line, 1, index(line, defundef) - 1)
20426 if (D_is_set[macro]) {
20427 # Preserve the white space surrounding the "#".
20428 print prefix "define", macro P[macro] D[macro]
20429 next
20430 } else {
20431 # Replace #undef with comments. This is necessary, for example,
20432 # in the case of _POSIX_SOURCE, which is predefined and required
20433 # on some systems where configure will not decide to define it.
20434 if (defundef == "undef") {
20435 print "/*", prefix defundef, macro, "*/"
20436 next
20437 }
20438 }
20439 }
20440 { print }
20441 _ACAWK
20442 _ACEOF
20443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20444 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20445 fi # test -n "$CONFIG_HEADERS"
20446
20447
20448 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20449 shift
20450 for ac_tag
20451 do
20452 case $ac_tag in
20453 :[FHLC]) ac_mode=$ac_tag; continue;;
20454 esac
20455 case $ac_mode$ac_tag in
20456 :[FHL]*:*);;
20457 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20458 :[FH]-) ac_tag=-:-;;
20459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20460 esac
20461 ac_save_IFS=$IFS
20462 IFS=:
20463 set x $ac_tag
20464 IFS=$ac_save_IFS
20465 shift
20466 ac_file=$1
20467 shift
20468
20469 case $ac_mode in
20470 :L) ac_source=$1;;
20471 :[FH])
20472 ac_file_inputs=
20473 for ac_f
20474 do
20475 case $ac_f in
20476 -) ac_f="$ac_tmp/stdin";;
20477 *) # Look for the file first in the build tree, then in the source tree
20478 # (if the path is not absolute). The absolute path cannot be DOS-style,
20479 # because $ac_f cannot contain `:'.
20480 test -f "$ac_f" ||
20481 case $ac_f in
20482 [\\/$]*) false;;
20483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20484 esac ||
20485 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20486 esac
20487 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20488 as_fn_append ac_file_inputs " '$ac_f'"
20489 done
20490
20491 # Let's still pretend it is `configure' which instantiates (i.e., don't
20492 # use $as_me), people would be surprised to read:
20493 # /* config.h. Generated by config.status. */
20494 configure_input='Generated from '`
20495 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20496 `' by configure.'
20497 if test x"$ac_file" != x-; then
20498 configure_input="$ac_file. $configure_input"
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20500 $as_echo "$as_me: creating $ac_file" >&6;}
20501 fi
20502 # Neutralize special characters interpreted by sed in replacement strings.
20503 case $configure_input in #(
20504 *\&* | *\|* | *\\* )
20505 ac_sed_conf_input=`$as_echo "$configure_input" |
20506 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20507 *) ac_sed_conf_input=$configure_input;;
20508 esac
20509
20510 case $ac_tag in
20511 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20513 esac
20514 ;;
20515 esac
20516
20517 ac_dir=`$as_dirname -- "$ac_file" ||
20518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20519 X"$ac_file" : 'X\(//\)[^/]' \| \
20520 X"$ac_file" : 'X\(//\)$' \| \
20521 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20522 $as_echo X"$ac_file" |
20523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20524 s//\1/
20525 q
20526 }
20527 /^X\(\/\/\)[^/].*/{
20528 s//\1/
20529 q
20530 }
20531 /^X\(\/\/\)$/{
20532 s//\1/
20533 q
20534 }
20535 /^X\(\/\).*/{
20536 s//\1/
20537 q
20538 }
20539 s/.*/./; q'`
20540 as_dir="$ac_dir"; as_fn_mkdir_p
20541 ac_builddir=.
20542
20543 case "$ac_dir" in
20544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20545 *)
20546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20547 # A ".." for each directory in $ac_dir_suffix.
20548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20549 case $ac_top_builddir_sub in
20550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20552 esac ;;
20553 esac
20554 ac_abs_top_builddir=$ac_pwd
20555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20556 # for backward compatibility:
20557 ac_top_builddir=$ac_top_build_prefix
20558
20559 case $srcdir in
20560 .) # We are building in place.
20561 ac_srcdir=.
20562 ac_top_srcdir=$ac_top_builddir_sub
20563 ac_abs_top_srcdir=$ac_pwd ;;
20564 [\\/]* | ?:[\\/]* ) # Absolute name.
20565 ac_srcdir=$srcdir$ac_dir_suffix;
20566 ac_top_srcdir=$srcdir
20567 ac_abs_top_srcdir=$srcdir ;;
20568 *) # Relative name.
20569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20570 ac_top_srcdir=$ac_top_build_prefix$srcdir
20571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20572 esac
20573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20574
20575
20576 case $ac_mode in
20577 :F)
20578 #
20579 # CONFIG_FILE
20580 #
20581
20582 case $INSTALL in
20583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20584 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20585 esac
20586 ac_MKDIR_P=$MKDIR_P
20587 case $MKDIR_P in
20588 [\\/$]* | ?:[\\/]* ) ;;
20589 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20590 esac
20591 _ACEOF
20592
20593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20594 # If the template does not know about datarootdir, expand it.
20595 # FIXME: This hack should be removed a few years after 2.60.
20596 ac_datarootdir_hack=; ac_datarootdir_seen=
20597 ac_sed_dataroot='
20598 /datarootdir/ {
20599 p
20600 q
20601 }
20602 /@datadir@/p
20603 /@docdir@/p
20604 /@infodir@/p
20605 /@localedir@/p
20606 /@mandir@/p'
20607 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20608 *datarootdir*) ac_datarootdir_seen=yes;;
20609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20611 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20612 _ACEOF
20613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20614 ac_datarootdir_hack='
20615 s&@datadir@&$datadir&g
20616 s&@docdir@&$docdir&g
20617 s&@infodir@&$infodir&g
20618 s&@localedir@&$localedir&g
20619 s&@mandir@&$mandir&g
20620 s&\\\${datarootdir}&$datarootdir&g' ;;
20621 esac
20622 _ACEOF
20623
20624 # Neutralize VPATH when `$srcdir' = `.'.
20625 # Shell code in configure.ac might set extrasub.
20626 # FIXME: do we really want to maintain this feature?
20627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20628 ac_sed_extra="$ac_vpsub
20629 $extrasub
20630 _ACEOF
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632 :t
20633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20634 s|@configure_input@|$ac_sed_conf_input|;t t
20635 s&@top_builddir@&$ac_top_builddir_sub&;t t
20636 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20637 s&@srcdir@&$ac_srcdir&;t t
20638 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20639 s&@top_srcdir@&$ac_top_srcdir&;t t
20640 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20641 s&@builddir@&$ac_builddir&;t t
20642 s&@abs_builddir@&$ac_abs_builddir&;t t
20643 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20644 s&@INSTALL@&$ac_INSTALL&;t t
20645 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20646 $ac_datarootdir_hack
20647 "
20648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20649 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20650
20651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20654 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20656 which seems to be undefined. Please make sure it is defined" >&5
20657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20658 which seems to be undefined. Please make sure it is defined" >&2;}
20659
20660 rm -f "$ac_tmp/stdin"
20661 case $ac_file in
20662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20664 esac \
20665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20666 ;;
20667 :H)
20668 #
20669 # CONFIG_HEADER
20670 #
20671 if test x"$ac_file" != x-; then
20672 {
20673 $as_echo "/* $configure_input */" \
20674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20675 } >"$ac_tmp/config.h" \
20676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20679 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20680 else
20681 rm -f "$ac_file"
20682 mv "$ac_tmp/config.h" "$ac_file" \
20683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20684 fi
20685 else
20686 $as_echo "/* $configure_input */" \
20687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20688 || as_fn_error $? "could not create -" "$LINENO" 5
20689 fi
20690 # Compute "$ac_file"'s index in $config_headers.
20691 _am_arg="$ac_file"
20692 _am_stamp_count=1
20693 for _am_header in $config_headers :; do
20694 case $_am_header in
20695 $_am_arg | $_am_arg:* )
20696 break ;;
20697 * )
20698 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20699 esac
20700 done
20701 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20702 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20703 X"$_am_arg" : 'X\(//\)[^/]' \| \
20704 X"$_am_arg" : 'X\(//\)$' \| \
20705 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20706 $as_echo X"$_am_arg" |
20707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20708 s//\1/
20709 q
20710 }
20711 /^X\(\/\/\)[^/].*/{
20712 s//\1/
20713 q
20714 }
20715 /^X\(\/\/\)$/{
20716 s//\1/
20717 q
20718 }
20719 /^X\(\/\).*/{
20720 s//\1/
20721 q
20722 }
20723 s/.*/./; q'`/stamp-h$_am_stamp_count
20724 ;;
20725
20726 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20727 $as_echo "$as_me: executing $ac_file commands" >&6;}
20728 ;;
20729 esac
20730
20731
20732 case $ac_file$ac_mode in
20733 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20734 # Older Autoconf quotes --file arguments for eval, but not when files
20735 # are listed without --file. Let's play safe and only enable the eval
20736 # if we detect the quoting.
20737 case $CONFIG_FILES in
20738 *\'*) eval set x "$CONFIG_FILES" ;;
20739 *) set x $CONFIG_FILES ;;
20740 esac
20741 shift
20742 for mf
20743 do
20744 # Strip MF so we end up with the name of the file.
20745 mf=`echo "$mf" | sed -e 's/:.*$//'`
20746 # Check whether this is an Automake generated Makefile or not.
20747 # We used to match only the files named 'Makefile.in', but
20748 # some people rename them; so instead we look at the file content.
20749 # Grep'ing the first line is not enough: some people post-process
20750 # each Makefile.in and add a new line on top of each file to say so.
20751 # Grep'ing the whole file is not good either: AIX grep has a line
20752 # limit of 2048, but all sed's we know have understand at least 4000.
20753 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20754 dirpart=`$as_dirname -- "$mf" ||
20755 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20756 X"$mf" : 'X\(//\)[^/]' \| \
20757 X"$mf" : 'X\(//\)$' \| \
20758 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20759 $as_echo X"$mf" |
20760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20761 s//\1/
20762 q
20763 }
20764 /^X\(\/\/\)[^/].*/{
20765 s//\1/
20766 q
20767 }
20768 /^X\(\/\/\)$/{
20769 s//\1/
20770 q
20771 }
20772 /^X\(\/\).*/{
20773 s//\1/
20774 q
20775 }
20776 s/.*/./; q'`
20777 else
20778 continue
20779 fi
20780 # Extract the definition of DEPDIR, am__include, and am__quote
20781 # from the Makefile without running 'make'.
20782 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20783 test -z "$DEPDIR" && continue
20784 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20785 test -z "$am__include" && continue
20786 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20787 # Find all dependency output files, they are included files with
20788 # $(DEPDIR) in their names. We invoke sed twice because it is the
20789 # simplest approach to changing $(DEPDIR) to its actual value in the
20790 # expansion.
20791 for file in `sed -n "
20792 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20793 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20794 # Make sure the directory exists.
20795 test -f "$dirpart/$file" && continue
20796 fdir=`$as_dirname -- "$file" ||
20797 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20798 X"$file" : 'X\(//\)[^/]' \| \
20799 X"$file" : 'X\(//\)$' \| \
20800 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20801 $as_echo X"$file" |
20802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20803 s//\1/
20804 q
20805 }
20806 /^X\(\/\/\)[^/].*/{
20807 s//\1/
20808 q
20809 }
20810 /^X\(\/\/\)$/{
20811 s//\1/
20812 q
20813 }
20814 /^X\(\/\).*/{
20815 s//\1/
20816 q
20817 }
20818 s/.*/./; q'`
20819 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20820 # echo "creating $dirpart/$file"
20821 echo '# dummy' > "$dirpart/$file"
20822 done
20823 done
20824 }
20825 ;;
20826 "libtool":C)
20827
20828 # See if we are running on zsh, and set the options that allow our
20829 # commands through without removal of \ escapes.
20830 if test -n "${ZSH_VERSION+set}"; then
20831 setopt NO_GLOB_SUBST
20832 fi
20833
20834 cfgfile=${ofile}T
20835 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20836 $RM "$cfgfile"
20837
20838 cat <<_LT_EOF >> "$cfgfile"
20839 #! $SHELL
20840 # Generated automatically by $as_me ($PACKAGE) $VERSION
20841 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20842 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20843
20844 # Provide generalized library-building support services.
20845 # Written by Gordon Matzigkeit, 1996
20846
20847 # Copyright (C) 2014 Free Software Foundation, Inc.
20848 # This is free software; see the source for copying conditions. There is NO
20849 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20850
20851 # GNU Libtool is free software; you can redistribute it and/or modify
20852 # it under the terms of the GNU General Public License as published by
20853 # the Free Software Foundation; either version 2 of of the License, or
20854 # (at your option) any later version.
20855 #
20856 # As a special exception to the GNU General Public License, if you
20857 # distribute this file as part of a program or library that is built
20858 # using GNU Libtool, you may include this file under the same
20859 # distribution terms that you use for the rest of that program.
20860 #
20861 # GNU Libtool is distributed in the hope that it will be useful, but
20862 # WITHOUT ANY WARRANTY; without even the implied warranty of
20863 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20864 # GNU General Public License for more details.
20865 #
20866 # You should have received a copy of the GNU General Public License
20867 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20868
20869
20870 # The names of the tagged configurations supported by this script.
20871 available_tags='CXX '
20872
20873 # Configured defaults for sys_lib_dlsearch_path munging.
20874 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20875
20876 # ### BEGIN LIBTOOL CONFIG
20877
20878 # Which release of libtool.m4 was used?
20879 macro_version=$macro_version
20880 macro_revision=$macro_revision
20881
20882 # Assembler program.
20883 AS=$lt_AS
20884
20885 # DLL creation program.
20886 DLLTOOL=$lt_DLLTOOL
20887
20888 # Object dumper program.
20889 OBJDUMP=$lt_OBJDUMP
20890
20891 # Whether or not to build static libraries.
20892 build_old_libs=$enable_static
20893
20894 # What type of objects to build.
20895 pic_mode=$pic_mode
20896
20897 # Whether or not to build shared libraries.
20898 build_libtool_libs=$enable_shared
20899
20900 # Whether or not to optimize for fast installation.
20901 fast_install=$enable_fast_install
20902
20903 # Shared archive member basename,for filename based shared library versioning on AIX.
20904 shared_archive_member_spec=$shared_archive_member_spec
20905
20906 # Shell to use when invoking shell scripts.
20907 SHELL=$lt_SHELL
20908
20909 # An echo program that protects backslashes.
20910 ECHO=$lt_ECHO
20911
20912 # The PATH separator for the build system.
20913 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20914
20915 # The host system.
20916 host_alias=$host_alias
20917 host=$host
20918 host_os=$host_os
20919
20920 # The build system.
20921 build_alias=$build_alias
20922 build=$build
20923 build_os=$build_os
20924
20925 # A sed program that does not truncate output.
20926 SED=$lt_SED
20927
20928 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20929 Xsed="\$SED -e 1s/^X//"
20930
20931 # A grep program that handles long lines.
20932 GREP=$lt_GREP
20933
20934 # An ERE matcher.
20935 EGREP=$lt_EGREP
20936
20937 # A literal string matcher.
20938 FGREP=$lt_FGREP
20939
20940 # A BSD- or MS-compatible name lister.
20941 NM=$lt_NM
20942
20943 # Whether we need soft or hard links.
20944 LN_S=$lt_LN_S
20945
20946 # What is the maximum length of a command?
20947 max_cmd_len=$max_cmd_len
20948
20949 # Object file suffix (normally "o").
20950 objext=$ac_objext
20951
20952 # Executable file suffix (normally "").
20953 exeext=$exeext
20954
20955 # whether the shell understands "unset".
20956 lt_unset=$lt_unset
20957
20958 # turn spaces into newlines.
20959 SP2NL=$lt_lt_SP2NL
20960
20961 # turn newlines into spaces.
20962 NL2SP=$lt_lt_NL2SP
20963
20964 # convert \$build file names to \$host format.
20965 to_host_file_cmd=$lt_cv_to_host_file_cmd
20966
20967 # convert \$build files to toolchain format.
20968 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20969
20970 # Method to check whether dependent libraries are shared objects.
20971 deplibs_check_method=$lt_deplibs_check_method
20972
20973 # Command to use when deplibs_check_method = "file_magic".
20974 file_magic_cmd=$lt_file_magic_cmd
20975
20976 # How to find potential files when deplibs_check_method = "file_magic".
20977 file_magic_glob=$lt_file_magic_glob
20978
20979 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20980 want_nocaseglob=$lt_want_nocaseglob
20981
20982 # Command to associate shared and link libraries.
20983 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20984
20985 # The archiver.
20986 AR=$lt_AR
20987
20988 # Flags to create an archive.
20989 AR_FLAGS=$lt_AR_FLAGS
20990
20991 # How to feed a file listing to the archiver.
20992 archiver_list_spec=$lt_archiver_list_spec
20993
20994 # A symbol stripping program.
20995 STRIP=$lt_STRIP
20996
20997 # Commands used to install an old-style archive.
20998 RANLIB=$lt_RANLIB
20999 old_postinstall_cmds=$lt_old_postinstall_cmds
21000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21001
21002 # Whether to use a lock for old archive extraction.
21003 lock_old_archive_extraction=$lock_old_archive_extraction
21004
21005 # A C compiler.
21006 LTCC=$lt_CC
21007
21008 # LTCC compiler flags.
21009 LTCFLAGS=$lt_CFLAGS
21010
21011 # Take the output of nm and produce a listing of raw symbols and C names.
21012 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21013
21014 # Transform the output of nm in a proper C declaration.
21015 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21016
21017 # Transform the output of nm into a list of symbols to manually relocate.
21018 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21019
21020 # Transform the output of nm in a C name address pair.
21021 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21022
21023 # Transform the output of nm in a C name address pair when lib prefix is needed.
21024 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21025
21026 # The name lister interface.
21027 nm_interface=$lt_lt_cv_nm_interface
21028
21029 # Specify filename containing input files for \$NM.
21030 nm_file_list_spec=$lt_nm_file_list_spec
21031
21032 # The root where to search for dependent libraries,and where our libraries should be installed.
21033 lt_sysroot=$lt_sysroot
21034
21035 # Command to truncate a binary pipe.
21036 lt_truncate_bin=$lt_lt_cv_truncate_bin
21037
21038 # The name of the directory that contains temporary libtool files.
21039 objdir=$objdir
21040
21041 # Used to examine libraries when file_magic_cmd begins with "file".
21042 MAGIC_CMD=$MAGIC_CMD
21043
21044 # Must we lock files when doing compilation?
21045 need_locks=$lt_need_locks
21046
21047 # Manifest tool.
21048 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21049
21050 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21051 DSYMUTIL=$lt_DSYMUTIL
21052
21053 # Tool to change global to local symbols on Mac OS X.
21054 NMEDIT=$lt_NMEDIT
21055
21056 # Tool to manipulate fat objects and archives on Mac OS X.
21057 LIPO=$lt_LIPO
21058
21059 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21060 OTOOL=$lt_OTOOL
21061
21062 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21063 OTOOL64=$lt_OTOOL64
21064
21065 # Old archive suffix (normally "a").
21066 libext=$libext
21067
21068 # Shared library suffix (normally ".so").
21069 shrext_cmds=$lt_shrext_cmds
21070
21071 # The commands to extract the exported symbol list from a shared archive.
21072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21073
21074 # Variables whose values should be saved in libtool wrapper scripts and
21075 # restored at link time.
21076 variables_saved_for_relink=$lt_variables_saved_for_relink
21077
21078 # Do we need the "lib" prefix for modules?
21079 need_lib_prefix=$need_lib_prefix
21080
21081 # Do we need a version for libraries?
21082 need_version=$need_version
21083
21084 # Library versioning type.
21085 version_type=$version_type
21086
21087 # Shared library runtime path variable.
21088 runpath_var=$runpath_var
21089
21090 # Shared library path variable.
21091 shlibpath_var=$shlibpath_var
21092
21093 # Is shlibpath searched before the hard-coded library search path?
21094 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21095
21096 # Format of library name prefix.
21097 libname_spec=$lt_libname_spec
21098
21099 # List of archive names. First name is the real one, the rest are links.
21100 # The last name is the one that the linker finds with -lNAME
21101 library_names_spec=$lt_library_names_spec
21102
21103 # The coded name of the library, if different from the real name.
21104 soname_spec=$lt_soname_spec
21105
21106 # Permission mode override for installation of shared libraries.
21107 install_override_mode=$lt_install_override_mode
21108
21109 # Command to use after installation of a shared archive.
21110 postinstall_cmds=$lt_postinstall_cmds
21111
21112 # Command to use after uninstallation of a shared archive.
21113 postuninstall_cmds=$lt_postuninstall_cmds
21114
21115 # Commands used to finish a libtool library installation in a directory.
21116 finish_cmds=$lt_finish_cmds
21117
21118 # As "finish_cmds", except a single script fragment to be evaled but
21119 # not shown.
21120 finish_eval=$lt_finish_eval
21121
21122 # Whether we should hardcode library paths into libraries.
21123 hardcode_into_libs=$hardcode_into_libs
21124
21125 # Compile-time system search path for libraries.
21126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21127
21128 # Detected run-time system search path for libraries.
21129 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21130
21131 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21132 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21133
21134 # Whether dlopen is supported.
21135 dlopen_support=$enable_dlopen
21136
21137 # Whether dlopen of programs is supported.
21138 dlopen_self=$enable_dlopen_self
21139
21140 # Whether dlopen of statically linked programs is supported.
21141 dlopen_self_static=$enable_dlopen_self_static
21142
21143 # Commands to strip libraries.
21144 old_striplib=$lt_old_striplib
21145 striplib=$lt_striplib
21146
21147
21148 # The linker used to build libraries.
21149 LD=$lt_LD
21150
21151 # How to create reloadable object files.
21152 reload_flag=$lt_reload_flag
21153 reload_cmds=$lt_reload_cmds
21154
21155 # Commands used to build an old-style archive.
21156 old_archive_cmds=$lt_old_archive_cmds
21157
21158 # A language specific compiler.
21159 CC=$lt_compiler
21160
21161 # Is the compiler the GNU compiler?
21162 with_gcc=$GCC
21163
21164 # Compiler flag to turn off builtin functions.
21165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21166
21167 # Additional compiler flags for building library objects.
21168 pic_flag=$lt_lt_prog_compiler_pic
21169
21170 # How to pass a linker flag through the compiler.
21171 wl=$lt_lt_prog_compiler_wl
21172
21173 # Compiler flag to prevent dynamic linking.
21174 link_static_flag=$lt_lt_prog_compiler_static
21175
21176 # Does compiler simultaneously support -c and -o options?
21177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21178
21179 # Whether or not to add -lc for building shared libraries.
21180 build_libtool_need_lc=$archive_cmds_need_lc
21181
21182 # Whether or not to disallow shared libs when runtime libs are static.
21183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21184
21185 # Compiler flag to allow reflexive dlopens.
21186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21187
21188 # Compiler flag to generate shared objects directly from archives.
21189 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21190
21191 # Whether the compiler copes with passing no objects directly.
21192 compiler_needs_object=$lt_compiler_needs_object
21193
21194 # Create an old-style archive from a shared archive.
21195 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21196
21197 # Create a temporary old-style archive to link instead of a shared archive.
21198 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21199
21200 # Commands used to build a shared archive.
21201 archive_cmds=$lt_archive_cmds
21202 archive_expsym_cmds=$lt_archive_expsym_cmds
21203
21204 # Commands used to build a loadable module if different from building
21205 # a shared archive.
21206 module_cmds=$lt_module_cmds
21207 module_expsym_cmds=$lt_module_expsym_cmds
21208
21209 # Whether we are building with GNU ld or not.
21210 with_gnu_ld=$lt_with_gnu_ld
21211
21212 # Flag that allows shared libraries with undefined symbols to be built.
21213 allow_undefined_flag=$lt_allow_undefined_flag
21214
21215 # Flag that enforces no undefined symbols.
21216 no_undefined_flag=$lt_no_undefined_flag
21217
21218 # Flag to hardcode \$libdir into a binary during linking.
21219 # This must work even if \$libdir does not exist
21220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21221
21222 # Whether we need a single "-rpath" flag with a separated argument.
21223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21224
21225 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21226 # DIR into the resulting binary.
21227 hardcode_direct=$hardcode_direct
21228
21229 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21230 # DIR into the resulting binary and the resulting library dependency is
21231 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21232 # library is relocated.
21233 hardcode_direct_absolute=$hardcode_direct_absolute
21234
21235 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21236 # into the resulting binary.
21237 hardcode_minus_L=$hardcode_minus_L
21238
21239 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21240 # into the resulting binary.
21241 hardcode_shlibpath_var=$hardcode_shlibpath_var
21242
21243 # Set to "yes" if building a shared library automatically hardcodes DIR
21244 # into the library and all subsequent libraries and executables linked
21245 # against it.
21246 hardcode_automatic=$hardcode_automatic
21247
21248 # Set to yes if linker adds runtime paths of dependent libraries
21249 # to runtime path list.
21250 inherit_rpath=$inherit_rpath
21251
21252 # Whether libtool must link a program against all its dependency libraries.
21253 link_all_deplibs=$link_all_deplibs
21254
21255 # Set to "yes" if exported symbols are required.
21256 always_export_symbols=$always_export_symbols
21257
21258 # The commands to list exported symbols.
21259 export_symbols_cmds=$lt_export_symbols_cmds
21260
21261 # Symbols that should not be listed in the preloaded symbols.
21262 exclude_expsyms=$lt_exclude_expsyms
21263
21264 # Symbols that must always be exported.
21265 include_expsyms=$lt_include_expsyms
21266
21267 # Commands necessary for linking programs (against libraries) with templates.
21268 prelink_cmds=$lt_prelink_cmds
21269
21270 # Commands necessary for finishing linking programs.
21271 postlink_cmds=$lt_postlink_cmds
21272
21273 # Specify filename containing input files.
21274 file_list_spec=$lt_file_list_spec
21275
21276 # How to hardcode a shared library path into an executable.
21277 hardcode_action=$hardcode_action
21278
21279 # The directories searched by this compiler when creating a shared library.
21280 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21281
21282 # Dependencies to place before and after the objects being linked to
21283 # create a shared library.
21284 predep_objects=$lt_predep_objects
21285 postdep_objects=$lt_postdep_objects
21286 predeps=$lt_predeps
21287 postdeps=$lt_postdeps
21288
21289 # The library search path used internally by the compiler when linking
21290 # a shared library.
21291 compiler_lib_search_path=$lt_compiler_lib_search_path
21292
21293 # ### END LIBTOOL CONFIG
21294
21295 _LT_EOF
21296
21297 cat <<'_LT_EOF' >> "$cfgfile"
21298
21299 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21300
21301 # func_munge_path_list VARIABLE PATH
21302 # -----------------------------------
21303 # VARIABLE is name of variable containing _space_ separated list of
21304 # directories to be munged by the contents of PATH, which is string
21305 # having a format:
21306 # "DIR[:DIR]:"
21307 # string "DIR[ DIR]" will be prepended to VARIABLE
21308 # ":DIR[:DIR]"
21309 # string "DIR[ DIR]" will be appended to VARIABLE
21310 # "DIRP[:DIRP]::[DIRA:]DIRA"
21311 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21312 # "DIRA[ DIRA]" will be appended to VARIABLE
21313 # "DIR[:DIR]"
21314 # VARIABLE will be replaced by "DIR[ DIR]"
21315 func_munge_path_list ()
21316 {
21317 case x$2 in
21318 x)
21319 ;;
21320 *:)
21321 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21322 ;;
21323 x:*)
21324 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21325 ;;
21326 *::*)
21327 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21328 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21329 ;;
21330 *)
21331 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21332 ;;
21333 esac
21334 }
21335
21336
21337 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21338 func_cc_basename ()
21339 {
21340 for cc_temp in $*""; do
21341 case $cc_temp in
21342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21344 \-*) ;;
21345 *) break;;
21346 esac
21347 done
21348 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21349 }
21350
21351
21352 # ### END FUNCTIONS SHARED WITH CONFIGURE
21353
21354 _LT_EOF
21355
21356 case $host_os in
21357 aix3*)
21358 cat <<\_LT_EOF >> "$cfgfile"
21359 # AIX sometimes has problems with the GCC collect2 program. For some
21360 # reason, if we set the COLLECT_NAMES environment variable, the problems
21361 # vanish in a puff of smoke.
21362 if test set != "${COLLECT_NAMES+set}"; then
21363 COLLECT_NAMES=
21364 export COLLECT_NAMES
21365 fi
21366 _LT_EOF
21367 ;;
21368 esac
21369
21370
21371 ltmain=$ac_aux_dir/ltmain.sh
21372
21373
21374 # We use sed instead of cat because bash on DJGPP gets confused if
21375 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21376 # text mode, it properly converts lines to CR/LF. This bash problem
21377 # is reportedly fixed, but why not run on old versions too?
21378 sed '$q' "$ltmain" >> "$cfgfile" \
21379 || (rm -f "$cfgfile"; exit 1)
21380
21381 mv -f "$cfgfile" "$ofile" ||
21382 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21383 chmod +x "$ofile"
21384
21385
21386 cat <<_LT_EOF >> "$ofile"
21387
21388 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21389
21390 # The linker used to build libraries.
21391 LD=$lt_LD_CXX
21392
21393 # How to create reloadable object files.
21394 reload_flag=$lt_reload_flag_CXX
21395 reload_cmds=$lt_reload_cmds_CXX
21396
21397 # Commands used to build an old-style archive.
21398 old_archive_cmds=$lt_old_archive_cmds_CXX
21399
21400 # A language specific compiler.
21401 CC=$lt_compiler_CXX
21402
21403 # Is the compiler the GNU compiler?
21404 with_gcc=$GCC_CXX
21405
21406 # Compiler flag to turn off builtin functions.
21407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21408
21409 # Additional compiler flags for building library objects.
21410 pic_flag=$lt_lt_prog_compiler_pic_CXX
21411
21412 # How to pass a linker flag through the compiler.
21413 wl=$lt_lt_prog_compiler_wl_CXX
21414
21415 # Compiler flag to prevent dynamic linking.
21416 link_static_flag=$lt_lt_prog_compiler_static_CXX
21417
21418 # Does compiler simultaneously support -c and -o options?
21419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21420
21421 # Whether or not to add -lc for building shared libraries.
21422 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21423
21424 # Whether or not to disallow shared libs when runtime libs are static.
21425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21426
21427 # Compiler flag to allow reflexive dlopens.
21428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21429
21430 # Compiler flag to generate shared objects directly from archives.
21431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21432
21433 # Whether the compiler copes with passing no objects directly.
21434 compiler_needs_object=$lt_compiler_needs_object_CXX
21435
21436 # Create an old-style archive from a shared archive.
21437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21438
21439 # Create a temporary old-style archive to link instead of a shared archive.
21440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21441
21442 # Commands used to build a shared archive.
21443 archive_cmds=$lt_archive_cmds_CXX
21444 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21445
21446 # Commands used to build a loadable module if different from building
21447 # a shared archive.
21448 module_cmds=$lt_module_cmds_CXX
21449 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21450
21451 # Whether we are building with GNU ld or not.
21452 with_gnu_ld=$lt_with_gnu_ld_CXX
21453
21454 # Flag that allows shared libraries with undefined symbols to be built.
21455 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21456
21457 # Flag that enforces no undefined symbols.
21458 no_undefined_flag=$lt_no_undefined_flag_CXX
21459
21460 # Flag to hardcode \$libdir into a binary during linking.
21461 # This must work even if \$libdir does not exist
21462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21463
21464 # Whether we need a single "-rpath" flag with a separated argument.
21465 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21466
21467 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21468 # DIR into the resulting binary.
21469 hardcode_direct=$hardcode_direct_CXX
21470
21471 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21472 # DIR into the resulting binary and the resulting library dependency is
21473 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21474 # library is relocated.
21475 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21476
21477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21478 # into the resulting binary.
21479 hardcode_minus_L=$hardcode_minus_L_CXX
21480
21481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21482 # into the resulting binary.
21483 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21484
21485 # Set to "yes" if building a shared library automatically hardcodes DIR
21486 # into the library and all subsequent libraries and executables linked
21487 # against it.
21488 hardcode_automatic=$hardcode_automatic_CXX
21489
21490 # Set to yes if linker adds runtime paths of dependent libraries
21491 # to runtime path list.
21492 inherit_rpath=$inherit_rpath_CXX
21493
21494 # Whether libtool must link a program against all its dependency libraries.
21495 link_all_deplibs=$link_all_deplibs_CXX
21496
21497 # Set to "yes" if exported symbols are required.
21498 always_export_symbols=$always_export_symbols_CXX
21499
21500 # The commands to list exported symbols.
21501 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21502
21503 # Symbols that should not be listed in the preloaded symbols.
21504 exclude_expsyms=$lt_exclude_expsyms_CXX
21505
21506 # Symbols that must always be exported.
21507 include_expsyms=$lt_include_expsyms_CXX
21508
21509 # Commands necessary for linking programs (against libraries) with templates.
21510 prelink_cmds=$lt_prelink_cmds_CXX
21511
21512 # Commands necessary for finishing linking programs.
21513 postlink_cmds=$lt_postlink_cmds_CXX
21514
21515 # Specify filename containing input files.
21516 file_list_spec=$lt_file_list_spec_CXX
21517
21518 # How to hardcode a shared library path into an executable.
21519 hardcode_action=$hardcode_action_CXX
21520
21521 # The directories searched by this compiler when creating a shared library.
21522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21523
21524 # Dependencies to place before and after the objects being linked to
21525 # create a shared library.
21526 predep_objects=$lt_predep_objects_CXX
21527 postdep_objects=$lt_postdep_objects_CXX
21528 predeps=$lt_predeps_CXX
21529 postdeps=$lt_postdeps_CXX
21530
21531 # The library search path used internally by the compiler when linking
21532 # a shared library.
21533 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21534
21535 # ### END LIBTOOL TAG CONFIG: CXX
21536 _LT_EOF
21537
21538 ;;
21539
21540 esac
21541 done # for ac_tag
21542
21543
21544 as_fn_exit 0
21545 _ACEOF
21546 ac_clean_files=$ac_clean_files_save
21547
21548 test $ac_write_fail = 0 ||
21549 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21550
21551
21552 # configure is writing to config.log, and then calls config.status.
21553 # config.status does its own redirection, appending to config.log.
21554 # Unfortunately, on DOS this fails, as config.log is still kept open
21555 # by configure, so config.status won't be able to write to it; its
21556 # output is simply discarded. So we exec the FD to /dev/null,
21557 # effectively closing config.log, so it can be properly (re)opened and
21558 # appended to by config.status. When coming back to configure, we
21559 # need to make the FD available again.
21560 if test "$no_create" != yes; then
21561 ac_cs_success=:
21562 ac_config_status_args=
21563 test "$silent" = yes &&
21564 ac_config_status_args="$ac_config_status_args --quiet"
21565 exec 5>/dev/null
21566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21567 exec 5>>config.log
21568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21569 # would make configure fail if this is the last instruction.
21570 $ac_cs_success || as_fn_exit 1
21571 fi
21572 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21574 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21575 fi
21576
21577
21578 # ==============================================
21579 # Display final informations about configuration
21580 # ==============================================
21581 { $as_echo "$as_me:${as_lineno-$LINENO}:
21582 ==============================================================================
21583 Build configuration:
21584 debug: ${enable_debug}
21585 docs: ${build_docs}
21586 tests: ${enable_tests}
21587 werror: ${enable_werror}
21588 ==============================================================================
21589 " >&5
21590 $as_echo "$as_me:
21591 ==============================================================================
21592 Build configuration:
21593 debug: ${enable_debug}
21594 docs: ${build_docs}
21595 tests: ${enable_tests}
21596 werror: ${enable_werror}
21597 ==============================================================================
21598 " >&6;}
21599