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 libodfgen 0.1.8.
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='libodfgen'
589 PACKAGE_TARNAME='libodfgen'
590 PACKAGE_VERSION='0.1.8'
591 PACKAGE_STRING='libodfgen 0.1.8'
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_LIBEBOOK_DOCS_FALSE
636 WITH_LIBEBOOK_DOCS_TRUE
637 DOXYGEN
638 COMPILE_TEST_FALSE
639 COMPILE_TEST_TRUE
640 DEBUG_CXXFLAGS
641 WINDRES
642 HAVE_VISIBILITY_FALSE
643 HAVE_VISIBILITY_TRUE
644 PLATFORM_WIN32_FALSE
645 PLATFORM_WIN32_TRUE
646 LIBODFGEN_WIN32_RESOURCE
647 OS_WIN32_FALSE
648 OS_WIN32_TRUE
649 LT_AGE
650 LT_REVISION
651 LT_CURRENT
652 LIBODFGEN_MICRO_VERSION
653 LIBODFGEN_MINOR_VERSION
654 LIBODFGEN_MAJOR_VERSION
655 XML_LIBS
656 XML_CFLAGS
657 REVENGE_LIGS
658 REVENGE_LIBS
659 REVENGE_CFLAGS
660 HAVE_CXX11
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CXXCPP
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 OBJDUMP
693 DLLTOOL
694 AS
695 LN_S
696 am__fastdepCXX_FALSE
697 am__fastdepCXX_TRUE
698 CXXDEPMODE
699 ac_ct_CXX
700 CXXFLAGS
701 CXX
702 CPP
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL
784 am__quote'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_silent_rules
789 enable_dependency_tracking
790 enable_static
791 with_pic
792 enable_shared
793 enable_fast_install
794 with_aix_soname
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_werror
799 enable_weffc
800 enable_wparanoic
801 enable_debug
802 enable_test
803 with_docs
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 CPP
814 CXX
815 CXXFLAGS
816 CCC
817 LT_SYS_LIBRARY_PATH
818 CXXCPP
819 PKG_CONFIG
820 PKG_CONFIG_PATH
821 PKG_CONFIG_LIBDIR
822 REVENGE_CFLAGS
823 REVENGE_LIBS
824 XML_CFLAGS
825 XML_LIBS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
923
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
956
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
992
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
997
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1027
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1044
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1065
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1101
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1176
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1210
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1224
1225 *)
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 ;;
1232
1233 esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1254 do
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures libodfgen 0.1.8 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libodfgen]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1420
1421 cat <<\_ACEOF
1422
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1427
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 _ACEOF
1432 fi
1433
1434 if test -n "$ac_init_help"; then
1435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of libodfgen 0.1.8:";;
1437 esac
1438 cat <<\_ACEOF
1439
1440 Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-silent-rules less verbose build output (undo: "make V=1")
1445 --disable-silent-rules verbose build output (undo: "make V=0")
1446 --enable-dependency-tracking
1447 do not reject slow dependency extractors
1448 --disable-dependency-tracking
1449 speeds up one-time build
1450 --enable-static[=PKGS] build static libraries [default=no]
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --enable-werror Treat all warnings as errors, usefull for
1456 development
1457 --disable-weffc Disable -Weffc++ warnings, usefull when using an old
1458 version of gcc
1459 --enable-wparanoic Enable a lot of warnings...
1460 --enable-debug Turn on debugging
1461 --enable-test Compile extra test executables
1462
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-aix-soname=aix|svr4|both
1469 shared library versioning (aka "SONAME") variant to
1470 provide on AIX, [default=aix].
1471 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1473 compiler's sysroot if not specified).
1474 --without-docs Do not build documentation
1475
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1487 LT_SYS_LIBRARY_PATH
1488 User-defined run-time library search path.
1489 CXXCPP C++ preprocessor
1490 PKG_CONFIG path to pkg-config utility
1491 PKG_CONFIG_PATH
1492 directories to add to pkg-config's search path
1493 PKG_CONFIG_LIBDIR
1494 path overriding pkg-config's built-in search path
1495 REVENGE_CFLAGS
1496 C compiler flags for REVENGE, overriding pkg-config
1497 REVENGE_LIBS
1498 linker flags for REVENGE, overriding pkg-config
1499 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1500 XML_LIBS linker flags for XML, overriding pkg-config
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to the package provider.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 libodfgen configure 0.1.8
1569 generated by GNU Autoconf 2.69
1570
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_c_try_cpp LINENO
1621 # ----------------------
1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_cpp ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_cpp conftest.$ac_ext"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } > conftest.i && {
1642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 }; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_cpp
1656
1657 # ac_fn_cxx_try_compile LINENO
1658 # ----------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_cxx_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_cxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_cxx_try_compile
1694
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 fi
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880
1881 # ac_fn_cxx_try_cpp LINENO
1882 # ------------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_cpp ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912 fi
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916 } # ac_fn_cxx_try_cpp
1917
1918 # ac_fn_cxx_try_link LINENO
1919 # -------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_link ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 test -x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_retval=1
1953 fi
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1961
1962 } # ac_fn_cxx_try_link
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1966
1967 It was created by libodfgen $as_me 0.1.8, which was
1968 generated by GNU Autoconf 2.69. Invocation command line was
1969
1970 $ $0 $@
1971
1972 _ACEOF
1973 exec 5>>config.log
1974 {
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1979
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988
1989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996
1997 _ASUNAME
1998
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 $as_echo "PATH: $as_dir"
2005 done
2006 IFS=$as_save_IFS
2007
2008 } >&5
2009
2010 cat >&5 <<_ACEOF
2011
2012
2013 ## ----------- ##
2014 ## Core tests. ##
2015 ## ----------- ##
2016
2017 _ACEOF
2018
2019
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_configure_args=
2026 ac_configure_args0=
2027 ac_configure_args1=
2028 ac_must_keep_next=false
2029 for ac_pass in 1 2
2030 do
2031 for ac_arg
2032 do
2033 case $ac_arg in
2034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036 | -silent | --silent | --silen | --sile | --sil)
2037 continue ;;
2038 *\'*)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040 esac
2041 case $ac_pass in
2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043 2)
2044 as_fn_append ac_configure_args1 " '$ac_arg'"
2045 if test $ac_must_keep_next = true; then
2046 ac_must_keep_next=false # Got value, back to normal.
2047 else
2048 case $ac_arg in
2049 *=* | --config-cache | -C | -disable-* | --disable-* \
2050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052 | -with-* | --with-* | -without-* | --without-* | --x)
2053 case "$ac_configure_args0 " in
2054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055 esac
2056 ;;
2057 -* ) ac_must_keep_next=true ;;
2058 esac
2059 fi
2060 as_fn_append ac_configure_args " '$ac_arg'"
2061 ;;
2062 esac
2063 done
2064 done
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2067
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log. We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2075 {
2076 echo
2077
2078 $as_echo "## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##"
2081 echo
2082 # The following way of writing the cache mishandles newlines in values,
2083 (
2084 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in #(
2087 *${as_nl}*)
2088 case $ac_var in #(
2089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2091 esac
2092 case $ac_var in #(
2093 _ | IFS | as_nl) ;; #(
2094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095 *) { eval $ac_var=; unset $ac_var;} ;;
2096 esac ;;
2097 esac
2098 done
2099 (set) 2>&1 |
2100 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101 *${as_nl}ac_space=\ *)
2102 sed -n \
2103 "s/'\''/'\''\\\\'\'''\''/g;
2104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2105 ;; #(
2106 *)
2107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108 ;;
2109 esac |
2110 sort
2111 )
2112 echo
2113
2114 $as_echo "## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##"
2117 echo
2118 for ac_var in $ac_subst_vars
2119 do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123 esac
2124 $as_echo "$ac_var='\''$ac_val'\''"
2125 done | sort
2126 echo
2127
2128 if test -n "$ac_subst_files"; then
2129 $as_echo "## ------------------- ##
2130 ## File substitutions. ##
2131 ## ------------------- ##"
2132 echo
2133 for ac_var in $ac_subst_files
2134 do
2135 eval ac_val=\$$ac_var
2136 case $ac_val in
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 esac
2139 $as_echo "$ac_var='\''$ac_val'\''"
2140 done | sort
2141 echo
2142 fi
2143
2144 if test -s confdefs.h; then
2145 $as_echo "## ----------- ##
2146 ## confdefs.h. ##
2147 ## ----------- ##"
2148 echo
2149 cat confdefs.h
2150 echo
2151 fi
2152 test "$ac_signal" != 0 &&
2153 $as_echo "$as_me: caught signal $ac_signal"
2154 $as_echo "$as_me: exit $exit_status"
2155 } >&5
2156 rm -f core *.core core.conftest.* &&
2157 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2158 exit $exit_status
2159 ' 0
2160 for ac_signal in 1 2 13 15; do
2161 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162 done
2163 ac_signal=0
2164
2165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2166 rm -f -r conftest* confdefs.h
2167
2168 $as_echo "/* confdefs.h */" > confdefs.h
2169
2170 # Predefined preprocessor variables.
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_NAME "$PACKAGE_NAME"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_STRING "$PACKAGE_STRING"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_URL "$PACKAGE_URL"
2194 _ACEOF
2195
2196
2197 # Let the site file select an alternate cache file if it wants to.
2198 # Prefer an explicitly selected file to automatically selected ones.
2199 ac_site_file1=NONE
2200 ac_site_file2=NONE
2201 if test -n "$CONFIG_SITE"; then
2202 # We do not want a PATH search for config.site.
2203 case $CONFIG_SITE in #((
2204 -*) ac_site_file1=./$CONFIG_SITE;;
2205 */*) ac_site_file1=$CONFIG_SITE;;
2206 *) ac_site_file1=./$CONFIG_SITE;;
2207 esac
2208 elif test "x$prefix" != xNONE; then
2209 ac_site_file1=$prefix/share/config.site
2210 ac_site_file2=$prefix/etc/config.site
2211 else
2212 ac_site_file1=$ac_default_prefix/share/config.site
2213 ac_site_file2=$ac_default_prefix/etc/config.site
2214 fi
2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 do
2217 test "x$ac_site_file" = xNONE && continue
2218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2221 sed 's/^/| /' "$ac_site_file" >&5
2222 . "$ac_site_file" \
2223 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 as_fn_error $? "failed to load site script $ac_site_file
2226 See \`config.log' for more details" "$LINENO" 5; }
2227 fi
2228 done
2229
2230 if test -r "$cache_file"; then
2231 # Some versions of bash will fail to source /dev/null (special files
2232 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2233 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2235 $as_echo "$as_me: loading cache $cache_file" >&6;}
2236 case $cache_file in
2237 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2238 *) . "./$cache_file";;
2239 esac
2240 fi
2241 else
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2243 $as_echo "$as_me: creating cache $cache_file" >&6;}
2244 >$cache_file
2245 fi
2246
2247 # Check that the precious variables saved in the cache have kept the same
2248 # value.
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252 eval ac_new_set=\$ac_env_${ac_var}_set
2253 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254 eval ac_new_val=\$ac_env_${ac_var}_value
2255 case $ac_old_set,$ac_new_set in
2256 set,)
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259 ac_cache_corrupted=: ;;
2260 ,set)
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263 ac_cache_corrupted=: ;;
2264 ,);;
2265 *)
2266 if test "x$ac_old_val" != "x$ac_new_val"; then
2267 # differences in whitespace do not lead to failure.
2268 ac_old_val_w=`echo x $ac_old_val`
2269 ac_new_val_w=`echo x $ac_new_val`
2270 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273 ac_cache_corrupted=:
2274 else
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277 eval $ac_var=\$ac_old_val
2278 fi
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2280 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2283 fi;;
2284 esac
2285 # Pass precious variables to config.status.
2286 if test "$ac_new_set" = set; then
2287 case $ac_new_val in
2288 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289 *) ac_arg=$ac_var=$ac_new_val ;;
2290 esac
2291 case " $ac_configure_args " in
2292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2293 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2294 esac
2295 fi
2296 done
2297 if $ac_cache_corrupted; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 fi
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2307
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313
2314
2315
2316 ac_config_headers="$ac_config_headers config.h"
2317
2318 am__api_version='1.16'
2319
2320 ac_aux_dir=
2321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322 if test -f "$ac_dir/install-sh"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/install-sh -c"
2325 break
2326 elif test -f "$ac_dir/install.sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install.sh -c"
2329 break
2330 elif test -f "$ac_dir/shtool"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/shtool install -c"
2333 break
2334 fi
2335 done
2336 if test -z "$ac_aux_dir"; then
2337 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2338 fi
2339
2340 # These three variables are undocumented and unsupported,
2341 # and are intended to be withdrawn in a future Autoconf release.
2342 # They can cause serious problems if a builder's source tree is in a directory
2343 # whose full name contains unusual characters.
2344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2346 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2347
2348
2349 # Find a good install program. We prefer a C program (faster),
2350 # so one script is as good as another. But avoid the broken or
2351 # incompatible versions:
2352 # SysV /etc/install, /usr/sbin/install
2353 # SunOS /usr/etc/install
2354 # IRIX /sbin/install
2355 # AIX /bin/install
2356 # AmigaOS /C/install, which installs bootblocks on floppy discs
2357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360 # OS/2's system install, which has a completely different semantic
2361 # ./install, which can be erroneously created by make from ./install.sh.
2362 # Reject install programs that cannot install multiple files.
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2364 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2365 if test -z "$INSTALL"; then
2366 if ${ac_cv_path_install+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 # Account for people who put trailing slashes in PATH elements.
2375 case $as_dir/ in #((
2376 ./ | .// | /[cC]/* | \
2377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2378 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2379 /usr/ucb/* ) ;;
2380 *)
2381 # OSF1 and SCO ODT 3.0 have their own names for install.
2382 # Don't use installbsd from OSF since it installs stuff as root
2383 # by default.
2384 for ac_prog in ginstall scoinst install; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2387 if test $ac_prog = install &&
2388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389 # AIX install. It has an incompatible calling convention.
2390 :
2391 elif test $ac_prog = install &&
2392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393 # program-specific install script used by HP pwplus--don't use.
2394 :
2395 else
2396 rm -rf conftest.one conftest.two conftest.dir
2397 echo one > conftest.one
2398 echo two > conftest.two
2399 mkdir conftest.dir
2400 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2401 test -s conftest.one && test -s conftest.two &&
2402 test -s conftest.dir/conftest.one &&
2403 test -s conftest.dir/conftest.two
2404 then
2405 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2406 break 3
2407 fi
2408 fi
2409 fi
2410 done
2411 done
2412 ;;
2413 esac
2414
2415 done
2416 IFS=$as_save_IFS
2417
2418 rm -rf conftest.one conftest.two conftest.dir
2419
2420 fi
2421 if test "${ac_cv_path_install+set}" = set; then
2422 INSTALL=$ac_cv_path_install
2423 else
2424 # As a last resort, use the slow shell script. Don't cache a
2425 # value for INSTALL within a source directory, because that will
2426 # break other packages using the cache if that directory is
2427 # removed, or if the value is a relative name.
2428 INSTALL=$ac_install_sh
2429 fi
2430 fi
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2432 $as_echo "$INSTALL" >&6; }
2433
2434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2435 # It thinks the first close brace ends the variable substitution.
2436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2437
2438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2439
2440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2441
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2443 $as_echo_n "checking whether build environment is sane... " >&6; }
2444 # Reject unsafe characters in $srcdir or the absolute working directory
2445 # name. Accept space and tab only in the latter.
2446 am_lf='
2447 '
2448 case `pwd` in
2449 *[\\\"\#\$\&\'\`$am_lf]*)
2450 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2451 esac
2452 case $srcdir in
2453 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2454 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2455 esac
2456
2457 # Do 'set' in a subshell so we don't clobber the current shell's
2458 # arguments. Must try -L first in case configure is actually a
2459 # symlink; some systems play weird games with the mod time of symlinks
2460 # (eg FreeBSD returns the mod time of the symlink's containing
2461 # directory).
2462 if (
2463 am_has_slept=no
2464 for am_try in 1 2; do
2465 echo "timestamp, slept: $am_has_slept" > conftest.file
2466 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467 if test "$*" = "X"; then
2468 # -L didn't work.
2469 set X `ls -t "$srcdir/configure" conftest.file`
2470 fi
2471 if test "$*" != "X $srcdir/configure conftest.file" \
2472 && test "$*" != "X conftest.file $srcdir/configure"; then
2473
2474 # If neither matched, then we have a broken ls. This can happen
2475 # if, for instance, CONFIG_SHELL is bash and it inherits a
2476 # broken ls alias from the environment. This has actually
2477 # happened. Such a system could not be considered "sane".
2478 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2479 alias in your environment" "$LINENO" 5
2480 fi
2481 if test "$2" = conftest.file || test $am_try -eq 2; then
2482 break
2483 fi
2484 # Just in case.
2485 sleep 1
2486 am_has_slept=yes
2487 done
2488 test "$2" = conftest.file
2489 )
2490 then
2491 # Ok.
2492 :
2493 else
2494 as_fn_error $? "newly created file is older than distributed files!
2495 Check your system clock" "$LINENO" 5
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498 $as_echo "yes" >&6; }
2499 # If we didn't sleep, we still need to ensure time stamps of config.status and
2500 # generated files are strictly newer.
2501 am_sleep_pid=
2502 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2503 ( sleep 1 ) &
2504 am_sleep_pid=$!
2505 fi
2506
2507 rm -f conftest.file
2508
2509 test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
2519 # Expand $ac_aux_dir to an absolute path.
2520 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2521
2522 if test x"${MISSING+set}" != xset; then
2523 case $am_aux_dir in
2524 *\ * | *\ *)
2525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526 *)
2527 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528 esac
2529 fi
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --is-lightweight"; then
2532 am_missing_run="$MISSING "
2533 else
2534 am_missing_run=
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2536 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2537 fi
2538
2539 if test x"${install_sh+set}" != xset; then
2540 case $am_aux_dir in
2541 *\ * | *\ *)
2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543 *)
2544 install_sh="\${SHELL} $am_aux_dir/install-sh"
2545 esac
2546 fi
2547
2548 # Installed binaries are usually stripped using 'strip' when the user
2549 # run "make install-strip". However 'strip' might not be the right
2550 # tool to use in cross-compilation environments, therefore Automake
2551 # will honor the 'STRIP' environment variable to overrule this program.
2552 if test "$cross_compiling" != no; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_STRIP+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$STRIP"; then
2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 STRIP=$ac_cv_prog_STRIP
2582 if test -n "$STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584 $as_echo "$STRIP" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 fi
2592 if test -z "$ac_cv_prog_STRIP"; then
2593 ac_ct_STRIP=$STRIP
2594 # Extract the first word of "strip", so it can be a program name with args.
2595 set dummy strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$ac_ct_STRIP"; then
2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_ac_ct_STRIP="strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622 if test -n "$ac_ct_STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624 $as_echo "$ac_ct_STRIP" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630 if test "x$ac_ct_STRIP" = x; then
2631 STRIP=":"
2632 else
2633 case $cross_compiling:$ac_tool_warned in
2634 yes:)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639 STRIP=$ac_ct_STRIP
2640 fi
2641 else
2642 STRIP="$ac_cv_prog_STRIP"
2643 fi
2644
2645 fi
2646 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650 if test -z "$MKDIR_P"; then
2651 if ${ac_cv_path_mkdir+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_prog in mkdir gmkdir; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663 'mkdir (GNU coreutils) '* | \
2664 'mkdir (coreutils) '* | \
2665 'mkdir (fileutils) '4.1*)
2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667 break 3;;
2668 esac
2669 done
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675
2676 test -d ./--version && rmdir ./--version
2677 if test "${ac_cv_path_mkdir+set}" = set; then
2678 MKDIR_P="$ac_cv_path_mkdir -p"
2679 else
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for MKDIR_P within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 MKDIR_P="$ac_install_sh -d"
2685 fi
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688 $as_echo "$MKDIR_P" >&6; }
2689
2690 for ac_prog in gawk mawk nawk awk
2691 do
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_AWK+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_AWK="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 AWK=$ac_cv_prog_AWK
2720 if test -n "$AWK"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722 $as_echo "$AWK" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 test -n "$AWK" && break
2730 done
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734 set x ${MAKE-make}
2735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 cat >conftest.make <<\_ACEOF
2740 SHELL = /bin/sh
2741 all:
2742 @echo '@@@%%%=$(MAKE)=@@@%%%'
2743 _ACEOF
2744 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746 *@@@%%%=?*=@@@%%%*)
2747 eval ac_cv_prog_make_${ac_make}_set=yes;;
2748 *)
2749 eval ac_cv_prog_make_${ac_make}_set=no;;
2750 esac
2751 rm -f conftest.make
2752 fi
2753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 SET_MAKE=
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 SET_MAKE="MAKE=${MAKE-make}"
2761 fi
2762
2763 rm -rf .tst 2>/dev/null
2764 mkdir .tst 2>/dev/null
2765 if test -d .tst; then
2766 am__leading_dot=.
2767 else
2768 am__leading_dot=_
2769 fi
2770 rmdir .tst 2>/dev/null
2771
2772 # Check whether --enable-silent-rules was given.
2773 if test "${enable_silent_rules+set}" = set; then :
2774 enableval=$enable_silent_rules;
2775 fi
2776
2777 case $enable_silent_rules in # (((
2778 yes) AM_DEFAULT_VERBOSITY=0;;
2779 no) AM_DEFAULT_VERBOSITY=1;;
2780 *) AM_DEFAULT_VERBOSITY=1;;
2781 esac
2782 am_make=${MAKE-make}
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2784 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2785 if ${am_cv_make_support_nested_variables+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if $as_echo 'TRUE=$(BAR$(V))
2789 BAR0=false
2790 BAR1=true
2791 V=1
2792 am__doit:
2793 @$(TRUE)
2794 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2795 am_cv_make_support_nested_variables=yes
2796 else
2797 am_cv_make_support_nested_variables=no
2798 fi
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2801 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2802 if test $am_cv_make_support_nested_variables = yes; then
2803 AM_V='$(V)'
2804 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2805 else
2806 AM_V=$AM_DEFAULT_VERBOSITY
2807 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2808 fi
2809 AM_BACKSLASH='\'
2810
2811 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2812 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2813 # is not polluted with repeated "-I."
2814 am__isrc=' -I$(srcdir)'
2815 # test to see if srcdir already configured
2816 if test -f $srcdir/config.status; then
2817 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2818 fi
2819 fi
2820
2821 # test whether we have cygpath
2822 if test -z "$CYGPATH_W"; then
2823 if (cygpath --version) >/dev/null 2>/dev/null; then
2824 CYGPATH_W='cygpath -w'
2825 else
2826 CYGPATH_W=echo
2827 fi
2828 fi
2829
2830
2831 # Define the identity of the package.
2832 PACKAGE='libodfgen'
2833 VERSION='0.1.8'
2834
2835
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE "$PACKAGE"
2838 _ACEOF
2839
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define VERSION "$VERSION"
2843 _ACEOF
2844
2845 # Some tools Automake needs.
2846
2847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2848
2849
2850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2851
2852
2853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2854
2855
2856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2857
2858
2859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2860
2861 # For better backward compatibility. To be removed once Automake 1.9.x
2862 # dies out for good. For more background, see:
2863 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2864 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2865 mkdir_p='$(MKDIR_P)'
2866
2867 # We need awk for the "check" target (and possibly the TAP driver). The
2868 # system "awk" is bad on some platforms.
2869 # Always define AMTAR for backward compatibility. Yes, it's still used
2870 # in the wild :-( We should find a proper way to deprecate it ...
2871 AMTAR='$${TAR-tar}'
2872
2873
2874 # We'll loop over all known methods to create a tar archive until one works.
2875 _am_tools='gnutar pax cpio none'
2876
2877 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2878
2879
2880
2881
2882
2883
2884 # POSIX will say in a future version that running "rm -f" with no argument
2885 # is OK; and we want to be able to make that assumption in our Makefile
2886 # recipes. So use an aggressive probe to check that the usage we want is
2887 # actually supported "in the wild" to an acceptable degree.
2888 # See automake bug#10828.
2889 # To make any issue more visible, cause the running configure to be aborted
2890 # by default if the 'rm' program in use doesn't match our expectations; the
2891 # user can still override this though.
2892 if rm -f && rm -fr && rm -rf; then : OK; else
2893 cat >&2 <<'END'
2894 Oops!
2895
2896 Your 'rm' program seems unable to run without file operands specified
2897 on the command line, even when the '-f' option is present. This is contrary
2898 to the behaviour of most rm programs out there, and not conforming with
2899 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2900
2901 Please tell [email protected] about your system, including the value
2902 of your $PATH and any error possibly output before this message. This
2903 can help us improve future automake versions.
2904
2905 END
2906 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2907 echo 'Configuration will proceed anyway, since you have set the' >&2
2908 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2909 echo >&2
2910 else
2911 cat >&2 <<'END'
2912 Aborting the configuration process, to ensure you take notice of the issue.
2913
2914 You can download and install GNU coreutils to get an 'rm' implementation
2915 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2916
2917 If you want to complete the configuration process using your problematic
2918 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2919 to "yes", and re-run configure.
2920
2921 END
2922 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2923 fi
2924 fi
2925
2926 # Check whether --enable-silent-rules was given.
2927 if test "${enable_silent_rules+set}" = set; then :
2928 enableval=$enable_silent_rules;
2929 fi
2930
2931 case $enable_silent_rules in # (((
2932 yes) AM_DEFAULT_VERBOSITY=0;;
2933 no) AM_DEFAULT_VERBOSITY=1;;
2934 *) AM_DEFAULT_VERBOSITY=0;;
2935 esac
2936 am_make=${MAKE-make}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2938 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2939 if ${am_cv_make_support_nested_variables+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if $as_echo 'TRUE=$(BAR$(V))
2943 BAR0=false
2944 BAR1=true
2945 V=1
2946 am__doit:
2947 @$(TRUE)
2948 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2949 am_cv_make_support_nested_variables=yes
2950 else
2951 am_cv_make_support_nested_variables=no
2952 fi
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2955 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2956 if test $am_cv_make_support_nested_variables = yes; then
2957 AM_V='$(V)'
2958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2959 else
2960 AM_V=$AM_DEFAULT_VERBOSITY
2961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2962 fi
2963 AM_BACKSLASH='\'
2964
2965 ac_ext=cpp
2966 ac_cpp='$CXXCPP $CPPFLAGS'
2967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2970
2971
2972 # ===========================
2973 # Find required base packages
2974 # ===========================
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 fi
3019 if test -z "$ac_cv_prog_CC"; then
3020 ac_ct_CC=$CC
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_CC="gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3067 fi
3068 else
3069 CC="$ac_cv_prog_CC"
3070 fi
3071
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}cc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_CC="${ac_tool_prefix}cc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 fi
3113 if test -z "$CC"; then
3114 # Extract the first word of "cc", so it can be a program name with args.
3115 set dummy cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 ac_prog_rejected=no
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3133 ac_prog_rejected=yes
3134 continue
3135 fi
3136 ac_cv_prog_CC="cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 if test $ac_prog_rejected = yes; then
3145 # We found a bogon in the path, so make sure we never use it.
3146 set dummy $ac_cv_prog_CC
3147 shift
3148 if test $# != 0; then
3149 # We chose a different compiler from the bogus one.
3150 # However, it has the same basename, so the bogon will be chosen
3151 # first if we set CC to just the basename; use the full file name.
3152 shift
3153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3154 fi
3155 fi
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
3171 for ac_prog in cl.exe
3172 do
3173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 test -n "$CC" && break
3211 done
3212 fi
3213 if test -z "$CC"; then
3214 ac_ct_CC=$CC
3215 for ac_prog in cl.exe
3216 do
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_ac_ct_CC="$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254 test -n "$ac_ct_CC" && break
3255 done
3256
3257 if test "x$ac_ct_CC" = x; then
3258 CC=""
3259 else
3260 case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266 CC=$ac_ct_CC
3267 fi
3268 fi
3269
3270 fi
3271
3272
3273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error $? "no acceptable C compiler found in \$PATH
3276 See \`config.log' for more details" "$LINENO" 5; }
3277
3278 # Provide some information about the compiler.
3279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3280 set X $ac_compile
3281 ac_compiler=$2
3282 for ac_option in --version -v -V -qversion; do
3283 { { ac_try="$ac_compiler $ac_option >&5"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291 ac_status=$?
3292 if test -s conftest.err; then
3293 sed '10a\
3294 ... rest of stderr output deleted ...
3295 10q' conftest.err >conftest.er1
3296 cat conftest.er1 >&5
3297 fi
3298 rm -f conftest.er1 conftest.err
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3301 done
3302
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files_save=$ac_clean_files
3315 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3316 # Try to create an executable without -o first, disregard a.out.
3317 # It will help us diagnose broken compilers, and finding out an intuition
3318 # of exeext.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3320 $as_echo_n "checking whether the C compiler works... " >&6; }
3321 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3322
3323 # The possible output files:
3324 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3325
3326 ac_rmfiles=
3327 for ac_file in $ac_files
3328 do
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3332 esac
3333 done
3334 rm -f $ac_rmfiles
3335
3336 if { { ac_try="$ac_link_default"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link_default") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
3347 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3349 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3350 # so that the user can short-circuit this test for compilers unknown to
3351 # Autoconf.
3352 for ac_file in $ac_files ''
3353 do
3354 test -f "$ac_file" || continue
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3357 ;;
3358 [ab].out )
3359 # We found the default executable, but exeext='' is most
3360 # certainly right.
3361 break;;
3362 *.* )
3363 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3364 then :; else
3365 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 fi
3367 # We set ac_cv_exeext here because the later test for it is not
3368 # safe: cross compilers may not add the suffix if given an `-o'
3369 # argument, so we may need to know it at that point already.
3370 # Even if this section looks crufty: it has the advantage of
3371 # actually working.
3372 break;;
3373 * )
3374 break;;
3375 esac
3376 done
3377 test "$ac_cv_exeext" = no && ac_cv_exeext=
3378
3379 else
3380 ac_file=''
3381 fi
3382 if test -z "$ac_file"; then :
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error 77 "C compiler cannot create executables
3391 See \`config.log' for more details" "$LINENO" 5; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394 $as_echo "yes" >&6; }
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3397 $as_echo_n "checking for C compiler default output file name... " >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3399 $as_echo "$ac_file" >&6; }
3400 ac_exeext=$ac_cv_exeext
3401
3402 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3403 ac_clean_files=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3405 $as_echo_n "checking for suffix of executables... " >&6; }
3406 if { { ac_try="$ac_link"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_link") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 # `rm'.
3421 for ac_file in conftest.exe conftest conftest.*; do
3422 test -f "$ac_file" || continue
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 break;;
3427 * ) break;;
3428 esac
3429 done
3430 else
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details" "$LINENO" 5; }
3435 fi
3436 rm -f conftest conftest$ac_cv_exeext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
3439
3440 rm -f conftest.$ac_ext
3441 EXEEXT=$ac_cv_exeext
3442 ac_exeext=$EXEEXT
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445 #include <stdio.h>
3446 int
3447 main ()
3448 {
3449 FILE *f = fopen ("conftest.out", "w");
3450 return ferror (f) || fclose (f) != 0;
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 ac_clean_files="$ac_clean_files conftest.out"
3457 # Check that the compiler produces executables we can run. If not, either
3458 # the compiler is broken, or we cross compile.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3460 $as_echo_n "checking whether we are cross compiling... " >&6; }
3461 if test "$cross_compiling" != yes; then
3462 { { ac_try="$ac_link"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }
3473 if { ac_try='./conftest$ac_cv_exeext'
3474 { { case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_try") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; }; then
3484 cross_compiling=no
3485 else
3486 if test "$cross_compiling" = maybe; then
3487 cross_compiling=yes
3488 else
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details" "$LINENO" 5; }
3494 fi
3495 fi
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3498 $as_echo "$cross_compiling" >&6; }
3499
3500 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3501 ac_clean_files=$ac_clean_files_save
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3503 $as_echo_n "checking for suffix of object files... " >&6; }
3504 if ${ac_cv_objext+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.o conftest.obj
3519 if { { ac_try="$ac_compile"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_compile") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 for ac_file in conftest.o conftest.obj conftest.*; do
3531 test -f "$ac_file" || continue;
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3535 break;;
3536 esac
3537 done
3538 else
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544 as_fn_error $? "cannot compute suffix of object files: cannot compile
3545 See \`config.log' for more details" "$LINENO" 5; }
3546 fi
3547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3550 $as_echo "$ac_cv_objext" >&6; }
3551 OBJEXT=$ac_cv_objext
3552 ac_objext=$OBJEXT
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3554 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3555 if ${ac_cv_c_compiler_gnu+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564 #ifndef __GNUC__
3565 choke me
3566 #endif
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_compiler_gnu=yes
3574 else
3575 ac_compiler_gnu=no
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3579
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3582 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3583 if test $ac_compiler_gnu = yes; then
3584 GCC=yes
3585 else
3586 GCC=
3587 fi
3588 ac_test_CFLAGS=${CFLAGS+set}
3589 ac_save_CFLAGS=$CFLAGS
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3591 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3592 if ${ac_cv_prog_cc_g+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_save_c_werror_flag=$ac_c_werror_flag
3596 ac_c_werror_flag=yes
3597 ac_cv_prog_cc_g=no
3598 CFLAGS="-g"
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_prog_cc_g=yes
3612 else
3613 CFLAGS=""
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616
3617 int
3618 main ()
3619 {
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626
3627 else
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3629 CFLAGS="-g"
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632
3633 int
3634 main ()
3635 {
3636
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_prog_cc_g=yes
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 ac_c_werror_flag=$ac_save_c_werror_flag
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3652 $as_echo "$ac_cv_prog_cc_g" >&6; }
3653 if test "$ac_test_CFLAGS" = set; then
3654 CFLAGS=$ac_save_CFLAGS
3655 elif test $ac_cv_prog_cc_g = yes; then
3656 if test "$GCC" = yes; then
3657 CFLAGS="-g -O2"
3658 else
3659 CFLAGS="-g"
3660 fi
3661 else
3662 if test "$GCC" = yes; then
3663 CFLAGS="-O2"
3664 else
3665 CFLAGS=
3666 fi
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3670 if ${ac_cv_prog_cc_c89+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 ac_cv_prog_cc_c89=no
3674 ac_save_CC=$CC
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677 #include <stdarg.h>
3678 #include <stdio.h>
3679 struct stat;
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3684 char **p;
3685 int i;
3686 {
3687 return p[i];
3688 }
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3690 {
3691 char *s;
3692 va_list v;
3693 va_start (v,p);
3694 s = g (p, va_arg (v,int));
3695 va_end (v);
3696 return s;
3697 }
3698
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3700 function prototypes and stuff, but not '\xHH' hex character constants.
3701 These don't provoke an error unfortunately, instead are silently treated
3702 as 'x'. The following induces an error, until -std is added to get
3703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3704 array size at least. It's necessary to write '\x00'==0 to get something
3705 that's true only with -std. */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3707
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709 inside strings and character constants. */
3710 #define FOO(x) 'x'
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3712
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 int argc;
3718 char **argv;
3719 int
3720 main ()
3721 {
3722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3729 do
3730 CC="$ac_save_CC $ac_arg"
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_prog_cc_c89=$ac_arg
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext
3735 test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 done
3737 rm -f conftest.$ac_ext
3738 CC=$ac_save_CC
3739
3740 fi
3741 # AC_CACHE_VAL
3742 case "x$ac_cv_prog_cc_c89" in
3743 x)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3745 $as_echo "none needed" >&6; } ;;
3746 xno)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3748 $as_echo "unsupported" >&6; } ;;
3749 *)
3750 CC="$CC $ac_cv_prog_cc_c89"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3753 esac
3754 if test "x$ac_cv_prog_cc_c89" != xno; then :
3755
3756 fi
3757
3758 ac_ext=cpp
3759 ac_cpp='$CXXCPP $CPPFLAGS'
3760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3763
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3770 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3771 if ${am_cv_prog_cc_c_o+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 # Make sure it works both with $CC and with simple cc.
3786 # Following AC_PROG_CC_C_O, we do the test twice because some
3787 # compilers refuse to overwrite an existing .o file with -o,
3788 # though they will create one.
3789 am_cv_prog_cc_c_o=yes
3790 for am_i in 1 2; do
3791 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3792 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } \
3796 && test -f conftest2.$ac_objext; then
3797 : OK
3798 else
3799 am_cv_prog_cc_c_o=no
3800 break
3801 fi
3802 done
3803 rm -f core conftest*
3804 unset am_i
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3807 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3808 if test "$am_cv_prog_cc_c_o" != yes; then
3809 # Losing compiler, so override with the script.
3810 # FIXME: It is wrong to rewrite CC.
3811 # But if we don't then we get into trouble of one sort or another.
3812 # A longer-term fix would be to have automake use am__CC in this case,
3813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814 CC="$am_aux_dir/compile $CC"
3815 fi
3816 ac_ext=cpp
3817 ac_cpp='$CXXCPP $CPPFLAGS'
3818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3821
3822 DEPDIR="${am__leading_dot}deps"
3823
3824 ac_config_commands="$ac_config_commands depfiles"
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3827 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3828 cat > confinc.mk << 'END'
3829 am__doit:
3830 @echo this is the am__doit target >confinc.out
3831 .PHONY: am__doit
3832 END
3833 am__include="#"
3834 am__quote=
3835 # BSD make does it like this.
3836 echo '.include "confinc.mk" # ignored' > confmf.BSD
3837 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3838 echo 'include confinc.mk # ignored' > confmf.GNU
3839 _am_result=no
3840 for s in GNU BSD; do
3841 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3842 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846 case $?:`cat confinc.out 2>/dev/null` in #(
3847 '0:this is the am__doit target') :
3848 case $s in #(
3849 BSD) :
3850 am__include='.include' am__quote='"' ;; #(
3851 *) :
3852 am__include='include' am__quote='' ;;
3853 esac ;; #(
3854 *) :
3855 ;;
3856 esac
3857 if test "$am__include" != "#"; then
3858 _am_result="yes ($s style)"
3859 break
3860 fi
3861 done
3862 rm -f confinc.* confmf.*
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3864 $as_echo "${_am_result}" >&6; }
3865
3866 # Check whether --enable-dependency-tracking was given.
3867 if test "${enable_dependency_tracking+set}" = set; then :
3868 enableval=$enable_dependency_tracking;
3869 fi
3870
3871 if test "x$enable_dependency_tracking" != xno; then
3872 am_depcomp="$ac_aux_dir/depcomp"
3873 AMDEPBACKSLASH='\'
3874 am__nodep='_no'
3875 fi
3876 if test "x$enable_dependency_tracking" != xno; then
3877 AMDEP_TRUE=
3878 AMDEP_FALSE='#'
3879 else
3880 AMDEP_TRUE='#'
3881 AMDEP_FALSE=
3882 fi
3883
3884
3885
3886 depcc="$CC" am_compiler_list=
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3889 $as_echo_n "checking dependency style of $depcc... " >&6; }
3890 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3894 # We make a subdir and do the tests there. Otherwise we can end up
3895 # making bogus files that we don't know about and never remove. For
3896 # instance it was reported that on HP-UX the gcc test will end up
3897 # making a dummy file named 'D' -- because '-MD' means "put the output
3898 # in D".
3899 rm -rf conftest.dir
3900 mkdir conftest.dir
3901 # Copy depcomp to subdir because otherwise we won't find it if we're
3902 # using a relative directory.
3903 cp "$am_depcomp" conftest.dir
3904 cd conftest.dir
3905 # We will build objects and dependencies in a subdirectory because
3906 # it helps to detect inapplicable dependency modes. For instance
3907 # both Tru64's cc and ICC support -MD to output dependencies as a
3908 # side effect of compilation, but ICC will put the dependencies in
3909 # the current directory while Tru64 will put them in the object
3910 # directory.
3911 mkdir sub
3912
3913 am_cv_CC_dependencies_compiler_type=none
3914 if test "$am_compiler_list" = ""; then
3915 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3916 fi
3917 am__universal=false
3918 case " $depcc " in #(
3919 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3920 esac
3921
3922 for depmode in $am_compiler_list; do
3923 # Setup a source with many dependencies, because some compilers
3924 # like to wrap large dependency lists on column 80 (with \), and
3925 # we should not choose a depcomp mode which is confused by this.
3926 #
3927 # We need to recreate these files for each test, as the compiler may
3928 # overwrite some of them when testing with obscure command lines.
3929 # This happens at least with the AIX C compiler.
3930 : > sub/conftest.c
3931 for i in 1 2 3 4 5 6; do
3932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3933 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3934 # Solaris 10 /bin/sh.
3935 echo '/* dummy */' > sub/conftst$i.h
3936 done
3937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3938
3939 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3940 # mode. It turns out that the SunPro C++ compiler does not properly
3941 # handle '-M -o', and we need to detect this. Also, some Intel
3942 # versions had trouble with output in subdirs.
3943 am__obj=sub/conftest.${OBJEXT-o}
3944 am__minus_obj="-o $am__obj"
3945 case $depmode in
3946 gcc)
3947 # This depmode causes a compiler race in universal mode.
3948 test "$am__universal" = false || continue
3949 ;;
3950 nosideeffect)
3951 # After this tag, mechanisms are not by side-effect, so they'll
3952 # only be used when explicitly requested.
3953 if test "x$enable_dependency_tracking" = xyes; then
3954 continue
3955 else
3956 break
3957 fi
3958 ;;
3959 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3960 # This compiler won't grok '-c -o', but also, the minuso test has
3961 # not run yet. These depmodes are late enough in the game, and
3962 # so weak that their functioning should not be impacted.
3963 am__obj=conftest.${OBJEXT-o}
3964 am__minus_obj=
3965 ;;
3966 none) break ;;
3967 esac
3968 if depmode=$depmode \
3969 source=sub/conftest.c object=$am__obj \
3970 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3971 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3972 >/dev/null 2>conftest.err &&
3973 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3974 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3975 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3976 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3977 # icc doesn't choke on unknown options, it will just issue warnings
3978 # or remarks (even with -Werror). So we grep stderr for any message
3979 # that says an option was ignored or not supported.
3980 # When given -MP, icc 7.0 and 7.1 complain thusly:
3981 # icc: Command line warning: ignoring option '-M'; no argument required
3982 # The diagnosis changed in icc 8.0:
3983 # icc: Command line remark: option '-MP' not supported
3984 if (grep 'ignoring option' conftest.err ||
3985 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3986 am_cv_CC_dependencies_compiler_type=$depmode
3987 break
3988 fi
3989 fi
3990 done
3991
3992 cd ..
3993 rm -rf conftest.dir
3994 else
3995 am_cv_CC_dependencies_compiler_type=none
3996 fi
3997
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4000 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4001 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4002
4003 if
4004 test "x$enable_dependency_tracking" != xno \
4005 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4006 am__fastdepCC_TRUE=
4007 am__fastdepCC_FALSE='#'
4008 else
4009 am__fastdepCC_TRUE='#'
4010 am__fastdepCC_FALSE=
4011 fi
4012
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4021 # On Suns, sometimes $CPP names a directory.
4022 if test -n "$CPP" && test -d "$CPP"; then
4023 CPP=
4024 fi
4025 if test -z "$CPP"; then
4026 if ${ac_cv_prog_CPP+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 # Double quotes because CPP needs to be expanded
4030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4031 do
4032 ac_preproc_ok=false
4033 for ac_c_preproc_warn_flag in '' yes
4034 do
4035 # Use a header file that comes with gcc, so configuring glibc
4036 # with a fresh cross-compiler works.
4037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038 # <limits.h> exists even on freestanding compilers.
4039 # On the NeXT, cc -E runs the code through the compiler's parser,
4040 # not just through cpp. "Syntax error" is here to catch this case.
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 #ifdef __STDC__
4044 # include <limits.h>
4045 #else
4046 # include <assert.h>
4047 #endif
4048 Syntax error
4049 _ACEOF
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4051
4052 else
4053 # Broken: fails on valid input.
4054 continue
4055 fi
4056 rm -f conftest.err conftest.i conftest.$ac_ext
4057
4058 # OK, works on sane cases. Now check whether nonexistent headers
4059 # can be detected and how.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #include <ac_nonexistent.h>
4063 _ACEOF
4064 if ac_fn_c_try_cpp "$LINENO"; then :
4065 # Broken: success on invalid input.
4066 continue
4067 else
4068 # Passes both tests.
4069 ac_preproc_ok=:
4070 break
4071 fi
4072 rm -f conftest.err conftest.i conftest.$ac_ext
4073
4074 done
4075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4076 rm -f conftest.i conftest.err conftest.$ac_ext
4077 if $ac_preproc_ok; then :
4078 break
4079 fi
4080
4081 done
4082 ac_cv_prog_CPP=$CPP
4083
4084 fi
4085 CPP=$ac_cv_prog_CPP
4086 else
4087 ac_cv_prog_CPP=$CPP
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4090 $as_echo "$CPP" >&6; }
4091 ac_preproc_ok=false
4092 for ac_c_preproc_warn_flag in '' yes
4093 do
4094 # Use a header file that comes with gcc, so configuring glibc
4095 # with a fresh cross-compiler works.
4096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4097 # <limits.h> exists even on freestanding compilers.
4098 # On the NeXT, cc -E runs the code through the compiler's parser,
4099 # not just through cpp. "Syntax error" is here to catch this case.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #ifdef __STDC__
4103 # include <limits.h>
4104 #else
4105 # include <assert.h>
4106 #endif
4107 Syntax error
4108 _ACEOF
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4110
4111 else
4112 # Broken: fails on valid input.
4113 continue
4114 fi
4115 rm -f conftest.err conftest.i conftest.$ac_ext
4116
4117 # OK, works on sane cases. Now check whether nonexistent headers
4118 # can be detected and how.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4122 _ACEOF
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4124 # Broken: success on invalid input.
4125 continue
4126 else
4127 # Passes both tests.
4128 ac_preproc_ok=:
4129 break
4130 fi
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133 done
4134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4135 rm -f conftest.i conftest.err conftest.$ac_ext
4136 if $ac_preproc_ok; then :
4137
4138 else
4139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4142 See \`config.log' for more details" "$LINENO" 5; }
4143 fi
4144
4145 ac_ext=cpp
4146 ac_cpp='$CXXCPP $CPPFLAGS'
4147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4150
4151 ac_ext=cpp
4152 ac_cpp='$CXXCPP $CPPFLAGS'
4153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4156 if test -z "$CXX"; then
4157 if test -n "$CCC"; then
4158 CXX=$CCC
4159 else
4160 if test -n "$ac_tool_prefix"; then
4161 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4162 do
4163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_CXX+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$CXX"; then
4171 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184 done
4185 done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 CXX=$ac_cv_prog_CXX
4191 if test -n "$CXX"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4193 $as_echo "$CXX" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200 test -n "$CXX" && break
4201 done
4202 fi
4203 if test -z "$CXX"; then
4204 ac_ct_CXX=$CXX
4205 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4206 do
4207 # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$ac_ct_CXX"; then
4215 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_ac_ct_CXX="$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232 fi
4233 fi
4234 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4235 if test -n "$ac_ct_CXX"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4237 $as_echo "$ac_ct_CXX" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242
4243
4244 test -n "$ac_ct_CXX" && break
4245 done
4246
4247 if test "x$ac_ct_CXX" = x; then
4248 CXX="g++"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 CXX=$ac_ct_CXX
4257 fi
4258 fi
4259
4260 fi
4261 fi
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4264 set X $ac_compile
4265 ac_compiler=$2
4266 for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275 ac_status=$?
4276 if test -s conftest.err; then
4277 sed '10a\
4278 ... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 fi
4282 rm -f conftest.er1 conftest.err
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4285 done
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4289 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main ()
4297 {
4298 #ifndef __GNUC__
4299 choke me
4300 #endif
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_cxx_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308 else
4309 ac_compiler_gnu=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4316 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318 GXX=yes
4319 else
4320 GXX=
4321 fi
4322 ac_test_CXXFLAGS=${CXXFLAGS+set}
4323 ac_save_CXXFLAGS=$CXXFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4325 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4326 if ${ac_cv_prog_cxx_g+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4330 ac_cxx_werror_flag=yes
4331 ac_cv_prog_cxx_g=no
4332 CXXFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_cxx_try_compile "$LINENO"; then :
4345 ac_cv_prog_cxx_g=yes
4346 else
4347 CXXFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4360
4361 else
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4363 CXXFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_cxx_try_compile "$LINENO"; then :
4376 ac_cv_prog_cxx_g=yes
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4386 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4387 if test "$ac_test_CXXFLAGS" = set; then
4388 CXXFLAGS=$ac_save_CXXFLAGS
4389 elif test $ac_cv_prog_cxx_g = yes; then
4390 if test "$GXX" = yes; then
4391 CXXFLAGS="-g -O2"
4392 else
4393 CXXFLAGS="-g"
4394 fi
4395 else
4396 if test "$GXX" = yes; then
4397 CXXFLAGS="-O2"
4398 else
4399 CXXFLAGS=
4400 fi
4401 fi
4402 ac_ext=cpp
4403 ac_cpp='$CXXCPP $CPPFLAGS'
4404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4407
4408 depcc="$CXX" am_compiler_list=
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4411 $as_echo_n "checking dependency style of $depcc... " >&6; }
4412 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4416 # We make a subdir and do the tests there. Otherwise we can end up
4417 # making bogus files that we don't know about and never remove. For
4418 # instance it was reported that on HP-UX the gcc test will end up
4419 # making a dummy file named 'D' -- because '-MD' means "put the output
4420 # in D".
4421 rm -rf conftest.dir
4422 mkdir conftest.dir
4423 # Copy depcomp to subdir because otherwise we won't find it if we're
4424 # using a relative directory.
4425 cp "$am_depcomp" conftest.dir
4426 cd conftest.dir
4427 # We will build objects and dependencies in a subdirectory because
4428 # it helps to detect inapplicable dependency modes. For instance
4429 # both Tru64's cc and ICC support -MD to output dependencies as a
4430 # side effect of compilation, but ICC will put the dependencies in
4431 # the current directory while Tru64 will put them in the object
4432 # directory.
4433 mkdir sub
4434
4435 am_cv_CXX_dependencies_compiler_type=none
4436 if test "$am_compiler_list" = ""; then
4437 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4438 fi
4439 am__universal=false
4440 case " $depcc " in #(
4441 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4442 esac
4443
4444 for depmode in $am_compiler_list; do
4445 # Setup a source with many dependencies, because some compilers
4446 # like to wrap large dependency lists on column 80 (with \), and
4447 # we should not choose a depcomp mode which is confused by this.
4448 #
4449 # We need to recreate these files for each test, as the compiler may
4450 # overwrite some of them when testing with obscure command lines.
4451 # This happens at least with the AIX C compiler.
4452 : > sub/conftest.c
4453 for i in 1 2 3 4 5 6; do
4454 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4455 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4456 # Solaris 10 /bin/sh.
4457 echo '/* dummy */' > sub/conftst$i.h
4458 done
4459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4460
4461 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4462 # mode. It turns out that the SunPro C++ compiler does not properly
4463 # handle '-M -o', and we need to detect this. Also, some Intel
4464 # versions had trouble with output in subdirs.
4465 am__obj=sub/conftest.${OBJEXT-o}
4466 am__minus_obj="-o $am__obj"
4467 case $depmode in
4468 gcc)
4469 # This depmode causes a compiler race in universal mode.
4470 test "$am__universal" = false || continue
4471 ;;
4472 nosideeffect)
4473 # After this tag, mechanisms are not by side-effect, so they'll
4474 # only be used when explicitly requested.
4475 if test "x$enable_dependency_tracking" = xyes; then
4476 continue
4477 else
4478 break
4479 fi
4480 ;;
4481 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4482 # This compiler won't grok '-c -o', but also, the minuso test has
4483 # not run yet. These depmodes are late enough in the game, and
4484 # so weak that their functioning should not be impacted.
4485 am__obj=conftest.${OBJEXT-o}
4486 am__minus_obj=
4487 ;;
4488 none) break ;;
4489 esac
4490 if depmode=$depmode \
4491 source=sub/conftest.c object=$am__obj \
4492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4493 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4494 >/dev/null 2>conftest.err &&
4495 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4496 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4497 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4498 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4499 # icc doesn't choke on unknown options, it will just issue warnings
4500 # or remarks (even with -Werror). So we grep stderr for any message
4501 # that says an option was ignored or not supported.
4502 # When given -MP, icc 7.0 and 7.1 complain thusly:
4503 # icc: Command line warning: ignoring option '-M'; no argument required
4504 # The diagnosis changed in icc 8.0:
4505 # icc: Command line remark: option '-MP' not supported
4506 if (grep 'ignoring option' conftest.err ||
4507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4508 am_cv_CXX_dependencies_compiler_type=$depmode
4509 break
4510 fi
4511 fi
4512 done
4513
4514 cd ..
4515 rm -rf conftest.dir
4516 else
4517 am_cv_CXX_dependencies_compiler_type=none
4518 fi
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4522 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4523 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4524
4525 if
4526 test "x$enable_dependency_tracking" != xno \
4527 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4528 am__fastdepCXX_TRUE=
4529 am__fastdepCXX_FALSE='#'
4530 else
4531 am__fastdepCXX_TRUE='#'
4532 am__fastdepCXX_FALSE=
4533 fi
4534
4535
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4538 $as_echo_n "checking whether ln -s works... " >&6; }
4539 LN_S=$as_ln_s
4540 if test "$LN_S" = "ln -s"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4545 $as_echo "no, using $LN_S" >&6; }
4546 fi
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4549 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4550 set x ${MAKE-make}
4551 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4552 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 cat >conftest.make <<\_ACEOF
4556 SHELL = /bin/sh
4557 all:
4558 @echo '@@@%%%=$(MAKE)=@@@%%%'
4559 _ACEOF
4560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4562 *@@@%%%=?*=@@@%%%*)
4563 eval ac_cv_prog_make_${ac_make}_set=yes;;
4564 *)
4565 eval ac_cv_prog_make_${ac_make}_set=no;;
4566 esac
4567 rm -f conftest.make
4568 fi
4569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571 $as_echo "yes" >&6; }
4572 SET_MAKE=
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 SET_MAKE="MAKE=${MAKE-make}"
4577 fi
4578
4579 case `pwd` in
4580 *\ * | *\ *)
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4582 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4583 esac
4584
4585
4586
4587 macro_version='2.4.6'
4588 macro_revision='2.4.6'
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 ltmain=$ac_aux_dir/ltmain.sh
4603
4604 # Make sure we can run config.sub.
4605 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4606 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4609 $as_echo_n "checking build system type... " >&6; }
4610 if ${ac_cv_build+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 ac_build_alias=$build_alias
4614 test "x$ac_build_alias" = x &&
4615 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4616 test "x$ac_build_alias" = x &&
4617 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4618 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4620
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4623 $as_echo "$ac_cv_build" >&6; }
4624 case $ac_cv_build in
4625 *-*-*) ;;
4626 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4627 esac
4628 build=$ac_cv_build
4629 ac_save_IFS=$IFS; IFS='-'
4630 set x $ac_cv_build
4631 shift
4632 build_cpu=$1
4633 build_vendor=$2
4634 shift; shift
4635 # Remember, the first character of IFS is used to create $*,
4636 # except with old shells:
4637 build_os=$*
4638 IFS=$ac_save_IFS
4639 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4640
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4643 $as_echo_n "checking host system type... " >&6; }
4644 if ${ac_cv_host+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test "x$host_alias" = x; then
4648 ac_cv_host=$ac_cv_build
4649 else
4650 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4652 fi
4653
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4656 $as_echo "$ac_cv_host" >&6; }
4657 case $ac_cv_host in
4658 *-*-*) ;;
4659 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4660 esac
4661 host=$ac_cv_host
4662 ac_save_IFS=$IFS; IFS='-'
4663 set x $ac_cv_host
4664 shift
4665 host_cpu=$1
4666 host_vendor=$2
4667 shift; shift
4668 # Remember, the first character of IFS is used to create $*,
4669 # except with old shells:
4670 host_os=$*
4671 IFS=$ac_save_IFS
4672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4673
4674
4675 # Backslashify metacharacters that are still active within
4676 # double-quoted strings.
4677 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4678
4679 # Same as above, but do not quote variable references.
4680 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4681
4682 # Sed substitution to delay expansion of an escaped shell variable in a
4683 # double_quote_subst'ed string.
4684 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4685
4686 # Sed substitution to delay expansion of an escaped single quote.
4687 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4688
4689 # Sed substitution to avoid accidental globbing in evaled expressions
4690 no_glob_subst='s/\*/\\\*/g'
4691
4692 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4693 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4694 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4697 $as_echo_n "checking how to print strings... " >&6; }
4698 # Test print first, because it will be a builtin if present.
4699 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4700 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4701 ECHO='print -r --'
4702 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4703 ECHO='printf %s\n'
4704 else
4705 # Use this function as a fallback that always works.
4706 func_fallback_echo ()
4707 {
4708 eval 'cat <<_LTECHO_EOF
4709 $1
4710 _LTECHO_EOF'
4711 }
4712 ECHO='func_fallback_echo'
4713 fi
4714
4715 # func_echo_all arg...
4716 # Invoke $ECHO with all args, space-separated.
4717 func_echo_all ()
4718 {
4719 $ECHO ""
4720 }
4721
4722 case $ECHO in
4723 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4724 $as_echo "printf" >&6; } ;;
4725 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4726 $as_echo "print -r" >&6; } ;;
4727 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4728 $as_echo "cat" >&6; } ;;
4729 esac
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4745 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4746 if ${ac_cv_path_SED+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4750 for ac_i in 1 2 3 4 5 6 7; do
4751 ac_script="$ac_script$as_nl$ac_script"
4752 done
4753 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4754 { ac_script=; unset ac_script;}
4755 if test -z "$SED"; then
4756 ac_path_SED_found=false
4757 # Loop through the user's path and test for each of PROGNAME-LIST
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_prog in sed gsed; do
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4766 as_fn_executable_p "$ac_path_SED" || continue
4767 # Check for GNU ac_path_SED and select it if it is found.
4768 # Check for GNU $ac_path_SED
4769 case `"$ac_path_SED" --version 2>&1` in
4770 *GNU*)
4771 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4772 *)
4773 ac_count=0
4774 $as_echo_n 0123456789 >"conftest.in"
4775 while :
4776 do
4777 cat "conftest.in" "conftest.in" >"conftest.tmp"
4778 mv "conftest.tmp" "conftest.in"
4779 cp "conftest.in" "conftest.nl"
4780 $as_echo '' >> "conftest.nl"
4781 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783 as_fn_arith $ac_count + 1 && ac_count=$as_val
4784 if test $ac_count -gt ${ac_path_SED_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_SED="$ac_path_SED"
4787 ac_path_SED_max=$ac_count
4788 fi
4789 # 10*(2^10) chars as input seems more than enough
4790 test $ac_count -gt 10 && break
4791 done
4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 esac
4794
4795 $ac_path_SED_found && break 3
4796 done
4797 done
4798 done
4799 IFS=$as_save_IFS
4800 if test -z "$ac_cv_path_SED"; then
4801 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4802 fi
4803 else
4804 ac_cv_path_SED=$SED
4805 fi
4806
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4809 $as_echo "$ac_cv_path_SED" >&6; }
4810 SED="$ac_cv_path_SED"
4811 rm -f conftest.sed
4812
4813 test -z "$SED" && SED=sed
4814 Xsed="$SED -e 1s/^X//"
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828 if ${ac_cv_path_GREP+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -z "$GREP"; then
4832 ac_path_GREP_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in grep ggrep; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842 as_fn_executable_p "$ac_path_GREP" || continue
4843 # Check for GNU ac_path_GREP and select it if it is found.
4844 # Check for GNU $ac_path_GREP
4845 case `"$ac_path_GREP" --version 2>&1` in
4846 *GNU*)
4847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4848 *)
4849 ac_count=0
4850 $as_echo_n 0123456789 >"conftest.in"
4851 while :
4852 do
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'GREP' >> "conftest.nl"
4857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_GREP="$ac_path_GREP"
4863 ac_path_GREP_max=$ac_count
4864 fi
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4867 done
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871 $ac_path_GREP_found && break 3
4872 done
4873 done
4874 done
4875 IFS=$as_save_IFS
4876 if test -z "$ac_cv_path_GREP"; then
4877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878 fi
4879 else
4880 ac_cv_path_GREP=$GREP
4881 fi
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885 $as_echo "$ac_cv_path_GREP" >&6; }
4886 GREP="$ac_cv_path_GREP"
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890 $as_echo_n "checking for egrep... " >&6; }
4891 if ${ac_cv_path_EGREP+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895 then ac_cv_path_EGREP="$GREP -E"
4896 else
4897 if test -z "$EGREP"; then
4898 ac_path_EGREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in egrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_EGREP" || continue
4909 # Check for GNU ac_path_EGREP and select it if it is found.
4910 # Check for GNU $ac_path_EGREP
4911 case `"$ac_path_EGREP" --version 2>&1` in
4912 *GNU*)
4913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4914 *)
4915 ac_count=0
4916 $as_echo_n 0123456789 >"conftest.in"
4917 while :
4918 do
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'EGREP' >> "conftest.nl"
4923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_EGREP="$ac_path_EGREP"
4929 ac_path_EGREP_max=$ac_count
4930 fi
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937 $ac_path_EGREP_found && break 3
4938 done
4939 done
4940 done
4941 IFS=$as_save_IFS
4942 if test -z "$ac_cv_path_EGREP"; then
4943 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944 fi
4945 else
4946 ac_cv_path_EGREP=$EGREP
4947 fi
4948
4949 fi
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952 $as_echo "$ac_cv_path_EGREP" >&6; }
4953 EGREP="$ac_cv_path_EGREP"
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4957 $as_echo_n "checking for fgrep... " >&6; }
4958 if ${ac_cv_path_FGREP+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4962 then ac_cv_path_FGREP="$GREP -F"
4963 else
4964 if test -z "$FGREP"; then
4965 ac_path_FGREP_found=false
4966 # Loop through the user's path and test for each of PROGNAME-LIST
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4969 do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_prog in fgrep; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4975 as_fn_executable_p "$ac_path_FGREP" || continue
4976 # Check for GNU ac_path_FGREP and select it if it is found.
4977 # Check for GNU $ac_path_FGREP
4978 case `"$ac_path_FGREP" --version 2>&1` in
4979 *GNU*)
4980 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4981 *)
4982 ac_count=0
4983 $as_echo_n 0123456789 >"conftest.in"
4984 while :
4985 do
4986 cat "conftest.in" "conftest.in" >"conftest.tmp"
4987 mv "conftest.tmp" "conftest.in"
4988 cp "conftest.in" "conftest.nl"
4989 $as_echo 'FGREP' >> "conftest.nl"
4990 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4992 as_fn_arith $ac_count + 1 && ac_count=$as_val
4993 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4994 # Best one so far, save it but keep looking for a better one
4995 ac_cv_path_FGREP="$ac_path_FGREP"
4996 ac_path_FGREP_max=$ac_count
4997 fi
4998 # 10*(2^10) chars as input seems more than enough
4999 test $ac_count -gt 10 && break
5000 done
5001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5002 esac
5003
5004 $ac_path_FGREP_found && break 3
5005 done
5006 done
5007 done
5008 IFS=$as_save_IFS
5009 if test -z "$ac_cv_path_FGREP"; then
5010 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5011 fi
5012 else
5013 ac_cv_path_FGREP=$FGREP
5014 fi
5015
5016 fi
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5019 $as_echo "$ac_cv_path_FGREP" >&6; }
5020 FGREP="$ac_cv_path_FGREP"
5021
5022
5023 test -z "$GREP" && GREP=grep
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043 # Check whether --with-gnu-ld was given.
5044 if test "${with_gnu_ld+set}" = set; then :
5045 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5046 else
5047 with_gnu_ld=no
5048 fi
5049
5050 ac_prog=ld
5051 if test yes = "$GCC"; then
5052 # Check if gcc -print-prog-name=ld gives a path.
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5054 $as_echo_n "checking for ld used by $CC... " >&6; }
5055 case $host in
5056 *-*-mingw*)
5057 # gcc leaves a trailing carriage return, which upsets mingw
5058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5059 *)
5060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5061 esac
5062 case $ac_prog in
5063 # Accept absolute paths.
5064 [\\/]* | ?:[\\/]*)
5065 re_direlt='/[^/][^/]*/\.\./'
5066 # Canonicalize the pathname of ld
5067 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5068 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5069 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5070 done
5071 test -z "$LD" && LD=$ac_prog
5072 ;;
5073 "")
5074 # If it fails, then pretend we aren't using GCC.
5075 ac_prog=ld
5076 ;;
5077 *)
5078 # If it is relative, then search for the first ld in PATH.
5079 with_gnu_ld=unknown
5080 ;;
5081 esac
5082 elif test yes = "$with_gnu_ld"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5084 $as_echo_n "checking for GNU ld... " >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5087 $as_echo_n "checking for non-GNU ld... " >&6; }
5088 fi
5089 if ${lt_cv_path_LD+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -z "$LD"; then
5093 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5094 for ac_dir in $PATH; do
5095 IFS=$lt_save_ifs
5096 test -z "$ac_dir" && ac_dir=.
5097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5098 lt_cv_path_LD=$ac_dir/$ac_prog
5099 # Check to see if the program is GNU ld. I'd rather use --version,
5100 # but apparently some variants of GNU ld only accept -v.
5101 # Break only if it was the GNU/non-GNU ld that we prefer.
5102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5103 *GNU* | *'with BFD'*)
5104 test no != "$with_gnu_ld" && break
5105 ;;
5106 *)
5107 test yes != "$with_gnu_ld" && break
5108 ;;
5109 esac
5110 fi
5111 done
5112 IFS=$lt_save_ifs
5113 else
5114 lt_cv_path_LD=$LD # Let the user override the test with a path.
5115 fi
5116 fi
5117
5118 LD=$lt_cv_path_LD
5119 if test -n "$LD"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5121 $as_echo "$LD" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5125 fi
5126 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5128 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5129 if ${lt_cv_prog_gnu_ld+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5133 case `$LD -v 2>&1 </dev/null` in
5134 *GNU* | *'with BFD'*)
5135 lt_cv_prog_gnu_ld=yes
5136 ;;
5137 *)
5138 lt_cv_prog_gnu_ld=no
5139 ;;
5140 esac
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5143 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5144 with_gnu_ld=$lt_cv_prog_gnu_ld
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5155 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5156 if ${lt_cv_path_NM+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$NM"; then
5160 # Let the user override the test.
5161 lt_cv_path_NM=$NM
5162 else
5163 lt_nm_to_check=${ac_tool_prefix}nm
5164 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5165 lt_nm_to_check="$lt_nm_to_check nm"
5166 fi
5167 for lt_tmp_nm in $lt_nm_to_check; do
5168 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5169 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5170 IFS=$lt_save_ifs
5171 test -z "$ac_dir" && ac_dir=.
5172 tmp_nm=$ac_dir/$lt_tmp_nm
5173 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5174 # Check to see if the nm accepts a BSD-compat flag.
5175 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5176 # nm: unknown option "B" ignored
5177 # Tru64's nm complains that /dev/null is an invalid object file
5178 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5179 case $build_os in
5180 mingw*) lt_bad_file=conftest.nm/nofile ;;
5181 *) lt_bad_file=/dev/null ;;
5182 esac
5183 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5184 *$lt_bad_file* | *'Invalid file or object type'*)
5185 lt_cv_path_NM="$tmp_nm -B"
5186 break 2
5187 ;;
5188 *)
5189 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5190 */dev/null*)
5191 lt_cv_path_NM="$tmp_nm -p"
5192 break 2
5193 ;;
5194 *)
5195 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5196 continue # so that we can try to find one that supports BSD flags
5197 ;;
5198 esac
5199 ;;
5200 esac
5201 fi
5202 done
5203 IFS=$lt_save_ifs
5204 done
5205 : ${lt_cv_path_NM=no}
5206 fi
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5209 $as_echo "$lt_cv_path_NM" >&6; }
5210 if test no != "$lt_cv_path_NM"; then
5211 NM=$lt_cv_path_NM
5212 else
5213 # Didn't find any BSD compatible name lister, look for dumpbin.
5214 if test -n "$DUMPBIN"; then :
5215 # Let the user override the test.
5216 else
5217 if test -n "$ac_tool_prefix"; then
5218 for ac_prog in dumpbin "link -dump"
5219 do
5220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_prog_DUMPBIN+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 if test -n "$DUMPBIN"; then
5228 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 DUMPBIN=$ac_cv_prog_DUMPBIN
5248 if test -n "$DUMPBIN"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5250 $as_echo "$DUMPBIN" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255
5256
5257 test -n "$DUMPBIN" && break
5258 done
5259 fi
5260 if test -z "$DUMPBIN"; then
5261 ac_ct_DUMPBIN=$DUMPBIN
5262 for ac_prog in dumpbin "link -dump"
5263 do
5264 # Extract the first word of "$ac_prog", so it can be a program name with args.
5265 set dummy $ac_prog; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$ac_ct_DUMPBIN"; then
5272 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5292 if test -n "$ac_ct_DUMPBIN"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5294 $as_echo "$ac_ct_DUMPBIN" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 test -n "$ac_ct_DUMPBIN" && break
5302 done
5303
5304 if test "x$ac_ct_DUMPBIN" = x; then
5305 DUMPBIN=":"
5306 else
5307 case $cross_compiling:$ac_tool_warned in
5308 yes:)
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311 ac_tool_warned=yes ;;
5312 esac
5313 DUMPBIN=$ac_ct_DUMPBIN
5314 fi
5315 fi
5316
5317 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5318 *COFF*)
5319 DUMPBIN="$DUMPBIN -symbols -headers"
5320 ;;
5321 *)
5322 DUMPBIN=:
5323 ;;
5324 esac
5325 fi
5326
5327 if test : != "$DUMPBIN"; then
5328 NM=$DUMPBIN
5329 fi
5330 fi
5331 test -z "$NM" && NM=nm
5332
5333
5334
5335
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5339 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5340 if ${lt_cv_nm_interface+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 lt_cv_nm_interface="BSD nm"
5344 echo "int some_variable = 0;" > conftest.$ac_ext
5345 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5346 (eval "$ac_compile" 2>conftest.err)
5347 cat conftest.err >&5
5348 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5349 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5350 cat conftest.err >&5
5351 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5352 cat conftest.out >&5
5353 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5354 lt_cv_nm_interface="MS dumpbin"
5355 fi
5356 rm -f conftest*
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5359 $as_echo "$lt_cv_nm_interface" >&6; }
5360
5361 # find the maximum length of command line arguments
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5363 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5364 if ${lt_cv_sys_max_cmd_len+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 i=0
5368 teststring=ABCD
5369
5370 case $build_os in
5371 msdosdjgpp*)
5372 # On DJGPP, this test can blow up pretty badly due to problems in libc
5373 # (any single argument exceeding 2000 bytes causes a buffer overrun
5374 # during glob expansion). Even if it were fixed, the result of this
5375 # check would be larger than it should be.
5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5377 ;;
5378
5379 gnu*)
5380 # Under GNU Hurd, this test is not required because there is
5381 # no limit to the length of command line arguments.
5382 # Libtool will interpret -1 as no limit whatsoever
5383 lt_cv_sys_max_cmd_len=-1;
5384 ;;
5385
5386 cygwin* | mingw* | cegcc*)
5387 # On Win9x/ME, this test blows up -- it succeeds, but takes
5388 # about 5 minutes as the teststring grows exponentially.
5389 # Worse, since 9x/ME are not pre-emptively multitasking,
5390 # you end up with a "frozen" computer, even though with patience
5391 # the test eventually succeeds (with a max line length of 256k).
5392 # Instead, let's just punt: use the minimum linelength reported by
5393 # all of the supported platforms: 8192 (on NT/2K/XP).
5394 lt_cv_sys_max_cmd_len=8192;
5395 ;;
5396
5397 mint*)
5398 # On MiNT this can take a long time and run out of memory.
5399 lt_cv_sys_max_cmd_len=8192;
5400 ;;
5401
5402 amigaos*)
5403 # On AmigaOS with pdksh, this test takes hours, literally.
5404 # So we just punt and use a minimum line length of 8192.
5405 lt_cv_sys_max_cmd_len=8192;
5406 ;;
5407
5408 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5409 # This has been around since 386BSD, at least. Likely further.
5410 if test -x /sbin/sysctl; then
5411 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5412 elif test -x /usr/sbin/sysctl; then
5413 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5414 else
5415 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5416 fi
5417 # And add a safety zone
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5420 ;;
5421
5422 interix*)
5423 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5424 lt_cv_sys_max_cmd_len=196608
5425 ;;
5426
5427 os2*)
5428 # The test takes a long time on OS/2.
5429 lt_cv_sys_max_cmd_len=8192
5430 ;;
5431
5432 osf*)
5433 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5434 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5435 # nice to cause kernel panics so lets avoid the loop below.
5436 # First set a reasonable default.
5437 lt_cv_sys_max_cmd_len=16384
5438 #
5439 if test -x /sbin/sysconfig; then
5440 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5441 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5442 esac
5443 fi
5444 ;;
5445 sco3.2v5*)
5446 lt_cv_sys_max_cmd_len=102400
5447 ;;
5448 sysv5* | sco5v6* | sysv4.2uw2*)
5449 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5450 if test -n "$kargmax"; then
5451 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5452 else
5453 lt_cv_sys_max_cmd_len=32768
5454 fi
5455 ;;
5456 *)
5457 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5458 if test -n "$lt_cv_sys_max_cmd_len" && \
5459 test undefined != "$lt_cv_sys_max_cmd_len"; then
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5462 else
5463 # Make teststring a little bigger before we do anything with it.
5464 # a 1K string should be a reasonable start.
5465 for i in 1 2 3 4 5 6 7 8; do
5466 teststring=$teststring$teststring
5467 done
5468 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5469 # If test is not a shell built-in, we'll probably end up computing a
5470 # maximum length that is only half of the actual maximum length, but
5471 # we can't tell.
5472 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5473 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5474 test 17 != "$i" # 1/2 MB should be enough
5475 do
5476 i=`expr $i + 1`
5477 teststring=$teststring$teststring
5478 done
5479 # Only check the string length outside the loop.
5480 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5481 teststring=
5482 # Add a significant safety factor because C++ compilers can tack on
5483 # massive amounts of additional arguments before passing them to the
5484 # linker. It appears as though 1/2 is a usable value.
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5486 fi
5487 ;;
5488 esac
5489
5490 fi
5491
5492 if test -n "$lt_cv_sys_max_cmd_len"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5494 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5497 $as_echo "none" >&6; }
5498 fi
5499 max_cmd_len=$lt_cv_sys_max_cmd_len
5500
5501
5502
5503
5504
5505
5506 : ${CP="cp -f"}
5507 : ${MV="mv -f"}
5508 : ${RM="rm -f"}
5509
5510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5511 lt_unset=unset
5512 else
5513 lt_unset=false
5514 fi
5515
5516
5517
5518
5519
5520 # test EBCDIC or ASCII
5521 case `echo X|tr X '\101'` in
5522 A) # ASCII based system
5523 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5524 lt_SP2NL='tr \040 \012'
5525 lt_NL2SP='tr \015\012 \040\040'
5526 ;;
5527 *) # EBCDIC based system
5528 lt_SP2NL='tr \100 \n'
5529 lt_NL2SP='tr \r\n \100\100'
5530 ;;
5531 esac
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5542 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5543 if ${lt_cv_to_host_file_cmd+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 case $host in
5547 *-*-mingw* )
5548 case $build in
5549 *-*-mingw* ) # actually msys
5550 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5551 ;;
5552 *-*-cygwin* )
5553 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5554 ;;
5555 * ) # otherwise, assume *nix
5556 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5557 ;;
5558 esac
5559 ;;
5560 *-*-cygwin* )
5561 case $build in
5562 *-*-mingw* ) # actually msys
5563 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5564 ;;
5565 *-*-cygwin* )
5566 lt_cv_to_host_file_cmd=func_convert_file_noop
5567 ;;
5568 * ) # otherwise, assume *nix
5569 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5570 ;;
5571 esac
5572 ;;
5573 * ) # unhandled hosts (and "normal" native builds)
5574 lt_cv_to_host_file_cmd=func_convert_file_noop
5575 ;;
5576 esac
5577
5578 fi
5579
5580 to_host_file_cmd=$lt_cv_to_host_file_cmd
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5582 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5583
5584
5585
5586
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5589 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5590 if ${lt_cv_to_tool_file_cmd+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 #assume ordinary cross tools, or native build.
5594 lt_cv_to_tool_file_cmd=func_convert_file_noop
5595 case $host in
5596 *-*-mingw* )
5597 case $build in
5598 *-*-mingw* ) # actually msys
5599 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5600 ;;
5601 esac
5602 ;;
5603 esac
5604
5605 fi
5606
5607 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5609 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5610
5611
5612
5613
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5616 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5617 if ${lt_cv_ld_reload_flag+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 lt_cv_ld_reload_flag='-r'
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5623 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5624 reload_flag=$lt_cv_ld_reload_flag
5625 case $reload_flag in
5626 "" | " "*) ;;
5627 *) reload_flag=" $reload_flag" ;;
5628 esac
5629 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5630 case $host_os in
5631 cygwin* | mingw* | pw32* | cegcc*)
5632 if test yes != "$GCC"; then
5633 reload_cmds=false
5634 fi
5635 ;;
5636 darwin*)
5637 if test yes = "$GCC"; then
5638 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5639 else
5640 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5641 fi
5642 ;;
5643 esac
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_OBJDUMP+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -n "$OBJDUMP"; then
5662 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 OBJDUMP=$ac_cv_prog_OBJDUMP
5682 if test -n "$OBJDUMP"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5684 $as_echo "$OBJDUMP" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691 fi
5692 if test -z "$ac_cv_prog_OBJDUMP"; then
5693 ac_ct_OBJDUMP=$OBJDUMP
5694 # Extract the first word of "objdump", so it can be a program name with args.
5695 set dummy objdump; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$ac_ct_OBJDUMP"; then
5702 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5722 if test -n "$ac_ct_OBJDUMP"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5724 $as_echo "$ac_ct_OBJDUMP" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730 if test "x$ac_ct_OBJDUMP" = x; then
5731 OBJDUMP="false"
5732 else
5733 case $cross_compiling:$ac_tool_warned in
5734 yes:)
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5737 ac_tool_warned=yes ;;
5738 esac
5739 OBJDUMP=$ac_ct_OBJDUMP
5740 fi
5741 else
5742 OBJDUMP="$ac_cv_prog_OBJDUMP"
5743 fi
5744
5745 test -z "$OBJDUMP" && OBJDUMP=objdump
5746
5747
5748
5749
5750
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5753 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5754 if ${lt_cv_deplibs_check_method+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 lt_cv_file_magic_cmd='$MAGIC_CMD'
5758 lt_cv_file_magic_test_file=
5759 lt_cv_deplibs_check_method='unknown'
5760 # Need to set the preceding variable on all platforms that support
5761 # interlibrary dependencies.
5762 # 'none' -- dependencies not supported.
5763 # 'unknown' -- same as none, but documents that we really don't know.
5764 # 'pass_all' -- all dependencies passed with no checks.
5765 # 'test_compile' -- check by making test program.
5766 # 'file_magic [[regex]]' -- check by looking for files in library path
5767 # that responds to the $file_magic_cmd with a given extended regex.
5768 # If you have 'file' or equivalent on your system and you're not sure
5769 # whether 'pass_all' will *always* work, you probably want this one.
5770
5771 case $host_os in
5772 aix[4-9]*)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775
5776 beos*)
5777 lt_cv_deplibs_check_method=pass_all
5778 ;;
5779
5780 bsdi[45]*)
5781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5782 lt_cv_file_magic_cmd='/usr/bin/file -L'
5783 lt_cv_file_magic_test_file=/shlib/libc.so
5784 ;;
5785
5786 cygwin*)
5787 # func_win32_libid is a shell function defined in ltmain.sh
5788 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5789 lt_cv_file_magic_cmd='func_win32_libid'
5790 ;;
5791
5792 mingw* | pw32*)
5793 # Base MSYS/MinGW do not provide the 'file' command needed by
5794 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5795 # unless we find 'file', for example because we are cross-compiling.
5796 if ( file / ) >/dev/null 2>&1; then
5797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5798 lt_cv_file_magic_cmd='func_win32_libid'
5799 else
5800 # Keep this pattern in sync with the one in func_win32_libid.
5801 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5802 lt_cv_file_magic_cmd='$OBJDUMP -f'
5803 fi
5804 ;;
5805
5806 cegcc*)
5807 # use the weaker test based on 'objdump'. See mingw*.
5808 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5809 lt_cv_file_magic_cmd='$OBJDUMP -f'
5810 ;;
5811
5812 darwin* | rhapsody*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 freebsd* | dragonfly*)
5817 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5818 case $host_cpu in
5819 i*86 )
5820 # Not sure whether the presence of OpenBSD here was a mistake.
5821 # Let's accept both of them until this is cleared up.
5822 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5823 lt_cv_file_magic_cmd=/usr/bin/file
5824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5825 ;;
5826 esac
5827 else
5828 lt_cv_deplibs_check_method=pass_all
5829 fi
5830 ;;
5831
5832 haiku*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836 hpux10.20* | hpux11*)
5837 lt_cv_file_magic_cmd=/usr/bin/file
5838 case $host_cpu in
5839 ia64*)
5840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5842 ;;
5843 hppa*64*)
5844 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]'
5845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5846 ;;
5847 *)
5848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5850 ;;
5851 esac
5852 ;;
5853
5854 interix[3-9]*)
5855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5857 ;;
5858
5859 irix5* | irix6* | nonstopux*)
5860 case $LD in
5861 *-32|*"-32 ") libmagic=32-bit;;
5862 *-n32|*"-n32 ") libmagic=N32;;
5863 *-64|*"-64 ") libmagic=64-bit;;
5864 *) libmagic=never-match;;
5865 esac
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868
5869 # This must be glibc/ELF.
5870 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874 netbsd*)
5875 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877 else
5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5879 fi
5880 ;;
5881
5882 newos6*)
5883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5884 lt_cv_file_magic_cmd=/usr/bin/file
5885 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5886 ;;
5887
5888 *nto* | *qnx*)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891
5892 openbsd* | bitrig*)
5893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5895 else
5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5897 fi
5898 ;;
5899
5900 osf3* | osf4* | osf5*)
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 rdos*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908 solaris*)
5909 lt_cv_deplibs_check_method=pass_all
5910 ;;
5911
5912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
5915
5916 sysv4 | sysv4.3*)
5917 case $host_vendor in
5918 motorola)
5919 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]'
5920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5921 ;;
5922 ncr)
5923 lt_cv_deplibs_check_method=pass_all
5924 ;;
5925 sequent)
5926 lt_cv_file_magic_cmd='/bin/file'
5927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5928 ;;
5929 sni)
5930 lt_cv_file_magic_cmd='/bin/file'
5931 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5932 lt_cv_file_magic_test_file=/lib/libc.so
5933 ;;
5934 siemens)
5935 lt_cv_deplibs_check_method=pass_all
5936 ;;
5937 pc)
5938 lt_cv_deplibs_check_method=pass_all
5939 ;;
5940 esac
5941 ;;
5942
5943 tpf*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946 os2*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949 esac
5950
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5953 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5954
5955 file_magic_glob=
5956 want_nocaseglob=no
5957 if test "$build" = "$host"; then
5958 case $host_os in
5959 mingw* | pw32*)
5960 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5961 want_nocaseglob=yes
5962 else
5963 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5964 fi
5965 ;;
5966 esac
5967 fi
5968
5969 file_magic_cmd=$lt_cv_file_magic_cmd
5970 deplibs_check_method=$lt_cv_deplibs_check_method
5971 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 if test -n "$ac_tool_prefix"; then
5995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5996 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_DLLTOOL+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if test -n "$DLLTOOL"; then
6003 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 DLLTOOL=$ac_cv_prog_DLLTOOL
6023 if test -n "$DLLTOOL"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6025 $as_echo "$DLLTOOL" >&6; }
6026 else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031
6032 fi
6033 if test -z "$ac_cv_prog_DLLTOOL"; then
6034 ac_ct_DLLTOOL=$DLLTOOL
6035 # Extract the first word of "dlltool", so it can be a program name with args.
6036 set dummy dlltool; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$ac_ct_DLLTOOL"; then
6043 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056 done
6057 done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6063 if test -n "$ac_ct_DLLTOOL"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6065 $as_echo "$ac_ct_DLLTOOL" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071 if test "x$ac_ct_DLLTOOL" = x; then
6072 DLLTOOL="false"
6073 else
6074 case $cross_compiling:$ac_tool_warned in
6075 yes:)
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078 ac_tool_warned=yes ;;
6079 esac
6080 DLLTOOL=$ac_ct_DLLTOOL
6081 fi
6082 else
6083 DLLTOOL="$ac_cv_prog_DLLTOOL"
6084 fi
6085
6086 test -z "$DLLTOOL" && DLLTOOL=dlltool
6087
6088
6089
6090
6091
6092
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6095 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6096 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 lt_cv_sharedlib_from_linklib_cmd='unknown'
6100
6101 case $host_os in
6102 cygwin* | mingw* | pw32* | cegcc*)
6103 # two different shell functions defined in ltmain.sh;
6104 # decide which one to use based on capabilities of $DLLTOOL
6105 case `$DLLTOOL --help 2>&1` in
6106 *--identify-strict*)
6107 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6108 ;;
6109 *)
6110 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6111 ;;
6112 esac
6113 ;;
6114 *)
6115 # fallback: assume linklib IS sharedlib
6116 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6117 ;;
6118 esac
6119
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6122 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6123 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6124 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6125
6126
6127
6128
6129
6130
6131
6132
6133 if test -n "$ac_tool_prefix"; then
6134 for ac_prog in ar
6135 do
6136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_AR+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 AR=$ac_cv_prog_AR
6164 if test -n "$AR"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6166 $as_echo "$AR" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 test -n "$AR" && break
6174 done
6175 fi
6176 if test -z "$AR"; then
6177 ac_ct_AR=$AR
6178 for ac_prog in ar
6179 do
6180 # Extract the first word of "$ac_prog", so it can be a program name with args.
6181 set dummy $ac_prog; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$ac_ct_AR"; then
6188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_ac_ct_AR="$ac_prog"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6208 if test -n "$ac_ct_AR"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6210 $as_echo "$ac_ct_AR" >&6; }
6211 else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 test -n "$ac_ct_AR" && break
6218 done
6219
6220 if test "x$ac_ct_AR" = x; then
6221 AR="false"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 AR=$ac_ct_AR
6230 fi
6231 fi
6232
6233 : ${AR=ar}
6234 : ${AR_FLAGS=cru}
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6247 $as_echo_n "checking for archiver @FILE support... " >&6; }
6248 if ${lt_cv_ar_at_file+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 lt_cv_ar_at_file=no
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254
6255 int
6256 main ()
6257 {
6258
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_cxx_try_compile "$LINENO"; then :
6264 echo conftest.$ac_objext > conftest.lst
6265 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6267 (eval $lt_ar_try) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }
6271 if test 0 -eq "$ac_status"; then
6272 # Ensure the archiver fails upon bogus file names.
6273 rm -f conftest.$ac_objext libconftest.a
6274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6275 (eval $lt_ar_try) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }
6279 if test 0 -ne "$ac_status"; then
6280 lt_cv_ar_at_file=@
6281 fi
6282 fi
6283 rm -f conftest.* libconftest.a
6284
6285 fi
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6290 $as_echo "$lt_cv_ar_at_file" >&6; }
6291
6292 if test no = "$lt_cv_ar_at_file"; then
6293 archiver_list_spec=
6294 else
6295 archiver_list_spec=$lt_cv_ar_at_file
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}strip; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_STRIP+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 STRIP=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 $as_echo "$STRIP" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_STRIP"; then
6344 ac_ct_STRIP=$STRIP
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_STRIP="strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6373 if test -n "$ac_ct_STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375 $as_echo "$ac_ct_STRIP" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_STRIP" = x; then
6382 STRIP=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 STRIP=$ac_ct_STRIP
6391 fi
6392 else
6393 STRIP="$ac_cv_prog_STRIP"
6394 fi
6395
6396 test -z "$STRIP" && STRIP=:
6397
6398
6399
6400
6401
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_RANLIB+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 RANLIB=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 $as_echo "$RANLIB" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445 set dummy ranlib; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_RANLIB="ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 $as_echo "$ac_ct_RANLIB" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 RANLIB=$ac_ct_RANLIB
6490 fi
6491 else
6492 RANLIB="$ac_cv_prog_RANLIB"
6493 fi
6494
6495 test -z "$RANLIB" && RANLIB=:
6496
6497
6498
6499
6500
6501
6502 # Determine commands to create old-style static archives.
6503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6504 old_postinstall_cmds='chmod 644 $oldlib'
6505 old_postuninstall_cmds=
6506
6507 if test -n "$RANLIB"; then
6508 case $host_os in
6509 bitrig* | openbsd*)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6511 ;;
6512 *)
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6514 ;;
6515 esac
6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6517 fi
6518
6519 case $host_os in
6520 darwin*)
6521 lock_old_archive_extraction=yes ;;
6522 *)
6523 lock_old_archive_extraction=no ;;
6524 esac
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 # If no C compiler was specified, use CC.
6565 LTCC=${LTCC-"$CC"}
6566
6567 # If no C compiler flags were specified, use CFLAGS.
6568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6569
6570 # Allow CC to be a program name with arguments.
6571 compiler=$CC
6572
6573
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6577 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6583
6584 # Character class describing NM global symbol codes.
6585 symcode='[BCDEGRST]'
6586
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6589
6590 # Define system-specific variables.
6591 case $host_os in
6592 aix*)
6593 symcode='[BCDT]'
6594 ;;
6595 cygwin* | mingw* | pw32* | cegcc*)
6596 symcode='[ABCDGISTW]'
6597 ;;
6598 hpux*)
6599 if test ia64 = "$host_cpu"; then
6600 symcode='[ABCDEGRST]'
6601 fi
6602 ;;
6603 irix* | nonstopux*)
6604 symcode='[BCDEGRST]'
6605 ;;
6606 osf*)
6607 symcode='[BCDEGQRST]'
6608 ;;
6609 solaris*)
6610 symcode='[BDRT]'
6611 ;;
6612 sco3.2v5*)
6613 symcode='[DT]'
6614 ;;
6615 sysv4.2uw2*)
6616 symcode='[DT]'
6617 ;;
6618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6619 symcode='[ABDT]'
6620 ;;
6621 sysv4)
6622 symcode='[DFNSTU]'
6623 ;;
6624 esac
6625
6626 # If we're using GNU nm, then use its standard symbol codes.
6627 case `$NM -V 2>&1` in
6628 *GNU* | *'with BFD'*)
6629 symcode='[ABCDGIRSTW]' ;;
6630 esac
6631
6632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6633 # Gets list of data symbols to import.
6634 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6635 # Adjust the below global symbol transforms to fixup imported variables.
6636 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6637 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6638 lt_c_name_lib_hook="\
6639 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6640 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6641 else
6642 # Disable hooks by default.
6643 lt_cv_sys_global_symbol_to_import=
6644 lt_cdecl_hook=
6645 lt_c_name_hook=
6646 lt_c_name_lib_hook=
6647 fi
6648
6649 # Transform an extracted symbol line into a proper C declaration.
6650 # Some systems (esp. on ia64) link data and code symbols differently,
6651 # so use this general approach.
6652 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6653 $lt_cdecl_hook\
6654 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6655 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6656
6657 # Transform an extracted symbol line into symbol name and symbol address
6658 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6659 $lt_c_name_hook\
6660 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6661 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6662
6663 # Transform an extracted symbol line into symbol name with lib prefix and
6664 # symbol address.
6665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6666 $lt_c_name_lib_hook\
6667 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6668 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6669 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6670
6671 # Handle CRLF in mingw tool chain
6672 opt_cr=
6673 case $build_os in
6674 mingw*)
6675 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 ;;
6677 esac
6678
6679 # Try without a prefix underscore, then with it.
6680 for ac_symprfx in "" "_"; do
6681
6682 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6683 symxfrm="\\1 $ac_symprfx\\2 \\2"
6684
6685 # Write the raw and C identifiers.
6686 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6687 # Fake it for dumpbin and say T for any non-static function,
6688 # D for any global variable and I for any imported variable.
6689 # Also find C++ and __fastcall symbols from MSVC++,
6690 # which start with @ or ?.
6691 lt_cv_sys_global_symbol_pipe="$AWK '"\
6692 " {last_section=section; section=\$ 3};"\
6693 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6694 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6695 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6696 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6697 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6698 " \$ 0!~/External *\|/{next};"\
6699 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6700 " {if(hide[section]) next};"\
6701 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6702 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6703 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6704 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6705 " ' prfx=^$ac_symprfx"
6706 else
6707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6708 fi
6709 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6710
6711 # Check to see that the pipe works correctly.
6712 pipe_works=no
6713
6714 rm -f conftest*
6715 cat > conftest.$ac_ext <<_LT_EOF
6716 #ifdef __cplusplus
6717 extern "C" {
6718 #endif
6719 char nm_test_var;
6720 void nm_test_func(void);
6721 void nm_test_func(void){}
6722 #ifdef __cplusplus
6723 }
6724 #endif
6725 int main(){nm_test_var='a';nm_test_func();return(0);}
6726 _LT_EOF
6727
6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729 (eval $ac_compile) 2>&5
6730 ac_status=$?
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; }; then
6733 # Now try to grab the symbols.
6734 nlist=conftest.nm
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6736 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; } && test -s "$nlist"; then
6740 # Try sorting and uniquifying the output.
6741 if sort "$nlist" | uniq > "$nlist"T; then
6742 mv -f "$nlist"T "$nlist"
6743 else
6744 rm -f "$nlist"T
6745 fi
6746
6747 # Make sure that we snagged all the symbols we need.
6748 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6749 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6750 cat <<_LT_EOF > conftest.$ac_ext
6751 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6752 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6753 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6754 relocations are performed -- see ld's documentation on pseudo-relocs. */
6755 # define LT_DLSYM_CONST
6756 #elif defined __osf__
6757 /* This system does not cope well with relocations in const data. */
6758 # define LT_DLSYM_CONST
6759 #else
6760 # define LT_DLSYM_CONST const
6761 #endif
6762
6763 #ifdef __cplusplus
6764 extern "C" {
6765 #endif
6766
6767 _LT_EOF
6768 # Now generate the symbol file.
6769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6770
6771 cat <<_LT_EOF >> conftest.$ac_ext
6772
6773 /* The mapping between symbol names and symbols. */
6774 LT_DLSYM_CONST struct {
6775 const char *name;
6776 void *address;
6777 }
6778 lt__PROGRAM__LTX_preloaded_symbols[] =
6779 {
6780 { "@PROGRAM@", (void *) 0 },
6781 _LT_EOF
6782 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6783 cat <<\_LT_EOF >> conftest.$ac_ext
6784 {0, (void *) 0}
6785 };
6786
6787 /* This works around a problem in FreeBSD linker */
6788 #ifdef FREEBSD_WORKAROUND
6789 static const void *lt_preloaded_setup() {
6790 return lt__PROGRAM__LTX_preloaded_symbols;
6791 }
6792 #endif
6793
6794 #ifdef __cplusplus
6795 }
6796 #endif
6797 _LT_EOF
6798 # Now try linking the two files.
6799 mv conftest.$ac_objext conftstm.$ac_objext
6800 lt_globsym_save_LIBS=$LIBS
6801 lt_globsym_save_CFLAGS=$CFLAGS
6802 LIBS=conftstm.$ac_objext
6803 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6805 (eval $ac_link) 2>&5
6806 ac_status=$?
6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6808 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6809 pipe_works=yes
6810 fi
6811 LIBS=$lt_globsym_save_LIBS
6812 CFLAGS=$lt_globsym_save_CFLAGS
6813 else
6814 echo "cannot find nm_test_func in $nlist" >&5
6815 fi
6816 else
6817 echo "cannot find nm_test_var in $nlist" >&5
6818 fi
6819 else
6820 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6821 fi
6822 else
6823 echo "$progname: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6825 fi
6826 rm -rf conftest* conftst*
6827
6828 # Do not use the global_symbol_pipe unless it works.
6829 if test yes = "$pipe_works"; then
6830 break
6831 else
6832 lt_cv_sys_global_symbol_pipe=
6833 fi
6834 done
6835
6836 fi
6837
6838 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6839 lt_cv_sys_global_symbol_to_cdecl=
6840 fi
6841 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6843 $as_echo "failed" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6846 $as_echo "ok" >&6; }
6847 fi
6848
6849 # Response file support.
6850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6851 nm_file_list_spec='@'
6852 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6853 nm_file_list_spec='@'
6854 fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6893 $as_echo_n "checking for sysroot... " >&6; }
6894
6895 # Check whether --with-sysroot was given.
6896 if test "${with_sysroot+set}" = set; then :
6897 withval=$with_sysroot;
6898 else
6899 with_sysroot=no
6900 fi
6901
6902
6903 lt_sysroot=
6904 case $with_sysroot in #(
6905 yes)
6906 if test yes = "$GCC"; then
6907 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6908 fi
6909 ;; #(
6910 /*)
6911 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6912 ;; #(
6913 no|'')
6914 ;; #(
6915 *)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6917 $as_echo "$with_sysroot" >&6; }
6918 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6919 ;;
6920 esac
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6923 $as_echo "${lt_sysroot:-no}" >&6; }
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6930 $as_echo_n "checking for a working dd... " >&6; }
6931 if ${ac_cv_path_lt_DD+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 printf 0123456789abcdef0123456789abcdef >conftest.i
6935 cat conftest.i conftest.i >conftest2.i
6936 : ${lt_DD:=$DD}
6937 if test -z "$lt_DD"; then
6938 ac_path_lt_DD_found=false
6939 # Loop through the user's path and test for each of PROGNAME-LIST
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_prog in dd; do
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6948 as_fn_executable_p "$ac_path_lt_DD" || continue
6949 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6950 cmp -s conftest.i conftest.out \
6951 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6952 fi
6953 $ac_path_lt_DD_found && break 3
6954 done
6955 done
6956 done
6957 IFS=$as_save_IFS
6958 if test -z "$ac_cv_path_lt_DD"; then
6959 :
6960 fi
6961 else
6962 ac_cv_path_lt_DD=$lt_DD
6963 fi
6964
6965 rm -f conftest.i conftest2.i conftest.out
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6968 $as_echo "$ac_cv_path_lt_DD" >&6; }
6969
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6972 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6973 if ${lt_cv_truncate_bin+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 printf 0123456789abcdef0123456789abcdef >conftest.i
6977 cat conftest.i conftest.i >conftest2.i
6978 lt_cv_truncate_bin=
6979 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6980 cmp -s conftest.i conftest.out \
6981 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6982 fi
6983 rm -f conftest.i conftest2.i conftest.out
6984 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6987 $as_echo "$lt_cv_truncate_bin" >&6; }
6988
6989
6990
6991
6992
6993
6994
6995 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6996 func_cc_basename ()
6997 {
6998 for cc_temp in $*""; do
6999 case $cc_temp in
7000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7002 \-*) ;;
7003 *) break;;
7004 esac
7005 done
7006 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7007 }
7008
7009
7010 # Check whether --enable-libtool-lock was given.
7011 if test "${enable_libtool_lock+set}" = set; then :
7012 enableval=$enable_libtool_lock;
7013 fi
7014
7015 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7016
7017 # Some flags need to be propagated to the compiler or linker for good
7018 # libtool support.
7019 case $host in
7020 ia64-*-hpux*)
7021 # Find out what ABI is being produced by ac_compile, and set mode
7022 # options accordingly.
7023 echo 'int i;' > conftest.$ac_ext
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025 (eval $ac_compile) 2>&5
7026 ac_status=$?
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }; then
7029 case `/usr/bin/file conftest.$ac_objext` in
7030 *ELF-32*)
7031 HPUX_IA64_MODE=32
7032 ;;
7033 *ELF-64*)
7034 HPUX_IA64_MODE=64
7035 ;;
7036 esac
7037 fi
7038 rm -rf conftest*
7039 ;;
7040 *-*-irix6*)
7041 # Find out what ABI is being produced by ac_compile, and set linker
7042 # options accordingly.
7043 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 if test yes = "$lt_cv_prog_gnu_ld"; then
7050 case `/usr/bin/file conftest.$ac_objext` in
7051 *32-bit*)
7052 LD="${LD-ld} -melf32bsmip"
7053 ;;
7054 *N32*)
7055 LD="${LD-ld} -melf32bmipn32"
7056 ;;
7057 *64-bit*)
7058 LD="${LD-ld} -melf64bmip"
7059 ;;
7060 esac
7061 else
7062 case `/usr/bin/file conftest.$ac_objext` in
7063 *32-bit*)
7064 LD="${LD-ld} -32"
7065 ;;
7066 *N32*)
7067 LD="${LD-ld} -n32"
7068 ;;
7069 *64-bit*)
7070 LD="${LD-ld} -64"
7071 ;;
7072 esac
7073 fi
7074 fi
7075 rm -rf conftest*
7076 ;;
7077
7078 mips64*-*linux*)
7079 # Find out what ABI is being produced by ac_compile, and set linker
7080 # options accordingly.
7081 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 emul=elf
7088 case `/usr/bin/file conftest.$ac_objext` in
7089 *32-bit*)
7090 emul="${emul}32"
7091 ;;
7092 *64-bit*)
7093 emul="${emul}64"
7094 ;;
7095 esac
7096 case `/usr/bin/file conftest.$ac_objext` in
7097 *MSB*)
7098 emul="${emul}btsmip"
7099 ;;
7100 *LSB*)
7101 emul="${emul}ltsmip"
7102 ;;
7103 esac
7104 case `/usr/bin/file conftest.$ac_objext` in
7105 *N32*)
7106 emul="${emul}n32"
7107 ;;
7108 esac
7109 LD="${LD-ld} -m $emul"
7110 fi
7111 rm -rf conftest*
7112 ;;
7113
7114 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7115 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7116 # Find out what ABI is being produced by ac_compile, and set linker
7117 # options accordingly. Note that the listed cases only cover the
7118 # situations where additional linker options are needed (such as when
7119 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7120 # vice versa); the common cases where no linker options are needed do
7121 # not appear in the list.
7122 echo 'int i;' > conftest.$ac_ext
7123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124 (eval $ac_compile) 2>&5
7125 ac_status=$?
7126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127 test $ac_status = 0; }; then
7128 case `/usr/bin/file conftest.o` in
7129 *32-bit*)
7130 case $host in
7131 x86_64-*kfreebsd*-gnu)
7132 LD="${LD-ld} -m elf_i386_fbsd"
7133 ;;
7134 x86_64-*linux*)
7135 case `/usr/bin/file conftest.o` in
7136 *x86-64*)
7137 LD="${LD-ld} -m elf32_x86_64"
7138 ;;
7139 *)
7140 LD="${LD-ld} -m elf_i386"
7141 ;;
7142 esac
7143 ;;
7144 powerpc64le-*linux*)
7145 LD="${LD-ld} -m elf32lppclinux"
7146 ;;
7147 powerpc64-*linux*)
7148 LD="${LD-ld} -m elf32ppclinux"
7149 ;;
7150 s390x-*linux*)
7151 LD="${LD-ld} -m elf_s390"
7152 ;;
7153 sparc64-*linux*)
7154 LD="${LD-ld} -m elf32_sparc"
7155 ;;
7156 esac
7157 ;;
7158 *64-bit*)
7159 case $host in
7160 x86_64-*kfreebsd*-gnu)
7161 LD="${LD-ld} -m elf_x86_64_fbsd"
7162 ;;
7163 x86_64-*linux*)
7164 LD="${LD-ld} -m elf_x86_64"
7165 ;;
7166 powerpcle-*linux*)
7167 LD="${LD-ld} -m elf64lppc"
7168 ;;
7169 powerpc-*linux*)
7170 LD="${LD-ld} -m elf64ppc"
7171 ;;
7172 s390*-*linux*|s390*-*tpf*)
7173 LD="${LD-ld} -m elf64_s390"
7174 ;;
7175 sparc*-*linux*)
7176 LD="${LD-ld} -m elf64_sparc"
7177 ;;
7178 esac
7179 ;;
7180 esac
7181 fi
7182 rm -rf conftest*
7183 ;;
7184
7185 *-*-sco3.2v5*)
7186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7187 SAVE_CFLAGS=$CFLAGS
7188 CFLAGS="$CFLAGS -belf"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7191 if ${lt_cv_cc_needs_belf+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 ac_ext=c
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202
7203 int
7204 main ()
7205 {
7206
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 lt_cv_cc_needs_belf=yes
7213 else
7214 lt_cv_cc_needs_belf=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 ac_ext=c
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7227 if test yes != "$lt_cv_cc_needs_belf"; then
7228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7229 CFLAGS=$SAVE_CFLAGS
7230 fi
7231 ;;
7232 *-*solaris*)
7233 # Find out what ABI is being produced by ac_compile, and set linker
7234 # options accordingly.
7235 echo 'int i;' > conftest.$ac_ext
7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237 (eval $ac_compile) 2>&5
7238 ac_status=$?
7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240 test $ac_status = 0; }; then
7241 case `/usr/bin/file conftest.o` in
7242 *64-bit*)
7243 case $lt_cv_prog_gnu_ld in
7244 yes*)
7245 case $host in
7246 i?86-*-solaris*|x86_64-*-solaris*)
7247 LD="${LD-ld} -m elf_x86_64"
7248 ;;
7249 sparc*-*-solaris*)
7250 LD="${LD-ld} -m elf64_sparc"
7251 ;;
7252 esac
7253 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7254 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7255 LD=${LD-ld}_sol2
7256 fi
7257 ;;
7258 *)
7259 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7260 LD="${LD-ld} -64"
7261 fi
7262 ;;
7263 esac
7264 ;;
7265 esac
7266 fi
7267 rm -rf conftest*
7268 ;;
7269 esac
7270
7271 need_locks=$enable_libtool_lock
7272
7273 if test -n "$ac_tool_prefix"; then
7274 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}mt; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 if test -n "$MANIFEST_TOOL"; then
7282 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7302 if test -n "$MANIFEST_TOOL"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7304 $as_echo "$MANIFEST_TOOL" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310
7311 fi
7312 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7313 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7314 # Extract the first word of "mt", so it can be a program name with args.
7315 set dummy mt; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$ac_ct_MANIFEST_TOOL"; then
7322 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7342 if test -n "$ac_ct_MANIFEST_TOOL"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7344 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7351 MANIFEST_TOOL=":"
7352 else
7353 case $cross_compiling:$ac_tool_warned in
7354 yes:)
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7360 fi
7361 else
7362 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7363 fi
7364
7365 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7367 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7368 if ${lt_cv_path_mainfest_tool+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_path_mainfest_tool=no
7372 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7373 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7374 cat conftest.err >&5
7375 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7376 lt_cv_path_mainfest_tool=yes
7377 fi
7378 rm -f conftest*
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7381 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7382 if test yes != "$lt_cv_path_mainfest_tool"; then
7383 MANIFEST_TOOL=:
7384 fi
7385
7386
7387
7388
7389
7390
7391 case $host_os in
7392 rhapsody* | darwin*)
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$DSYMUTIL"; then
7402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7422 if test -n "$DSYMUTIL"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7424 $as_echo "$DSYMUTIL" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_DSYMUTIL"; then
7433 ac_ct_DSYMUTIL=$DSYMUTIL
7434 # Extract the first word of "dsymutil", so it can be a program name with args.
7435 set dummy dsymutil; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$ac_ct_DSYMUTIL"; then
7442 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7462 if test -n "$ac_ct_DSYMUTIL"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7464 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470 if test "x$ac_ct_DSYMUTIL" = x; then
7471 DSYMUTIL=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479 DSYMUTIL=$ac_ct_DSYMUTIL
7480 fi
7481 else
7482 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7483 fi
7484
7485 if test -n "$ac_tool_prefix"; then
7486 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7487 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_NMEDIT+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 if test -n "$NMEDIT"; then
7494 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 NMEDIT=$ac_cv_prog_NMEDIT
7514 if test -n "$NMEDIT"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7516 $as_echo "$NMEDIT" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 fi
7524 if test -z "$ac_cv_prog_NMEDIT"; then
7525 ac_ct_NMEDIT=$NMEDIT
7526 # Extract the first word of "nmedit", so it can be a program name with args.
7527 set dummy nmedit; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 if test -n "$ac_ct_NMEDIT"; then
7534 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7554 if test -n "$ac_ct_NMEDIT"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7556 $as_echo "$ac_ct_NMEDIT" >&6; }
7557 else
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562 if test "x$ac_ct_NMEDIT" = x; then
7563 NMEDIT=":"
7564 else
7565 case $cross_compiling:$ac_tool_warned in
7566 yes:)
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571 NMEDIT=$ac_ct_NMEDIT
7572 fi
7573 else
7574 NMEDIT="$ac_cv_prog_NMEDIT"
7575 fi
7576
7577 if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_LIPO+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$LIPO"; then
7586 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599 done
7600 done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 LIPO=$ac_cv_prog_LIPO
7606 if test -n "$LIPO"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7608 $as_echo "$LIPO" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_LIPO"; then
7617 ac_ct_LIPO=$LIPO
7618 # Extract the first word of "lipo", so it can be a program name with args.
7619 set dummy lipo; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -n "$ac_ct_LIPO"; then
7626 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635 ac_cv_prog_ac_ct_LIPO="lipo"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639 done
7640 done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7646 if test -n "$ac_ct_LIPO"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7648 $as_echo "$ac_ct_LIPO" >&6; }
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654 if test "x$ac_ct_LIPO" = x; then
7655 LIPO=":"
7656 else
7657 case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663 LIPO=$ac_ct_LIPO
7664 fi
7665 else
7666 LIPO="$ac_cv_prog_LIPO"
7667 fi
7668
7669 if test -n "$ac_tool_prefix"; then
7670 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}otool; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_OTOOL+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$OTOOL"; then
7678 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 OTOOL=$ac_cv_prog_OTOOL
7698 if test -n "$OTOOL"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7700 $as_echo "$OTOOL" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707 fi
7708 if test -z "$ac_cv_prog_OTOOL"; then
7709 ac_ct_OTOOL=$OTOOL
7710 # Extract the first word of "otool", so it can be a program name with args.
7711 set dummy otool; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$ac_ct_OTOOL"; then
7718 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_OTOOL="otool"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7738 if test -n "$ac_ct_OTOOL"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7740 $as_echo "$ac_ct_OTOOL" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746 if test "x$ac_ct_OTOOL" = x; then
7747 OTOOL=":"
7748 else
7749 case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755 OTOOL=$ac_ct_OTOOL
7756 fi
7757 else
7758 OTOOL="$ac_cv_prog_OTOOL"
7759 fi
7760
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_OTOOL64+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$OTOOL64"; then
7770 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 OTOOL64=$ac_cv_prog_OTOOL64
7790 if test -n "$OTOOL64"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7792 $as_echo "$OTOOL64" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_OTOOL64"; then
7801 ac_ct_OTOOL64=$OTOOL64
7802 # Extract the first word of "otool64", so it can be a program name with args.
7803 set dummy otool64; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$ac_ct_OTOOL64"; then
7810 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_ac_ct_OTOOL64="otool64"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7830 if test -n "$ac_ct_OTOOL64"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7832 $as_echo "$ac_ct_OTOOL64" >&6; }
7833 else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838 if test "x$ac_ct_OTOOL64" = x; then
7839 OTOOL64=":"
7840 else
7841 case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned=yes ;;
7846 esac
7847 OTOOL64=$ac_ct_OTOOL64
7848 fi
7849 else
7850 OTOOL64="$ac_cv_prog_OTOOL64"
7851 fi
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7880 $as_echo_n "checking for -single_module linker flag... " >&6; }
7881 if ${lt_cv_apple_cc_single_mod+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 lt_cv_apple_cc_single_mod=no
7885 if test -z "$LT_MULTI_MODULE"; then
7886 # By default we will add the -single_module flag. You can override
7887 # by either setting the environment variable LT_MULTI_MODULE
7888 # non-empty at configure time, or by adding -multi_module to the
7889 # link flags.
7890 rm -rf libconftest.dylib*
7891 echo "int foo(void){return 1;}" > conftest.c
7892 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7893 -dynamiclib -Wl,-single_module conftest.c" >&5
7894 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7895 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7896 _lt_result=$?
7897 # If there is a non-empty error log, and "single_module"
7898 # appears in it, assume the flag caused a linker warning
7899 if test -s conftest.err && $GREP single_module conftest.err; then
7900 cat conftest.err >&5
7901 # Otherwise, if the output was created with a 0 exit code from
7902 # the compiler, it worked.
7903 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7904 lt_cv_apple_cc_single_mod=yes
7905 else
7906 cat conftest.err >&5
7907 fi
7908 rm -rf libconftest.dylib*
7909 rm -f conftest.*
7910 fi
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7913 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
7937 else
7938 lt_cv_ld_exported_symbols_list=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS=$save_LDFLAGS
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7949 $as_echo_n "checking for -force_load linker flag... " >&6; }
7950 if ${lt_cv_ld_force_load+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 lt_cv_ld_force_load=no
7954 cat > conftest.c << _LT_EOF
7955 int forced_loaded() { return 2;}
7956 _LT_EOF
7957 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7958 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7959 echo "$AR cru libconftest.a conftest.o" >&5
7960 $AR cru libconftest.a conftest.o 2>&5
7961 echo "$RANLIB libconftest.a" >&5
7962 $RANLIB libconftest.a 2>&5
7963 cat > conftest.c << _LT_EOF
7964 int main() { return 0;}
7965 _LT_EOF
7966 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7967 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7968 _lt_result=$?
7969 if test -s conftest.err && $GREP force_load conftest.err; then
7970 cat conftest.err >&5
7971 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7972 lt_cv_ld_force_load=yes
7973 else
7974 cat conftest.err >&5
7975 fi
7976 rm -f conftest.err libconftest.a conftest conftest.c
7977 rm -rf conftest.dSYM
7978
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7981 $as_echo "$lt_cv_ld_force_load" >&6; }
7982 case $host_os in
7983 rhapsody* | darwin1.[012])
7984 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7985 darwin1.*)
7986 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7987 darwin*)
7988 case ${MACOSX_DEPLOYMENT_TARGET},$host in
7989 10.[012],*|,*powerpc*)
7990 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7991 *)
7992 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7993 esac
7994 ;;
7995 esac
7996 if test yes = "$lt_cv_apple_cc_single_mod"; then
7997 _lt_dar_single_mod='$single_module'
7998 fi
7999 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8000 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8001 else
8002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8003 fi
8004 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8005 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 else
8007 _lt_dsymutil=
8008 fi
8009 ;;
8010 esac
8011
8012 # func_munge_path_list VARIABLE PATH
8013 # -----------------------------------
8014 # VARIABLE is name of variable containing _space_ separated list of
8015 # directories to be munged by the contents of PATH, which is string
8016 # having a format:
8017 # "DIR[:DIR]:"
8018 # string "DIR[ DIR]" will be prepended to VARIABLE
8019 # ":DIR[:DIR]"
8020 # string "DIR[ DIR]" will be appended to VARIABLE
8021 # "DIRP[:DIRP]::[DIRA:]DIRA"
8022 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8023 # "DIRA[ DIRA]" will be appended to VARIABLE
8024 # "DIR[:DIR]"
8025 # VARIABLE will be replaced by "DIR[ DIR]"
8026 func_munge_path_list ()
8027 {
8028 case x$2 in
8029 x)
8030 ;;
8031 *:)
8032 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8033 ;;
8034 x:*)
8035 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8036 ;;
8037 *::*)
8038 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8039 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8040 ;;
8041 *)
8042 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8043 ;;
8044 esac
8045 }
8046
8047
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8049 $as_echo_n "checking for ANSI C header files... " >&6; }
8050 if ${ac_cv_header_stdc+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 #include <stdlib.h>
8056 #include <stdarg.h>
8057 #include <string.h>
8058 #include <float.h>
8059
8060 int
8061 main ()
8062 {
8063
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 ac_cv_header_stdc=yes
8070 else
8071 ac_cv_header_stdc=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074
8075 if test $ac_cv_header_stdc = yes; then
8076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 #include <string.h>
8080
8081 _ACEOF
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 $EGREP "memchr" >/dev/null 2>&1; then :
8084
8085 else
8086 ac_cv_header_stdc=no
8087 fi
8088 rm -f conftest*
8089
8090 fi
8091
8092 if test $ac_cv_header_stdc = yes; then
8093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include <stdlib.h>
8097
8098 _ACEOF
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100 $EGREP "free" >/dev/null 2>&1; then :
8101
8102 else
8103 ac_cv_header_stdc=no
8104 fi
8105 rm -f conftest*
8106
8107 fi
8108
8109 if test $ac_cv_header_stdc = yes; then
8110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8111 if test "$cross_compiling" = yes; then :
8112 :
8113 else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 #include <ctype.h>
8117 #include <stdlib.h>
8118 #if ((' ' & 0x0FF) == 0x020)
8119 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8120 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8121 #else
8122 # define ISLOWER(c) \
8123 (('a' <= (c) && (c) <= 'i') \
8124 || ('j' <= (c) && (c) <= 'r') \
8125 || ('s' <= (c) && (c) <= 'z'))
8126 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8127 #endif
8128
8129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8130 int
8131 main ()
8132 {
8133 int i;
8134 for (i = 0; i < 256; i++)
8135 if (XOR (islower (i), ISLOWER (i))
8136 || toupper (i) != TOUPPER (i))
8137 return 2;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_run "$LINENO"; then :
8142
8143 else
8144 ac_cv_header_stdc=no
8145 fi
8146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147 conftest.$ac_objext conftest.beam conftest.$ac_ext
8148 fi
8149
8150 fi
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8153 $as_echo "$ac_cv_header_stdc" >&6; }
8154 if test $ac_cv_header_stdc = yes; then
8155
8156 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8157
8158 fi
8159
8160 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8161 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8162 inttypes.h stdint.h unistd.h
8163 do :
8164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8165 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8166 "
8167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8168 cat >>confdefs.h <<_ACEOF
8169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8170 _ACEOF
8171
8172 fi
8173
8174 done
8175
8176
8177 for ac_header in dlfcn.h
8178 do :
8179 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8180 "
8181 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8182 cat >>confdefs.h <<_ACEOF
8183 #define HAVE_DLFCN_H 1
8184 _ACEOF
8185
8186 fi
8187
8188 done
8189
8190
8191
8192 func_stripname_cnf ()
8193 {
8194 case $2 in
8195 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8196 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8197 esac
8198 } # func_stripname_cnf
8199
8200
8201
8202
8203
8204 # Set options
8205 enable_win32_dll=yes
8206
8207 case $host in
8208 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}as; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_prog_AS+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$AS"; then
8218 ac_cv_prog_AS="$AS" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_AS="${ac_tool_prefix}as"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 AS=$ac_cv_prog_AS
8238 if test -n "$AS"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8240 $as_echo "$AS" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246
8247 fi
8248 if test -z "$ac_cv_prog_AS"; then
8249 ac_ct_AS=$AS
8250 # Extract the first word of "as", so it can be a program name with args.
8251 set dummy as; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$ac_ct_AS"; then
8258 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8262 do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_ac_ct_AS="as"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi
8276 fi
8277 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8278 if test -n "$ac_ct_AS"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8280 $as_echo "$ac_ct_AS" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286 if test "x$ac_ct_AS" = x; then
8287 AS="false"
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290 yes:)
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned=yes ;;
8294 esac
8295 AS=$ac_ct_AS
8296 fi
8297 else
8298 AS="$ac_cv_prog_AS"
8299 fi
8300
8301 if test -n "$ac_tool_prefix"; then
8302 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8303 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if ${ac_cv_prog_DLLTOOL+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$DLLTOOL"; then
8310 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323 done
8324 done
8325 IFS=$as_save_IFS
8326
8327 fi
8328 fi
8329 DLLTOOL=$ac_cv_prog_DLLTOOL
8330 if test -n "$DLLTOOL"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8332 $as_echo "$DLLTOOL" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338
8339 fi
8340 if test -z "$ac_cv_prog_DLLTOOL"; then
8341 ac_ct_DLLTOOL=$DLLTOOL
8342 # Extract the first word of "dlltool", so it can be a program name with args.
8343 set dummy dlltool; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$ac_ct_DLLTOOL"; then
8350 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8370 if test -n "$ac_ct_DLLTOOL"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8372 $as_echo "$ac_ct_DLLTOOL" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378 if test "x$ac_ct_DLLTOOL" = x; then
8379 DLLTOOL="false"
8380 else
8381 case $cross_compiling:$ac_tool_warned in
8382 yes:)
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385 ac_tool_warned=yes ;;
8386 esac
8387 DLLTOOL=$ac_ct_DLLTOOL
8388 fi
8389 else
8390 DLLTOOL="$ac_cv_prog_DLLTOOL"
8391 fi
8392
8393 if test -n "$ac_tool_prefix"; then
8394 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8395 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_prog_OBJDUMP+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$OBJDUMP"; then
8402 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 OBJDUMP=$ac_cv_prog_OBJDUMP
8422 if test -n "$OBJDUMP"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8424 $as_echo "$OBJDUMP" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429
8430
8431 fi
8432 if test -z "$ac_cv_prog_OBJDUMP"; then
8433 ac_ct_OBJDUMP=$OBJDUMP
8434 # Extract the first word of "objdump", so it can be a program name with args.
8435 set dummy objdump; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 if test -n "$ac_ct_OBJDUMP"; then
8442 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8462 if test -n "$ac_ct_OBJDUMP"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8464 $as_echo "$ac_ct_OBJDUMP" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470 if test "x$ac_ct_OBJDUMP" = x; then
8471 OBJDUMP="false"
8472 else
8473 case $cross_compiling:$ac_tool_warned in
8474 yes:)
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8477 ac_tool_warned=yes ;;
8478 esac
8479 OBJDUMP=$ac_ct_OBJDUMP
8480 fi
8481 else
8482 OBJDUMP="$ac_cv_prog_OBJDUMP"
8483 fi
8484
8485 ;;
8486 esac
8487
8488 test -z "$AS" && AS=as
8489
8490
8491
8492
8493
8494 test -z "$DLLTOOL" && DLLTOOL=dlltool
8495
8496
8497
8498
8499
8500 test -z "$OBJDUMP" && OBJDUMP=objdump
8501
8502
8503
8504
8505 # Check whether --enable-static was given.
8506 if test "${enable_static+set}" = set; then :
8507 enableval=$enable_static; p=${PACKAGE-default}
8508 case $enableval in
8509 yes) enable_static=yes ;;
8510 no) enable_static=no ;;
8511 *)
8512 enable_static=no
8513 # Look at the argument we got. We use all the common list separators.
8514 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8515 for pkg in $enableval; do
8516 IFS=$lt_save_ifs
8517 if test "X$pkg" = "X$p"; then
8518 enable_static=yes
8519 fi
8520 done
8521 IFS=$lt_save_ifs
8522 ;;
8523 esac
8524 else
8525 enable_static=no
8526 fi
8527
8528
8529
8530
8531
8532
8533
8534
8535 # Check whether --with-pic was given.
8536 if test "${with_pic+set}" = set; then :
8537 withval=$with_pic; lt_p=${PACKAGE-default}
8538 case $withval in
8539 yes|no) pic_mode=$withval ;;
8540 *)
8541 pic_mode=default
8542 # Look at the argument we got. We use all the common list separators.
8543 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8544 for lt_pkg in $withval; do
8545 IFS=$lt_save_ifs
8546 if test "X$lt_pkg" = "X$lt_p"; then
8547 pic_mode=yes
8548 fi
8549 done
8550 IFS=$lt_save_ifs
8551 ;;
8552 esac
8553 else
8554 pic_mode=yes
8555 fi
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565 enable_dlopen=no
8566
8567
8568
8569 # Check whether --enable-shared was given.
8570 if test "${enable_shared+set}" = set; then :
8571 enableval=$enable_shared; p=${PACKAGE-default}
8572 case $enableval in
8573 yes) enable_shared=yes ;;
8574 no) enable_shared=no ;;
8575 *)
8576 enable_shared=no
8577 # Look at the argument we got. We use all the common list separators.
8578 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8579 for pkg in $enableval; do
8580 IFS=$lt_save_ifs
8581 if test "X$pkg" = "X$p"; then
8582 enable_shared=yes
8583 fi
8584 done
8585 IFS=$lt_save_ifs
8586 ;;
8587 esac
8588 else
8589 enable_shared=yes
8590 fi
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 # Check whether --enable-fast-install was given.
8603 if test "${enable_fast_install+set}" = set; then :
8604 enableval=$enable_fast_install; p=${PACKAGE-default}
8605 case $enableval in
8606 yes) enable_fast_install=yes ;;
8607 no) enable_fast_install=no ;;
8608 *)
8609 enable_fast_install=no
8610 # Look at the argument we got. We use all the common list separators.
8611 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8612 for pkg in $enableval; do
8613 IFS=$lt_save_ifs
8614 if test "X$pkg" = "X$p"; then
8615 enable_fast_install=yes
8616 fi
8617 done
8618 IFS=$lt_save_ifs
8619 ;;
8620 esac
8621 else
8622 enable_fast_install=yes
8623 fi
8624
8625
8626
8627
8628
8629
8630
8631
8632 shared_archive_member_spec=
8633 case $host,$enable_shared in
8634 power*-*-aix[5-9]*,yes)
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8636 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8637
8638 # Check whether --with-aix-soname was given.
8639 if test "${with_aix_soname+set}" = set; then :
8640 withval=$with_aix_soname; case $withval in
8641 aix|svr4|both)
8642 ;;
8643 *)
8644 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8645 ;;
8646 esac
8647 lt_cv_with_aix_soname=$with_aix_soname
8648 else
8649 if ${lt_cv_with_aix_soname+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 lt_cv_with_aix_soname=aix
8653 fi
8654
8655 with_aix_soname=$lt_cv_with_aix_soname
8656 fi
8657
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8659 $as_echo "$with_aix_soname" >&6; }
8660 if test aix != "$with_aix_soname"; then
8661 # For the AIX way of multilib, we name the shared archive member
8662 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8663 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8664 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8665 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8666 if test 64 = "${OBJECT_MODE-32}"; then
8667 shared_archive_member_spec=shr_64
8668 else
8669 shared_archive_member_spec=shr
8670 fi
8671 fi
8672 ;;
8673 *)
8674 with_aix_soname=aix
8675 ;;
8676 esac
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687 # This can be used to rebuild libtool when needed
8688 LIBTOOL_DEPS=$ltmain
8689
8690 # Always use our own libtool.
8691 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722 test -z "$LN_S" && LN_S="ln -s"
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 if test -n "${ZSH_VERSION+set}"; then
8738 setopt NO_GLOB_SUBST
8739 fi
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8742 $as_echo_n "checking for objdir... " >&6; }
8743 if ${lt_cv_objdir+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 rm -f .libs 2>/dev/null
8747 mkdir .libs 2>/dev/null
8748 if test -d .libs; then
8749 lt_cv_objdir=.libs
8750 else
8751 # MS-DOS does not allow filenames that begin with a dot.
8752 lt_cv_objdir=_libs
8753 fi
8754 rmdir .libs 2>/dev/null
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8757 $as_echo "$lt_cv_objdir" >&6; }
8758 objdir=$lt_cv_objdir
8759
8760
8761
8762
8763
8764 cat >>confdefs.h <<_ACEOF
8765 #define LT_OBJDIR "$lt_cv_objdir/"
8766 _ACEOF
8767
8768
8769
8770
8771 case $host_os in
8772 aix3*)
8773 # AIX sometimes has problems with the GCC collect2 program. For some
8774 # reason, if we set the COLLECT_NAMES environment variable, the problems
8775 # vanish in a puff of smoke.
8776 if test set != "${COLLECT_NAMES+set}"; then
8777 COLLECT_NAMES=
8778 export COLLECT_NAMES
8779 fi
8780 ;;
8781 esac
8782
8783 # Global variables:
8784 ofile=libtool
8785 can_build_shared=yes
8786
8787 # All known linkers require a '.a' archive for static linking (except MSVC,
8788 # which needs '.lib').
8789 libext=a
8790
8791 with_gnu_ld=$lt_cv_prog_gnu_ld
8792
8793 old_CC=$CC
8794 old_CFLAGS=$CFLAGS
8795
8796 # Set sane defaults for various variables
8797 test -z "$CC" && CC=cc
8798 test -z "$LTCC" && LTCC=$CC
8799 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8800 test -z "$LD" && LD=ld
8801 test -z "$ac_objext" && ac_objext=o
8802
8803 func_cc_basename $compiler
8804 cc_basename=$func_cc_basename_result
8805
8806
8807 # Only perform the check for file, if the check method requires it
8808 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8809 case $deplibs_check_method in
8810 file_magic*)
8811 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8813 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8814 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 case $MAGIC_CMD in
8818 [\\/*] | ?:[\\/]*)
8819 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8820 ;;
8821 *)
8822 lt_save_MAGIC_CMD=$MAGIC_CMD
8823 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8824 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8825 for ac_dir in $ac_dummy; do
8826 IFS=$lt_save_ifs
8827 test -z "$ac_dir" && ac_dir=.
8828 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8829 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8830 if test -n "$file_magic_test_file"; then
8831 case $deplibs_check_method in
8832 "file_magic "*)
8833 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8834 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8835 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8836 $EGREP "$file_magic_regex" > /dev/null; then
8837 :
8838 else
8839 cat <<_LT_EOF 1>&2
8840
8841 *** Warning: the command libtool uses to detect shared libraries,
8842 *** $file_magic_cmd, produces output that libtool cannot recognize.
8843 *** The result is that libtool may fail to recognize shared libraries
8844 *** as such. This will affect the creation of libtool libraries that
8845 *** depend on shared libraries, but programs linked with such libtool
8846 *** libraries will work regardless of this problem. Nevertheless, you
8847 *** may want to report the problem to your system manager and/or to
8848 *** [email protected]
8849
8850 _LT_EOF
8851 fi ;;
8852 esac
8853 fi
8854 break
8855 fi
8856 done
8857 IFS=$lt_save_ifs
8858 MAGIC_CMD=$lt_save_MAGIC_CMD
8859 ;;
8860 esac
8861 fi
8862
8863 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8864 if test -n "$MAGIC_CMD"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8866 $as_echo "$MAGIC_CMD" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8870 fi
8871
8872
8873
8874
8875
8876 if test -z "$lt_cv_path_MAGIC_CMD"; then
8877 if test -n "$ac_tool_prefix"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8879 $as_echo_n "checking for file... " >&6; }
8880 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 case $MAGIC_CMD in
8884 [\\/*] | ?:[\\/]*)
8885 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8886 ;;
8887 *)
8888 lt_save_MAGIC_CMD=$MAGIC_CMD
8889 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8891 for ac_dir in $ac_dummy; do
8892 IFS=$lt_save_ifs
8893 test -z "$ac_dir" && ac_dir=.
8894 if test -f "$ac_dir/file"; then
8895 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8896 if test -n "$file_magic_test_file"; then
8897 case $deplibs_check_method in
8898 "file_magic "*)
8899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8902 $EGREP "$file_magic_regex" > /dev/null; then
8903 :
8904 else
8905 cat <<_LT_EOF 1>&2
8906
8907 *** Warning: the command libtool uses to detect shared libraries,
8908 *** $file_magic_cmd, produces output that libtool cannot recognize.
8909 *** The result is that libtool may fail to recognize shared libraries
8910 *** as such. This will affect the creation of libtool libraries that
8911 *** depend on shared libraries, but programs linked with such libtool
8912 *** libraries will work regardless of this problem. Nevertheless, you
8913 *** may want to report the problem to your system manager and/or to
8914 *** [email protected]
8915
8916 _LT_EOF
8917 fi ;;
8918 esac
8919 fi
8920 break
8921 fi
8922 done
8923 IFS=$lt_save_ifs
8924 MAGIC_CMD=$lt_save_MAGIC_CMD
8925 ;;
8926 esac
8927 fi
8928
8929 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8930 if test -n "$MAGIC_CMD"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8932 $as_echo "$MAGIC_CMD" >&6; }
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939 else
8940 MAGIC_CMD=:
8941 fi
8942 fi
8943
8944 fi
8945 ;;
8946 esac
8947
8948 # Use C for the default configuration in the libtool script
8949
8950 lt_save_CC=$CC
8951 ac_ext=c
8952 ac_cpp='$CPP $CPPFLAGS'
8953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956
8957
8958 # Source file extension for C test sources.
8959 ac_ext=c
8960
8961 # Object file extension for compiled C test sources.
8962 objext=o
8963 objext=$objext
8964
8965 # Code to be used in simple compile tests
8966 lt_simple_compile_test_code="int some_variable = 0;"
8967
8968 # Code to be used in simple link tests
8969 lt_simple_link_test_code='int main(){return(0);}'
8970
8971
8972
8973
8974
8975
8976
8977 # If no C compiler was specified, use CC.
8978 LTCC=${LTCC-"$CC"}
8979
8980 # If no C compiler flags were specified, use CFLAGS.
8981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8982
8983 # Allow CC to be a program name with arguments.
8984 compiler=$CC
8985
8986 # Save the default compiler, since it gets overwritten when the other
8987 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8988 compiler_DEFAULT=$CC
8989
8990 # save warnings/boilerplate of simple test code
8991 ac_outfile=conftest.$ac_objext
8992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8994 _lt_compiler_boilerplate=`cat conftest.err`
8995 $RM conftest*
8996
8997 ac_outfile=conftest.$ac_objext
8998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9000 _lt_linker_boilerplate=`cat conftest.err`
9001 $RM -r conftest*
9002
9003
9004 ## CAVEAT EMPTOR:
9005 ## There is no encapsulation within the following macros, do not change
9006 ## the running order or otherwise move them around unless you know exactly
9007 ## what you are doing...
9008 if test -n "$compiler"; then
9009
9010 lt_prog_compiler_no_builtin_flag=
9011
9012 if test yes = "$GCC"; then
9013 case $cc_basename in
9014 nvcc*)
9015 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9016 *)
9017 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9018 esac
9019
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9021 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9022 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 lt_cv_prog_compiler_rtti_exceptions=no
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9028 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9029 # Insert the option either (1) after the last *FLAGS variable, or
9030 # (2) before a word containing "conftest.", or (3) at the end.
9031 # Note that $ac_compile itself does not contain backslashes and begins
9032 # with a dollar sign (not a hyphen), so the echo should work correctly.
9033 # The option is referenced via a variable to avoid confusing sed.
9034 lt_compile=`echo "$ac_compile" | $SED \
9035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9037 -e 's:$: $lt_compiler_flag:'`
9038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9039 (eval "$lt_compile" 2>conftest.err)
9040 ac_status=$?
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 if (exit $ac_status) && test -s "$ac_outfile"; then
9044 # The compiler can only warn and ignore the option if not recognized
9045 # So say no if there are warnings other than the usual output.
9046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9049 lt_cv_prog_compiler_rtti_exceptions=yes
9050 fi
9051 fi
9052 $RM conftest*
9053
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9056 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9057
9058 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9059 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9060 else
9061 :
9062 fi
9063
9064 fi
9065
9066
9067
9068
9069
9070
9071 lt_prog_compiler_wl=
9072 lt_prog_compiler_pic=
9073 lt_prog_compiler_static=
9074
9075
9076 if test yes = "$GCC"; then
9077 lt_prog_compiler_wl='-Wl,'
9078 lt_prog_compiler_static='-static'
9079
9080 case $host_os in
9081 aix*)
9082 # All AIX code is PIC.
9083 if test ia64 = "$host_cpu"; then
9084 # AIX 5 now supports IA64 processor
9085 lt_prog_compiler_static='-Bstatic'
9086 fi
9087 lt_prog_compiler_pic='-fPIC'
9088 ;;
9089
9090 amigaos*)
9091 case $host_cpu in
9092 powerpc)
9093 # see comment about AmigaOS4 .so support
9094 lt_prog_compiler_pic='-fPIC'
9095 ;;
9096 m68k)
9097 # FIXME: we need at least 68020 code to build shared libraries, but
9098 # adding the '-m68020' flag to GCC prevents building anything better,
9099 # like '-m68040'.
9100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9101 ;;
9102 esac
9103 ;;
9104
9105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9106 # PIC is the default for these OSes.
9107 ;;
9108
9109 mingw* | cygwin* | pw32* | os2* | cegcc*)
9110 # This hack is so that the source file can tell whether it is being
9111 # built for inclusion in a dll (and should export symbols for example).
9112 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9113 # (--disable-auto-import) libraries
9114 lt_prog_compiler_pic='-DDLL_EXPORT'
9115 case $host_os in
9116 os2*)
9117 lt_prog_compiler_static='$wl-static'
9118 ;;
9119 esac
9120 ;;
9121
9122 darwin* | rhapsody*)
9123 # PIC is the default on this platform
9124 # Common symbols not allowed in MH_DYLIB files
9125 lt_prog_compiler_pic='-fno-common'
9126 ;;
9127
9128 haiku*)
9129 # PIC is the default for Haiku.
9130 # The "-static" flag exists, but is broken.
9131 lt_prog_compiler_static=
9132 ;;
9133
9134 hpux*)
9135 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9136 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9137 # sets the default TLS model and affects inlining.
9138 case $host_cpu in
9139 hppa*64*)
9140 # +Z the default
9141 ;;
9142 *)
9143 lt_prog_compiler_pic='-fPIC'
9144 ;;
9145 esac
9146 ;;
9147
9148 interix[3-9]*)
9149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9150 # Instead, we relocate shared libraries at runtime.
9151 ;;
9152
9153 msdosdjgpp*)
9154 # Just because we use GCC doesn't mean we suddenly get shared libraries
9155 # on systems that don't support them.
9156 lt_prog_compiler_can_build_shared=no
9157 enable_shared=no
9158 ;;
9159
9160 *nto* | *qnx*)
9161 # QNX uses GNU C++, but need to define -shared option too, otherwise
9162 # it will coredump.
9163 lt_prog_compiler_pic='-fPIC -shared'
9164 ;;
9165
9166 sysv4*MP*)
9167 if test -d /usr/nec; then
9168 lt_prog_compiler_pic=-Kconform_pic
9169 fi
9170 ;;
9171
9172 *)
9173 lt_prog_compiler_pic='-fPIC'
9174 ;;
9175 esac
9176
9177 case $cc_basename in
9178 nvcc*) # Cuda Compiler Driver 2.2
9179 lt_prog_compiler_wl='-Xlinker '
9180 if test -n "$lt_prog_compiler_pic"; then
9181 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9182 fi
9183 ;;
9184 esac
9185 else
9186 # PORTME Check for flag to pass linker flags through the system compiler.
9187 case $host_os in
9188 aix*)
9189 lt_prog_compiler_wl='-Wl,'
9190 if test ia64 = "$host_cpu"; then
9191 # AIX 5 now supports IA64 processor
9192 lt_prog_compiler_static='-Bstatic'
9193 else
9194 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9195 fi
9196 ;;
9197
9198 darwin* | rhapsody*)
9199 # PIC is the default on this platform
9200 # Common symbols not allowed in MH_DYLIB files
9201 lt_prog_compiler_pic='-fno-common'
9202 case $cc_basename in
9203 nagfor*)
9204 # NAG Fortran compiler
9205 lt_prog_compiler_wl='-Wl,-Wl,,'
9206 lt_prog_compiler_pic='-PIC'
9207 lt_prog_compiler_static='-Bstatic'
9208 ;;
9209 esac
9210 ;;
9211
9212 mingw* | cygwin* | pw32* | os2* | cegcc*)
9213 # This hack is so that the source file can tell whether it is being
9214 # built for inclusion in a dll (and should export symbols for example).
9215 lt_prog_compiler_pic='-DDLL_EXPORT'
9216 case $host_os in
9217 os2*)
9218 lt_prog_compiler_static='$wl-static'
9219 ;;
9220 esac
9221 ;;
9222
9223 hpux9* | hpux10* | hpux11*)
9224 lt_prog_compiler_wl='-Wl,'
9225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9226 # not for PA HP-UX.
9227 case $host_cpu in
9228 hppa*64*|ia64*)
9229 # +Z the default
9230 ;;
9231 *)
9232 lt_prog_compiler_pic='+Z'
9233 ;;
9234 esac
9235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9236 lt_prog_compiler_static='$wl-a ${wl}archive'
9237 ;;
9238
9239 irix5* | irix6* | nonstopux*)
9240 lt_prog_compiler_wl='-Wl,'
9241 # PIC (with -KPIC) is the default.
9242 lt_prog_compiler_static='-non_shared'
9243 ;;
9244
9245 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9246 case $cc_basename in
9247 # old Intel for x86_64, which still supported -KPIC.
9248 ecc*)
9249 lt_prog_compiler_wl='-Wl,'
9250 lt_prog_compiler_pic='-KPIC'
9251 lt_prog_compiler_static='-static'
9252 ;;
9253 # icc used to be incompatible with GCC.
9254 # ICC 10 doesn't accept -KPIC any more.
9255 icc* | ifort*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='-fPIC'
9258 lt_prog_compiler_static='-static'
9259 ;;
9260 # Lahey Fortran 8.1.
9261 lf95*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='--shared'
9264 lt_prog_compiler_static='--static'
9265 ;;
9266 nagfor*)
9267 # NAG Fortran compiler
9268 lt_prog_compiler_wl='-Wl,-Wl,,'
9269 lt_prog_compiler_pic='-PIC'
9270 lt_prog_compiler_static='-Bstatic'
9271 ;;
9272 tcc*)
9273 # Fabrice Bellard et al's Tiny C Compiler
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-fPIC'
9276 lt_prog_compiler_static='-static'
9277 ;;
9278 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9279 # Portland Group compilers (*not* the Pentium gcc compiler,
9280 # which looks to be a dead project)
9281 lt_prog_compiler_wl='-Wl,'
9282 lt_prog_compiler_pic='-fpic'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
9285 ccc*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All Alpha code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9289 ;;
9290 xl* | bgxl* | bgf* | mpixl*)
9291 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-qpic'
9294 lt_prog_compiler_static='-qstaticlink'
9295 ;;
9296 *)
9297 case `$CC -V 2>&1 | sed 5q` in
9298 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_wl=''
9303 ;;
9304 *Sun\ F* | *Sun*Fortran*)
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
9307 lt_prog_compiler_wl='-Qoption ld '
9308 ;;
9309 *Sun\ C*)
9310 # Sun C 5.9
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
9313 lt_prog_compiler_wl='-Wl,'
9314 ;;
9315 *Intel*\ [CF]*Compiler*)
9316 lt_prog_compiler_wl='-Wl,'
9317 lt_prog_compiler_pic='-fPIC'
9318 lt_prog_compiler_static='-static'
9319 ;;
9320 *Portland\ Group*)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_pic='-fpic'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325 esac
9326 ;;
9327 esac
9328 ;;
9329
9330 newsos6)
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 ;;
9334
9335 *nto* | *qnx*)
9336 # QNX uses GNU C++, but need to define -shared option too, otherwise
9337 # it will coredump.
9338 lt_prog_compiler_pic='-fPIC -shared'
9339 ;;
9340
9341 osf3* | osf4* | osf5*)
9342 lt_prog_compiler_wl='-Wl,'
9343 # All OSF/1 code is PIC.
9344 lt_prog_compiler_static='-non_shared'
9345 ;;
9346
9347 rdos*)
9348 lt_prog_compiler_static='-non_shared'
9349 ;;
9350
9351 solaris*)
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 case $cc_basename in
9355 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9356 lt_prog_compiler_wl='-Qoption ld ';;
9357 *)
9358 lt_prog_compiler_wl='-Wl,';;
9359 esac
9360 ;;
9361
9362 sunos4*)
9363 lt_prog_compiler_wl='-Qoption ld '
9364 lt_prog_compiler_pic='-PIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 ;;
9367
9368 sysv4 | sysv4.2uw2* | sysv4.3*)
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-KPIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 sysv4*MP*)
9375 if test -d /usr/nec; then
9376 lt_prog_compiler_pic='-Kconform_pic'
9377 lt_prog_compiler_static='-Bstatic'
9378 fi
9379 ;;
9380
9381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
9386
9387 unicos*)
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_can_build_shared=no
9390 ;;
9391
9392 uts4*)
9393 lt_prog_compiler_pic='-pic'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9396
9397 *)
9398 lt_prog_compiler_can_build_shared=no
9399 ;;
9400 esac
9401 fi
9402
9403 case $host_os in
9404 # For platforms that do not support PIC, -DPIC is meaningless:
9405 *djgpp*)
9406 lt_prog_compiler_pic=
9407 ;;
9408 *)
9409 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9410 ;;
9411 esac
9412
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9414 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9415 if ${lt_cv_prog_compiler_pic+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9421 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9422 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9423
9424 #
9425 # Check to make sure the PIC flag actually works.
9426 #
9427 if test -n "$lt_prog_compiler_pic"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9429 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9430 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 lt_cv_prog_compiler_pic_works=no
9434 ac_outfile=conftest.$ac_objext
9435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9436 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9437 # Insert the option either (1) after the last *FLAGS variable, or
9438 # (2) before a word containing "conftest.", or (3) at the end.
9439 # Note that $ac_compile itself does not contain backslashes and begins
9440 # with a dollar sign (not a hyphen), so the echo should work correctly.
9441 # The option is referenced via a variable to avoid confusing sed.
9442 lt_compile=`echo "$ac_compile" | $SED \
9443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445 -e 's:$: $lt_compiler_flag:'`
9446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9447 (eval "$lt_compile" 2>conftest.err)
9448 ac_status=$?
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 if (exit $ac_status) && test -s "$ac_outfile"; then
9452 # The compiler can only warn and ignore the option if not recognized
9453 # So say no if there are warnings other than the usual output.
9454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9457 lt_cv_prog_compiler_pic_works=yes
9458 fi
9459 fi
9460 $RM conftest*
9461
9462 fi
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9464 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9465
9466 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9467 case $lt_prog_compiler_pic in
9468 "" | " "*) ;;
9469 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9470 esac
9471 else
9472 lt_prog_compiler_pic=
9473 lt_prog_compiler_can_build_shared=no
9474 fi
9475
9476 fi
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 #
9489 # Check to make sure the static flag actually works.
9490 #
9491 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9493 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9494 if ${lt_cv_prog_compiler_static_works+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 lt_cv_prog_compiler_static_works=no
9498 save_LDFLAGS=$LDFLAGS
9499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9500 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9502 # The linker can only warn and ignore the option if not recognized
9503 # So say no if there are warnings
9504 if test -s conftest.err; then
9505 # Append any errors to the config.log.
9506 cat conftest.err 1>&5
9507 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9509 if diff conftest.exp conftest.er2 >/dev/null; then
9510 lt_cv_prog_compiler_static_works=yes
9511 fi
9512 else
9513 lt_cv_prog_compiler_static_works=yes
9514 fi
9515 fi
9516 $RM -r conftest*
9517 LDFLAGS=$save_LDFLAGS
9518
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9521 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9522
9523 if test yes = "$lt_cv_prog_compiler_static_works"; then
9524 :
9525 else
9526 lt_prog_compiler_static=
9527 fi
9528
9529
9530
9531
9532
9533
9534
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9537 if ${lt_cv_prog_compiler_c_o+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 lt_cv_prog_compiler_c_o=no
9541 $RM -r conftest 2>/dev/null
9542 mkdir conftest
9543 cd conftest
9544 mkdir out
9545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9546
9547 lt_compiler_flag="-o out/conftest2.$ac_objext"
9548 # Insert the option either (1) after the last *FLAGS variable, or
9549 # (2) before a word containing "conftest.", or (3) at the end.
9550 # Note that $ac_compile itself does not contain backslashes and begins
9551 # with a dollar sign (not a hyphen), so the echo should work correctly.
9552 lt_compile=`echo "$ac_compile" | $SED \
9553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9555 -e 's:$: $lt_compiler_flag:'`
9556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9557 (eval "$lt_compile" 2>out/conftest.err)
9558 ac_status=$?
9559 cat out/conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9562 then
9563 # The compiler can only warn and ignore the option if not recognized
9564 # So say no if there are warnings
9565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9568 lt_cv_prog_compiler_c_o=yes
9569 fi
9570 fi
9571 chmod u+w . 2>&5
9572 $RM conftest*
9573 # SGI C++ compiler will create directory out/ii_files/ for
9574 # template instantiation
9575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9576 $RM out/* && rmdir out
9577 cd ..
9578 $RM -r conftest
9579 $RM conftest*
9580
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9583 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9584
9585
9586
9587
9588
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9591 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9592 if ${lt_cv_prog_compiler_c_o+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 lt_cv_prog_compiler_c_o=no
9596 $RM -r conftest 2>/dev/null
9597 mkdir conftest
9598 cd conftest
9599 mkdir out
9600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9601
9602 lt_compiler_flag="-o out/conftest2.$ac_objext"
9603 # Insert the option either (1) after the last *FLAGS variable, or
9604 # (2) before a word containing "conftest.", or (3) at the end.
9605 # Note that $ac_compile itself does not contain backslashes and begins
9606 # with a dollar sign (not a hyphen), so the echo should work correctly.
9607 lt_compile=`echo "$ac_compile" | $SED \
9608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9610 -e 's:$: $lt_compiler_flag:'`
9611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9612 (eval "$lt_compile" 2>out/conftest.err)
9613 ac_status=$?
9614 cat out/conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9617 then
9618 # The compiler can only warn and ignore the option if not recognized
9619 # So say no if there are warnings
9620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9623 lt_cv_prog_compiler_c_o=yes
9624 fi
9625 fi
9626 chmod u+w . 2>&5
9627 $RM conftest*
9628 # SGI C++ compiler will create directory out/ii_files/ for
9629 # template instantiation
9630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9631 $RM out/* && rmdir out
9632 cd ..
9633 $RM -r conftest
9634 $RM conftest*
9635
9636 fi
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9639
9640
9641
9642
9643 hard_links=nottested
9644 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9645 # do not overwrite the value of need_locks provided by the user
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9647 $as_echo_n "checking if we can lock with hard links... " >&6; }
9648 hard_links=yes
9649 $RM conftest*
9650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9651 touch conftest.a
9652 ln conftest.a conftest.b 2>&5 || hard_links=no
9653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9655 $as_echo "$hard_links" >&6; }
9656 if test no = "$hard_links"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9658 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9659 need_locks=warn
9660 fi
9661 else
9662 need_locks=no
9663 fi
9664
9665
9666
9667
9668
9669
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9671 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9672
9673 runpath_var=
9674 allow_undefined_flag=
9675 always_export_symbols=no
9676 archive_cmds=
9677 archive_expsym_cmds=
9678 compiler_needs_object=no
9679 enable_shared_with_static_runtimes=no
9680 export_dynamic_flag_spec=
9681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9682 hardcode_automatic=no
9683 hardcode_direct=no
9684 hardcode_direct_absolute=no
9685 hardcode_libdir_flag_spec=
9686 hardcode_libdir_separator=
9687 hardcode_minus_L=no
9688 hardcode_shlibpath_var=unsupported
9689 inherit_rpath=no
9690 link_all_deplibs=unknown
9691 module_cmds=
9692 module_expsym_cmds=
9693 old_archive_from_new_cmds=
9694 old_archive_from_expsyms_cmds=
9695 thread_safe_flag_spec=
9696 whole_archive_flag_spec=
9697 # include_expsyms should be a list of space-separated symbols to be *always*
9698 # included in the symbol list
9699 include_expsyms=
9700 # exclude_expsyms can be an extended regexp of symbols to exclude
9701 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9702 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9703 # as well as any symbol that contains 'd'.
9704 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9706 # platforms (ab)use it in PIC code, but their linkers get confused if
9707 # the symbol is explicitly referenced. Since portable code cannot
9708 # rely on this symbol name, it's probably fine to never include it in
9709 # preloaded symbol tables.
9710 # Exclude shared library initialization/finalization symbols.
9711 extract_expsyms_cmds=
9712
9713 case $host_os in
9714 cygwin* | mingw* | pw32* | cegcc*)
9715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9716 # When not using gcc, we currently assume that we are using
9717 # Microsoft Visual C++.
9718 if test yes != "$GCC"; then
9719 with_gnu_ld=no
9720 fi
9721 ;;
9722 interix*)
9723 # we just hope/assume this is gcc and not c89 (= MSVC++)
9724 with_gnu_ld=yes
9725 ;;
9726 openbsd* | bitrig*)
9727 with_gnu_ld=no
9728 ;;
9729 esac
9730
9731 ld_shlibs=yes
9732
9733 # On some targets, GNU ld is compatible enough with the native linker
9734 # that we're better off using the native interface for both.
9735 lt_use_gnu_ld_interface=no
9736 if test yes = "$with_gnu_ld"; then
9737 case $host_os in
9738 aix*)
9739 # The AIX port of GNU ld has always aspired to compatibility
9740 # with the native linker. However, as the warning in the GNU ld
9741 # block says, versions before 2.19.5* couldn't really create working
9742 # shared libraries, regardless of the interface used.
9743 case `$LD -v 2>&1` in
9744 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9745 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9746 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9747 *)
9748 lt_use_gnu_ld_interface=yes
9749 ;;
9750 esac
9751 ;;
9752 *)
9753 lt_use_gnu_ld_interface=yes
9754 ;;
9755 esac
9756 fi
9757
9758 if test yes = "$lt_use_gnu_ld_interface"; then
9759 # If archive_cmds runs LD, not CC, wlarc should be empty
9760 wlarc='$wl'
9761
9762 # Set some defaults for GNU ld with shared library support. These
9763 # are reset later if shared libraries are not supported. Putting them
9764 # here allows them to be overridden if necessary.
9765 runpath_var=LD_RUN_PATH
9766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9767 export_dynamic_flag_spec='$wl--export-dynamic'
9768 # ancient GNU ld didn't support --whole-archive et. al.
9769 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9770 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9771 else
9772 whole_archive_flag_spec=
9773 fi
9774 supports_anon_versioning=no
9775 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9776 *GNU\ gold*) supports_anon_versioning=yes ;;
9777 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9778 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9779 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9780 *\ 2.11.*) ;; # other 2.11 versions
9781 *) supports_anon_versioning=yes ;;
9782 esac
9783
9784 # See if GNU ld supports shared libraries.
9785 case $host_os in
9786 aix[3-9]*)
9787 # On AIX/PPC, the GNU linker is very broken
9788 if test ia64 != "$host_cpu"; then
9789 ld_shlibs=no
9790 cat <<_LT_EOF 1>&2
9791
9792 *** Warning: the GNU linker, at least up to release 2.19, is reported
9793 *** to be unable to reliably create shared libraries on AIX.
9794 *** Therefore, libtool is disabling shared libraries support. If you
9795 *** really care for shared libraries, you may want to install binutils
9796 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9797 *** You will then need to restart the configuration process.
9798
9799 _LT_EOF
9800 fi
9801 ;;
9802
9803 amigaos*)
9804 case $host_cpu in
9805 powerpc)
9806 # see comment about AmigaOS4 .so support
9807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9808 archive_expsym_cmds=''
9809 ;;
9810 m68k)
9811 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)'
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 hardcode_minus_L=yes
9814 ;;
9815 esac
9816 ;;
9817
9818 beos*)
9819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9820 allow_undefined_flag=unsupported
9821 # Joseph Beckenbach <[email protected]> says some releases of gcc
9822 # support --undefined. This deserves some investigation. FIXME
9823 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9824 else
9825 ld_shlibs=no
9826 fi
9827 ;;
9828
9829 cygwin* | mingw* | pw32* | cegcc*)
9830 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9831 # as there is no search path for DLLs.
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 export_dynamic_flag_spec='$wl--export-all-symbols'
9834 allow_undefined_flag=unsupported
9835 always_export_symbols=no
9836 enable_shared_with_static_runtimes=yes
9837 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'
9838 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9839
9840 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9842 # If the export-symbols file already is a .def file, use it as
9843 # is; otherwise, prepend EXPORTS...
9844 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9845 cp $export_symbols $output_objdir/$soname.def;
9846 else
9847 echo EXPORTS > $output_objdir/$soname.def;
9848 cat $export_symbols >> $output_objdir/$soname.def;
9849 fi~
9850 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9851 else
9852 ld_shlibs=no
9853 fi
9854 ;;
9855
9856 haiku*)
9857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9858 link_all_deplibs=yes
9859 ;;
9860
9861 os2*)
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_minus_L=yes
9864 allow_undefined_flag=unsupported
9865 shrext_cmds=.dll
9866 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9867 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9868 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9869 $ECHO EXPORTS >> $output_objdir/$libname.def~
9870 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9871 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9872 emximp -o $lib $output_objdir/$libname.def'
9873 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9874 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9875 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9876 $ECHO EXPORTS >> $output_objdir/$libname.def~
9877 prefix_cmds="$SED"~
9878 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9879 prefix_cmds="$prefix_cmds -e 1d";
9880 fi~
9881 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9882 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9884 emximp -o $lib $output_objdir/$libname.def'
9885 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9886 enable_shared_with_static_runtimes=yes
9887 ;;
9888
9889 interix[3-9]*)
9890 hardcode_direct=no
9891 hardcode_shlibpath_var=no
9892 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9893 export_dynamic_flag_spec='$wl-E'
9894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9895 # Instead, shared libraries are loaded at an image base (0x10000000 by
9896 # default) and relocated if they conflict, which is a slow very memory
9897 # consuming and fragmenting process. To avoid this, we pick a random,
9898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9901 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'
9902 ;;
9903
9904 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9905 tmp_diet=no
9906 if test linux-dietlibc = "$host_os"; then
9907 case $cc_basename in
9908 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9909 esac
9910 fi
9911 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9912 && test no = "$tmp_diet"
9913 then
9914 tmp_addflag=' $pic_flag'
9915 tmp_sharedflag='-shared'
9916 case $cc_basename,$host_cpu in
9917 pgcc*) # Portland Group C compiler
9918 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'
9919 tmp_addflag=' $pic_flag'
9920 ;;
9921 pgf77* | pgf90* | pgf95* | pgfortran*)
9922 # Portland Group f77 and f90 compilers
9923 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'
9924 tmp_addflag=' $pic_flag -Mnomain' ;;
9925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9926 tmp_addflag=' -i_dynamic' ;;
9927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9928 tmp_addflag=' -i_dynamic -nofor_main' ;;
9929 ifc* | ifort*) # Intel Fortran compiler
9930 tmp_addflag=' -nofor_main' ;;
9931 lf95*) # Lahey Fortran 8.1
9932 whole_archive_flag_spec=
9933 tmp_sharedflag='--shared' ;;
9934 nagfor*) # NAGFOR 5.3
9935 tmp_sharedflag='-Wl,-shared' ;;
9936 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9937 tmp_sharedflag='-qmkshrobj'
9938 tmp_addflag= ;;
9939 nvcc*) # Cuda Compiler Driver 2.2
9940 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'
9941 compiler_needs_object=yes
9942 ;;
9943 esac
9944 case `$CC -V 2>&1 | sed 5q` in
9945 *Sun\ C*) # Sun C 5.9
9946 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'
9947 compiler_needs_object=yes
9948 tmp_sharedflag='-G' ;;
9949 *Sun\ F*) # Sun Fortran 8.3
9950 tmp_sharedflag='-G' ;;
9951 esac
9952 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9953
9954 if test yes = "$supports_anon_versioning"; then
9955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9957 echo "local: *; };" >> $output_objdir/$libname.ver~
9958 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9959 fi
9960
9961 case $cc_basename in
9962 tcc*)
9963 export_dynamic_flag_spec='-rdynamic'
9964 ;;
9965 xlf* | bgf* | bgxlf* | mpixlf*)
9966 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9967 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9968 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9969 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9970 if test yes = "$supports_anon_versioning"; then
9971 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9973 echo "local: *; };" >> $output_objdir/$libname.ver~
9974 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9975 fi
9976 ;;
9977 esac
9978 else
9979 ld_shlibs=no
9980 fi
9981 ;;
9982
9983 netbsd*)
9984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9985 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9986 wlarc=
9987 else
9988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9989 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9990 fi
9991 ;;
9992
9993 solaris*)
9994 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9995 ld_shlibs=no
9996 cat <<_LT_EOF 1>&2
9997
9998 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9999 *** create shared libraries on Solaris systems. Therefore, libtool
10000 *** is disabling shared libraries support. We urge you to upgrade GNU
10001 *** binutils to release 2.9.1 or newer. Another option is to modify
10002 *** your PATH or compiler configuration so that the native linker is
10003 *** used, and then restart.
10004
10005 _LT_EOF
10006 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10008 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10009 else
10010 ld_shlibs=no
10011 fi
10012 ;;
10013
10014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10015 case `$LD -v 2>&1` in
10016 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10017 ld_shlibs=no
10018 cat <<_LT_EOF 1>&2
10019
10020 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10021 *** reliably create shared libraries on SCO systems. Therefore, libtool
10022 *** is disabling shared libraries support. We urge you to upgrade GNU
10023 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10024 *** your PATH or compiler configuration so that the native linker is
10025 *** used, and then restart.
10026
10027 _LT_EOF
10028 ;;
10029 *)
10030 # For security reasons, it is highly recommended that you always
10031 # use absolute paths for naming shared libraries, and exclude the
10032 # DT_RUNPATH tag from executables and libraries. But doing so
10033 # requires that you compile everything twice, which is a pain.
10034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10038 else
10039 ld_shlibs=no
10040 fi
10041 ;;
10042 esac
10043 ;;
10044
10045 sunos4*)
10046 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10047 wlarc=
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 *)
10053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10056 else
10057 ld_shlibs=no
10058 fi
10059 ;;
10060 esac
10061
10062 if test no = "$ld_shlibs"; then
10063 runpath_var=
10064 hardcode_libdir_flag_spec=
10065 export_dynamic_flag_spec=
10066 whole_archive_flag_spec=
10067 fi
10068 else
10069 # PORTME fill in a description of your system's linker (not GNU ld)
10070 case $host_os in
10071 aix3*)
10072 allow_undefined_flag=unsupported
10073 always_export_symbols=yes
10074 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'
10075 # Note: this linker hardcodes the directories in LIBPATH if there
10076 # are no directories specified by -L.
10077 hardcode_minus_L=yes
10078 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10079 # Neither direct hardcoding nor static linking is supported with a
10080 # broken collect2.
10081 hardcode_direct=unsupported
10082 fi
10083 ;;
10084
10085 aix[4-9]*)
10086 if test ia64 = "$host_cpu"; then
10087 # On IA64, the linker does run time linking by default, so we don't
10088 # have to do anything special.
10089 aix_use_runtimelinking=no
10090 exp_sym_flag='-Bexport'
10091 no_entry_flag=
10092 else
10093 # If we're using GNU nm, then we don't want the "-C" option.
10094 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10095 # Without the "-l" option, or with the "-B" option, AIX nm treats
10096 # weak defined symbols like other global defined symbols, whereas
10097 # GNU nm marks them as "W".
10098 # While the 'weak' keyword is ignored in the Export File, we need
10099 # it in the Import File for the 'aix-soname' feature, so we have
10100 # to replace the "-B" option with "-P" for AIX nm.
10101 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10102 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'
10103 else
10104 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'
10105 fi
10106 aix_use_runtimelinking=no
10107
10108 # Test if we are trying to use run time linking or normal
10109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10110 # have runtime linking enabled, and use it for executables.
10111 # For shared libraries, we enable/disable runtime linking
10112 # depending on the kind of the shared library created -
10113 # when "with_aix_soname,aix_use_runtimelinking" is:
10114 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10115 # "aix,yes" lib.so shared, rtl:yes, for executables
10116 # lib.a static archive
10117 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10118 # lib.a(lib.so.V) shared, rtl:no, for executables
10119 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10120 # lib.a(lib.so.V) shared, rtl:no
10121 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10122 # lib.a static archive
10123 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10124 for ld_flag in $LDFLAGS; do
10125 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10126 aix_use_runtimelinking=yes
10127 break
10128 fi
10129 done
10130 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10131 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10132 # so we don't have lib.a shared libs to link our executables.
10133 # We have to force runtime linking in this case.
10134 aix_use_runtimelinking=yes
10135 LDFLAGS="$LDFLAGS -Wl,-brtl"
10136 fi
10137 ;;
10138 esac
10139
10140 exp_sym_flag='-bexport'
10141 no_entry_flag='-bnoentry'
10142 fi
10143
10144 # When large executables or shared objects are built, AIX ld can
10145 # have problems creating the table of contents. If linking a library
10146 # or program results in "error TOC overflow" add -mminimal-toc to
10147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10149
10150 archive_cmds=''
10151 hardcode_direct=yes
10152 hardcode_direct_absolute=yes
10153 hardcode_libdir_separator=':'
10154 link_all_deplibs=yes
10155 file_list_spec='$wl-f,'
10156 case $with_aix_soname,$aix_use_runtimelinking in
10157 aix,*) ;; # traditional, no import file
10158 svr4,* | *,yes) # use import file
10159 # The Import File defines what to hardcode.
10160 hardcode_direct=no
10161 hardcode_direct_absolute=no
10162 ;;
10163 esac
10164
10165 if test yes = "$GCC"; then
10166 case $host_os in aix4.[012]|aix4.[012].*)
10167 # We only want to do this on AIX 4.2 and lower, the check
10168 # below for broken collect2 doesn't work under 4.3+
10169 collect2name=`$CC -print-prog-name=collect2`
10170 if test -f "$collect2name" &&
10171 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10172 then
10173 # We have reworked collect2
10174 :
10175 else
10176 # We have old collect2
10177 hardcode_direct=unsupported
10178 # It fails to find uninstalled libraries when the uninstalled
10179 # path is not listed in the libpath. Setting hardcode_minus_L
10180 # to unsupported forces relinking
10181 hardcode_minus_L=yes
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_libdir_separator=
10184 fi
10185 ;;
10186 esac
10187 shared_flag='-shared'
10188 if test yes = "$aix_use_runtimelinking"; then
10189 shared_flag="$shared_flag "'$wl-G'
10190 fi
10191 # Need to ensure runtime linking is disabled for the traditional
10192 # shared library, or the linker may eventually find shared libraries
10193 # /with/ Import File - we do not want to mix them.
10194 shared_flag_aix='-shared'
10195 shared_flag_svr4='-shared $wl-G'
10196 else
10197 # not using gcc
10198 if test ia64 = "$host_cpu"; then
10199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10200 # chokes on -Wl,-G. The following line is correct:
10201 shared_flag='-G'
10202 else
10203 if test yes = "$aix_use_runtimelinking"; then
10204 shared_flag='$wl-G'
10205 else
10206 shared_flag='$wl-bM:SRE'
10207 fi
10208 shared_flag_aix='$wl-bM:SRE'
10209 shared_flag_svr4='$wl-G'
10210 fi
10211 fi
10212
10213 export_dynamic_flag_spec='$wl-bexpall'
10214 # It seems that -bexpall does not export symbols beginning with
10215 # underscore (_), so it is better to generate a list of symbols to export.
10216 always_export_symbols=yes
10217 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10218 # Warning - without using the other runtime loading flags (-brtl),
10219 # -berok will link without error, but may produce a broken library.
10220 allow_undefined_flag='-berok'
10221 # Determine the default libpath from the value encoded in an
10222 # empty executable.
10223 if test set = "${lt_cv_aix_libpath+set}"; then
10224 aix_libpath=$lt_cv_aix_libpath
10225 else
10226 if ${lt_cv_aix_libpath_+:} false; then :
10227 $as_echo_n "(cached) " >&6
10228 else
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231
10232 int
10233 main ()
10234 {
10235
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241
10242 lt_aix_libpath_sed='
10243 /Import File Strings/,/^$/ {
10244 /^0/ {
10245 s/^0 *\([^ ]*\) *$/\1/
10246 p
10247 }
10248 }'
10249 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10250 # Check for a 64-bit object if we didn't find anything.
10251 if test -z "$lt_cv_aix_libpath_"; then
10252 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10253 fi
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 if test -z "$lt_cv_aix_libpath_"; then
10258 lt_cv_aix_libpath_=/usr/lib:/lib
10259 fi
10260
10261 fi
10262
10263 aix_libpath=$lt_cv_aix_libpath_
10264 fi
10265
10266 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10267 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
10268 else
10269 if test ia64 = "$host_cpu"; then
10270 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10271 allow_undefined_flag="-z nodefs"
10272 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"
10273 else
10274 # Determine the default libpath from the value encoded in an
10275 # empty executable.
10276 if test set = "${lt_cv_aix_libpath+set}"; then
10277 aix_libpath=$lt_cv_aix_libpath
10278 else
10279 if ${lt_cv_aix_libpath_+:} false; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284
10285 int
10286 main ()
10287 {
10288
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_c_try_link "$LINENO"; then :
10294
10295 lt_aix_libpath_sed='
10296 /Import File Strings/,/^$/ {
10297 /^0/ {
10298 s/^0 *\([^ ]*\) *$/\1/
10299 p
10300 }
10301 }'
10302 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10303 # Check for a 64-bit object if we didn't find anything.
10304 if test -z "$lt_cv_aix_libpath_"; then
10305 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10306 fi
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310 if test -z "$lt_cv_aix_libpath_"; then
10311 lt_cv_aix_libpath_=/usr/lib:/lib
10312 fi
10313
10314 fi
10315
10316 aix_libpath=$lt_cv_aix_libpath_
10317 fi
10318
10319 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10320 # Warning - without using the other run time loading flags,
10321 # -berok will link without error, but may produce a broken library.
10322 no_undefined_flag=' $wl-bernotok'
10323 allow_undefined_flag=' $wl-berok'
10324 if test yes = "$with_gnu_ld"; then
10325 # We only use this code for GNU lds that support --whole-archive.
10326 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10327 else
10328 # Exported symbols can be pulled into shared objects from archives
10329 whole_archive_flag_spec='$convenience'
10330 fi
10331 archive_cmds_need_lc=yes
10332 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10333 # -brtl affects multiple linker settings, -berok does not and is overridden later
10334 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10335 if test svr4 != "$with_aix_soname"; then
10336 # This is similar to how AIX traditionally builds its shared libraries.
10337 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'
10338 fi
10339 if test aix != "$with_aix_soname"; then
10340 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'
10341 else
10342 # used by -dlpreopen to get the symbols
10343 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10344 fi
10345 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10346 fi
10347 fi
10348 ;;
10349
10350 amigaos*)
10351 case $host_cpu in
10352 powerpc)
10353 # see comment about AmigaOS4 .so support
10354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10355 archive_expsym_cmds=''
10356 ;;
10357 m68k)
10358 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)'
10359 hardcode_libdir_flag_spec='-L$libdir'
10360 hardcode_minus_L=yes
10361 ;;
10362 esac
10363 ;;
10364
10365 bsdi[45]*)
10366 export_dynamic_flag_spec=-rdynamic
10367 ;;
10368
10369 cygwin* | mingw* | pw32* | cegcc*)
10370 # When not using gcc, we currently assume that we are using
10371 # Microsoft Visual C++.
10372 # hardcode_libdir_flag_spec is actually meaningless, as there is
10373 # no search path for DLLs.
10374 case $cc_basename in
10375 cl*)
10376 # Native MSVC
10377 hardcode_libdir_flag_spec=' '
10378 allow_undefined_flag=unsupported
10379 always_export_symbols=yes
10380 file_list_spec='@'
10381 # Tell ltmain to make .lib files, not .a files.
10382 libext=lib
10383 # Tell ltmain to make .dll files, not .so files.
10384 shrext_cmds=.dll
10385 # FIXME: Setting linknames here is a bad hack.
10386 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10387 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10388 cp "$export_symbols" "$output_objdir/$soname.def";
10389 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10390 else
10391 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10392 fi~
10393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10394 linknames='
10395 # The linker will not automatically build a static lib if we build a DLL.
10396 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10397 enable_shared_with_static_runtimes=yes
10398 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10400 # Don't use ranlib
10401 old_postinstall_cmds='chmod 644 $oldlib'
10402 postlink_cmds='lt_outputfile="@OUTPUT@"~
10403 lt_tool_outputfile="@TOOL_OUTPUT@"~
10404 case $lt_outputfile in
10405 *.exe|*.EXE) ;;
10406 *)
10407 lt_outputfile=$lt_outputfile.exe
10408 lt_tool_outputfile=$lt_tool_outputfile.exe
10409 ;;
10410 esac~
10411 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10412 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10413 $RM "$lt_outputfile.manifest";
10414 fi'
10415 ;;
10416 *)
10417 # Assume MSVC wrapper
10418 hardcode_libdir_flag_spec=' '
10419 allow_undefined_flag=unsupported
10420 # Tell ltmain to make .lib files, not .a files.
10421 libext=lib
10422 # Tell ltmain to make .dll files, not .so files.
10423 shrext_cmds=.dll
10424 # FIXME: Setting linknames here is a bad hack.
10425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10426 # The linker will automatically build a .lib file if we build a DLL.
10427 old_archive_from_new_cmds='true'
10428 # FIXME: Should let the user specify the lib program.
10429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10430 enable_shared_with_static_runtimes=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 darwin* | rhapsody*)
10436
10437
10438 archive_cmds_need_lc=no
10439 hardcode_direct=no
10440 hardcode_automatic=yes
10441 hardcode_shlibpath_var=unsupported
10442 if test yes = "$lt_cv_ld_force_load"; then
10443 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\"`'
10444
10445 else
10446 whole_archive_flag_spec=''
10447 fi
10448 link_all_deplibs=yes
10449 allow_undefined_flag=$_lt_dar_allow_undefined
10450 case $cc_basename in
10451 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10452 *) _lt_dar_can_shared=$GCC ;;
10453 esac
10454 if test yes = "$_lt_dar_can_shared"; then
10455 output_verbose_link_cmd=func_echo_all
10456 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10457 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10458 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"
10459 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"
10460
10461 else
10462 ld_shlibs=no
10463 fi
10464
10465 ;;
10466
10467 dgux*)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_shlibpath_var=no
10471 ;;
10472
10473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10474 # support. Future versions do this automatically, but an explicit c++rt0.o
10475 # does not break anything, and helps significantly (at the cost of a little
10476 # extra space).
10477 freebsd2.2*)
10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10485 freebsd2.*)
10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_direct=yes
10488 hardcode_minus_L=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10493 freebsd* | dragonfly*)
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 hardcode_libdir_flag_spec='-R$libdir'
10496 hardcode_direct=yes
10497 hardcode_shlibpath_var=no
10498 ;;
10499
10500 hpux9*)
10501 if test yes = "$GCC"; then
10502 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'
10503 else
10504 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'
10505 fi
10506 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10507 hardcode_libdir_separator=:
10508 hardcode_direct=yes
10509
10510 # hardcode_minus_L: Not really in the search PATH,
10511 # but as the default location of the library.
10512 hardcode_minus_L=yes
10513 export_dynamic_flag_spec='$wl-E'
10514 ;;
10515
10516 hpux10*)
10517 if test yes,no = "$GCC,$with_gnu_ld"; then
10518 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10519 else
10520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10521 fi
10522 if test no = "$with_gnu_ld"; then
10523 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10524 hardcode_libdir_separator=:
10525 hardcode_direct=yes
10526 hardcode_direct_absolute=yes
10527 export_dynamic_flag_spec='$wl-E'
10528 # hardcode_minus_L: Not really in the search PATH,
10529 # but as the default location of the library.
10530 hardcode_minus_L=yes
10531 fi
10532 ;;
10533
10534 hpux11*)
10535 if test yes,no = "$GCC,$with_gnu_ld"; then
10536 case $host_cpu in
10537 hppa*64*)
10538 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 ;;
10540 ia64*)
10541 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10542 ;;
10543 *)
10544 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545 ;;
10546 esac
10547 else
10548 case $host_cpu in
10549 hppa*64*)
10550 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10551 ;;
10552 ia64*)
10553 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10554 ;;
10555 *)
10556
10557 # Older versions of the 11.00 compiler do not understand -b yet
10558 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10560 $as_echo_n "checking if $CC understands -b... " >&6; }
10561 if ${lt_cv_prog_compiler__b+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 lt_cv_prog_compiler__b=no
10565 save_LDFLAGS=$LDFLAGS
10566 LDFLAGS="$LDFLAGS -b"
10567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10569 # The linker can only warn and ignore the option if not recognized
10570 # So say no if there are warnings
10571 if test -s conftest.err; then
10572 # Append any errors to the config.log.
10573 cat conftest.err 1>&5
10574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10576 if diff conftest.exp conftest.er2 >/dev/null; then
10577 lt_cv_prog_compiler__b=yes
10578 fi
10579 else
10580 lt_cv_prog_compiler__b=yes
10581 fi
10582 fi
10583 $RM -r conftest*
10584 LDFLAGS=$save_LDFLAGS
10585
10586 fi
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10588 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10589
10590 if test yes = "$lt_cv_prog_compiler__b"; then
10591 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10592 else
10593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10594 fi
10595
10596 ;;
10597 esac
10598 fi
10599 if test no = "$with_gnu_ld"; then
10600 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10601 hardcode_libdir_separator=:
10602
10603 case $host_cpu in
10604 hppa*64*|ia64*)
10605 hardcode_direct=no
10606 hardcode_shlibpath_var=no
10607 ;;
10608 *)
10609 hardcode_direct=yes
10610 hardcode_direct_absolute=yes
10611 export_dynamic_flag_spec='$wl-E'
10612
10613 # hardcode_minus_L: Not really in the search PATH,
10614 # but as the default location of the library.
10615 hardcode_minus_L=yes
10616 ;;
10617 esac
10618 fi
10619 ;;
10620
10621 irix5* | irix6* | nonstopux*)
10622 if test yes = "$GCC"; then
10623 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'
10624 # Try to use the -exported_symbol ld option, if it does not
10625 # work, assume that -exports_file does not work either and
10626 # implicitly export all symbols.
10627 # This should be the same for all languages, so no per-tag cache variable.
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10629 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10630 if ${lt_cv_irix_exported_symbol+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 save_LDFLAGS=$LDFLAGS
10634 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 int foo (void) { return 0; }
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 lt_cv_irix_exported_symbol=yes
10641 else
10642 lt_cv_irix_exported_symbol=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LDFLAGS=$save_LDFLAGS
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10649 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10650 if test yes = "$lt_cv_irix_exported_symbol"; then
10651 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'
10652 fi
10653 else
10654 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'
10655 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'
10656 fi
10657 archive_cmds_need_lc='no'
10658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10659 hardcode_libdir_separator=:
10660 inherit_rpath=yes
10661 link_all_deplibs=yes
10662 ;;
10663
10664 linux*)
10665 case $cc_basename in
10666 tcc*)
10667 # Fabrice Bellard et al's Tiny C Compiler
10668 ld_shlibs=yes
10669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10670 ;;
10671 esac
10672 ;;
10673
10674 netbsd*)
10675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10677 else
10678 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10679 fi
10680 hardcode_libdir_flag_spec='-R$libdir'
10681 hardcode_direct=yes
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 newsos6)
10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_direct=yes
10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10689 hardcode_libdir_separator=:
10690 hardcode_shlibpath_var=no
10691 ;;
10692
10693 *nto* | *qnx*)
10694 ;;
10695
10696 openbsd* | bitrig*)
10697 if test -f /usr/libexec/ld.so; then
10698 hardcode_direct=yes
10699 hardcode_shlibpath_var=no
10700 hardcode_direct_absolute=yes
10701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10703 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10704 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10705 export_dynamic_flag_spec='$wl-E'
10706 else
10707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10708 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10709 fi
10710 else
10711 ld_shlibs=no
10712 fi
10713 ;;
10714
10715 os2*)
10716 hardcode_libdir_flag_spec='-L$libdir'
10717 hardcode_minus_L=yes
10718 allow_undefined_flag=unsupported
10719 shrext_cmds=.dll
10720 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10721 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10722 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10723 $ECHO EXPORTS >> $output_objdir/$libname.def~
10724 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10726 emximp -o $lib $output_objdir/$libname.def'
10727 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10728 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10729 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10730 $ECHO EXPORTS >> $output_objdir/$libname.def~
10731 prefix_cmds="$SED"~
10732 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10733 prefix_cmds="$prefix_cmds -e 1d";
10734 fi~
10735 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10736 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10737 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10738 emximp -o $lib $output_objdir/$libname.def'
10739 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10740 enable_shared_with_static_runtimes=yes
10741 ;;
10742
10743 osf3*)
10744 if test yes = "$GCC"; then
10745 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10746 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'
10747 else
10748 allow_undefined_flag=' -expect_unresolved \*'
10749 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'
10750 fi
10751 archive_cmds_need_lc='no'
10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10753 hardcode_libdir_separator=:
10754 ;;
10755
10756 osf4* | osf5*) # as osf3* with the addition of -msym flag
10757 if test yes = "$GCC"; then
10758 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10759 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'
10760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10761 else
10762 allow_undefined_flag=' -expect_unresolved \*'
10763 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'
10764 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~
10765 $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'
10766
10767 # Both c and cxx compiler support -rpath directly
10768 hardcode_libdir_flag_spec='-rpath $libdir'
10769 fi
10770 archive_cmds_need_lc='no'
10771 hardcode_libdir_separator=:
10772 ;;
10773
10774 solaris*)
10775 no_undefined_flag=' -z defs'
10776 if test yes = "$GCC"; then
10777 wlarc='$wl'
10778 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10780 $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'
10781 else
10782 case `$CC -V 2>&1` in
10783 *"Compilers 5.0"*)
10784 wlarc=''
10785 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10787 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10788 ;;
10789 *)
10790 wlarc='$wl'
10791 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10793 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10794 ;;
10795 esac
10796 fi
10797 hardcode_libdir_flag_spec='-R$libdir'
10798 hardcode_shlibpath_var=no
10799 case $host_os in
10800 solaris2.[0-5] | solaris2.[0-5].*) ;;
10801 *)
10802 # The compiler driver will combine and reorder linker options,
10803 # but understands '-z linker_flag'. GCC discards it without '$wl',
10804 # but is careful enough not to reorder.
10805 # Supported since Solaris 2.6 (maybe 2.5.1?)
10806 if test yes = "$GCC"; then
10807 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10808 else
10809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10810 fi
10811 ;;
10812 esac
10813 link_all_deplibs=yes
10814 ;;
10815
10816 sunos4*)
10817 if test sequent = "$host_vendor"; then
10818 # Use $CC to link under sequent, because it throws in some extra .o
10819 # files that make .init and .fini sections work.
10820 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10821 else
10822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10823 fi
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_direct=yes
10826 hardcode_minus_L=yes
10827 hardcode_shlibpath_var=no
10828 ;;
10829
10830 sysv4)
10831 case $host_vendor in
10832 sni)
10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834 hardcode_direct=yes # is this really true???
10835 ;;
10836 siemens)
10837 ## LD is ld it makes a PLAMLIB
10838 ## CC just makes a GrossModule.
10839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10840 reload_cmds='$CC -r -o $output$reload_objs'
10841 hardcode_direct=no
10842 ;;
10843 motorola)
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10846 ;;
10847 esac
10848 runpath_var='LD_RUN_PATH'
10849 hardcode_shlibpath_var=no
10850 ;;
10851
10852 sysv4.3*)
10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854 hardcode_shlibpath_var=no
10855 export_dynamic_flag_spec='-Bexport'
10856 ;;
10857
10858 sysv4*MP*)
10859 if test -d /usr/nec; then
10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861 hardcode_shlibpath_var=no
10862 runpath_var=LD_RUN_PATH
10863 hardcode_runpath_var=yes
10864 ld_shlibs=yes
10865 fi
10866 ;;
10867
10868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10869 no_undefined_flag='$wl-z,text'
10870 archive_cmds_need_lc=no
10871 hardcode_shlibpath_var=no
10872 runpath_var='LD_RUN_PATH'
10873
10874 if test yes = "$GCC"; then
10875 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10877 else
10878 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10879 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10880 fi
10881 ;;
10882
10883 sysv5* | sco3.2v5* | sco5v6*)
10884 # Note: We CANNOT use -z defs as we might desire, because we do not
10885 # link with -lc, and that would cause any symbols used from libc to
10886 # always be unresolved, which means just about no library would
10887 # ever link correctly. If we're not using GNU ld we use -z text
10888 # though, which does catch some bad symbols but isn't as heavy-handed
10889 # as -z defs.
10890 no_undefined_flag='$wl-z,text'
10891 allow_undefined_flag='$wl-z,nodefs'
10892 archive_cmds_need_lc=no
10893 hardcode_shlibpath_var=no
10894 hardcode_libdir_flag_spec='$wl-R,$libdir'
10895 hardcode_libdir_separator=':'
10896 link_all_deplibs=yes
10897 export_dynamic_flag_spec='$wl-Bexport'
10898 runpath_var='LD_RUN_PATH'
10899
10900 if test yes = "$GCC"; then
10901 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10902 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 else
10904 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10906 fi
10907 ;;
10908
10909 uts4*)
10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_libdir_flag_spec='-L$libdir'
10912 hardcode_shlibpath_var=no
10913 ;;
10914
10915 *)
10916 ld_shlibs=no
10917 ;;
10918 esac
10919
10920 if test sni = "$host_vendor"; then
10921 case $host in
10922 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10923 export_dynamic_flag_spec='$wl-Blargedynsym'
10924 ;;
10925 esac
10926 fi
10927 fi
10928
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10930 $as_echo "$ld_shlibs" >&6; }
10931 test no = "$ld_shlibs" && can_build_shared=no
10932
10933 with_gnu_ld=$with_gnu_ld
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 #
10950 # Do we need to explicitly link libc?
10951 #
10952 case "x$archive_cmds_need_lc" in
10953 x|xyes)
10954 # Assume -lc should be added
10955 archive_cmds_need_lc=yes
10956
10957 if test yes,yes = "$GCC,$enable_shared"; then
10958 case $archive_cmds in
10959 *'~'*)
10960 # FIXME: we may have to deal with multi-command sequences.
10961 ;;
10962 '$CC '*)
10963 # Test whether the compiler implicitly links with -lc since on some
10964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10965 # to ld, don't add -lc before -lgcc.
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10967 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10968 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 $RM conftest*
10972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10973
10974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10975 (eval $ac_compile) 2>&5
10976 ac_status=$?
10977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10978 test $ac_status = 0; } 2>conftest.err; then
10979 soname=conftest
10980 lib=conftest
10981 libobjs=conftest.$ac_objext
10982 deplibs=
10983 wl=$lt_prog_compiler_wl
10984 pic_flag=$lt_prog_compiler_pic
10985 compiler_flags=-v
10986 linker_flags=-v
10987 verstring=
10988 output_objdir=.
10989 libname=conftest
10990 lt_save_allow_undefined_flag=$allow_undefined_flag
10991 allow_undefined_flag=
10992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10993 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10994 ac_status=$?
10995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10996 test $ac_status = 0; }
10997 then
10998 lt_cv_archive_cmds_need_lc=no
10999 else
11000 lt_cv_archive_cmds_need_lc=yes
11001 fi
11002 allow_undefined_flag=$lt_save_allow_undefined_flag
11003 else
11004 cat conftest.err 1>&5
11005 fi
11006 $RM conftest*
11007
11008 fi
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11010 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11011 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11012 ;;
11013 esac
11014 fi
11015 ;;
11016 esac
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11170 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11171
11172 if test yes = "$GCC"; then
11173 case $host_os in
11174 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11175 *) lt_awk_arg='/^libraries:/' ;;
11176 esac
11177 case $host_os in
11178 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11179 *) lt_sed_strip_eq='s|=/|/|g' ;;
11180 esac
11181 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11182 case $lt_search_path_spec in
11183 *\;*)
11184 # if the path contains ";" then we assume it to be the separator
11185 # otherwise default to the standard path separator (i.e. ":") - it is
11186 # assumed that no part of a normal pathname contains ";" but that should
11187 # okay in the real world where ";" in dirpaths is itself problematic.
11188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11189 ;;
11190 *)
11191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11192 ;;
11193 esac
11194 # Ok, now we have the path, separated by spaces, we can step through it
11195 # and add multilib dir if necessary...
11196 lt_tmp_lt_search_path_spec=
11197 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11198 # ...but if some path component already ends with the multilib dir we assume
11199 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11200 case "$lt_multi_os_dir; $lt_search_path_spec " in
11201 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11202 lt_multi_os_dir=
11203 ;;
11204 esac
11205 for lt_sys_path in $lt_search_path_spec; do
11206 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11207 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11208 elif test -n "$lt_multi_os_dir"; then
11209 test -d "$lt_sys_path" && \
11210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11211 fi
11212 done
11213 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11214 BEGIN {RS = " "; FS = "/|\n";} {
11215 lt_foo = "";
11216 lt_count = 0;
11217 for (lt_i = NF; lt_i > 0; lt_i--) {
11218 if ($lt_i != "" && $lt_i != ".") {
11219 if ($lt_i == "..") {
11220 lt_count++;
11221 } else {
11222 if (lt_count == 0) {
11223 lt_foo = "/" $lt_i lt_foo;
11224 } else {
11225 lt_count--;
11226 }
11227 }
11228 }
11229 }
11230 if (lt_foo != "") { lt_freq[lt_foo]++; }
11231 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11232 }'`
11233 # AWK program above erroneously prepends '/' to C:/dos/paths
11234 # for these hosts.
11235 case $host_os in
11236 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11237 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11238 esac
11239 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11240 else
11241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11242 fi
11243 library_names_spec=
11244 libname_spec='lib$name'
11245 soname_spec=
11246 shrext_cmds=.so
11247 postinstall_cmds=
11248 postuninstall_cmds=
11249 finish_cmds=
11250 finish_eval=
11251 shlibpath_var=
11252 shlibpath_overrides_runpath=unknown
11253 version_type=none
11254 dynamic_linker="$host_os ld.so"
11255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11256 need_lib_prefix=unknown
11257 hardcode_into_libs=no
11258
11259 # when you set need_version to no, make sure it does not cause -set_version
11260 # flags to be left without arguments
11261 need_version=unknown
11262
11263
11264
11265 case $host_os in
11266 aix3*)
11267 version_type=linux # correct to gnu/linux during the next big refactor
11268 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11269 shlibpath_var=LIBPATH
11270
11271 # AIX 3 has no versioning support, so we append a major version to the name.
11272 soname_spec='$libname$release$shared_ext$major'
11273 ;;
11274
11275 aix[4-9]*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 need_lib_prefix=no
11278 need_version=no
11279 hardcode_into_libs=yes
11280 if test ia64 = "$host_cpu"; then
11281 # AIX 5 supports IA64
11282 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 else
11285 # With GCC up to 2.95.x, collect2 would create an import file
11286 # for dependence libraries. The import file would start with
11287 # the line '#! .'. This would cause the generated library to
11288 # depend on '.', always an invalid library. This was fixed in
11289 # development snapshots of GCC prior to 3.0.
11290 case $host_os in
11291 aix4 | aix4.[01] | aix4.[01].*)
11292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11293 echo ' yes '
11294 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11295 :
11296 else
11297 can_build_shared=no
11298 fi
11299 ;;
11300 esac
11301 # Using Import Files as archive members, it is possible to support
11302 # filename-based versioning of shared library archives on AIX. While
11303 # this would work for both with and without runtime linking, it will
11304 # prevent static linking of such archives. So we do filename-based
11305 # shared library versioning with .so extension only, which is used
11306 # when both runtime linking and shared linking is enabled.
11307 # Unfortunately, runtime linking may impact performance, so we do
11308 # not want this to be the default eventually. Also, we use the
11309 # versioned .so libs for executables only if there is the -brtl
11310 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11311 # To allow for filename-based versioning support, we need to create
11312 # libNAME.so.V as an archive file, containing:
11313 # *) an Import File, referring to the versioned filename of the
11314 # archive as well as the shared archive member, telling the
11315 # bitwidth (32 or 64) of that shared object, and providing the
11316 # list of exported symbols of that shared object, eventually
11317 # decorated with the 'weak' keyword
11318 # *) the shared object with the F_LOADONLY flag set, to really avoid
11319 # it being seen by the linker.
11320 # At run time we better use the real file rather than another symlink,
11321 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11322
11323 case $with_aix_soname,$aix_use_runtimelinking in
11324 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11325 # soname into executable. Probably we can add versioning support to
11326 # collect2, so additional links can be useful in future.
11327 aix,yes) # traditional libtool
11328 dynamic_linker='AIX unversionable lib.so'
11329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11330 # instead of lib<name>.a to let people know that these are not
11331 # typical AIX shared libraries.
11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333 ;;
11334 aix,no) # traditional AIX only
11335 dynamic_linker='AIX lib.a(lib.so.V)'
11336 # We preserve .a as extension for shared libraries through AIX4.2
11337 # and later when we are not doing run time linking.
11338 library_names_spec='$libname$release.a $libname.a'
11339 soname_spec='$libname$release$shared_ext$major'
11340 ;;
11341 svr4,*) # full svr4 only
11342 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11343 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11344 # We do not specify a path in Import Files, so LIBPATH fires.
11345 shlibpath_overrides_runpath=yes
11346 ;;
11347 *,yes) # both, prefer svr4
11348 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11349 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11350 # unpreferred sharedlib libNAME.a needs extra handling
11351 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"'
11352 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"'
11353 # We do not specify a path in Import Files, so LIBPATH fires.
11354 shlibpath_overrides_runpath=yes
11355 ;;
11356 *,no) # both, prefer aix
11357 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11358 library_names_spec='$libname$release.a $libname.a'
11359 soname_spec='$libname$release$shared_ext$major'
11360 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11361 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)'
11362 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"'
11363 ;;
11364 esac
11365 shlibpath_var=LIBPATH
11366 fi
11367 ;;
11368
11369 amigaos*)
11370 case $host_cpu in
11371 powerpc)
11372 # Since July 2007 AmigaOS4 officially supports .so libraries.
11373 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375 ;;
11376 m68k)
11377 library_names_spec='$libname.ixlibrary $libname.a'
11378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11379 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'
11380 ;;
11381 esac
11382 ;;
11383
11384 beos*)
11385 library_names_spec='$libname$shared_ext'
11386 dynamic_linker="$host_os ld.so"
11387 shlibpath_var=LIBRARY_PATH
11388 ;;
11389
11390 bsdi[45]*)
11391 version_type=linux # correct to gnu/linux during the next big refactor
11392 need_version=no
11393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11394 soname_spec='$libname$release$shared_ext$major'
11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11399 # the default ld.so.conf also contains /usr/contrib/lib and
11400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11401 # libtool to hard-code these into programs
11402 ;;
11403
11404 cygwin* | mingw* | pw32* | cegcc*)
11405 version_type=windows
11406 shrext_cmds=.dll
11407 need_version=no
11408 need_lib_prefix=no
11409
11410 case $GCC,$cc_basename in
11411 yes,*)
11412 # gcc
11413 library_names_spec='$libname.dll.a'
11414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11415 postinstall_cmds='base_file=`basename \$file`~
11416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11417 dldir=$destdir/`dirname \$dlpath`~
11418 test -d \$dldir || mkdir -p \$dldir~
11419 $install_prog $dir/$dlname \$dldir/$dlname~
11420 chmod a+x \$dldir/$dlname~
11421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11423 fi'
11424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11425 dlpath=$dir/\$dldll~
11426 $RM \$dlpath'
11427 shlibpath_overrides_runpath=yes
11428
11429 case $host_os in
11430 cygwin*)
11431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11432 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11433
11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11435 ;;
11436 mingw* | cegcc*)
11437 # MinGW DLLs use traditional 'lib' prefix
11438 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11439 ;;
11440 pw32*)
11441 # pw32 DLLs use 'pw' prefix rather than 'lib'
11442 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11443 ;;
11444 esac
11445 dynamic_linker='Win32 ld.exe'
11446 ;;
11447
11448 *,cl*)
11449 # Native MSVC
11450 libname_spec='$name'
11451 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11452 library_names_spec='$libname.dll.lib'
11453
11454 case $build_os in
11455 mingw*)
11456 sys_lib_search_path_spec=
11457 lt_save_ifs=$IFS
11458 IFS=';'
11459 for lt_path in $LIB
11460 do
11461 IFS=$lt_save_ifs
11462 # Let DOS variable expansion print the short 8.3 style file name.
11463 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11464 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11465 done
11466 IFS=$lt_save_ifs
11467 # Convert to MSYS style.
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11469 ;;
11470 cygwin*)
11471 # Convert to unix form, then to dos form, then back to unix form
11472 # but this time dos style (no spaces!) so that the unix form looks
11473 # like /cygdrive/c/PROGRA~1:/cygdr...
11474 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11475 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11476 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11477 ;;
11478 *)
11479 sys_lib_search_path_spec=$LIB
11480 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11481 # It is most probably a Windows format PATH.
11482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11483 else
11484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11485 fi
11486 # FIXME: find the short name or the path components, as spaces are
11487 # common. (e.g. "Program Files" -> "PROGRA~1")
11488 ;;
11489 esac
11490
11491 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11492 postinstall_cmds='base_file=`basename \$file`~
11493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11494 dldir=$destdir/`dirname \$dlpath`~
11495 test -d \$dldir || mkdir -p \$dldir~
11496 $install_prog $dir/$dlname \$dldir/$dlname'
11497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11498 dlpath=$dir/\$dldll~
11499 $RM \$dlpath'
11500 shlibpath_overrides_runpath=yes
11501 dynamic_linker='Win32 link.exe'
11502 ;;
11503
11504 *)
11505 # Assume MSVC wrapper
11506 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11507 dynamic_linker='Win32 ld.exe'
11508 ;;
11509 esac
11510 # FIXME: first we should search . and the directory the executable is in
11511 shlibpath_var=PATH
11512 ;;
11513
11514 darwin* | rhapsody*)
11515 dynamic_linker="$host_os dyld"
11516 version_type=darwin
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11520 soname_spec='$libname$release$major$shared_ext'
11521 shlibpath_overrides_runpath=yes
11522 shlibpath_var=DYLD_LIBRARY_PATH
11523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11524
11525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11527 ;;
11528
11529 dgux*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 soname_spec='$libname$release$shared_ext$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 ;;
11537
11538 freebsd* | dragonfly*)
11539 # DragonFly does not have aout. When/if they implement a new
11540 # versioning mechanism, adjust this.
11541 if test -x /usr/bin/objformat; then
11542 objformat=`/usr/bin/objformat`
11543 else
11544 case $host_os in
11545 freebsd[23].*) objformat=aout ;;
11546 *) objformat=elf ;;
11547 esac
11548 fi
11549 version_type=freebsd-$objformat
11550 case $version_type in
11551 freebsd-elf*)
11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553 soname_spec='$libname$release$shared_ext$major'
11554 need_version=no
11555 need_lib_prefix=no
11556 ;;
11557 freebsd-*)
11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11559 need_version=yes
11560 ;;
11561 esac
11562 shlibpath_var=LD_LIBRARY_PATH
11563 case $host_os in
11564 freebsd2.*)
11565 shlibpath_overrides_runpath=yes
11566 ;;
11567 freebsd3.[01]* | freebsdelf3.[01]*)
11568 shlibpath_overrides_runpath=yes
11569 hardcode_into_libs=yes
11570 ;;
11571 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11572 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11573 shlibpath_overrides_runpath=no
11574 hardcode_into_libs=yes
11575 ;;
11576 *) # from 4.6 on, and DragonFly
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11579 ;;
11580 esac
11581 ;;
11582
11583 haiku*)
11584 version_type=linux # correct to gnu/linux during the next big refactor
11585 need_lib_prefix=no
11586 need_version=no
11587 dynamic_linker="$host_os runtime_loader"
11588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11589 soname_spec='$libname$release$shared_ext$major'
11590 shlibpath_var=LIBRARY_PATH
11591 shlibpath_overrides_runpath=no
11592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11593 hardcode_into_libs=yes
11594 ;;
11595
11596 hpux9* | hpux10* | hpux11*)
11597 # Give a soname corresponding to the major version so that dld.sl refuses to
11598 # link against other versions.
11599 version_type=sunos
11600 need_lib_prefix=no
11601 need_version=no
11602 case $host_cpu in
11603 ia64*)
11604 shrext_cmds='.so'
11605 hardcode_into_libs=yes
11606 dynamic_linker="$host_os dld.so"
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11610 soname_spec='$libname$release$shared_ext$major'
11611 if test 32 = "$HPUX_IA64_MODE"; then
11612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11613 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11614 else
11615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11616 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11617 fi
11618 ;;
11619 hppa*64*)
11620 shrext_cmds='.sl'
11621 hardcode_into_libs=yes
11622 dynamic_linker="$host_os dld.sl"
11623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11626 soname_spec='$libname$release$shared_ext$major'
11627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11629 ;;
11630 *)
11631 shrext_cmds='.sl'
11632 dynamic_linker="$host_os dld.sl"
11633 shlibpath_var=SHLIB_PATH
11634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11636 soname_spec='$libname$release$shared_ext$major'
11637 ;;
11638 esac
11639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11640 postinstall_cmds='chmod 555 $lib'
11641 # or fails outright, so override atomically:
11642 install_override_mode=555
11643 ;;
11644
11645 interix[3-9]*)
11646 version_type=linux # correct to gnu/linux during the next big refactor
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11650 soname_spec='$libname$release$shared_ext$major'
11651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 hardcode_into_libs=yes
11655 ;;
11656
11657 irix5* | irix6* | nonstopux*)
11658 case $host_os in
11659 nonstopux*) version_type=nonstopux ;;
11660 *)
11661 if test yes = "$lt_cv_prog_gnu_ld"; then
11662 version_type=linux # correct to gnu/linux during the next big refactor
11663 else
11664 version_type=irix
11665 fi ;;
11666 esac
11667 need_lib_prefix=no
11668 need_version=no
11669 soname_spec='$libname$release$shared_ext$major'
11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11671 case $host_os in
11672 irix5* | nonstopux*)
11673 libsuff= shlibsuff=
11674 ;;
11675 *)
11676 case $LD in # libtool.m4 will add one of these switches to LD
11677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678 libsuff= shlibsuff= libmagic=32-bit;;
11679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680 libsuff=32 shlibsuff=N32 libmagic=N32;;
11681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683 *) libsuff= shlibsuff= libmagic=never-match;;
11684 esac
11685 ;;
11686 esac
11687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688 shlibpath_overrides_runpath=no
11689 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11690 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11691 hardcode_into_libs=yes
11692 ;;
11693
11694 # No shared lib support for Linux oldld, aout, or coff.
11695 linux*oldld* | linux*aout* | linux*coff*)
11696 dynamic_linker=no
11697 ;;
11698
11699 linux*android*)
11700 version_type=none # Android doesn't support versioned libraries.
11701 need_lib_prefix=no
11702 need_version=no
11703 library_names_spec='$libname$release$shared_ext'
11704 soname_spec='$libname$release$shared_ext'
11705 finish_cmds=
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=yes
11708
11709 # This implies no fast_install, which is unacceptable.
11710 # Some rework will be needed to allow for fast_install
11711 # before this can be enabled.
11712 hardcode_into_libs=yes
11713
11714 dynamic_linker='Android linker'
11715 # Don't embed -rpath directories since the linker doesn't support them.
11716 hardcode_libdir_flag_spec='-L$libdir'
11717 ;;
11718
11719 # This must be glibc/ELF.
11720 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11721 version_type=linux # correct to gnu/linux during the next big refactor
11722 need_lib_prefix=no
11723 need_version=no
11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 soname_spec='$libname$release$shared_ext$major'
11726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=no
11729
11730 # Some binutils ld are patched to set DT_RUNPATH
11731 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 lt_cv_shlibpath_overrides_runpath=no
11735 save_LDFLAGS=$LDFLAGS
11736 save_libdir=$libdir
11737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741
11742 int
11743 main ()
11744 {
11745
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11752 lt_cv_shlibpath_overrides_runpath=yes
11753 fi
11754 fi
11755 rm -f core conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LDFLAGS=$save_LDFLAGS
11758 libdir=$save_libdir
11759
11760 fi
11761
11762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11763
11764 # This implies no fast_install, which is unacceptable.
11765 # Some rework will be needed to allow for fast_install
11766 # before this can be enabled.
11767 hardcode_into_libs=yes
11768
11769 # Ideally, we could use ldconfig to report *all* directores which are
11770 # searched for libraries, however this is still not possible. Aside from not
11771 # being certain /sbin/ldconfig is available, command
11772 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11773 # even though it is searched at run-time. Try to do the best guess by
11774 # appending ld.so.conf contents (and includes) to the search path.
11775 if test -f /etc/ld.so.conf; then
11776 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' ' '`
11777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778 fi
11779
11780 # We used to test for /lib/ld.so.1 and disable shared libraries on
11781 # powerpc, because MkLinux only supported shared libraries with the
11782 # GNU dynamic linker. Since this was broken with cross compilers,
11783 # most powerpc-linux boxes support dynamic linking these days and
11784 # people can always --disable-shared, the test was removed, and we
11785 # assume the GNU/Linux dynamic linker is in use.
11786 dynamic_linker='GNU/Linux ld.so'
11787 ;;
11788
11789 netbsd*)
11790 version_type=sunos
11791 need_lib_prefix=no
11792 need_version=no
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796 dynamic_linker='NetBSD (a.out) ld.so'
11797 else
11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11799 soname_spec='$libname$release$shared_ext$major'
11800 dynamic_linker='NetBSD ld.elf_so'
11801 fi
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11805 ;;
11806
11807 newsos6)
11808 version_type=linux # correct to gnu/linux during the next big refactor
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11812 ;;
11813
11814 *nto* | *qnx*)
11815 version_type=qnx
11816 need_lib_prefix=no
11817 need_version=no
11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11819 soname_spec='$libname$release$shared_ext$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 dynamic_linker='ldqnx.so'
11824 ;;
11825
11826 openbsd* | bitrig*)
11827 version_type=sunos
11828 sys_lib_dlsearch_path_spec=/usr/lib
11829 need_lib_prefix=no
11830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11831 need_version=no
11832 else
11833 need_version=yes
11834 fi
11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 shlibpath_overrides_runpath=yes
11839 ;;
11840
11841 os2*)
11842 libname_spec='$name'
11843 version_type=windows
11844 shrext_cmds=.dll
11845 need_version=no
11846 need_lib_prefix=no
11847 # OS/2 can only load a DLL with a base name of 8 characters or less.
11848 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11849 v=$($ECHO $release$versuffix | tr -d .-);
11850 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11851 $ECHO $n$v`$shared_ext'
11852 library_names_spec='${libname}_dll.$libext'
11853 dynamic_linker='OS/2 ld.exe'
11854 shlibpath_var=BEGINLIBPATH
11855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11857 postinstall_cmds='base_file=`basename \$file`~
11858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11859 dldir=$destdir/`dirname \$dlpath`~
11860 test -d \$dldir || mkdir -p \$dldir~
11861 $install_prog $dir/$dlname \$dldir/$dlname~
11862 chmod a+x \$dldir/$dlname~
11863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11865 fi'
11866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11867 dlpath=$dir/\$dldll~
11868 $RM \$dlpath'
11869 ;;
11870
11871 osf3* | osf4* | osf5*)
11872 version_type=osf
11873 need_lib_prefix=no
11874 need_version=no
11875 soname_spec='$libname$release$shared_ext$major'
11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11880 ;;
11881
11882 rdos*)
11883 dynamic_linker=no
11884 ;;
11885
11886 solaris*)
11887 version_type=linux # correct to gnu/linux during the next big refactor
11888 need_lib_prefix=no
11889 need_version=no
11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891 soname_spec='$libname$release$shared_ext$major'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=yes
11894 hardcode_into_libs=yes
11895 # ldd complains unless libraries are executable
11896 postinstall_cmds='chmod +x $lib'
11897 ;;
11898
11899 sunos4*)
11900 version_type=sunos
11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=yes
11905 if test yes = "$with_gnu_ld"; then
11906 need_lib_prefix=no
11907 fi
11908 need_version=yes
11909 ;;
11910
11911 sysv4 | sysv4.3*)
11912 version_type=linux # correct to gnu/linux during the next big refactor
11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11914 soname_spec='$libname$release$shared_ext$major'
11915 shlibpath_var=LD_LIBRARY_PATH
11916 case $host_vendor in
11917 sni)
11918 shlibpath_overrides_runpath=no
11919 need_lib_prefix=no
11920 runpath_var=LD_RUN_PATH
11921 ;;
11922 siemens)
11923 need_lib_prefix=no
11924 ;;
11925 motorola)
11926 need_lib_prefix=no
11927 need_version=no
11928 shlibpath_overrides_runpath=no
11929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11930 ;;
11931 esac
11932 ;;
11933
11934 sysv4*MP*)
11935 if test -d /usr/nec; then
11936 version_type=linux # correct to gnu/linux during the next big refactor
11937 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11938 soname_spec='$libname$shared_ext.$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 fi
11941 ;;
11942
11943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11944 version_type=sco
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11948 soname_spec='$libname$release$shared_ext$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11951 hardcode_into_libs=yes
11952 if test yes = "$with_gnu_ld"; then
11953 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11954 else
11955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11956 case $host_os in
11957 sco3.2v5*)
11958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11959 ;;
11960 esac
11961 fi
11962 sys_lib_dlsearch_path_spec='/usr/lib'
11963 ;;
11964
11965 tpf*)
11966 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11967 version_type=linux # correct to gnu/linux during the next big refactor
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=no
11973 hardcode_into_libs=yes
11974 ;;
11975
11976 uts4*)
11977 version_type=linux # correct to gnu/linux during the next big refactor
11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979 soname_spec='$libname$release$shared_ext$major'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 ;;
11982
11983 *)
11984 dynamic_linker=no
11985 ;;
11986 esac
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11988 $as_echo "$dynamic_linker" >&6; }
11989 test no = "$dynamic_linker" && can_build_shared=no
11990
11991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11992 if test yes = "$GCC"; then
11993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11994 fi
11995
11996 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11997 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11998 fi
11999
12000 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12001 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12002 fi
12003
12004 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12005 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12006
12007 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12008 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12009
12010 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12011 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12110 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12111 hardcode_action=
12112 if test -n "$hardcode_libdir_flag_spec" ||
12113 test -n "$runpath_var" ||
12114 test yes = "$hardcode_automatic"; then
12115
12116 # We can hardcode non-existent directories.
12117 if test no != "$hardcode_direct" &&
12118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12119 # have to relink, otherwise we might link with an installed library
12120 # when we should be linking with a yet-to-be-installed one
12121 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12122 test no != "$hardcode_minus_L"; then
12123 # Linking always hardcodes the temporary library directory.
12124 hardcode_action=relink
12125 else
12126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12127 hardcode_action=immediate
12128 fi
12129 else
12130 # We cannot hardcode anything, or else we can only hardcode existing
12131 # directories.
12132 hardcode_action=unsupported
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12135 $as_echo "$hardcode_action" >&6; }
12136
12137 if test relink = "$hardcode_action" ||
12138 test yes = "$inherit_rpath"; then
12139 # Fast installation is not supported
12140 enable_fast_install=no
12141 elif test yes = "$shlibpath_overrides_runpath" ||
12142 test no = "$enable_shared"; then
12143 # Fast installation is not necessary
12144 enable_fast_install=needless
12145 fi
12146
12147
12148
12149
12150
12151
12152 if test yes != "$enable_dlopen"; then
12153 enable_dlopen=unknown
12154 enable_dlopen_self=unknown
12155 enable_dlopen_self_static=unknown
12156 else
12157 lt_cv_dlopen=no
12158 lt_cv_dlopen_libs=
12159
12160 case $host_os in
12161 beos*)
12162 lt_cv_dlopen=load_add_on
12163 lt_cv_dlopen_libs=
12164 lt_cv_dlopen_self=yes
12165 ;;
12166
12167 mingw* | pw32* | cegcc*)
12168 lt_cv_dlopen=LoadLibrary
12169 lt_cv_dlopen_libs=
12170 ;;
12171
12172 cygwin*)
12173 lt_cv_dlopen=dlopen
12174 lt_cv_dlopen_libs=
12175 ;;
12176
12177 darwin*)
12178 # if libdl is installed we need to link against it
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12181 if ${ac_cv_lib_dl_dlopen+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldl $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char dlopen ();
12196 int
12197 main ()
12198 {
12199 return dlopen ();
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_dl_dlopen=yes
12206 else
12207 ac_cv_lib_dl_dlopen=no
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12212 fi
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12214 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12215 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12216 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12217 else
12218
12219 lt_cv_dlopen=dyld
12220 lt_cv_dlopen_libs=
12221 lt_cv_dlopen_self=yes
12222
12223 fi
12224
12225 ;;
12226
12227 tpf*)
12228 # Don't try to run any link tests for TPF. We know it's impossible
12229 # because TPF is a cross-compiler, and we know how we open DSOs.
12230 lt_cv_dlopen=dlopen
12231 lt_cv_dlopen_libs=
12232 lt_cv_dlopen_self=no
12233 ;;
12234
12235 *)
12236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12237 if test "x$ac_cv_func_shl_load" = xyes; then :
12238 lt_cv_dlopen=shl_load
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12241 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12242 if ${ac_cv_lib_dld_shl_load+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-ldld $LIBS"
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char shl_load ();
12257 int
12258 main ()
12259 {
12260 return shl_load ();
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12266 ac_cv_lib_dld_shl_load=yes
12267 else
12268 ac_cv_lib_dld_shl_load=no
12269 fi
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12275 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12276 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12277 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12278 else
12279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12280 if test "x$ac_cv_func_dlopen" = xyes; then :
12281 lt_cv_dlopen=dlopen
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12284 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12285 if ${ac_cv_lib_dl_dlopen+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-ldl $LIBS"
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292
12293 /* Override any GCC internal prototype to avoid an error.
12294 Use char because int might match the return type of a GCC
12295 builtin and then its argument prototype would still apply. */
12296 #ifdef __cplusplus
12297 extern "C"
12298 #endif
12299 char dlopen ();
12300 int
12301 main ()
12302 {
12303 return dlopen ();
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_lib_dl_dlopen=yes
12310 else
12311 ac_cv_lib_dl_dlopen=no
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12320 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12323 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12324 if ${ac_cv_lib_svld_dlopen+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lsvld $LIBS"
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char dlopen ();
12339 int
12340 main ()
12341 {
12342 return dlopen ();
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_link "$LINENO"; then :
12348 ac_cv_lib_svld_dlopen=yes
12349 else
12350 ac_cv_lib_svld_dlopen=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12357 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12358 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12359 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12362 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12363 if ${ac_cv_lib_dld_dld_link+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-ldld $LIBS"
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12374 #ifdef __cplusplus
12375 extern "C"
12376 #endif
12377 char dld_link ();
12378 int
12379 main ()
12380 {
12381 return dld_link ();
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_c_try_link "$LINENO"; then :
12387 ac_cv_lib_dld_dld_link=yes
12388 else
12389 ac_cv_lib_dld_dld_link=no
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS=$ac_check_lib_save_LIBS
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12396 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12397 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12398 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12399 fi
12400
12401
12402 fi
12403
12404
12405 fi
12406
12407
12408 fi
12409
12410
12411 fi
12412
12413
12414 fi
12415
12416 ;;
12417 esac
12418
12419 if test no = "$lt_cv_dlopen"; then
12420 enable_dlopen=no
12421 else
12422 enable_dlopen=yes
12423 fi
12424
12425 case $lt_cv_dlopen in
12426 dlopen)
12427 save_CPPFLAGS=$CPPFLAGS
12428 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12429
12430 save_LDFLAGS=$LDFLAGS
12431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12432
12433 save_LIBS=$LIBS
12434 LIBS="$lt_cv_dlopen_libs $LIBS"
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12437 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12438 if ${lt_cv_dlopen_self+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test yes = "$cross_compiling"; then :
12442 lt_cv_dlopen_self=cross
12443 else
12444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12445 lt_status=$lt_dlunknown
12446 cat > conftest.$ac_ext <<_LT_EOF
12447 #line $LINENO "configure"
12448 #include "confdefs.h"
12449
12450 #if HAVE_DLFCN_H
12451 #include <dlfcn.h>
12452 #endif
12453
12454 #include <stdio.h>
12455
12456 #ifdef RTLD_GLOBAL
12457 # define LT_DLGLOBAL RTLD_GLOBAL
12458 #else
12459 # ifdef DL_GLOBAL
12460 # define LT_DLGLOBAL DL_GLOBAL
12461 # else
12462 # define LT_DLGLOBAL 0
12463 # endif
12464 #endif
12465
12466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12467 find out it does not work in some platform. */
12468 #ifndef LT_DLLAZY_OR_NOW
12469 # ifdef RTLD_LAZY
12470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12471 # else
12472 # ifdef DL_LAZY
12473 # define LT_DLLAZY_OR_NOW DL_LAZY
12474 # else
12475 # ifdef RTLD_NOW
12476 # define LT_DLLAZY_OR_NOW RTLD_NOW
12477 # else
12478 # ifdef DL_NOW
12479 # define LT_DLLAZY_OR_NOW DL_NOW
12480 # else
12481 # define LT_DLLAZY_OR_NOW 0
12482 # endif
12483 # endif
12484 # endif
12485 # endif
12486 #endif
12487
12488 /* When -fvisibility=hidden is used, assume the code has been annotated
12489 correspondingly for the symbols needed. */
12490 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12491 int fnord () __attribute__((visibility("default")));
12492 #endif
12493
12494 int fnord () { return 42; }
12495 int main ()
12496 {
12497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498 int status = $lt_dlunknown;
12499
12500 if (self)
12501 {
12502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12503 else
12504 {
12505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12506 else puts (dlerror ());
12507 }
12508 /* dlclose (self); */
12509 }
12510 else
12511 puts (dlerror ());
12512
12513 return status;
12514 }
12515 _LT_EOF
12516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12517 (eval $ac_link) 2>&5
12518 ac_status=$?
12519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12521 (./conftest; exit; ) >&5 2>/dev/null
12522 lt_status=$?
12523 case x$lt_status in
12524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12526 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12527 esac
12528 else :
12529 # compilation failed
12530 lt_cv_dlopen_self=no
12531 fi
12532 fi
12533 rm -fr conftest*
12534
12535
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12538 $as_echo "$lt_cv_dlopen_self" >&6; }
12539
12540 if test yes = "$lt_cv_dlopen_self"; then
12541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12543 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12544 if ${lt_cv_dlopen_self_static+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 if test yes = "$cross_compiling"; then :
12548 lt_cv_dlopen_self_static=cross
12549 else
12550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12551 lt_status=$lt_dlunknown
12552 cat > conftest.$ac_ext <<_LT_EOF
12553 #line $LINENO "configure"
12554 #include "confdefs.h"
12555
12556 #if HAVE_DLFCN_H
12557 #include <dlfcn.h>
12558 #endif
12559
12560 #include <stdio.h>
12561
12562 #ifdef RTLD_GLOBAL
12563 # define LT_DLGLOBAL RTLD_GLOBAL
12564 #else
12565 # ifdef DL_GLOBAL
12566 # define LT_DLGLOBAL DL_GLOBAL
12567 # else
12568 # define LT_DLGLOBAL 0
12569 # endif
12570 #endif
12571
12572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12573 find out it does not work in some platform. */
12574 #ifndef LT_DLLAZY_OR_NOW
12575 # ifdef RTLD_LAZY
12576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12577 # else
12578 # ifdef DL_LAZY
12579 # define LT_DLLAZY_OR_NOW DL_LAZY
12580 # else
12581 # ifdef RTLD_NOW
12582 # define LT_DLLAZY_OR_NOW RTLD_NOW
12583 # else
12584 # ifdef DL_NOW
12585 # define LT_DLLAZY_OR_NOW DL_NOW
12586 # else
12587 # define LT_DLLAZY_OR_NOW 0
12588 # endif
12589 # endif
12590 # endif
12591 # endif
12592 #endif
12593
12594 /* When -fvisibility=hidden is used, assume the code has been annotated
12595 correspondingly for the symbols needed. */
12596 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12597 int fnord () __attribute__((visibility("default")));
12598 #endif
12599
12600 int fnord () { return 42; }
12601 int main ()
12602 {
12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604 int status = $lt_dlunknown;
12605
12606 if (self)
12607 {
12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12609 else
12610 {
12611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12612 else puts (dlerror ());
12613 }
12614 /* dlclose (self); */
12615 }
12616 else
12617 puts (dlerror ());
12618
12619 return status;
12620 }
12621 _LT_EOF
12622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12623 (eval $ac_link) 2>&5
12624 ac_status=$?
12625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12626 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12627 (./conftest; exit; ) >&5 2>/dev/null
12628 lt_status=$?
12629 case x$lt_status in
12630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12633 esac
12634 else :
12635 # compilation failed
12636 lt_cv_dlopen_self_static=no
12637 fi
12638 fi
12639 rm -fr conftest*
12640
12641
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12644 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12645 fi
12646
12647 CPPFLAGS=$save_CPPFLAGS
12648 LDFLAGS=$save_LDFLAGS
12649 LIBS=$save_LIBS
12650 ;;
12651 esac
12652
12653 case $lt_cv_dlopen_self in
12654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12655 *) enable_dlopen_self=unknown ;;
12656 esac
12657
12658 case $lt_cv_dlopen_self_static in
12659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12660 *) enable_dlopen_self_static=unknown ;;
12661 esac
12662 fi
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680 striplib=
12681 old_striplib=
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12683 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12684 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688 $as_echo "yes" >&6; }
12689 else
12690 # FIXME - insert some real tests, host_os isn't really good enough
12691 case $host_os in
12692 darwin*)
12693 if test -n "$STRIP"; then
12694 striplib="$STRIP -x"
12695 old_striplib="$STRIP -S"
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12697 $as_echo "yes" >&6; }
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 fi
12702 ;;
12703 *)
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 ;;
12707 esac
12708 fi
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721 # Report what library types will actually be built
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12723 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12725 $as_echo "$can_build_shared" >&6; }
12726
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12728 $as_echo_n "checking whether to build shared libraries... " >&6; }
12729 test no = "$can_build_shared" && enable_shared=no
12730
12731 # On AIX, shared libraries and static libraries use the same namespace, and
12732 # are all built from PIC.
12733 case $host_os in
12734 aix3*)
12735 test yes = "$enable_shared" && enable_static=no
12736 if test -n "$RANLIB"; then
12737 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12738 postinstall_cmds='$RANLIB $lib'
12739 fi
12740 ;;
12741
12742 aix[4-9]*)
12743 if test ia64 != "$host_cpu"; then
12744 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12745 yes,aix,yes) ;; # shared object as lib.so file only
12746 yes,svr4,*) ;; # shared object as lib.so archive member only
12747 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12748 esac
12749 fi
12750 ;;
12751 esac
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12753 $as_echo "$enable_shared" >&6; }
12754
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12756 $as_echo_n "checking whether to build static libraries... " >&6; }
12757 # Make sure either enable_shared or enable_static is yes.
12758 test yes = "$enable_shared" || enable_static=yes
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12760 $as_echo "$enable_static" >&6; }
12761
12762
12763
12764
12765 fi
12766 ac_ext=cpp
12767 ac_cpp='$CXXCPP $CPPFLAGS'
12768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12771
12772 CC=$lt_save_CC
12773
12774 if test -n "$CXX" && ( test no != "$CXX" &&
12775 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12776 (test g++ != "$CXX"))); then
12777 ac_ext=cpp
12778 ac_cpp='$CXXCPP $CPPFLAGS'
12779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12783 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12784 if test -z "$CXXCPP"; then
12785 if ${ac_cv_prog_CXXCPP+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 # Double quotes because CXXCPP needs to be expanded
12789 for CXXCPP in "$CXX -E" "/lib/cpp"
12790 do
12791 ac_preproc_ok=false
12792 for ac_cxx_preproc_warn_flag in '' yes
12793 do
12794 # Use a header file that comes with gcc, so configuring glibc
12795 # with a fresh cross-compiler works.
12796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12797 # <limits.h> exists even on freestanding compilers.
12798 # On the NeXT, cc -E runs the code through the compiler's parser,
12799 # not just through cpp. "Syntax error" is here to catch this case.
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12807 Syntax error
12808 _ACEOF
12809 if ac_fn_cxx_try_cpp "$LINENO"; then :
12810
12811 else
12812 # Broken: fails on valid input.
12813 continue
12814 fi
12815 rm -f conftest.err conftest.i conftest.$ac_ext
12816
12817 # OK, works on sane cases. Now check whether nonexistent headers
12818 # can be detected and how.
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 #include <ac_nonexistent.h>
12822 _ACEOF
12823 if ac_fn_cxx_try_cpp "$LINENO"; then :
12824 # Broken: success on invalid input.
12825 continue
12826 else
12827 # Passes both tests.
12828 ac_preproc_ok=:
12829 break
12830 fi
12831 rm -f conftest.err conftest.i conftest.$ac_ext
12832
12833 done
12834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12835 rm -f conftest.i conftest.err conftest.$ac_ext
12836 if $ac_preproc_ok; then :
12837 break
12838 fi
12839
12840 done
12841 ac_cv_prog_CXXCPP=$CXXCPP
12842
12843 fi
12844 CXXCPP=$ac_cv_prog_CXXCPP
12845 else
12846 ac_cv_prog_CXXCPP=$CXXCPP
12847 fi
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12849 $as_echo "$CXXCPP" >&6; }
12850 ac_preproc_ok=false
12851 for ac_cxx_preproc_warn_flag in '' yes
12852 do
12853 # Use a header file that comes with gcc, so configuring glibc
12854 # with a fresh cross-compiler works.
12855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12856 # <limits.h> exists even on freestanding compilers.
12857 # On the NeXT, cc -E runs the code through the compiler's parser,
12858 # not just through cpp. "Syntax error" is here to catch this case.
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 #ifdef __STDC__
12862 # include <limits.h>
12863 #else
12864 # include <assert.h>
12865 #endif
12866 Syntax error
12867 _ACEOF
12868 if ac_fn_cxx_try_cpp "$LINENO"; then :
12869
12870 else
12871 # Broken: fails on valid input.
12872 continue
12873 fi
12874 rm -f conftest.err conftest.i conftest.$ac_ext
12875
12876 # OK, works on sane cases. Now check whether nonexistent headers
12877 # can be detected and how.
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <ac_nonexistent.h>
12881 _ACEOF
12882 if ac_fn_cxx_try_cpp "$LINENO"; then :
12883 # Broken: success on invalid input.
12884 continue
12885 else
12886 # Passes both tests.
12887 ac_preproc_ok=:
12888 break
12889 fi
12890 rm -f conftest.err conftest.i conftest.$ac_ext
12891
12892 done
12893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12894 rm -f conftest.i conftest.err conftest.$ac_ext
12895 if $ac_preproc_ok; then :
12896
12897 else
12898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12900 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12901 See \`config.log' for more details" "$LINENO" 5; }
12902 fi
12903
12904 ac_ext=cpp
12905 ac_cpp='$CXXCPP $CPPFLAGS'
12906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12909
12910 else
12911 _lt_caught_CXX_error=yes
12912 fi
12913
12914 ac_ext=cpp
12915 ac_cpp='$CXXCPP $CPPFLAGS'
12916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12919
12920 archive_cmds_need_lc_CXX=no
12921 allow_undefined_flag_CXX=
12922 always_export_symbols_CXX=no
12923 archive_expsym_cmds_CXX=
12924 compiler_needs_object_CXX=no
12925 export_dynamic_flag_spec_CXX=
12926 hardcode_direct_CXX=no
12927 hardcode_direct_absolute_CXX=no
12928 hardcode_libdir_flag_spec_CXX=
12929 hardcode_libdir_separator_CXX=
12930 hardcode_minus_L_CXX=no
12931 hardcode_shlibpath_var_CXX=unsupported
12932 hardcode_automatic_CXX=no
12933 inherit_rpath_CXX=no
12934 module_cmds_CXX=
12935 module_expsym_cmds_CXX=
12936 link_all_deplibs_CXX=unknown
12937 old_archive_cmds_CXX=$old_archive_cmds
12938 reload_flag_CXX=$reload_flag
12939 reload_cmds_CXX=$reload_cmds
12940 no_undefined_flag_CXX=
12941 whole_archive_flag_spec_CXX=
12942 enable_shared_with_static_runtimes_CXX=no
12943
12944 # Source file extension for C++ test sources.
12945 ac_ext=cpp
12946
12947 # Object file extension for compiled C++ test sources.
12948 objext=o
12949 objext_CXX=$objext
12950
12951 # No sense in running all these tests if we already determined that
12952 # the CXX compiler isn't working. Some variables (like enable_shared)
12953 # are currently assumed to apply to all compilers on this platform,
12954 # and will be corrupted by setting them based on a non-working compiler.
12955 if test yes != "$_lt_caught_CXX_error"; then
12956 # Code to be used in simple compile tests
12957 lt_simple_compile_test_code="int some_variable = 0;"
12958
12959 # Code to be used in simple link tests
12960 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12961
12962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12963
12964
12965
12966
12967
12968
12969 # If no C compiler was specified, use CC.
12970 LTCC=${LTCC-"$CC"}
12971
12972 # If no C compiler flags were specified, use CFLAGS.
12973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974
12975 # Allow CC to be a program name with arguments.
12976 compiler=$CC
12977
12978
12979 # save warnings/boilerplate of simple test code
12980 ac_outfile=conftest.$ac_objext
12981 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12982 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12983 _lt_compiler_boilerplate=`cat conftest.err`
12984 $RM conftest*
12985
12986 ac_outfile=conftest.$ac_objext
12987 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12988 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12989 _lt_linker_boilerplate=`cat conftest.err`
12990 $RM -r conftest*
12991
12992
12993 # Allow CC to be a program name with arguments.
12994 lt_save_CC=$CC
12995 lt_save_CFLAGS=$CFLAGS
12996 lt_save_LD=$LD
12997 lt_save_GCC=$GCC
12998 GCC=$GXX
12999 lt_save_with_gnu_ld=$with_gnu_ld
13000 lt_save_path_LD=$lt_cv_path_LD
13001 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13002 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13003 else
13004 $as_unset lt_cv_prog_gnu_ld
13005 fi
13006 if test -n "${lt_cv_path_LDCXX+set}"; then
13007 lt_cv_path_LD=$lt_cv_path_LDCXX
13008 else
13009 $as_unset lt_cv_path_LD
13010 fi
13011 test -z "${LDCXX+set}" || LD=$LDCXX
13012 CC=${CXX-"c++"}
13013 CFLAGS=$CXXFLAGS
13014 compiler=$CC
13015 compiler_CXX=$CC
13016 func_cc_basename $compiler
13017 cc_basename=$func_cc_basename_result
13018
13019
13020 if test -n "$compiler"; then
13021 # We don't want -fno-exception when compiling C++ code, so set the
13022 # no_builtin_flag separately
13023 if test yes = "$GXX"; then
13024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13025 else
13026 lt_prog_compiler_no_builtin_flag_CXX=
13027 fi
13028
13029 if test yes = "$GXX"; then
13030 # Set up default GNU C++ configuration
13031
13032
13033
13034 # Check whether --with-gnu-ld was given.
13035 if test "${with_gnu_ld+set}" = set; then :
13036 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13037 else
13038 with_gnu_ld=no
13039 fi
13040
13041 ac_prog=ld
13042 if test yes = "$GCC"; then
13043 # Check if gcc -print-prog-name=ld gives a path.
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13045 $as_echo_n "checking for ld used by $CC... " >&6; }
13046 case $host in
13047 *-*-mingw*)
13048 # gcc leaves a trailing carriage return, which upsets mingw
13049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13050 *)
13051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13052 esac
13053 case $ac_prog in
13054 # Accept absolute paths.
13055 [\\/]* | ?:[\\/]*)
13056 re_direlt='/[^/][^/]*/\.\./'
13057 # Canonicalize the pathname of ld
13058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13061 done
13062 test -z "$LD" && LD=$ac_prog
13063 ;;
13064 "")
13065 # If it fails, then pretend we aren't using GCC.
13066 ac_prog=ld
13067 ;;
13068 *)
13069 # If it is relative, then search for the first ld in PATH.
13070 with_gnu_ld=unknown
13071 ;;
13072 esac
13073 elif test yes = "$with_gnu_ld"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13075 $as_echo_n "checking for GNU ld... " >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13078 $as_echo_n "checking for non-GNU ld... " >&6; }
13079 fi
13080 if ${lt_cv_path_LD+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 if test -z "$LD"; then
13084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13085 for ac_dir in $PATH; do
13086 IFS=$lt_save_ifs
13087 test -z "$ac_dir" && ac_dir=.
13088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13089 lt_cv_path_LD=$ac_dir/$ac_prog
13090 # Check to see if the program is GNU ld. I'd rather use --version,
13091 # but apparently some variants of GNU ld only accept -v.
13092 # Break only if it was the GNU/non-GNU ld that we prefer.
13093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13094 *GNU* | *'with BFD'*)
13095 test no != "$with_gnu_ld" && break
13096 ;;
13097 *)
13098 test yes != "$with_gnu_ld" && break
13099 ;;
13100 esac
13101 fi
13102 done
13103 IFS=$lt_save_ifs
13104 else
13105 lt_cv_path_LD=$LD # Let the user override the test with a path.
13106 fi
13107 fi
13108
13109 LD=$lt_cv_path_LD
13110 if test -n "$LD"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13112 $as_echo "$LD" >&6; }
13113 else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116 fi
13117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13120 if ${lt_cv_prog_gnu_ld+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13124 case `$LD -v 2>&1 </dev/null` in
13125 *GNU* | *'with BFD'*)
13126 lt_cv_prog_gnu_ld=yes
13127 ;;
13128 *)
13129 lt_cv_prog_gnu_ld=no
13130 ;;
13131 esac
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13135 with_gnu_ld=$lt_cv_prog_gnu_ld
13136
13137
13138
13139
13140
13141
13142
13143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13144 # archiving commands below assume that GNU ld is being used.
13145 if test yes = "$with_gnu_ld"; then
13146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13147 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'
13148
13149 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13150 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13151
13152 # If archive_cmds runs LD, not CC, wlarc should be empty
13153 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13154 # investigate it a little bit more. (MM)
13155 wlarc='$wl'
13156
13157 # ancient GNU ld didn't support --whole-archive et. al.
13158 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13159 $GREP 'no-whole-archive' > /dev/null; then
13160 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13161 else
13162 whole_archive_flag_spec_CXX=
13163 fi
13164 else
13165 with_gnu_ld=no
13166 wlarc=
13167
13168 # A generic and very simple default shared library creation
13169 # command for GNU C++ for the case where it uses the native
13170 # linker, instead of GNU ld. If possible, this setting should
13171 # overridden to take advantage of the native linker features on
13172 # the platform it is being used on.
13173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13174 fi
13175
13176 # Commands to make compiler produce verbose output that lists
13177 # what "hidden" libraries, object files and flags are used when
13178 # linking a shared library.
13179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13180
13181 else
13182 GXX=no
13183 with_gnu_ld=no
13184 wlarc=
13185 fi
13186
13187 # PORTME: fill in a description of your system's C++ link characteristics
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13190 ld_shlibs_CXX=yes
13191 case $host_os in
13192 aix3*)
13193 # FIXME: insert proper C++ library support
13194 ld_shlibs_CXX=no
13195 ;;
13196 aix[4-9]*)
13197 if test ia64 = "$host_cpu"; then
13198 # On IA64, the linker does run time linking by default, so we don't
13199 # have to do anything special.
13200 aix_use_runtimelinking=no
13201 exp_sym_flag='-Bexport'
13202 no_entry_flag=
13203 else
13204 aix_use_runtimelinking=no
13205
13206 # Test if we are trying to use run time linking or normal
13207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13208 # have runtime linking enabled, and use it for executables.
13209 # For shared libraries, we enable/disable runtime linking
13210 # depending on the kind of the shared library created -
13211 # when "with_aix_soname,aix_use_runtimelinking" is:
13212 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13213 # "aix,yes" lib.so shared, rtl:yes, for executables
13214 # lib.a static archive
13215 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13216 # lib.a(lib.so.V) shared, rtl:no, for executables
13217 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13218 # lib.a(lib.so.V) shared, rtl:no
13219 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13220 # lib.a static archive
13221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13222 for ld_flag in $LDFLAGS; do
13223 case $ld_flag in
13224 *-brtl*)
13225 aix_use_runtimelinking=yes
13226 break
13227 ;;
13228 esac
13229 done
13230 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13231 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13232 # so we don't have lib.a shared libs to link our executables.
13233 # We have to force runtime linking in this case.
13234 aix_use_runtimelinking=yes
13235 LDFLAGS="$LDFLAGS -Wl,-brtl"
13236 fi
13237 ;;
13238 esac
13239
13240 exp_sym_flag='-bexport'
13241 no_entry_flag='-bnoentry'
13242 fi
13243
13244 # When large executables or shared objects are built, AIX ld can
13245 # have problems creating the table of contents. If linking a library
13246 # or program results in "error TOC overflow" add -mminimal-toc to
13247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13249
13250 archive_cmds_CXX=''
13251 hardcode_direct_CXX=yes
13252 hardcode_direct_absolute_CXX=yes
13253 hardcode_libdir_separator_CXX=':'
13254 link_all_deplibs_CXX=yes
13255 file_list_spec_CXX='$wl-f,'
13256 case $with_aix_soname,$aix_use_runtimelinking in
13257 aix,*) ;; # no import file
13258 svr4,* | *,yes) # use import file
13259 # The Import File defines what to hardcode.
13260 hardcode_direct_CXX=no
13261 hardcode_direct_absolute_CXX=no
13262 ;;
13263 esac
13264
13265 if test yes = "$GXX"; then
13266 case $host_os in aix4.[012]|aix4.[012].*)
13267 # We only want to do this on AIX 4.2 and lower, the check
13268 # below for broken collect2 doesn't work under 4.3+
13269 collect2name=`$CC -print-prog-name=collect2`
13270 if test -f "$collect2name" &&
13271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13272 then
13273 # We have reworked collect2
13274 :
13275 else
13276 # We have old collect2
13277 hardcode_direct_CXX=unsupported
13278 # It fails to find uninstalled libraries when the uninstalled
13279 # path is not listed in the libpath. Setting hardcode_minus_L
13280 # to unsupported forces relinking
13281 hardcode_minus_L_CXX=yes
13282 hardcode_libdir_flag_spec_CXX='-L$libdir'
13283 hardcode_libdir_separator_CXX=
13284 fi
13285 esac
13286 shared_flag='-shared'
13287 if test yes = "$aix_use_runtimelinking"; then
13288 shared_flag=$shared_flag' $wl-G'
13289 fi
13290 # Need to ensure runtime linking is disabled for the traditional
13291 # shared library, or the linker may eventually find shared libraries
13292 # /with/ Import File - we do not want to mix them.
13293 shared_flag_aix='-shared'
13294 shared_flag_svr4='-shared $wl-G'
13295 else
13296 # not using gcc
13297 if test ia64 = "$host_cpu"; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13300 shared_flag='-G'
13301 else
13302 if test yes = "$aix_use_runtimelinking"; then
13303 shared_flag='$wl-G'
13304 else
13305 shared_flag='$wl-bM:SRE'
13306 fi
13307 shared_flag_aix='$wl-bM:SRE'
13308 shared_flag_svr4='$wl-G'
13309 fi
13310 fi
13311
13312 export_dynamic_flag_spec_CXX='$wl-bexpall'
13313 # It seems that -bexpall does not export symbols beginning with
13314 # underscore (_), so it is better to generate a list of symbols to
13315 # export.
13316 always_export_symbols_CXX=yes
13317 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13318 # Warning - without using the other runtime loading flags (-brtl),
13319 # -berok will link without error, but may produce a broken library.
13320 # The "-G" linker flag allows undefined symbols.
13321 no_undefined_flag_CXX='-bernotok'
13322 # Determine the default libpath from the value encoded in an empty
13323 # executable.
13324 if test set = "${lt_cv_aix_libpath+set}"; then
13325 aix_libpath=$lt_cv_aix_libpath
13326 else
13327 if ${lt_cv_aix_libpath__CXX+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332
13333 int
13334 main ()
13335 {
13336
13337 ;
13338 return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_cxx_try_link "$LINENO"; then :
13342
13343 lt_aix_libpath_sed='
13344 /Import File Strings/,/^$/ {
13345 /^0/ {
13346 s/^0 *\([^ ]*\) *$/\1/
13347 p
13348 }
13349 }'
13350 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351 # Check for a 64-bit object if we didn't find anything.
13352 if test -z "$lt_cv_aix_libpath__CXX"; then
13353 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354 fi
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 if test -z "$lt_cv_aix_libpath__CXX"; then
13359 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13360 fi
13361
13362 fi
13363
13364 aix_libpath=$lt_cv_aix_libpath__CXX
13365 fi
13366
13367 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13368
13369 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
13370 else
13371 if test ia64 = "$host_cpu"; then
13372 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13373 allow_undefined_flag_CXX="-z nodefs"
13374 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"
13375 else
13376 # Determine the default libpath from the value encoded in an
13377 # empty executable.
13378 if test set = "${lt_cv_aix_libpath+set}"; then
13379 aix_libpath=$lt_cv_aix_libpath
13380 else
13381 if ${lt_cv_aix_libpath__CXX+:} false; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13386
13387 int
13388 main ()
13389 {
13390
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 if ac_fn_cxx_try_link "$LINENO"; then :
13396
13397 lt_aix_libpath_sed='
13398 /Import File Strings/,/^$/ {
13399 /^0/ {
13400 s/^0 *\([^ ]*\) *$/\1/
13401 p
13402 }
13403 }'
13404 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13405 # Check for a 64-bit object if we didn't find anything.
13406 if test -z "$lt_cv_aix_libpath__CXX"; then
13407 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13408 fi
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 if test -z "$lt_cv_aix_libpath__CXX"; then
13413 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13414 fi
13415
13416 fi
13417
13418 aix_libpath=$lt_cv_aix_libpath__CXX
13419 fi
13420
13421 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13422 # Warning - without using the other run time loading flags,
13423 # -berok will link without error, but may produce a broken library.
13424 no_undefined_flag_CXX=' $wl-bernotok'
13425 allow_undefined_flag_CXX=' $wl-berok'
13426 if test yes = "$with_gnu_ld"; then
13427 # We only use this code for GNU lds that support --whole-archive.
13428 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13429 else
13430 # Exported symbols can be pulled into shared objects from archives
13431 whole_archive_flag_spec_CXX='$convenience'
13432 fi
13433 archive_cmds_need_lc_CXX=yes
13434 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13435 # -brtl affects multiple linker settings, -berok does not and is overridden later
13436 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13437 if test svr4 != "$with_aix_soname"; then
13438 # This is similar to how AIX traditionally builds its shared
13439 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13440 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'
13441 fi
13442 if test aix != "$with_aix_soname"; then
13443 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'
13444 else
13445 # used by -dlpreopen to get the symbols
13446 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13447 fi
13448 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13449 fi
13450 fi
13451 ;;
13452
13453 beos*)
13454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13455 allow_undefined_flag_CXX=unsupported
13456 # Joseph Beckenbach <[email protected]> says some releases of gcc
13457 # support --undefined. This deserves some investigation. FIXME
13458 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13459 else
13460 ld_shlibs_CXX=no
13461 fi
13462 ;;
13463
13464 chorus*)
13465 case $cc_basename in
13466 *)
13467 # FIXME: insert proper C++ library support
13468 ld_shlibs_CXX=no
13469 ;;
13470 esac
13471 ;;
13472
13473 cygwin* | mingw* | pw32* | cegcc*)
13474 case $GXX,$cc_basename in
13475 ,cl* | no,cl*)
13476 # Native MSVC
13477 # hardcode_libdir_flag_spec is actually meaningless, as there is
13478 # no search path for DLLs.
13479 hardcode_libdir_flag_spec_CXX=' '
13480 allow_undefined_flag_CXX=unsupported
13481 always_export_symbols_CXX=yes
13482 file_list_spec_CXX='@'
13483 # Tell ltmain to make .lib files, not .a files.
13484 libext=lib
13485 # Tell ltmain to make .dll files, not .so files.
13486 shrext_cmds=.dll
13487 # FIXME: Setting linknames here is a bad hack.
13488 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13489 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13490 cp "$export_symbols" "$output_objdir/$soname.def";
13491 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13492 else
13493 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13494 fi~
13495 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13496 linknames='
13497 # The linker will not automatically build a static lib if we build a DLL.
13498 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13499 enable_shared_with_static_runtimes_CXX=yes
13500 # Don't use ranlib
13501 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13502 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13503 lt_tool_outputfile="@TOOL_OUTPUT@"~
13504 case $lt_outputfile in
13505 *.exe|*.EXE) ;;
13506 *)
13507 lt_outputfile=$lt_outputfile.exe
13508 lt_tool_outputfile=$lt_tool_outputfile.exe
13509 ;;
13510 esac~
13511 func_to_tool_file "$lt_outputfile"~
13512 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13513 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13514 $RM "$lt_outputfile.manifest";
13515 fi'
13516 ;;
13517 *)
13518 # g++
13519 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13520 # as there is no search path for DLLs.
13521 hardcode_libdir_flag_spec_CXX='-L$libdir'
13522 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13523 allow_undefined_flag_CXX=unsupported
13524 always_export_symbols_CXX=no
13525 enable_shared_with_static_runtimes_CXX=yes
13526
13527 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13528 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'
13529 # If the export-symbols file already is a .def file, use it as
13530 # is; otherwise, prepend EXPORTS...
13531 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13532 cp $export_symbols $output_objdir/$soname.def;
13533 else
13534 echo EXPORTS > $output_objdir/$soname.def;
13535 cat $export_symbols >> $output_objdir/$soname.def;
13536 fi~
13537 $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'
13538 else
13539 ld_shlibs_CXX=no
13540 fi
13541 ;;
13542 esac
13543 ;;
13544 darwin* | rhapsody*)
13545
13546
13547 archive_cmds_need_lc_CXX=no
13548 hardcode_direct_CXX=no
13549 hardcode_automatic_CXX=yes
13550 hardcode_shlibpath_var_CXX=unsupported
13551 if test yes = "$lt_cv_ld_force_load"; then
13552 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\"`'
13553
13554 else
13555 whole_archive_flag_spec_CXX=''
13556 fi
13557 link_all_deplibs_CXX=yes
13558 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13559 case $cc_basename in
13560 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13561 *) _lt_dar_can_shared=$GCC ;;
13562 esac
13563 if test yes = "$_lt_dar_can_shared"; then
13564 output_verbose_link_cmd=func_echo_all
13565 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"
13566 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13567 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"
13568 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"
13569 if test yes != "$lt_cv_apple_cc_single_mod"; then
13570 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"
13571 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"
13572 fi
13573
13574 else
13575 ld_shlibs_CXX=no
13576 fi
13577
13578 ;;
13579
13580 os2*)
13581 hardcode_libdir_flag_spec_CXX='-L$libdir'
13582 hardcode_minus_L_CXX=yes
13583 allow_undefined_flag_CXX=unsupported
13584 shrext_cmds=.dll
13585 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13586 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13587 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13588 $ECHO EXPORTS >> $output_objdir/$libname.def~
13589 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13591 emximp -o $lib $output_objdir/$libname.def'
13592 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13593 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13594 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13595 $ECHO EXPORTS >> $output_objdir/$libname.def~
13596 prefix_cmds="$SED"~
13597 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13598 prefix_cmds="$prefix_cmds -e 1d";
13599 fi~
13600 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13601 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13602 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13603 emximp -o $lib $output_objdir/$libname.def'
13604 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13605 enable_shared_with_static_runtimes_CXX=yes
13606 ;;
13607
13608 dgux*)
13609 case $cc_basename in
13610 ec++*)
13611 # FIXME: insert proper C++ library support
13612 ld_shlibs_CXX=no
13613 ;;
13614 ghcx*)
13615 # Green Hills C++ Compiler
13616 # FIXME: insert proper C++ library support
13617 ld_shlibs_CXX=no
13618 ;;
13619 *)
13620 # FIXME: insert proper C++ library support
13621 ld_shlibs_CXX=no
13622 ;;
13623 esac
13624 ;;
13625
13626 freebsd2.*)
13627 # C++ shared libraries reported to be fairly broken before
13628 # switch to ELF
13629 ld_shlibs_CXX=no
13630 ;;
13631
13632 freebsd-elf*)
13633 archive_cmds_need_lc_CXX=no
13634 ;;
13635
13636 freebsd* | dragonfly*)
13637 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13638 # conventions
13639 ld_shlibs_CXX=yes
13640 ;;
13641
13642 haiku*)
13643 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13644 link_all_deplibs_CXX=yes
13645 ;;
13646
13647 hpux9*)
13648 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13649 hardcode_libdir_separator_CXX=:
13650 export_dynamic_flag_spec_CXX='$wl-E'
13651 hardcode_direct_CXX=yes
13652 hardcode_minus_L_CXX=yes # Not in the search PATH,
13653 # but as the default
13654 # location of the library.
13655
13656 case $cc_basename in
13657 CC*)
13658 # FIXME: insert proper C++ library support
13659 ld_shlibs_CXX=no
13660 ;;
13661 aCC*)
13662 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'
13663 # Commands to make compiler produce verbose output that lists
13664 # what "hidden" libraries, object files and flags are used when
13665 # linking a shared library.
13666 #
13667 # There doesn't appear to be a way to prevent this compiler from
13668 # explicitly linking system object files so we need to strip them
13669 # from the output so that they don't get included in the library
13670 # dependencies.
13671 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"'
13672 ;;
13673 *)
13674 if test yes = "$GXX"; then
13675 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'
13676 else
13677 # FIXME: insert proper C++ library support
13678 ld_shlibs_CXX=no
13679 fi
13680 ;;
13681 esac
13682 ;;
13683
13684 hpux10*|hpux11*)
13685 if test no = "$with_gnu_ld"; then
13686 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13687 hardcode_libdir_separator_CXX=:
13688
13689 case $host_cpu in
13690 hppa*64*|ia64*)
13691 ;;
13692 *)
13693 export_dynamic_flag_spec_CXX='$wl-E'
13694 ;;
13695 esac
13696 fi
13697 case $host_cpu in
13698 hppa*64*|ia64*)
13699 hardcode_direct_CXX=no
13700 hardcode_shlibpath_var_CXX=no
13701 ;;
13702 *)
13703 hardcode_direct_CXX=yes
13704 hardcode_direct_absolute_CXX=yes
13705 hardcode_minus_L_CXX=yes # Not in the search PATH,
13706 # but as the default
13707 # location of the library.
13708 ;;
13709 esac
13710
13711 case $cc_basename in
13712 CC*)
13713 # FIXME: insert proper C++ library support
13714 ld_shlibs_CXX=no
13715 ;;
13716 aCC*)
13717 case $host_cpu in
13718 hppa*64*)
13719 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13720 ;;
13721 ia64*)
13722 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13723 ;;
13724 *)
13725 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 ;;
13727 esac
13728 # Commands to make compiler produce verbose output that lists
13729 # what "hidden" libraries, object files and flags are used when
13730 # linking a shared library.
13731 #
13732 # There doesn't appear to be a way to prevent this compiler from
13733 # explicitly linking system object files so we need to strip them
13734 # from the output so that they don't get included in the library
13735 # dependencies.
13736 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"'
13737 ;;
13738 *)
13739 if test yes = "$GXX"; then
13740 if test no = "$with_gnu_ld"; then
13741 case $host_cpu in
13742 hppa*64*)
13743 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13744 ;;
13745 ia64*)
13746 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13747 ;;
13748 *)
13749 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'
13750 ;;
13751 esac
13752 fi
13753 else
13754 # FIXME: insert proper C++ library support
13755 ld_shlibs_CXX=no
13756 fi
13757 ;;
13758 esac
13759 ;;
13760
13761 interix[3-9]*)
13762 hardcode_direct_CXX=no
13763 hardcode_shlibpath_var_CXX=no
13764 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13765 export_dynamic_flag_spec_CXX='$wl-E'
13766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13767 # Instead, shared libraries are loaded at an image base (0x10000000 by
13768 # default) and relocated if they conflict, which is a slow very memory
13769 # consuming and fragmenting process. To avoid this, we pick a random,
13770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13771 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13772 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'
13773 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'
13774 ;;
13775 irix5* | irix6*)
13776 case $cc_basename in
13777 CC*)
13778 # SGI C++
13779 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'
13780
13781 # Archives containing C++ object files must be created using
13782 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13783 # necessary to make sure instantiated templates are included
13784 # in the archive.
13785 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13786 ;;
13787 *)
13788 if test yes = "$GXX"; then
13789 if test no = "$with_gnu_ld"; then
13790 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'
13791 else
13792 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'
13793 fi
13794 fi
13795 link_all_deplibs_CXX=yes
13796 ;;
13797 esac
13798 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13799 hardcode_libdir_separator_CXX=:
13800 inherit_rpath_CXX=yes
13801 ;;
13802
13803 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13804 case $cc_basename in
13805 KCC*)
13806 # Kuck and Associates, Inc. (KAI) C++ Compiler
13807
13808 # KCC will only create a shared library if the output file
13809 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13810 # to its proper name (with version) after linking.
13811 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'
13812 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'
13813 # Commands to make compiler produce verbose output that lists
13814 # what "hidden" libraries, object files and flags are used when
13815 # linking a shared library.
13816 #
13817 # There doesn't appear to be a way to prevent this compiler from
13818 # explicitly linking system object files so we need to strip them
13819 # from the output so that they don't get included in the library
13820 # dependencies.
13821 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"'
13822
13823 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13824 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13825
13826 # Archives containing C++ object files must be created using
13827 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13828 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13829 ;;
13830 icpc* | ecpc* )
13831 # Intel C++
13832 with_gnu_ld=yes
13833 # version 8.0 and above of icpc choke on multiply defined symbols
13834 # if we add $predep_objects and $postdep_objects, however 7.1 and
13835 # earlier do not add the objects themselves.
13836 case `$CC -V 2>&1` in
13837 *"Version 7."*)
13838 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13839 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'
13840 ;;
13841 *) # Version 8.0 or newer
13842 tmp_idyn=
13843 case $host_cpu in
13844 ia64*) tmp_idyn=' -i_dynamic';;
13845 esac
13846 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13847 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'
13848 ;;
13849 esac
13850 archive_cmds_need_lc_CXX=no
13851 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13852 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13853 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13854 ;;
13855 pgCC* | pgcpp*)
13856 # Portland Group C++ compiler
13857 case `$CC -V` in
13858 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13859 prelink_cmds_CXX='tpldir=Template.dir~
13860 rm -rf $tpldir~
13861 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13862 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13863 old_archive_cmds_CXX='tpldir=Template.dir~
13864 rm -rf $tpldir~
13865 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13866 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13867 $RANLIB $oldlib'
13868 archive_cmds_CXX='tpldir=Template.dir~
13869 rm -rf $tpldir~
13870 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13871 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13872 archive_expsym_cmds_CXX='tpldir=Template.dir~
13873 rm -rf $tpldir~
13874 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13875 $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'
13876 ;;
13877 *) # Version 6 and above use weak symbols
13878 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13879 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'
13880 ;;
13881 esac
13882
13883 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13884 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13885 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'
13886 ;;
13887 cxx*)
13888 # Compaq C++
13889 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13890 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'
13891
13892 runpath_var=LD_RUN_PATH
13893 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13894 hardcode_libdir_separator_CXX=:
13895
13896 # Commands to make compiler produce verbose output that lists
13897 # what "hidden" libraries, object files and flags are used when
13898 # linking a shared library.
13899 #
13900 # There doesn't appear to be a way to prevent this compiler from
13901 # explicitly linking system object files so we need to strip them
13902 # from the output so that they don't get included in the library
13903 # dependencies.
13904 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'
13905 ;;
13906 xl* | mpixl* | bgxl*)
13907 # IBM XL 8.0 on PPC, with GNU ld
13908 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13909 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13910 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13911 if test yes = "$supports_anon_versioning"; then
13912 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13914 echo "local: *; };" >> $output_objdir/$libname.ver~
13915 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13916 fi
13917 ;;
13918 *)
13919 case `$CC -V 2>&1 | sed 5q` in
13920 *Sun\ C*)
13921 # Sun C++ 5.9
13922 no_undefined_flag_CXX=' -zdefs'
13923 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13924 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'
13925 hardcode_libdir_flag_spec_CXX='-R$libdir'
13926 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'
13927 compiler_needs_object_CXX=yes
13928
13929 # Not sure whether something based on
13930 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13931 # would be better.
13932 output_verbose_link_cmd='func_echo_all'
13933
13934 # Archives containing C++ object files must be created using
13935 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13936 # necessary to make sure instantiated templates are included
13937 # in the archive.
13938 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13939 ;;
13940 esac
13941 ;;
13942 esac
13943 ;;
13944
13945 lynxos*)
13946 # FIXME: insert proper C++ library support
13947 ld_shlibs_CXX=no
13948 ;;
13949
13950 m88k*)
13951 # FIXME: insert proper C++ library support
13952 ld_shlibs_CXX=no
13953 ;;
13954
13955 mvs*)
13956 case $cc_basename in
13957 cxx*)
13958 # FIXME: insert proper C++ library support
13959 ld_shlibs_CXX=no
13960 ;;
13961 *)
13962 # FIXME: insert proper C++ library support
13963 ld_shlibs_CXX=no
13964 ;;
13965 esac
13966 ;;
13967
13968 netbsd*)
13969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13970 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13971 wlarc=
13972 hardcode_libdir_flag_spec_CXX='-R$libdir'
13973 hardcode_direct_CXX=yes
13974 hardcode_shlibpath_var_CXX=no
13975 fi
13976 # Workaround some broken pre-1.5 toolchains
13977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13978 ;;
13979
13980 *nto* | *qnx*)
13981 ld_shlibs_CXX=yes
13982 ;;
13983
13984 openbsd* | bitrig*)
13985 if test -f /usr/libexec/ld.so; then
13986 hardcode_direct_CXX=yes
13987 hardcode_shlibpath_var_CXX=no
13988 hardcode_direct_absolute_CXX=yes
13989 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13990 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13991 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13992 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13993 export_dynamic_flag_spec_CXX='$wl-E'
13994 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13995 fi
13996 output_verbose_link_cmd=func_echo_all
13997 else
13998 ld_shlibs_CXX=no
13999 fi
14000 ;;
14001
14002 osf3* | osf4* | osf5*)
14003 case $cc_basename in
14004 KCC*)
14005 # Kuck and Associates, Inc. (KAI) C++ Compiler
14006
14007 # KCC will only create a shared library if the output file
14008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14009 # to its proper name (with version) after linking.
14010 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'
14011
14012 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14013 hardcode_libdir_separator_CXX=:
14014
14015 # Archives containing C++ object files must be created using
14016 # the KAI C++ compiler.
14017 case $host in
14018 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14019 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14020 esac
14021 ;;
14022 RCC*)
14023 # Rational C++ 2.4.1
14024 # FIXME: insert proper C++ library support
14025 ld_shlibs_CXX=no
14026 ;;
14027 cxx*)
14028 case $host in
14029 osf3*)
14030 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14031 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'
14032 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14033 ;;
14034 *)
14035 allow_undefined_flag_CXX=' -expect_unresolved \*'
14036 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'
14037 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14038 echo "-hidden">> $lib.exp~
14039 $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~
14040 $RM $lib.exp'
14041 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14042 ;;
14043 esac
14044
14045 hardcode_libdir_separator_CXX=:
14046
14047 # Commands to make compiler produce verbose output that lists
14048 # what "hidden" libraries, object files and flags are used when
14049 # linking a shared library.
14050 #
14051 # There doesn't appear to be a way to prevent this compiler from
14052 # explicitly linking system object files so we need to strip them
14053 # from the output so that they don't get included in the library
14054 # dependencies.
14055 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"'
14056 ;;
14057 *)
14058 if test yes,no = "$GXX,$with_gnu_ld"; then
14059 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14060 case $host in
14061 osf3*)
14062 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'
14063 ;;
14064 *)
14065 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'
14066 ;;
14067 esac
14068
14069 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14070 hardcode_libdir_separator_CXX=:
14071
14072 # Commands to make compiler produce verbose output that lists
14073 # what "hidden" libraries, object files and flags are used when
14074 # linking a shared library.
14075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14076
14077 else
14078 # FIXME: insert proper C++ library support
14079 ld_shlibs_CXX=no
14080 fi
14081 ;;
14082 esac
14083 ;;
14084
14085 psos*)
14086 # FIXME: insert proper C++ library support
14087 ld_shlibs_CXX=no
14088 ;;
14089
14090 sunos4*)
14091 case $cc_basename in
14092 CC*)
14093 # Sun C++ 4.x
14094 # FIXME: insert proper C++ library support
14095 ld_shlibs_CXX=no
14096 ;;
14097 lcc*)
14098 # Lucid
14099 # FIXME: insert proper C++ library support
14100 ld_shlibs_CXX=no
14101 ;;
14102 *)
14103 # FIXME: insert proper C++ library support
14104 ld_shlibs_CXX=no
14105 ;;
14106 esac
14107 ;;
14108
14109 solaris*)
14110 case $cc_basename in
14111 CC* | sunCC*)
14112 # Sun C++ 4.2, 5.x and Centerline C++
14113 archive_cmds_need_lc_CXX=yes
14114 no_undefined_flag_CXX=' -zdefs'
14115 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14116 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14117 $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'
14118
14119 hardcode_libdir_flag_spec_CXX='-R$libdir'
14120 hardcode_shlibpath_var_CXX=no
14121 case $host_os in
14122 solaris2.[0-5] | solaris2.[0-5].*) ;;
14123 *)
14124 # The compiler driver will combine and reorder linker options,
14125 # but understands '-z linker_flag'.
14126 # Supported since Solaris 2.6 (maybe 2.5.1?)
14127 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14128 ;;
14129 esac
14130 link_all_deplibs_CXX=yes
14131
14132 output_verbose_link_cmd='func_echo_all'
14133
14134 # Archives containing C++ object files must be created using
14135 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14136 # necessary to make sure instantiated templates are included
14137 # in the archive.
14138 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14139 ;;
14140 gcx*)
14141 # Green Hills C++ Compiler
14142 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14143
14144 # The C++ compiler must be used to create the archive.
14145 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14146 ;;
14147 *)
14148 # GNU C++ compiler with Solaris linker
14149 if test yes,no = "$GXX,$with_gnu_ld"; then
14150 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14151 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14152 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14154 $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'
14155
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14160 else
14161 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14162 # platform.
14163 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14164 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14165 $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'
14166
14167 # Commands to make compiler produce verbose output that lists
14168 # what "hidden" libraries, object files and flags are used when
14169 # linking a shared library.
14170 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14171 fi
14172
14173 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14174 case $host_os in
14175 solaris2.[0-5] | solaris2.[0-5].*) ;;
14176 *)
14177 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14178 ;;
14179 esac
14180 fi
14181 ;;
14182 esac
14183 ;;
14184
14185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14186 no_undefined_flag_CXX='$wl-z,text'
14187 archive_cmds_need_lc_CXX=no
14188 hardcode_shlibpath_var_CXX=no
14189 runpath_var='LD_RUN_PATH'
14190
14191 case $cc_basename in
14192 CC*)
14193 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14194 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195 ;;
14196 *)
14197 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14198 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14199 ;;
14200 esac
14201 ;;
14202
14203 sysv5* | sco3.2v5* | sco5v6*)
14204 # Note: We CANNOT use -z defs as we might desire, because we do not
14205 # link with -lc, and that would cause any symbols used from libc to
14206 # always be unresolved, which means just about no library would
14207 # ever link correctly. If we're not using GNU ld we use -z text
14208 # though, which does catch some bad symbols but isn't as heavy-handed
14209 # as -z defs.
14210 no_undefined_flag_CXX='$wl-z,text'
14211 allow_undefined_flag_CXX='$wl-z,nodefs'
14212 archive_cmds_need_lc_CXX=no
14213 hardcode_shlibpath_var_CXX=no
14214 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14215 hardcode_libdir_separator_CXX=':'
14216 link_all_deplibs_CXX=yes
14217 export_dynamic_flag_spec_CXX='$wl-Bexport'
14218 runpath_var='LD_RUN_PATH'
14219
14220 case $cc_basename in
14221 CC*)
14222 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14223 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14224 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14225 '"$old_archive_cmds_CXX"
14226 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14227 '"$reload_cmds_CXX"
14228 ;;
14229 *)
14230 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14231 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14232 ;;
14233 esac
14234 ;;
14235
14236 tandem*)
14237 case $cc_basename in
14238 NCC*)
14239 # NonStop-UX NCC 3.20
14240 # FIXME: insert proper C++ library support
14241 ld_shlibs_CXX=no
14242 ;;
14243 *)
14244 # FIXME: insert proper C++ library support
14245 ld_shlibs_CXX=no
14246 ;;
14247 esac
14248 ;;
14249
14250 vxworks*)
14251 # FIXME: insert proper C++ library support
14252 ld_shlibs_CXX=no
14253 ;;
14254
14255 *)
14256 # FIXME: insert proper C++ library support
14257 ld_shlibs_CXX=no
14258 ;;
14259 esac
14260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14262 $as_echo "$ld_shlibs_CXX" >&6; }
14263 test no = "$ld_shlibs_CXX" && can_build_shared=no
14264
14265 GCC_CXX=$GXX
14266 LD_CXX=$LD
14267
14268 ## CAVEAT EMPTOR:
14269 ## There is no encapsulation within the following macros, do not change
14270 ## the running order or otherwise move them around unless you know exactly
14271 ## what you are doing...
14272 # Dependencies to place before and after the object being linked:
14273 predep_objects_CXX=
14274 postdep_objects_CXX=
14275 predeps_CXX=
14276 postdeps_CXX=
14277 compiler_lib_search_path_CXX=
14278
14279 cat > conftest.$ac_ext <<_LT_EOF
14280 class Foo
14281 {
14282 public:
14283 Foo (void) { a = 0; }
14284 private:
14285 int a;
14286 };
14287 _LT_EOF
14288
14289
14290 _lt_libdeps_save_CFLAGS=$CFLAGS
14291 case "$CC $CFLAGS " in #(
14292 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14293 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14294 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14295 esac
14296
14297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14298 (eval $ac_compile) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; then
14302 # Parse the compiler output and extract the necessary
14303 # objects, libraries and library flags.
14304
14305 # Sentinel used to keep track of whether or not we are before
14306 # the conftest object file.
14307 pre_test_object_deps_done=no
14308
14309 for p in `eval "$output_verbose_link_cmd"`; do
14310 case $prev$p in
14311
14312 -L* | -R* | -l*)
14313 # Some compilers place space between "-{L,R}" and the path.
14314 # Remove the space.
14315 if test x-L = "$p" ||
14316 test x-R = "$p"; then
14317 prev=$p
14318 continue
14319 fi
14320
14321 # Expand the sysroot to ease extracting the directories later.
14322 if test -z "$prev"; then
14323 case $p in
14324 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14325 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14326 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14327 esac
14328 fi
14329 case $p in
14330 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14331 esac
14332 if test no = "$pre_test_object_deps_done"; then
14333 case $prev in
14334 -L | -R)
14335 # Internal compiler library paths should come after those
14336 # provided the user. The postdeps already come after the
14337 # user supplied libs so there is no need to process them.
14338 if test -z "$compiler_lib_search_path_CXX"; then
14339 compiler_lib_search_path_CXX=$prev$p
14340 else
14341 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14342 fi
14343 ;;
14344 # The "-l" case would never come before the object being
14345 # linked, so don't bother handling this case.
14346 esac
14347 else
14348 if test -z "$postdeps_CXX"; then
14349 postdeps_CXX=$prev$p
14350 else
14351 postdeps_CXX="${postdeps_CXX} $prev$p"
14352 fi
14353 fi
14354 prev=
14355 ;;
14356
14357 *.lto.$objext) ;; # Ignore GCC LTO objects
14358 *.$objext)
14359 # This assumes that the test object file only shows up
14360 # once in the compiler output.
14361 if test "$p" = "conftest.$objext"; then
14362 pre_test_object_deps_done=yes
14363 continue
14364 fi
14365
14366 if test no = "$pre_test_object_deps_done"; then
14367 if test -z "$predep_objects_CXX"; then
14368 predep_objects_CXX=$p
14369 else
14370 predep_objects_CXX="$predep_objects_CXX $p"
14371 fi
14372 else
14373 if test -z "$postdep_objects_CXX"; then
14374 postdep_objects_CXX=$p
14375 else
14376 postdep_objects_CXX="$postdep_objects_CXX $p"
14377 fi
14378 fi
14379 ;;
14380
14381 *) ;; # Ignore the rest.
14382
14383 esac
14384 done
14385
14386 # Clean up.
14387 rm -f a.out a.exe
14388 else
14389 echo "libtool.m4: error: problem compiling CXX test program"
14390 fi
14391
14392 $RM -f confest.$objext
14393 CFLAGS=$_lt_libdeps_save_CFLAGS
14394
14395 # PORTME: override above test on systems where it is broken
14396 case $host_os in
14397 interix[3-9]*)
14398 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14399 # hack all around it, let's just trust "g++" to DTRT.
14400 predep_objects_CXX=
14401 postdep_objects_CXX=
14402 postdeps_CXX=
14403 ;;
14404 esac
14405
14406
14407 case " $postdeps_CXX " in
14408 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14409 esac
14410 compiler_lib_search_dirs_CXX=
14411 if test -n "${compiler_lib_search_path_CXX}"; then
14412 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14413 fi
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445 lt_prog_compiler_wl_CXX=
14446 lt_prog_compiler_pic_CXX=
14447 lt_prog_compiler_static_CXX=
14448
14449
14450 # C++ specific cases for pic, static, wl, etc.
14451 if test yes = "$GXX"; then
14452 lt_prog_compiler_wl_CXX='-Wl,'
14453 lt_prog_compiler_static_CXX='-static'
14454
14455 case $host_os in
14456 aix*)
14457 # All AIX code is PIC.
14458 if test ia64 = "$host_cpu"; then
14459 # AIX 5 now supports IA64 processor
14460 lt_prog_compiler_static_CXX='-Bstatic'
14461 fi
14462 lt_prog_compiler_pic_CXX='-fPIC'
14463 ;;
14464
14465 amigaos*)
14466 case $host_cpu in
14467 powerpc)
14468 # see comment about AmigaOS4 .so support
14469 lt_prog_compiler_pic_CXX='-fPIC'
14470 ;;
14471 m68k)
14472 # FIXME: we need at least 68020 code to build shared libraries, but
14473 # adding the '-m68020' flag to GCC prevents building anything better,
14474 # like '-m68040'.
14475 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14476 ;;
14477 esac
14478 ;;
14479
14480 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14481 # PIC is the default for these OSes.
14482 ;;
14483 mingw* | cygwin* | os2* | pw32* | cegcc*)
14484 # This hack is so that the source file can tell whether it is being
14485 # built for inclusion in a dll (and should export symbols for example).
14486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14487 # (--disable-auto-import) libraries
14488 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14489 case $host_os in
14490 os2*)
14491 lt_prog_compiler_static_CXX='$wl-static'
14492 ;;
14493 esac
14494 ;;
14495 darwin* | rhapsody*)
14496 # PIC is the default on this platform
14497 # Common symbols not allowed in MH_DYLIB files
14498 lt_prog_compiler_pic_CXX='-fno-common'
14499 ;;
14500 *djgpp*)
14501 # DJGPP does not support shared libraries at all
14502 lt_prog_compiler_pic_CXX=
14503 ;;
14504 haiku*)
14505 # PIC is the default for Haiku.
14506 # The "-static" flag exists, but is broken.
14507 lt_prog_compiler_static_CXX=
14508 ;;
14509 interix[3-9]*)
14510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14511 # Instead, we relocate shared libraries at runtime.
14512 ;;
14513 sysv4*MP*)
14514 if test -d /usr/nec; then
14515 lt_prog_compiler_pic_CXX=-Kconform_pic
14516 fi
14517 ;;
14518 hpux*)
14519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14521 # sets the default TLS model and affects inlining.
14522 case $host_cpu in
14523 hppa*64*)
14524 ;;
14525 *)
14526 lt_prog_compiler_pic_CXX='-fPIC'
14527 ;;
14528 esac
14529 ;;
14530 *qnx* | *nto*)
14531 # QNX uses GNU C++, but need to define -shared option too, otherwise
14532 # it will coredump.
14533 lt_prog_compiler_pic_CXX='-fPIC -shared'
14534 ;;
14535 *)
14536 lt_prog_compiler_pic_CXX='-fPIC'
14537 ;;
14538 esac
14539 else
14540 case $host_os in
14541 aix[4-9]*)
14542 # All AIX code is PIC.
14543 if test ia64 = "$host_cpu"; then
14544 # AIX 5 now supports IA64 processor
14545 lt_prog_compiler_static_CXX='-Bstatic'
14546 else
14547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14548 fi
14549 ;;
14550 chorus*)
14551 case $cc_basename in
14552 cxch68*)
14553 # Green Hills C++ Compiler
14554 # _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"
14555 ;;
14556 esac
14557 ;;
14558 mingw* | cygwin* | os2* | pw32* | cegcc*)
14559 # This hack is so that the source file can tell whether it is being
14560 # built for inclusion in a dll (and should export symbols for example).
14561 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14562 ;;
14563 dgux*)
14564 case $cc_basename in
14565 ec++*)
14566 lt_prog_compiler_pic_CXX='-KPIC'
14567 ;;
14568 ghcx*)
14569 # Green Hills C++ Compiler
14570 lt_prog_compiler_pic_CXX='-pic'
14571 ;;
14572 *)
14573 ;;
14574 esac
14575 ;;
14576 freebsd* | dragonfly*)
14577 # FreeBSD uses GNU C++
14578 ;;
14579 hpux9* | hpux10* | hpux11*)
14580 case $cc_basename in
14581 CC*)
14582 lt_prog_compiler_wl_CXX='-Wl,'
14583 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14584 if test ia64 != "$host_cpu"; then
14585 lt_prog_compiler_pic_CXX='+Z'
14586 fi
14587 ;;
14588 aCC*)
14589 lt_prog_compiler_wl_CXX='-Wl,'
14590 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14591 case $host_cpu in
14592 hppa*64*|ia64*)
14593 # +Z the default
14594 ;;
14595 *)
14596 lt_prog_compiler_pic_CXX='+Z'
14597 ;;
14598 esac
14599 ;;
14600 *)
14601 ;;
14602 esac
14603 ;;
14604 interix*)
14605 # This is c89, which is MS Visual C++ (no shared libs)
14606 # Anyone wants to do a port?
14607 ;;
14608 irix5* | irix6* | nonstopux*)
14609 case $cc_basename in
14610 CC*)
14611 lt_prog_compiler_wl_CXX='-Wl,'
14612 lt_prog_compiler_static_CXX='-non_shared'
14613 # CC pic flag -KPIC is the default.
14614 ;;
14615 *)
14616 ;;
14617 esac
14618 ;;
14619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14620 case $cc_basename in
14621 KCC*)
14622 # KAI C++ Compiler
14623 lt_prog_compiler_wl_CXX='--backend -Wl,'
14624 lt_prog_compiler_pic_CXX='-fPIC'
14625 ;;
14626 ecpc* )
14627 # old Intel C++ for x86_64, which still supported -KPIC.
14628 lt_prog_compiler_wl_CXX='-Wl,'
14629 lt_prog_compiler_pic_CXX='-KPIC'
14630 lt_prog_compiler_static_CXX='-static'
14631 ;;
14632 icpc* )
14633 # Intel C++, used to be incompatible with GCC.
14634 # ICC 10 doesn't accept -KPIC any more.
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 lt_prog_compiler_pic_CXX='-fPIC'
14637 lt_prog_compiler_static_CXX='-static'
14638 ;;
14639 pgCC* | pgcpp*)
14640 # Portland Group C++ compiler
14641 lt_prog_compiler_wl_CXX='-Wl,'
14642 lt_prog_compiler_pic_CXX='-fpic'
14643 lt_prog_compiler_static_CXX='-Bstatic'
14644 ;;
14645 cxx*)
14646 # Compaq C++
14647 # Make sure the PIC flag is empty. It appears that all Alpha
14648 # Linux and Compaq Tru64 Unix objects are PIC.
14649 lt_prog_compiler_pic_CXX=
14650 lt_prog_compiler_static_CXX='-non_shared'
14651 ;;
14652 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14653 # IBM XL 8.0, 9.0 on PPC and BlueGene
14654 lt_prog_compiler_wl_CXX='-Wl,'
14655 lt_prog_compiler_pic_CXX='-qpic'
14656 lt_prog_compiler_static_CXX='-qstaticlink'
14657 ;;
14658 *)
14659 case `$CC -V 2>&1 | sed 5q` in
14660 *Sun\ C*)
14661 # Sun C++ 5.9
14662 lt_prog_compiler_pic_CXX='-KPIC'
14663 lt_prog_compiler_static_CXX='-Bstatic'
14664 lt_prog_compiler_wl_CXX='-Qoption ld '
14665 ;;
14666 esac
14667 ;;
14668 esac
14669 ;;
14670 lynxos*)
14671 ;;
14672 m88k*)
14673 ;;
14674 mvs*)
14675 case $cc_basename in
14676 cxx*)
14677 lt_prog_compiler_pic_CXX='-W c,exportall'
14678 ;;
14679 *)
14680 ;;
14681 esac
14682 ;;
14683 netbsd*)
14684 ;;
14685 *qnx* | *nto*)
14686 # QNX uses GNU C++, but need to define -shared option too, otherwise
14687 # it will coredump.
14688 lt_prog_compiler_pic_CXX='-fPIC -shared'
14689 ;;
14690 osf3* | osf4* | osf5*)
14691 case $cc_basename in
14692 KCC*)
14693 lt_prog_compiler_wl_CXX='--backend -Wl,'
14694 ;;
14695 RCC*)
14696 # Rational C++ 2.4.1
14697 lt_prog_compiler_pic_CXX='-pic'
14698 ;;
14699 cxx*)
14700 # Digital/Compaq C++
14701 lt_prog_compiler_wl_CXX='-Wl,'
14702 # Make sure the PIC flag is empty. It appears that all Alpha
14703 # Linux and Compaq Tru64 Unix objects are PIC.
14704 lt_prog_compiler_pic_CXX=
14705 lt_prog_compiler_static_CXX='-non_shared'
14706 ;;
14707 *)
14708 ;;
14709 esac
14710 ;;
14711 psos*)
14712 ;;
14713 solaris*)
14714 case $cc_basename in
14715 CC* | sunCC*)
14716 # Sun C++ 4.2, 5.x and Centerline C++
14717 lt_prog_compiler_pic_CXX='-KPIC'
14718 lt_prog_compiler_static_CXX='-Bstatic'
14719 lt_prog_compiler_wl_CXX='-Qoption ld '
14720 ;;
14721 gcx*)
14722 # Green Hills C++ Compiler
14723 lt_prog_compiler_pic_CXX='-PIC'
14724 ;;
14725 *)
14726 ;;
14727 esac
14728 ;;
14729 sunos4*)
14730 case $cc_basename in
14731 CC*)
14732 # Sun C++ 4.x
14733 lt_prog_compiler_pic_CXX='-pic'
14734 lt_prog_compiler_static_CXX='-Bstatic'
14735 ;;
14736 lcc*)
14737 # Lucid
14738 lt_prog_compiler_pic_CXX='-pic'
14739 ;;
14740 *)
14741 ;;
14742 esac
14743 ;;
14744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14745 case $cc_basename in
14746 CC*)
14747 lt_prog_compiler_wl_CXX='-Wl,'
14748 lt_prog_compiler_pic_CXX='-KPIC'
14749 lt_prog_compiler_static_CXX='-Bstatic'
14750 ;;
14751 esac
14752 ;;
14753 tandem*)
14754 case $cc_basename in
14755 NCC*)
14756 # NonStop-UX NCC 3.20
14757 lt_prog_compiler_pic_CXX='-KPIC'
14758 ;;
14759 *)
14760 ;;
14761 esac
14762 ;;
14763 vxworks*)
14764 ;;
14765 *)
14766 lt_prog_compiler_can_build_shared_CXX=no
14767 ;;
14768 esac
14769 fi
14770
14771 case $host_os in
14772 # For platforms that do not support PIC, -DPIC is meaningless:
14773 *djgpp*)
14774 lt_prog_compiler_pic_CXX=
14775 ;;
14776 *)
14777 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14778 ;;
14779 esac
14780
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14782 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14783 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14789 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14790 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14791
14792 #
14793 # Check to make sure the PIC flag actually works.
14794 #
14795 if test -n "$lt_prog_compiler_pic_CXX"; then
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14797 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14798 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14799 $as_echo_n "(cached) " >&6
14800 else
14801 lt_cv_prog_compiler_pic_works_CXX=no
14802 ac_outfile=conftest.$ac_objext
14803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14804 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14805 # Insert the option either (1) after the last *FLAGS variable, or
14806 # (2) before a word containing "conftest.", or (3) at the end.
14807 # Note that $ac_compile itself does not contain backslashes and begins
14808 # with a dollar sign (not a hyphen), so the echo should work correctly.
14809 # The option is referenced via a variable to avoid confusing sed.
14810 lt_compile=`echo "$ac_compile" | $SED \
14811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813 -e 's:$: $lt_compiler_flag:'`
14814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14815 (eval "$lt_compile" 2>conftest.err)
14816 ac_status=$?
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 if (exit $ac_status) && test -s "$ac_outfile"; then
14820 # The compiler can only warn and ignore the option if not recognized
14821 # So say no if there are warnings other than the usual output.
14822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14825 lt_cv_prog_compiler_pic_works_CXX=yes
14826 fi
14827 fi
14828 $RM conftest*
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14832 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14833
14834 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14835 case $lt_prog_compiler_pic_CXX in
14836 "" | " "*) ;;
14837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14838 esac
14839 else
14840 lt_prog_compiler_pic_CXX=
14841 lt_prog_compiler_can_build_shared_CXX=no
14842 fi
14843
14844 fi
14845
14846
14847
14848
14849
14850 #
14851 # Check to make sure the static flag actually works.
14852 #
14853 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14855 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14856 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 lt_cv_prog_compiler_static_works_CXX=no
14860 save_LDFLAGS=$LDFLAGS
14861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14862 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14864 # The linker can only warn and ignore the option if not recognized
14865 # So say no if there are warnings
14866 if test -s conftest.err; then
14867 # Append any errors to the config.log.
14868 cat conftest.err 1>&5
14869 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14871 if diff conftest.exp conftest.er2 >/dev/null; then
14872 lt_cv_prog_compiler_static_works_CXX=yes
14873 fi
14874 else
14875 lt_cv_prog_compiler_static_works_CXX=yes
14876 fi
14877 fi
14878 $RM -r conftest*
14879 LDFLAGS=$save_LDFLAGS
14880
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14883 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14884
14885 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14886 :
14887 else
14888 lt_prog_compiler_static_CXX=
14889 fi
14890
14891
14892
14893
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14896 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 lt_cv_prog_compiler_c_o_CXX=no
14900 $RM -r conftest 2>/dev/null
14901 mkdir conftest
14902 cd conftest
14903 mkdir out
14904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14905
14906 lt_compiler_flag="-o out/conftest2.$ac_objext"
14907 # Insert the option either (1) after the last *FLAGS variable, or
14908 # (2) before a word containing "conftest.", or (3) at the end.
14909 # Note that $ac_compile itself does not contain backslashes and begins
14910 # with a dollar sign (not a hyphen), so the echo should work correctly.
14911 lt_compile=`echo "$ac_compile" | $SED \
14912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14914 -e 's:$: $lt_compiler_flag:'`
14915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14916 (eval "$lt_compile" 2>out/conftest.err)
14917 ac_status=$?
14918 cat out/conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14921 then
14922 # The compiler can only warn and ignore the option if not recognized
14923 # So say no if there are warnings
14924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14927 lt_cv_prog_compiler_c_o_CXX=yes
14928 fi
14929 fi
14930 chmod u+w . 2>&5
14931 $RM conftest*
14932 # SGI C++ compiler will create directory out/ii_files/ for
14933 # template instantiation
14934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14935 $RM out/* && rmdir out
14936 cd ..
14937 $RM -r conftest
14938 $RM conftest*
14939
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14942 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14943
14944
14945
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14947 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14948 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950 else
14951 lt_cv_prog_compiler_c_o_CXX=no
14952 $RM -r conftest 2>/dev/null
14953 mkdir conftest
14954 cd conftest
14955 mkdir out
14956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14957
14958 lt_compiler_flag="-o out/conftest2.$ac_objext"
14959 # Insert the option either (1) after the last *FLAGS variable, or
14960 # (2) before a word containing "conftest.", or (3) at the end.
14961 # Note that $ac_compile itself does not contain backslashes and begins
14962 # with a dollar sign (not a hyphen), so the echo should work correctly.
14963 lt_compile=`echo "$ac_compile" | $SED \
14964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966 -e 's:$: $lt_compiler_flag:'`
14967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14968 (eval "$lt_compile" 2>out/conftest.err)
14969 ac_status=$?
14970 cat out/conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973 then
14974 # The compiler can only warn and ignore the option if not recognized
14975 # So say no if there are warnings
14976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14979 lt_cv_prog_compiler_c_o_CXX=yes
14980 fi
14981 fi
14982 chmod u+w . 2>&5
14983 $RM conftest*
14984 # SGI C++ compiler will create directory out/ii_files/ for
14985 # template instantiation
14986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14987 $RM out/* && rmdir out
14988 cd ..
14989 $RM -r conftest
14990 $RM conftest*
14991
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14994 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14995
14996
14997
14998
14999 hard_links=nottested
15000 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15001 # do not overwrite the value of need_locks provided by the user
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15003 $as_echo_n "checking if we can lock with hard links... " >&6; }
15004 hard_links=yes
15005 $RM conftest*
15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007 touch conftest.a
15008 ln conftest.a conftest.b 2>&5 || hard_links=no
15009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15011 $as_echo "$hard_links" >&6; }
15012 if test no = "$hard_links"; then
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15014 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15015 need_locks=warn
15016 fi
15017 else
15018 need_locks=no
15019 fi
15020
15021
15022
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15024 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15025
15026 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15027 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15028 case $host_os in
15029 aix[4-9]*)
15030 # If we're using GNU nm, then we don't want the "-C" option.
15031 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15032 # Without the "-l" option, or with the "-B" option, AIX nm treats
15033 # weak defined symbols like other global defined symbols, whereas
15034 # GNU nm marks them as "W".
15035 # While the 'weak' keyword is ignored in the Export File, we need
15036 # it in the Import File for the 'aix-soname' feature, so we have
15037 # to replace the "-B" option with "-P" for AIX nm.
15038 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15039 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'
15040 else
15041 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'
15042 fi
15043 ;;
15044 pw32*)
15045 export_symbols_cmds_CXX=$ltdll_cmds
15046 ;;
15047 cygwin* | mingw* | cegcc*)
15048 case $cc_basename in
15049 cl*)
15050 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15051 ;;
15052 *)
15053 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'
15054 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15055 ;;
15056 esac
15057 ;;
15058 *)
15059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15060 ;;
15061 esac
15062
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15064 $as_echo "$ld_shlibs_CXX" >&6; }
15065 test no = "$ld_shlibs_CXX" && can_build_shared=no
15066
15067 with_gnu_ld_CXX=$with_gnu_ld
15068
15069
15070
15071
15072
15073
15074 #
15075 # Do we need to explicitly link libc?
15076 #
15077 case "x$archive_cmds_need_lc_CXX" in
15078 x|xyes)
15079 # Assume -lc should be added
15080 archive_cmds_need_lc_CXX=yes
15081
15082 if test yes,yes = "$GCC,$enable_shared"; then
15083 case $archive_cmds_CXX in
15084 *'~'*)
15085 # FIXME: we may have to deal with multi-command sequences.
15086 ;;
15087 '$CC '*)
15088 # Test whether the compiler implicitly links with -lc since on some
15089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15090 # to ld, don't add -lc before -lgcc.
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15092 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15093 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 $RM conftest*
15097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15098
15099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15100 (eval $ac_compile) 2>&5
15101 ac_status=$?
15102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15103 test $ac_status = 0; } 2>conftest.err; then
15104 soname=conftest
15105 lib=conftest
15106 libobjs=conftest.$ac_objext
15107 deplibs=
15108 wl=$lt_prog_compiler_wl_CXX
15109 pic_flag=$lt_prog_compiler_pic_CXX
15110 compiler_flags=-v
15111 linker_flags=-v
15112 verstring=
15113 output_objdir=.
15114 libname=conftest
15115 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15116 allow_undefined_flag_CXX=
15117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15118 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15119 ac_status=$?
15120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15121 test $ac_status = 0; }
15122 then
15123 lt_cv_archive_cmds_need_lc_CXX=no
15124 else
15125 lt_cv_archive_cmds_need_lc_CXX=yes
15126 fi
15127 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15128 else
15129 cat conftest.err 1>&5
15130 fi
15131 $RM conftest*
15132
15133 fi
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15135 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15136 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15137 ;;
15138 esac
15139 fi
15140 ;;
15141 esac
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15205 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15206
15207 library_names_spec=
15208 libname_spec='lib$name'
15209 soname_spec=
15210 shrext_cmds=.so
15211 postinstall_cmds=
15212 postuninstall_cmds=
15213 finish_cmds=
15214 finish_eval=
15215 shlibpath_var=
15216 shlibpath_overrides_runpath=unknown
15217 version_type=none
15218 dynamic_linker="$host_os ld.so"
15219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15220 need_lib_prefix=unknown
15221 hardcode_into_libs=no
15222
15223 # when you set need_version to no, make sure it does not cause -set_version
15224 # flags to be left without arguments
15225 need_version=unknown
15226
15227
15228
15229 case $host_os in
15230 aix3*)
15231 version_type=linux # correct to gnu/linux during the next big refactor
15232 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15233 shlibpath_var=LIBPATH
15234
15235 # AIX 3 has no versioning support, so we append a major version to the name.
15236 soname_spec='$libname$release$shared_ext$major'
15237 ;;
15238
15239 aix[4-9]*)
15240 version_type=linux # correct to gnu/linux during the next big refactor
15241 need_lib_prefix=no
15242 need_version=no
15243 hardcode_into_libs=yes
15244 if test ia64 = "$host_cpu"; then
15245 # AIX 5 supports IA64
15246 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 else
15249 # With GCC up to 2.95.x, collect2 would create an import file
15250 # for dependence libraries. The import file would start with
15251 # the line '#! .'. This would cause the generated library to
15252 # depend on '.', always an invalid library. This was fixed in
15253 # development snapshots of GCC prior to 3.0.
15254 case $host_os in
15255 aix4 | aix4.[01] | aix4.[01].*)
15256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15257 echo ' yes '
15258 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15259 :
15260 else
15261 can_build_shared=no
15262 fi
15263 ;;
15264 esac
15265 # Using Import Files as archive members, it is possible to support
15266 # filename-based versioning of shared library archives on AIX. While
15267 # this would work for both with and without runtime linking, it will
15268 # prevent static linking of such archives. So we do filename-based
15269 # shared library versioning with .so extension only, which is used
15270 # when both runtime linking and shared linking is enabled.
15271 # Unfortunately, runtime linking may impact performance, so we do
15272 # not want this to be the default eventually. Also, we use the
15273 # versioned .so libs for executables only if there is the -brtl
15274 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15275 # To allow for filename-based versioning support, we need to create
15276 # libNAME.so.V as an archive file, containing:
15277 # *) an Import File, referring to the versioned filename of the
15278 # archive as well as the shared archive member, telling the
15279 # bitwidth (32 or 64) of that shared object, and providing the
15280 # list of exported symbols of that shared object, eventually
15281 # decorated with the 'weak' keyword
15282 # *) the shared object with the F_LOADONLY flag set, to really avoid
15283 # it being seen by the linker.
15284 # At run time we better use the real file rather than another symlink,
15285 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15286
15287 case $with_aix_soname,$aix_use_runtimelinking in
15288 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15289 # soname into executable. Probably we can add versioning support to
15290 # collect2, so additional links can be useful in future.
15291 aix,yes) # traditional libtool
15292 dynamic_linker='AIX unversionable lib.so'
15293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15294 # instead of lib<name>.a to let people know that these are not
15295 # typical AIX shared libraries.
15296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15297 ;;
15298 aix,no) # traditional AIX only
15299 dynamic_linker='AIX lib.a(lib.so.V)'
15300 # We preserve .a as extension for shared libraries through AIX4.2
15301 # and later when we are not doing run time linking.
15302 library_names_spec='$libname$release.a $libname.a'
15303 soname_spec='$libname$release$shared_ext$major'
15304 ;;
15305 svr4,*) # full svr4 only
15306 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15307 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15308 # We do not specify a path in Import Files, so LIBPATH fires.
15309 shlibpath_overrides_runpath=yes
15310 ;;
15311 *,yes) # both, prefer svr4
15312 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15313 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15314 # unpreferred sharedlib libNAME.a needs extra handling
15315 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"'
15316 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"'
15317 # We do not specify a path in Import Files, so LIBPATH fires.
15318 shlibpath_overrides_runpath=yes
15319 ;;
15320 *,no) # both, prefer aix
15321 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15322 library_names_spec='$libname$release.a $libname.a'
15323 soname_spec='$libname$release$shared_ext$major'
15324 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15325 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)'
15326 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"'
15327 ;;
15328 esac
15329 shlibpath_var=LIBPATH
15330 fi
15331 ;;
15332
15333 amigaos*)
15334 case $host_cpu in
15335 powerpc)
15336 # Since July 2007 AmigaOS4 officially supports .so libraries.
15337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15339 ;;
15340 m68k)
15341 library_names_spec='$libname.ixlibrary $libname.a'
15342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15343 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'
15344 ;;
15345 esac
15346 ;;
15347
15348 beos*)
15349 library_names_spec='$libname$shared_ext'
15350 dynamic_linker="$host_os ld.so"
15351 shlibpath_var=LIBRARY_PATH
15352 ;;
15353
15354 bsdi[45]*)
15355 version_type=linux # correct to gnu/linux during the next big refactor
15356 need_version=no
15357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15358 soname_spec='$libname$release$shared_ext$major'
15359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15363 # the default ld.so.conf also contains /usr/contrib/lib and
15364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15365 # libtool to hard-code these into programs
15366 ;;
15367
15368 cygwin* | mingw* | pw32* | cegcc*)
15369 version_type=windows
15370 shrext_cmds=.dll
15371 need_version=no
15372 need_lib_prefix=no
15373
15374 case $GCC,$cc_basename in
15375 yes,*)
15376 # gcc
15377 library_names_spec='$libname.dll.a'
15378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379 postinstall_cmds='base_file=`basename \$file`~
15380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15381 dldir=$destdir/`dirname \$dlpath`~
15382 test -d \$dldir || mkdir -p \$dldir~
15383 $install_prog $dir/$dlname \$dldir/$dlname~
15384 chmod a+x \$dldir/$dlname~
15385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15387 fi'
15388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15389 dlpath=$dir/\$dldll~
15390 $RM \$dlpath'
15391 shlibpath_overrides_runpath=yes
15392
15393 case $host_os in
15394 cygwin*)
15395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15396 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15397
15398 ;;
15399 mingw* | cegcc*)
15400 # MinGW DLLs use traditional 'lib' prefix
15401 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15402 ;;
15403 pw32*)
15404 # pw32 DLLs use 'pw' prefix rather than 'lib'
15405 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15406 ;;
15407 esac
15408 dynamic_linker='Win32 ld.exe'
15409 ;;
15410
15411 *,cl*)
15412 # Native MSVC
15413 libname_spec='$name'
15414 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15415 library_names_spec='$libname.dll.lib'
15416
15417 case $build_os in
15418 mingw*)
15419 sys_lib_search_path_spec=
15420 lt_save_ifs=$IFS
15421 IFS=';'
15422 for lt_path in $LIB
15423 do
15424 IFS=$lt_save_ifs
15425 # Let DOS variable expansion print the short 8.3 style file name.
15426 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15427 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15428 done
15429 IFS=$lt_save_ifs
15430 # Convert to MSYS style.
15431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15432 ;;
15433 cygwin*)
15434 # Convert to unix form, then to dos form, then back to unix form
15435 # but this time dos style (no spaces!) so that the unix form looks
15436 # like /cygdrive/c/PROGRA~1:/cygdr...
15437 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15438 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15439 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15440 ;;
15441 *)
15442 sys_lib_search_path_spec=$LIB
15443 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15444 # It is most probably a Windows format PATH.
15445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15446 else
15447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15448 fi
15449 # FIXME: find the short name or the path components, as spaces are
15450 # common. (e.g. "Program Files" -> "PROGRA~1")
15451 ;;
15452 esac
15453
15454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15455 postinstall_cmds='base_file=`basename \$file`~
15456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15457 dldir=$destdir/`dirname \$dlpath`~
15458 test -d \$dldir || mkdir -p \$dldir~
15459 $install_prog $dir/$dlname \$dldir/$dlname'
15460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15461 dlpath=$dir/\$dldll~
15462 $RM \$dlpath'
15463 shlibpath_overrides_runpath=yes
15464 dynamic_linker='Win32 link.exe'
15465 ;;
15466
15467 *)
15468 # Assume MSVC wrapper
15469 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15470 dynamic_linker='Win32 ld.exe'
15471 ;;
15472 esac
15473 # FIXME: first we should search . and the directory the executable is in
15474 shlibpath_var=PATH
15475 ;;
15476
15477 darwin* | rhapsody*)
15478 dynamic_linker="$host_os dyld"
15479 version_type=darwin
15480 need_lib_prefix=no
15481 need_version=no
15482 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15483 soname_spec='$libname$release$major$shared_ext'
15484 shlibpath_overrides_runpath=yes
15485 shlibpath_var=DYLD_LIBRARY_PATH
15486 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15487
15488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15489 ;;
15490
15491 dgux*)
15492 version_type=linux # correct to gnu/linux during the next big refactor
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15496 soname_spec='$libname$release$shared_ext$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 ;;
15499
15500 freebsd* | dragonfly*)
15501 # DragonFly does not have aout. When/if they implement a new
15502 # versioning mechanism, adjust this.
15503 if test -x /usr/bin/objformat; then
15504 objformat=`/usr/bin/objformat`
15505 else
15506 case $host_os in
15507 freebsd[23].*) objformat=aout ;;
15508 *) objformat=elf ;;
15509 esac
15510 fi
15511 version_type=freebsd-$objformat
15512 case $version_type in
15513 freebsd-elf*)
15514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15515 soname_spec='$libname$release$shared_ext$major'
15516 need_version=no
15517 need_lib_prefix=no
15518 ;;
15519 freebsd-*)
15520 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15521 need_version=yes
15522 ;;
15523 esac
15524 shlibpath_var=LD_LIBRARY_PATH
15525 case $host_os in
15526 freebsd2.*)
15527 shlibpath_overrides_runpath=yes
15528 ;;
15529 freebsd3.[01]* | freebsdelf3.[01]*)
15530 shlibpath_overrides_runpath=yes
15531 hardcode_into_libs=yes
15532 ;;
15533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15535 shlibpath_overrides_runpath=no
15536 hardcode_into_libs=yes
15537 ;;
15538 *) # from 4.6 on, and DragonFly
15539 shlibpath_overrides_runpath=yes
15540 hardcode_into_libs=yes
15541 ;;
15542 esac
15543 ;;
15544
15545 haiku*)
15546 version_type=linux # correct to gnu/linux during the next big refactor
15547 need_lib_prefix=no
15548 need_version=no
15549 dynamic_linker="$host_os runtime_loader"
15550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15551 soname_spec='$libname$release$shared_ext$major'
15552 shlibpath_var=LIBRARY_PATH
15553 shlibpath_overrides_runpath=no
15554 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15555 hardcode_into_libs=yes
15556 ;;
15557
15558 hpux9* | hpux10* | hpux11*)
15559 # Give a soname corresponding to the major version so that dld.sl refuses to
15560 # link against other versions.
15561 version_type=sunos
15562 need_lib_prefix=no
15563 need_version=no
15564 case $host_cpu in
15565 ia64*)
15566 shrext_cmds='.so'
15567 hardcode_into_libs=yes
15568 dynamic_linker="$host_os dld.so"
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15572 soname_spec='$libname$release$shared_ext$major'
15573 if test 32 = "$HPUX_IA64_MODE"; then
15574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15575 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15576 else
15577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15578 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15579 fi
15580 ;;
15581 hppa*64*)
15582 shrext_cmds='.sl'
15583 hardcode_into_libs=yes
15584 dynamic_linker="$host_os dld.sl"
15585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15588 soname_spec='$libname$release$shared_ext$major'
15589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15591 ;;
15592 *)
15593 shrext_cmds='.sl'
15594 dynamic_linker="$host_os dld.sl"
15595 shlibpath_var=SHLIB_PATH
15596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598 soname_spec='$libname$release$shared_ext$major'
15599 ;;
15600 esac
15601 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15602 postinstall_cmds='chmod 555 $lib'
15603 # or fails outright, so override atomically:
15604 install_override_mode=555
15605 ;;
15606
15607 interix[3-9]*)
15608 version_type=linux # correct to gnu/linux during the next big refactor
15609 need_lib_prefix=no
15610 need_version=no
15611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15612 soname_spec='$libname$release$shared_ext$major'
15613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=no
15616 hardcode_into_libs=yes
15617 ;;
15618
15619 irix5* | irix6* | nonstopux*)
15620 case $host_os in
15621 nonstopux*) version_type=nonstopux ;;
15622 *)
15623 if test yes = "$lt_cv_prog_gnu_ld"; then
15624 version_type=linux # correct to gnu/linux during the next big refactor
15625 else
15626 version_type=irix
15627 fi ;;
15628 esac
15629 need_lib_prefix=no
15630 need_version=no
15631 soname_spec='$libname$release$shared_ext$major'
15632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15633 case $host_os in
15634 irix5* | nonstopux*)
15635 libsuff= shlibsuff=
15636 ;;
15637 *)
15638 case $LD in # libtool.m4 will add one of these switches to LD
15639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15640 libsuff= shlibsuff= libmagic=32-bit;;
15641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15642 libsuff=32 shlibsuff=N32 libmagic=N32;;
15643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15645 *) libsuff= shlibsuff= libmagic=never-match;;
15646 esac
15647 ;;
15648 esac
15649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15650 shlibpath_overrides_runpath=no
15651 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15652 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15653 hardcode_into_libs=yes
15654 ;;
15655
15656 # No shared lib support for Linux oldld, aout, or coff.
15657 linux*oldld* | linux*aout* | linux*coff*)
15658 dynamic_linker=no
15659 ;;
15660
15661 linux*android*)
15662 version_type=none # Android doesn't support versioned libraries.
15663 need_lib_prefix=no
15664 need_version=no
15665 library_names_spec='$libname$release$shared_ext'
15666 soname_spec='$libname$release$shared_ext'
15667 finish_cmds=
15668 shlibpath_var=LD_LIBRARY_PATH
15669 shlibpath_overrides_runpath=yes
15670
15671 # This implies no fast_install, which is unacceptable.
15672 # Some rework will be needed to allow for fast_install
15673 # before this can be enabled.
15674 hardcode_into_libs=yes
15675
15676 dynamic_linker='Android linker'
15677 # Don't embed -rpath directories since the linker doesn't support them.
15678 hardcode_libdir_flag_spec_CXX='-L$libdir'
15679 ;;
15680
15681 # This must be glibc/ELF.
15682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15683 version_type=linux # correct to gnu/linux during the next big refactor
15684 need_lib_prefix=no
15685 need_version=no
15686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15687 soname_spec='$libname$release$shared_ext$major'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=no
15691
15692 # Some binutils ld are patched to set DT_RUNPATH
15693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 lt_cv_shlibpath_overrides_runpath=no
15697 save_LDFLAGS=$LDFLAGS
15698 save_libdir=$libdir
15699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703
15704 int
15705 main ()
15706 {
15707
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_cxx_try_link "$LINENO"; then :
15713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15714 lt_cv_shlibpath_overrides_runpath=yes
15715 fi
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
15719 LDFLAGS=$save_LDFLAGS
15720 libdir=$save_libdir
15721
15722 fi
15723
15724 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15725
15726 # This implies no fast_install, which is unacceptable.
15727 # Some rework will be needed to allow for fast_install
15728 # before this can be enabled.
15729 hardcode_into_libs=yes
15730
15731 # Ideally, we could use ldconfig to report *all* directores which are
15732 # searched for libraries, however this is still not possible. Aside from not
15733 # being certain /sbin/ldconfig is available, command
15734 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15735 # even though it is searched at run-time. Try to do the best guess by
15736 # appending ld.so.conf contents (and includes) to the search path.
15737 if test -f /etc/ld.so.conf; then
15738 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' ' '`
15739 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15740 fi
15741
15742 # We used to test for /lib/ld.so.1 and disable shared libraries on
15743 # powerpc, because MkLinux only supported shared libraries with the
15744 # GNU dynamic linker. Since this was broken with cross compilers,
15745 # most powerpc-linux boxes support dynamic linking these days and
15746 # people can always --disable-shared, the test was removed, and we
15747 # assume the GNU/Linux dynamic linker is in use.
15748 dynamic_linker='GNU/Linux ld.so'
15749 ;;
15750
15751 netbsd*)
15752 version_type=sunos
15753 need_lib_prefix=no
15754 need_version=no
15755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15756 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15758 dynamic_linker='NetBSD (a.out) ld.so'
15759 else
15760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15761 soname_spec='$libname$release$shared_ext$major'
15762 dynamic_linker='NetBSD ld.elf_so'
15763 fi
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=yes
15766 hardcode_into_libs=yes
15767 ;;
15768
15769 newsos6)
15770 version_type=linux # correct to gnu/linux during the next big refactor
15771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=yes
15774 ;;
15775
15776 *nto* | *qnx*)
15777 version_type=qnx
15778 need_lib_prefix=no
15779 need_version=no
15780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15781 soname_spec='$libname$release$shared_ext$major'
15782 shlibpath_var=LD_LIBRARY_PATH
15783 shlibpath_overrides_runpath=no
15784 hardcode_into_libs=yes
15785 dynamic_linker='ldqnx.so'
15786 ;;
15787
15788 openbsd* | bitrig*)
15789 version_type=sunos
15790 sys_lib_dlsearch_path_spec=/usr/lib
15791 need_lib_prefix=no
15792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15793 need_version=no
15794 else
15795 need_version=yes
15796 fi
15797 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 shlibpath_overrides_runpath=yes
15801 ;;
15802
15803 os2*)
15804 libname_spec='$name'
15805 version_type=windows
15806 shrext_cmds=.dll
15807 need_version=no
15808 need_lib_prefix=no
15809 # OS/2 can only load a DLL with a base name of 8 characters or less.
15810 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15811 v=$($ECHO $release$versuffix | tr -d .-);
15812 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15813 $ECHO $n$v`$shared_ext'
15814 library_names_spec='${libname}_dll.$libext'
15815 dynamic_linker='OS/2 ld.exe'
15816 shlibpath_var=BEGINLIBPATH
15817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15819 postinstall_cmds='base_file=`basename \$file`~
15820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15821 dldir=$destdir/`dirname \$dlpath`~
15822 test -d \$dldir || mkdir -p \$dldir~
15823 $install_prog $dir/$dlname \$dldir/$dlname~
15824 chmod a+x \$dldir/$dlname~
15825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15827 fi'
15828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15829 dlpath=$dir/\$dldll~
15830 $RM \$dlpath'
15831 ;;
15832
15833 osf3* | osf4* | osf5*)
15834 version_type=osf
15835 need_lib_prefix=no
15836 need_version=no
15837 soname_spec='$libname$release$shared_ext$major'
15838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15842 ;;
15843
15844 rdos*)
15845 dynamic_linker=no
15846 ;;
15847
15848 solaris*)
15849 version_type=linux # correct to gnu/linux during the next big refactor
15850 need_lib_prefix=no
15851 need_version=no
15852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15853 soname_spec='$libname$release$shared_ext$major'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=yes
15856 hardcode_into_libs=yes
15857 # ldd complains unless libraries are executable
15858 postinstall_cmds='chmod +x $lib'
15859 ;;
15860
15861 sunos4*)
15862 version_type=sunos
15863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=yes
15867 if test yes = "$with_gnu_ld"; then
15868 need_lib_prefix=no
15869 fi
15870 need_version=yes
15871 ;;
15872
15873 sysv4 | sysv4.3*)
15874 version_type=linux # correct to gnu/linux during the next big refactor
15875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15876 soname_spec='$libname$release$shared_ext$major'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 case $host_vendor in
15879 sni)
15880 shlibpath_overrides_runpath=no
15881 need_lib_prefix=no
15882 runpath_var=LD_RUN_PATH
15883 ;;
15884 siemens)
15885 need_lib_prefix=no
15886 ;;
15887 motorola)
15888 need_lib_prefix=no
15889 need_version=no
15890 shlibpath_overrides_runpath=no
15891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15892 ;;
15893 esac
15894 ;;
15895
15896 sysv4*MP*)
15897 if test -d /usr/nec; then
15898 version_type=linux # correct to gnu/linux during the next big refactor
15899 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15900 soname_spec='$libname$shared_ext.$major'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 fi
15903 ;;
15904
15905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15906 version_type=sco
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15910 soname_spec='$libname$release$shared_ext$major'
15911 shlibpath_var=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath=yes
15913 hardcode_into_libs=yes
15914 if test yes = "$with_gnu_ld"; then
15915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15916 else
15917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15918 case $host_os in
15919 sco3.2v5*)
15920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15921 ;;
15922 esac
15923 fi
15924 sys_lib_dlsearch_path_spec='/usr/lib'
15925 ;;
15926
15927 tpf*)
15928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15929 version_type=linux # correct to gnu/linux during the next big refactor
15930 need_lib_prefix=no
15931 need_version=no
15932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 shlibpath_overrides_runpath=no
15935 hardcode_into_libs=yes
15936 ;;
15937
15938 uts4*)
15939 version_type=linux # correct to gnu/linux during the next big refactor
15940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15941 soname_spec='$libname$release$shared_ext$major'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 ;;
15944
15945 *)
15946 dynamic_linker=no
15947 ;;
15948 esac
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15950 $as_echo "$dynamic_linker" >&6; }
15951 test no = "$dynamic_linker" && can_build_shared=no
15952
15953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15954 if test yes = "$GCC"; then
15955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15956 fi
15957
15958 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15959 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15960 fi
15961
15962 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15963 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15964 fi
15965
15966 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15967 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15968
15969 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15970 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15971
15972 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15973 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16015 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16016 hardcode_action_CXX=
16017 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16018 test -n "$runpath_var_CXX" ||
16019 test yes = "$hardcode_automatic_CXX"; then
16020
16021 # We can hardcode non-existent directories.
16022 if test no != "$hardcode_direct_CXX" &&
16023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16024 # have to relink, otherwise we might link with an installed library
16025 # when we should be linking with a yet-to-be-installed one
16026 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16027 test no != "$hardcode_minus_L_CXX"; then
16028 # Linking always hardcodes the temporary library directory.
16029 hardcode_action_CXX=relink
16030 else
16031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16032 hardcode_action_CXX=immediate
16033 fi
16034 else
16035 # We cannot hardcode anything, or else we can only hardcode existing
16036 # directories.
16037 hardcode_action_CXX=unsupported
16038 fi
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16040 $as_echo "$hardcode_action_CXX" >&6; }
16041
16042 if test relink = "$hardcode_action_CXX" ||
16043 test yes = "$inherit_rpath_CXX"; then
16044 # Fast installation is not supported
16045 enable_fast_install=no
16046 elif test yes = "$shlibpath_overrides_runpath" ||
16047 test no = "$enable_shared"; then
16048 # Fast installation is not necessary
16049 enable_fast_install=needless
16050 fi
16051
16052
16053
16054
16055
16056
16057
16058 fi # test -n "$compiler"
16059
16060 CC=$lt_save_CC
16061 CFLAGS=$lt_save_CFLAGS
16062 LDCXX=$LD
16063 LD=$lt_save_LD
16064 GCC=$lt_save_GCC
16065 with_gnu_ld=$lt_save_with_gnu_ld
16066 lt_cv_path_LDCXX=$lt_cv_path_LD
16067 lt_cv_path_LD=$lt_save_path_LD
16068 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16069 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16070 fi # test yes != "$_lt_caught_CXX_error"
16071
16072 ac_ext=cpp
16073 ac_cpp='$CXXCPP $CPPFLAGS'
16074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092 ac_config_commands="$ac_config_commands libtool"
16093
16094
16095
16096
16097 # Only expand once:
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16109 if test -n "$ac_tool_prefix"; then
16110 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16111 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16113 $as_echo_n "checking for $ac_word... " >&6; }
16114 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16115 $as_echo_n "(cached) " >&6
16116 else
16117 case $PKG_CONFIG in
16118 [\\/]* | ?:[\\/]*)
16119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16120 ;;
16121 *)
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16124 do
16125 IFS=$as_save_IFS
16126 test -z "$as_dir" && as_dir=.
16127 for ac_exec_ext in '' $ac_executable_extensions; do
16128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131 break 2
16132 fi
16133 done
16134 done
16135 IFS=$as_save_IFS
16136
16137 ;;
16138 esac
16139 fi
16140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16141 if test -n "$PKG_CONFIG"; then
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16143 $as_echo "$PKG_CONFIG" >&6; }
16144 else
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16147 fi
16148
16149
16150 fi
16151 if test -z "$ac_cv_path_PKG_CONFIG"; then
16152 ac_pt_PKG_CONFIG=$PKG_CONFIG
16153 # Extract the first word of "pkg-config", so it can be a program name with args.
16154 set dummy pkg-config; ac_word=$2
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16156 $as_echo_n "checking for $ac_word... " >&6; }
16157 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 case $ac_pt_PKG_CONFIG in
16161 [\\/]* | ?:[\\/]*)
16162 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16163 ;;
16164 *)
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16167 do
16168 IFS=$as_save_IFS
16169 test -z "$as_dir" && as_dir=.
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16174 break 2
16175 fi
16176 done
16177 done
16178 IFS=$as_save_IFS
16179
16180 ;;
16181 esac
16182 fi
16183 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16184 if test -n "$ac_pt_PKG_CONFIG"; then
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16186 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16187 else
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191
16192 if test "x$ac_pt_PKG_CONFIG" = x; then
16193 PKG_CONFIG=""
16194 else
16195 case $cross_compiling:$ac_tool_warned in
16196 yes:)
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16199 ac_tool_warned=yes ;;
16200 esac
16201 PKG_CONFIG=$ac_pt_PKG_CONFIG
16202 fi
16203 else
16204 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16205 fi
16206
16207 fi
16208 if test -n "$PKG_CONFIG"; then
16209 _pkg_min_version=0.20
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16211 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16212 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16214 $as_echo "yes" >&6; }
16215 else
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16217 $as_echo "no" >&6; }
16218 PKG_CONFIG=""
16219 fi
16220 fi
16221
16222 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
16223 ac_ext=cpp
16224 ac_cpp='$CXXCPP $CPPFLAGS'
16225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16228 ac_success=no
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16230 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16231 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16232 $as_echo_n "(cached) " >&6
16233 else
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16236
16237
16238 // If the compiler admits that it is not ready for C++11, why torture it?
16239 // Hopefully, this will speed up the test.
16240
16241 #ifndef __cplusplus
16242
16243 #error "This is not a C++ compiler"
16244
16245 #elif __cplusplus < 201103L && !(defined _MSC_VER)
16246
16247 #error "This is not a C++11 compiler"
16248
16249 #else
16250
16251 namespace cxx11
16252 {
16253
16254 namespace test_static_assert
16255 {
16256
16257 template <typename T>
16258 struct check
16259 {
16260 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16261 };
16262
16263 }
16264
16265 namespace test_final_override
16266 {
16267
16268 struct Base
16269 {
16270 virtual void f() {}
16271 };
16272
16273 struct Derived : public Base
16274 {
16275 virtual void f() override {}
16276 };
16277
16278 }
16279
16280 namespace test_double_right_angle_brackets
16281 {
16282
16283 template < typename T >
16284 struct check {};
16285
16286 typedef check<void> single_type;
16287 typedef check<check<void>> double_type;
16288 typedef check<check<check<void>>> triple_type;
16289 typedef check<check<check<check<void>>>> quadruple_type;
16290
16291 }
16292
16293 namespace test_decltype
16294 {
16295
16296 int
16297 f()
16298 {
16299 int a = 1;
16300 decltype(a) b = 2;
16301 return a + b;
16302 }
16303
16304 }
16305
16306 namespace test_type_deduction
16307 {
16308
16309 template < typename T1, typename T2 >
16310 struct is_same
16311 {
16312 static const bool value = false;
16313 };
16314
16315 template < typename T >
16316 struct is_same<T, T>
16317 {
16318 static const bool value = true;
16319 };
16320
16321 template < typename T1, typename T2 >
16322 auto
16323 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16324 {
16325 return a1 + a2;
16326 }
16327
16328 int
16329 test(const int c, volatile int v)
16330 {
16331 static_assert(is_same<int, decltype(0)>::value == true, "");
16332 static_assert(is_same<int, decltype(c)>::value == false, "");
16333 static_assert(is_same<int, decltype(v)>::value == false, "");
16334 auto ac = c;
16335 auto av = v;
16336 auto sumi = ac + av + 'x';
16337 auto sumf = ac + av + 1.0;
16338 static_assert(is_same<int, decltype(ac)>::value == true, "");
16339 static_assert(is_same<int, decltype(av)>::value == true, "");
16340 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16341 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16342 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16343 return (sumf > 0.0) ? sumi : add(c, v);
16344 }
16345
16346 }
16347
16348 namespace test_noexcept
16349 {
16350
16351 int f() { return 0; }
16352 int g() noexcept { return 0; }
16353
16354 static_assert(noexcept(f()) == false, "");
16355 static_assert(noexcept(g()) == true, "");
16356
16357 }
16358
16359 namespace test_constexpr
16360 {
16361
16362 template < typename CharT >
16363 unsigned long constexpr
16364 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16365 {
16366 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16367 }
16368
16369 template < typename CharT >
16370 unsigned long constexpr
16371 strlen_c(const CharT *const s) noexcept
16372 {
16373 return strlen_c_r(s, 0UL);
16374 }
16375
16376 static_assert(strlen_c("") == 0UL, "");
16377 static_assert(strlen_c("1") == 1UL, "");
16378 static_assert(strlen_c("example") == 7UL, "");
16379 static_assert(strlen_c("another\0example") == 7UL, "");
16380
16381 }
16382
16383 namespace test_rvalue_references
16384 {
16385
16386 template < int N >
16387 struct answer
16388 {
16389 static constexpr int value = N;
16390 };
16391
16392 answer<1> f(int&) { return answer<1>(); }
16393 answer<2> f(const int&) { return answer<2>(); }
16394 answer<3> f(int&&) { return answer<3>(); }
16395
16396 void
16397 test()
16398 {
16399 int i = 0;
16400 const int c = 0;
16401 static_assert(decltype(f(i))::value == 1, "");
16402 static_assert(decltype(f(c))::value == 2, "");
16403 static_assert(decltype(f(0))::value == 3, "");
16404 }
16405
16406 }
16407
16408 namespace test_uniform_initialization
16409 {
16410
16411 struct test
16412 {
16413 static const int zero {};
16414 static const int one {1};
16415 };
16416
16417 static_assert(test::zero == 0, "");
16418 static_assert(test::one == 1, "");
16419
16420 }
16421
16422 namespace test_lambdas
16423 {
16424
16425 void
16426 test1()
16427 {
16428 auto lambda1 = [](){};
16429 auto lambda2 = lambda1;
16430 lambda1();
16431 lambda2();
16432 }
16433
16434 int
16435 test2()
16436 {
16437 auto a = [](int i, int j){ return i + j; }(1, 2);
16438 auto b = []() -> int { return '0'; }();
16439 auto c = [=](){ return a + b; }();
16440 auto d = [&](){ return c; }();
16441 auto e = [a, &b](int x) mutable {
16442 const auto identity = [](int y){ return y; };
16443 for (auto i = 0; i < a; ++i)
16444 a += b--;
16445 return x + identity(a + b);
16446 }(0);
16447 return a + b + c + d + e;
16448 }
16449
16450 int
16451 test3()
16452 {
16453 const auto nullary = [](){ return 0; };
16454 const auto unary = [](int x){ return x; };
16455 using nullary_t = decltype(nullary);
16456 using unary_t = decltype(unary);
16457 const auto higher1st = [](nullary_t f){ return f(); };
16458 const auto higher2nd = [unary](nullary_t f1){
16459 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16460 };
16461 return higher1st(nullary) + higher2nd(nullary)(unary);
16462 }
16463
16464 }
16465
16466 namespace test_variadic_templates
16467 {
16468
16469 template <int...>
16470 struct sum;
16471
16472 template <int N0, int... N1toN>
16473 struct sum<N0, N1toN...>
16474 {
16475 static constexpr auto value = N0 + sum<N1toN...>::value;
16476 };
16477
16478 template <>
16479 struct sum<>
16480 {
16481 static constexpr auto value = 0;
16482 };
16483
16484 static_assert(sum<>::value == 0, "");
16485 static_assert(sum<1>::value == 1, "");
16486 static_assert(sum<23>::value == 23, "");
16487 static_assert(sum<1, 2>::value == 3, "");
16488 static_assert(sum<5, 5, 11>::value == 21, "");
16489 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16490
16491 }
16492
16493 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16494 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16495 // because of this.
16496 namespace test_template_alias_sfinae
16497 {
16498
16499 struct foo {};
16500
16501 template<typename T>
16502 using member = typename T::member_type;
16503
16504 template<typename T>
16505 void func(...) {}
16506
16507 template<typename T>
16508 void func(member<T>*) {}
16509
16510 void test();
16511
16512 void test() { func<foo>(0); }
16513
16514 }
16515
16516 } // namespace cxx11
16517
16518 #endif // __cplusplus >= 201103L
16519
16520
16521
16522 _ACEOF
16523 if ac_fn_cxx_try_compile "$LINENO"; then :
16524 ax_cv_cxx_compile_cxx11=yes
16525 else
16526 ax_cv_cxx_compile_cxx11=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16531 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16532 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16533 ac_success=yes
16534 fi
16535
16536 if test x$ac_success = xno; then
16537 for alternative in ${ax_cxx_compile_alternatives}; do
16538 switch="-std=gnu++${alternative}"
16539 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16541 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16542 if eval \${$cachevar+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 ac_save_CXX="$CXX"
16546 CXX="$CXX $switch"
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549
16550
16551 // If the compiler admits that it is not ready for C++11, why torture it?
16552 // Hopefully, this will speed up the test.
16553
16554 #ifndef __cplusplus
16555
16556 #error "This is not a C++ compiler"
16557
16558 #elif __cplusplus < 201103L && !(defined _MSC_VER)
16559
16560 #error "This is not a C++11 compiler"
16561
16562 #else
16563
16564 namespace cxx11
16565 {
16566
16567 namespace test_static_assert
16568 {
16569
16570 template <typename T>
16571 struct check
16572 {
16573 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16574 };
16575
16576 }
16577
16578 namespace test_final_override
16579 {
16580
16581 struct Base
16582 {
16583 virtual void f() {}
16584 };
16585
16586 struct Derived : public Base
16587 {
16588 virtual void f() override {}
16589 };
16590
16591 }
16592
16593 namespace test_double_right_angle_brackets
16594 {
16595
16596 template < typename T >
16597 struct check {};
16598
16599 typedef check<void> single_type;
16600 typedef check<check<void>> double_type;
16601 typedef check<check<check<void>>> triple_type;
16602 typedef check<check<check<check<void>>>> quadruple_type;
16603
16604 }
16605
16606 namespace test_decltype
16607 {
16608
16609 int
16610 f()
16611 {
16612 int a = 1;
16613 decltype(a) b = 2;
16614 return a + b;
16615 }
16616
16617 }
16618
16619 namespace test_type_deduction
16620 {
16621
16622 template < typename T1, typename T2 >
16623 struct is_same
16624 {
16625 static const bool value = false;
16626 };
16627
16628 template < typename T >
16629 struct is_same<T, T>
16630 {
16631 static const bool value = true;
16632 };
16633
16634 template < typename T1, typename T2 >
16635 auto
16636 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16637 {
16638 return a1 + a2;
16639 }
16640
16641 int
16642 test(const int c, volatile int v)
16643 {
16644 static_assert(is_same<int, decltype(0)>::value == true, "");
16645 static_assert(is_same<int, decltype(c)>::value == false, "");
16646 static_assert(is_same<int, decltype(v)>::value == false, "");
16647 auto ac = c;
16648 auto av = v;
16649 auto sumi = ac + av + 'x';
16650 auto sumf = ac + av + 1.0;
16651 static_assert(is_same<int, decltype(ac)>::value == true, "");
16652 static_assert(is_same<int, decltype(av)>::value == true, "");
16653 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16654 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16655 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16656 return (sumf > 0.0) ? sumi : add(c, v);
16657 }
16658
16659 }
16660
16661 namespace test_noexcept
16662 {
16663
16664 int f() { return 0; }
16665 int g() noexcept { return 0; }
16666
16667 static_assert(noexcept(f()) == false, "");
16668 static_assert(noexcept(g()) == true, "");
16669
16670 }
16671
16672 namespace test_constexpr
16673 {
16674
16675 template < typename CharT >
16676 unsigned long constexpr
16677 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16678 {
16679 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16680 }
16681
16682 template < typename CharT >
16683 unsigned long constexpr
16684 strlen_c(const CharT *const s) noexcept
16685 {
16686 return strlen_c_r(s, 0UL);
16687 }
16688
16689 static_assert(strlen_c("") == 0UL, "");
16690 static_assert(strlen_c("1") == 1UL, "");
16691 static_assert(strlen_c("example") == 7UL, "");
16692 static_assert(strlen_c("another\0example") == 7UL, "");
16693
16694 }
16695
16696 namespace test_rvalue_references
16697 {
16698
16699 template < int N >
16700 struct answer
16701 {
16702 static constexpr int value = N;
16703 };
16704
16705 answer<1> f(int&) { return answer<1>(); }
16706 answer<2> f(const int&) { return answer<2>(); }
16707 answer<3> f(int&&) { return answer<3>(); }
16708
16709 void
16710 test()
16711 {
16712 int i = 0;
16713 const int c = 0;
16714 static_assert(decltype(f(i))::value == 1, "");
16715 static_assert(decltype(f(c))::value == 2, "");
16716 static_assert(decltype(f(0))::value == 3, "");
16717 }
16718
16719 }
16720
16721 namespace test_uniform_initialization
16722 {
16723
16724 struct test
16725 {
16726 static const int zero {};
16727 static const int one {1};
16728 };
16729
16730 static_assert(test::zero == 0, "");
16731 static_assert(test::one == 1, "");
16732
16733 }
16734
16735 namespace test_lambdas
16736 {
16737
16738 void
16739 test1()
16740 {
16741 auto lambda1 = [](){};
16742 auto lambda2 = lambda1;
16743 lambda1();
16744 lambda2();
16745 }
16746
16747 int
16748 test2()
16749 {
16750 auto a = [](int i, int j){ return i + j; }(1, 2);
16751 auto b = []() -> int { return '0'; }();
16752 auto c = [=](){ return a + b; }();
16753 auto d = [&](){ return c; }();
16754 auto e = [a, &b](int x) mutable {
16755 const auto identity = [](int y){ return y; };
16756 for (auto i = 0; i < a; ++i)
16757 a += b--;
16758 return x + identity(a + b);
16759 }(0);
16760 return a + b + c + d + e;
16761 }
16762
16763 int
16764 test3()
16765 {
16766 const auto nullary = [](){ return 0; };
16767 const auto unary = [](int x){ return x; };
16768 using nullary_t = decltype(nullary);
16769 using unary_t = decltype(unary);
16770 const auto higher1st = [](nullary_t f){ return f(); };
16771 const auto higher2nd = [unary](nullary_t f1){
16772 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16773 };
16774 return higher1st(nullary) + higher2nd(nullary)(unary);
16775 }
16776
16777 }
16778
16779 namespace test_variadic_templates
16780 {
16781
16782 template <int...>
16783 struct sum;
16784
16785 template <int N0, int... N1toN>
16786 struct sum<N0, N1toN...>
16787 {
16788 static constexpr auto value = N0 + sum<N1toN...>::value;
16789 };
16790
16791 template <>
16792 struct sum<>
16793 {
16794 static constexpr auto value = 0;
16795 };
16796
16797 static_assert(sum<>::value == 0, "");
16798 static_assert(sum<1>::value == 1, "");
16799 static_assert(sum<23>::value == 23, "");
16800 static_assert(sum<1, 2>::value == 3, "");
16801 static_assert(sum<5, 5, 11>::value == 21, "");
16802 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16803
16804 }
16805
16806 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16807 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16808 // because of this.
16809 namespace test_template_alias_sfinae
16810 {
16811
16812 struct foo {};
16813
16814 template<typename T>
16815 using member = typename T::member_type;
16816
16817 template<typename T>
16818 void func(...) {}
16819
16820 template<typename T>
16821 void func(member<T>*) {}
16822
16823 void test();
16824
16825 void test() { func<foo>(0); }
16826
16827 }
16828
16829 } // namespace cxx11
16830
16831 #endif // __cplusplus >= 201103L
16832
16833
16834
16835 _ACEOF
16836 if ac_fn_cxx_try_compile "$LINENO"; then :
16837 eval $cachevar=yes
16838 else
16839 eval $cachevar=no
16840 fi
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 CXX="$ac_save_CXX"
16843 fi
16844 eval ac_res=\$$cachevar
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16846 $as_echo "$ac_res" >&6; }
16847 if eval test x\$$cachevar = xyes; then
16848 CXX="$CXX $switch"
16849 if test -n "$CXXCPP" ; then
16850 CXXCPP="$CXXCPP $switch"
16851 fi
16852 ac_success=yes
16853 break
16854 fi
16855 done
16856 fi
16857
16858 if test x$ac_success = xno; then
16859 for alternative in ${ax_cxx_compile_alternatives}; do
16860 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
16861 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16863 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16864 if eval \${$cachevar+:} false; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867 ac_save_CXX="$CXX"
16868 CXX="$CXX $switch"
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871
16872
16873 // If the compiler admits that it is not ready for C++11, why torture it?
16874 // Hopefully, this will speed up the test.
16875
16876 #ifndef __cplusplus
16877
16878 #error "This is not a C++ compiler"
16879
16880 #elif __cplusplus < 201103L && !(defined _MSC_VER)
16881
16882 #error "This is not a C++11 compiler"
16883
16884 #else
16885
16886 namespace cxx11
16887 {
16888
16889 namespace test_static_assert
16890 {
16891
16892 template <typename T>
16893 struct check
16894 {
16895 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16896 };
16897
16898 }
16899
16900 namespace test_final_override
16901 {
16902
16903 struct Base
16904 {
16905 virtual void f() {}
16906 };
16907
16908 struct Derived : public Base
16909 {
16910 virtual void f() override {}
16911 };
16912
16913 }
16914
16915 namespace test_double_right_angle_brackets
16916 {
16917
16918 template < typename T >
16919 struct check {};
16920
16921 typedef check<void> single_type;
16922 typedef check<check<void>> double_type;
16923 typedef check<check<check<void>>> triple_type;
16924 typedef check<check<check<check<void>>>> quadruple_type;
16925
16926 }
16927
16928 namespace test_decltype
16929 {
16930
16931 int
16932 f()
16933 {
16934 int a = 1;
16935 decltype(a) b = 2;
16936 return a + b;
16937 }
16938
16939 }
16940
16941 namespace test_type_deduction
16942 {
16943
16944 template < typename T1, typename T2 >
16945 struct is_same
16946 {
16947 static const bool value = false;
16948 };
16949
16950 template < typename T >
16951 struct is_same<T, T>
16952 {
16953 static const bool value = true;
16954 };
16955
16956 template < typename T1, typename T2 >
16957 auto
16958 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16959 {
16960 return a1 + a2;
16961 }
16962
16963 int
16964 test(const int c, volatile int v)
16965 {
16966 static_assert(is_same<int, decltype(0)>::value == true, "");
16967 static_assert(is_same<int, decltype(c)>::value == false, "");
16968 static_assert(is_same<int, decltype(v)>::value == false, "");
16969 auto ac = c;
16970 auto av = v;
16971 auto sumi = ac + av + 'x';
16972 auto sumf = ac + av + 1.0;
16973 static_assert(is_same<int, decltype(ac)>::value == true, "");
16974 static_assert(is_same<int, decltype(av)>::value == true, "");
16975 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16976 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16977 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16978 return (sumf > 0.0) ? sumi : add(c, v);
16979 }
16980
16981 }
16982
16983 namespace test_noexcept
16984 {
16985
16986 int f() { return 0; }
16987 int g() noexcept { return 0; }
16988
16989 static_assert(noexcept(f()) == false, "");
16990 static_assert(noexcept(g()) == true, "");
16991
16992 }
16993
16994 namespace test_constexpr
16995 {
16996
16997 template < typename CharT >
16998 unsigned long constexpr
16999 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17000 {
17001 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17002 }
17003
17004 template < typename CharT >
17005 unsigned long constexpr
17006 strlen_c(const CharT *const s) noexcept
17007 {
17008 return strlen_c_r(s, 0UL);
17009 }
17010
17011 static_assert(strlen_c("") == 0UL, "");
17012 static_assert(strlen_c("1") == 1UL, "");
17013 static_assert(strlen_c("example") == 7UL, "");
17014 static_assert(strlen_c("another\0example") == 7UL, "");
17015
17016 }
17017
17018 namespace test_rvalue_references
17019 {
17020
17021 template < int N >
17022 struct answer
17023 {
17024 static constexpr int value = N;
17025 };
17026
17027 answer<1> f(int&) { return answer<1>(); }
17028 answer<2> f(const int&) { return answer<2>(); }
17029 answer<3> f(int&&) { return answer<3>(); }
17030
17031 void
17032 test()
17033 {
17034 int i = 0;
17035 const int c = 0;
17036 static_assert(decltype(f(i))::value == 1, "");
17037 static_assert(decltype(f(c))::value == 2, "");
17038 static_assert(decltype(f(0))::value == 3, "");
17039 }
17040
17041 }
17042
17043 namespace test_uniform_initialization
17044 {
17045
17046 struct test
17047 {
17048 static const int zero {};
17049 static const int one {1};
17050 };
17051
17052 static_assert(test::zero == 0, "");
17053 static_assert(test::one == 1, "");
17054
17055 }
17056
17057 namespace test_lambdas
17058 {
17059
17060 void
17061 test1()
17062 {
17063 auto lambda1 = [](){};
17064 auto lambda2 = lambda1;
17065 lambda1();
17066 lambda2();
17067 }
17068
17069 int
17070 test2()
17071 {
17072 auto a = [](int i, int j){ return i + j; }(1, 2);
17073 auto b = []() -> int { return '0'; }();
17074 auto c = [=](){ return a + b; }();
17075 auto d = [&](){ return c; }();
17076 auto e = [a, &b](int x) mutable {
17077 const auto identity = [](int y){ return y; };
17078 for (auto i = 0; i < a; ++i)
17079 a += b--;
17080 return x + identity(a + b);
17081 }(0);
17082 return a + b + c + d + e;
17083 }
17084
17085 int
17086 test3()
17087 {
17088 const auto nullary = [](){ return 0; };
17089 const auto unary = [](int x){ return x; };
17090 using nullary_t = decltype(nullary);
17091 using unary_t = decltype(unary);
17092 const auto higher1st = [](nullary_t f){ return f(); };
17093 const auto higher2nd = [unary](nullary_t f1){
17094 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17095 };
17096 return higher1st(nullary) + higher2nd(nullary)(unary);
17097 }
17098
17099 }
17100
17101 namespace test_variadic_templates
17102 {
17103
17104 template <int...>
17105 struct sum;
17106
17107 template <int N0, int... N1toN>
17108 struct sum<N0, N1toN...>
17109 {
17110 static constexpr auto value = N0 + sum<N1toN...>::value;
17111 };
17112
17113 template <>
17114 struct sum<>
17115 {
17116 static constexpr auto value = 0;
17117 };
17118
17119 static_assert(sum<>::value == 0, "");
17120 static_assert(sum<1>::value == 1, "");
17121 static_assert(sum<23>::value == 23, "");
17122 static_assert(sum<1, 2>::value == 3, "");
17123 static_assert(sum<5, 5, 11>::value == 21, "");
17124 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17125
17126 }
17127
17128 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17129 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17130 // because of this.
17131 namespace test_template_alias_sfinae
17132 {
17133
17134 struct foo {};
17135
17136 template<typename T>
17137 using member = typename T::member_type;
17138
17139 template<typename T>
17140 void func(...) {}
17141
17142 template<typename T>
17143 void func(member<T>*) {}
17144
17145 void test();
17146
17147 void test() { func<foo>(0); }
17148
17149 }
17150
17151 } // namespace cxx11
17152
17153 #endif // __cplusplus >= 201103L
17154
17155
17156
17157 _ACEOF
17158 if ac_fn_cxx_try_compile "$LINENO"; then :
17159 eval $cachevar=yes
17160 else
17161 eval $cachevar=no
17162 fi
17163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17164 CXX="$ac_save_CXX"
17165 fi
17166 eval ac_res=\$$cachevar
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17168 $as_echo "$ac_res" >&6; }
17169 if eval test x\$$cachevar = xyes; then
17170 CXX="$CXX $switch"
17171 if test -n "$CXXCPP" ; then
17172 CXXCPP="$CXXCPP $switch"
17173 fi
17174 ac_success=yes
17175 break
17176 fi
17177 done
17178 if test x$ac_success = xyes; then
17179 break
17180 fi
17181 done
17182 fi
17183 ac_ext=cpp
17184 ac_cpp='$CXXCPP $CPPFLAGS'
17185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17188
17189 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17190 if test x$ac_success = xno; then
17191 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17192 fi
17193 fi
17194 if test x$ac_success = xno; then
17195 HAVE_CXX11=0
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17197 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17198 else
17199 HAVE_CXX11=1
17200
17201 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17202
17203 fi
17204
17205
17206
17207
17208
17209
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
17211 $as_echo_n "checking for __attribute__((format))... " >&6; }
17212 if ${ax_cv_have_func_attribute_format+:} false; then :
17213 $as_echo_n "(cached) " >&6
17214 else
17215
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17218
17219
17220 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
17221
17222 int
17223 main ()
17224 {
17225
17226 ;
17227 return 0;
17228 }
17229
17230 _ACEOF
17231 if ac_fn_cxx_try_link "$LINENO"; then :
17232 if test -s conftest.err; then :
17233 ax_cv_have_func_attribute_format=no
17234 else
17235 ax_cv_have_func_attribute_format=yes
17236 fi
17237 else
17238 ax_cv_have_func_attribute_format=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242
17243 fi
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
17245 $as_echo "$ax_cv_have_func_attribute_format" >&6; }
17246
17247 if test yes = $ax_cv_have_func_attribute_format; then :
17248
17249 cat >>confdefs.h <<_ACEOF
17250 #define HAVE_FUNC_ATTRIBUTE_FORMAT 1
17251 _ACEOF
17252
17253 fi
17254
17255
17256
17257
17258 # ====================
17259 # Find additional apps
17260 # ====================
17261
17262 pkg_failed=no
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for
17264 librevenge-0.0
17265 librevenge-stream-0.0
17266 " >&5
17267 $as_echo_n "checking for
17268 librevenge-0.0
17269 librevenge-stream-0.0
17270 ... " >&6; }
17271
17272 if test -n "$REVENGE_CFLAGS"; then
17273 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
17274 elif test -n "$PKG_CONFIG"; then
17275 if test -n "$PKG_CONFIG" && \
17276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17277 librevenge-0.0
17278 librevenge-stream-0.0
17279 \""; } >&5
17280 ($PKG_CONFIG --exists --print-errors "
17281 librevenge-0.0
17282 librevenge-stream-0.0
17283 ") 2>&5
17284 ac_status=$?
17285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17286 test $ac_status = 0; }; then
17287 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "
17288 librevenge-0.0
17289 librevenge-stream-0.0
17290 " 2>/dev/null`
17291 test "x$?" != "x0" && pkg_failed=yes
17292 else
17293 pkg_failed=yes
17294 fi
17295 else
17296 pkg_failed=untried
17297 fi
17298 if test -n "$REVENGE_LIBS"; then
17299 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
17300 elif test -n "$PKG_CONFIG"; then
17301 if test -n "$PKG_CONFIG" && \
17302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17303 librevenge-0.0
17304 librevenge-stream-0.0
17305 \""; } >&5
17306 ($PKG_CONFIG --exists --print-errors "
17307 librevenge-0.0
17308 librevenge-stream-0.0
17309 ") 2>&5
17310 ac_status=$?
17311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312 test $ac_status = 0; }; then
17313 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "
17314 librevenge-0.0
17315 librevenge-stream-0.0
17316 " 2>/dev/null`
17317 test "x$?" != "x0" && pkg_failed=yes
17318 else
17319 pkg_failed=yes
17320 fi
17321 else
17322 pkg_failed=untried
17323 fi
17324
17325
17326
17327 if test $pkg_failed = yes; then
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17330
17331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17332 _pkg_short_errors_supported=yes
17333 else
17334 _pkg_short_errors_supported=no
17335 fi
17336 if test $_pkg_short_errors_supported = yes; then
17337 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17338 librevenge-0.0
17339 librevenge-stream-0.0
17340 " 2>&1`
17341 else
17342 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17343 librevenge-0.0
17344 librevenge-stream-0.0
17345 " 2>&1`
17346 fi
17347 # Put the nasty error message in config.log where it belongs
17348 echo "$REVENGE_PKG_ERRORS" >&5
17349
17350 as_fn_error $? "Package requirements (
17351 librevenge-0.0
17352 librevenge-stream-0.0
17353 ) were not met:
17354
17355 $REVENGE_PKG_ERRORS
17356
17357 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17358 installed software in a non-standard prefix.
17359
17360 Alternatively, you may set the environment variables REVENGE_CFLAGS
17361 and REVENGE_LIBS to avoid the need to call pkg-config.
17362 See the pkg-config man page for more details." "$LINENO" 5
17363 elif test $pkg_failed = untried; then
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17368 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17369 is in your PATH or set the PKG_CONFIG environment variable to the full
17370 path to pkg-config.
17371
17372 Alternatively, you may set the environment variables REVENGE_CFLAGS
17373 and REVENGE_LIBS to avoid the need to call pkg-config.
17374 See the pkg-config man page for more details.
17375
17376 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17377 See \`config.log' for more details" "$LINENO" 5; }
17378 else
17379 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
17380 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17382 $as_echo "yes" >&6; }
17383
17384 fi
17385
17386
17387
17388
17389 pkg_failed=no
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
17391 $as_echo_n "checking for libxml-2.0... " >&6; }
17392
17393 if test -n "$XML_CFLAGS"; then
17394 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
17395 elif test -n "$PKG_CONFIG"; then
17396 if test -n "$PKG_CONFIG" && \
17397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
17398 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
17399 ac_status=$?
17400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17401 test $ac_status = 0; }; then
17402 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
17403 test "x$?" != "x0" && pkg_failed=yes
17404 else
17405 pkg_failed=yes
17406 fi
17407 else
17408 pkg_failed=untried
17409 fi
17410 if test -n "$XML_LIBS"; then
17411 pkg_cv_XML_LIBS="$XML_LIBS"
17412 elif test -n "$PKG_CONFIG"; then
17413 if test -n "$PKG_CONFIG" && \
17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
17415 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
17416 ac_status=$?
17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17418 test $ac_status = 0; }; then
17419 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
17420 test "x$?" != "x0" && pkg_failed=yes
17421 else
17422 pkg_failed=yes
17423 fi
17424 else
17425 pkg_failed=untried
17426 fi
17427
17428
17429
17430 if test $pkg_failed = yes; then
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17432 $as_echo "no" >&6; }
17433
17434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17435 _pkg_short_errors_supported=yes
17436 else
17437 _pkg_short_errors_supported=no
17438 fi
17439 if test $_pkg_short_errors_supported = yes; then
17440 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
17441 else
17442 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
17443 fi
17444 # Put the nasty error message in config.log where it belongs
17445 echo "$XML_PKG_ERRORS" >&5
17446
17447 as_fn_error $? "Package requirements (libxml-2.0) were not met:
17448
17449 $XML_PKG_ERRORS
17450
17451 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17452 installed software in a non-standard prefix.
17453
17454 Alternatively, you may set the environment variables XML_CFLAGS
17455 and XML_LIBS to avoid the need to call pkg-config.
17456 See the pkg-config man page for more details." "$LINENO" 5
17457 elif test $pkg_failed = untried; then
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 $as_echo "no" >&6; }
17460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17462 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17463 is in your PATH or set the PKG_CONFIG environment variable to the full
17464 path to pkg-config.
17465
17466 Alternatively, you may set the environment variables XML_CFLAGS
17467 and XML_LIBS to avoid the need to call pkg-config.
17468 See the pkg-config man page for more details.
17469
17470 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17471 See \`config.log' for more details" "$LINENO" 5; }
17472 else
17473 XML_CFLAGS=$pkg_cv_XML_CFLAGS
17474 XML_LIBS=$pkg_cv_XML_LIBS
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17476 $as_echo "yes" >&6; }
17477
17478 fi
17479
17480 # =================================
17481 # Libtool/Version Makefile settings
17482 # =================================
17483 LIBODFGEN_MAJOR_VERSION=0
17484
17485 LIBODFGEN_MINOR_VERSION=1
17486
17487 LIBODFGEN_MICRO_VERSION=8
17488
17489 # AC_SUBST(LT_RELEASE, [libodfgen_version_major.libodfgen_version_minor])
17490 LT_CURRENT=`expr 100 '*' 0 + 1`
17491 # For 1.0.0 comment the first line and uncomment the second
17492 LT_AGE=0
17493 # LT_AGE=libodfgen_version_minor
17494
17495 LT_REVISION=8
17496
17497
17498
17499 # ==========================
17500 # Platform check for windows
17501 # ==========================
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
17503 $as_echo_n "checking for native Win32... " >&6; }
17504 case $host in #(
17505 *-*-mingw*) :
17506
17507 native_win32=yes
17508 LIBODFGEN_WIN32_RESOURCE=libodfgen-win32res.lo
17509 ;; #(
17510 *) :
17511
17512 native_win32=no
17513 LIBODFGEN_WIN32_RESOURCE=
17514
17515 ;;
17516 esac
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
17518 $as_echo "$native_win32" >&6; }
17519 if test "x$native_win32" = "xyes"; then
17520 OS_WIN32_TRUE=
17521 OS_WIN32_FALSE='#'
17522 else
17523 OS_WIN32_TRUE='#'
17524 OS_WIN32_FALSE=
17525 fi
17526
17527
17528
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
17530 $as_echo_n "checking for Win32 platform in general... " >&6; }
17531 case $host in #(
17532 *-*-mingw*|*-*-cygwin*) :
17533 platform_win32=yes ;; #(
17534 *) :
17535 platform_win32=no
17536 ;;
17537 esac
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
17539 $as_echo "$platform_win32" >&6; }
17540 if test "x$platform_win32" = "xyes"; then
17541 PLATFORM_WIN32_TRUE=
17542 PLATFORM_WIN32_FALSE='#'
17543 else
17544 PLATFORM_WIN32_TRUE='#'
17545 PLATFORM_WIN32_FALSE=
17546 fi
17547
17548
17549 if test "x$platform_win32" = "xyes"; then :
17550
17551 if test "x" != "x" ; then
17552 HAVE_VISIBILITY_TRUE=
17553 HAVE_VISIBILITY_FALSE='#'
17554 else
17555 HAVE_VISIBILITY_TRUE='#'
17556 HAVE_VISIBILITY_FALSE=
17557 fi
17558
17559
17560 else
17561
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
17563 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
17564 saved_CXXFLAGS="$CXXFLAGS"
17565 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567 /* end confdefs.h. */
17568
17569 int
17570 main ()
17571 {
17572
17573 ;
17574 return 0;
17575 }
17576 _ACEOF
17577 if ac_fn_cxx_try_compile "$LINENO"; then :
17578 have_visibility=yes
17579 else
17580 have_visibility=no
17581 fi
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
17584 $as_echo "$have_visibility" >&6; }
17585 CXXFLAGS="$saved_CXXFLAGS"
17586
17587
17588
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
17590 $as_echo_n "checking for __attribute__((visibility))... " >&6; }
17591 if ${ax_cv_have_func_attribute_visibility+:} false; then :
17592 $as_echo_n "(cached) " >&6
17593 else
17594
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597
17598
17599 int foo_def( void ) __attribute__((visibility("default")));
17600 int foo_hid( void ) __attribute__((visibility("hidden")));
17601 int foo_int( void ) __attribute__((visibility("internal")));
17602 int foo_pro( void ) __attribute__((visibility("protected")));
17603
17604 int
17605 main ()
17606 {
17607
17608 ;
17609 return 0;
17610 }
17611
17612 _ACEOF
17613 if ac_fn_cxx_try_link "$LINENO"; then :
17614 if test -s conftest.err; then :
17615 ax_cv_have_func_attribute_visibility=no
17616 else
17617 ax_cv_have_func_attribute_visibility=yes
17618 fi
17619 else
17620 ax_cv_have_func_attribute_visibility=no
17621 fi
17622 rm -f core conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17624
17625 fi
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
17627 $as_echo "$ax_cv_have_func_attribute_visibility" >&6; }
17628
17629 if test yes = $ax_cv_have_func_attribute_visibility; then :
17630
17631 cat >>confdefs.h <<_ACEOF
17632 #define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1
17633 _ACEOF
17634
17635 fi
17636
17637
17638
17639 if
17640 test "$have_visibility" = "yes" && test "$ax_cv_have_func_attribute_visibility" = "yes"; then
17641 HAVE_VISIBILITY_TRUE=
17642 HAVE_VISIBILITY_FALSE='#'
17643 else
17644 HAVE_VISIBILITY_TRUE='#'
17645 HAVE_VISIBILITY_FALSE=
17646 fi
17647
17648
17649
17650 fi
17651
17652 # ================
17653 # Check for cflags
17654 # ================
17655 # Check whether --enable-werror was given.
17656 if test "${enable_werror+set}" = set; then :
17657 enableval=$enable_werror; enable_werror="$enableval"
17658 else
17659 enable_werror=no
17660
17661 fi
17662
17663 if test x"$enable_werror" != "xno"; then :
17664
17665 CFLAGS="$CFLAGS -Werror"
17666 CXXFLAGS="$CXXFLAGS -Werror"
17667
17668 fi
17669 # Check whether --enable-weffc was given.
17670 if test "${enable_weffc+set}" = set; then :
17671 enableval=$enable_weffc; enable_weffc="$enableval"
17672 else
17673 enable_weffc=yes
17674
17675 fi
17676
17677 # Check whether --enable-wparanoic was given.
17678 if test "${enable_wparanoic+set}" = set; then :
17679 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
17680 else
17681 enable_wparanoic=no
17682
17683 fi
17684
17685 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
17686 # is used when compiling for Win32 with gcc.
17687 if test "x$native_win32" = "xyes"; then :
17688
17689 if test -n "$ac_tool_prefix"; then
17690 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17691 set dummy ${ac_tool_prefix}windres; ac_word=$2
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17693 $as_echo_n "checking for $ac_word... " >&6; }
17694 if ${ac_cv_prog_WINDRES+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 if test -n "$WINDRES"; then
17698 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17699 else
17700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17701 for as_dir in $PATH
17702 do
17703 IFS=$as_save_IFS
17704 test -z "$as_dir" && as_dir=.
17705 for ac_exec_ext in '' $ac_executable_extensions; do
17706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17707 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17709 break 2
17710 fi
17711 done
17712 done
17713 IFS=$as_save_IFS
17714
17715 fi
17716 fi
17717 WINDRES=$ac_cv_prog_WINDRES
17718 if test -n "$WINDRES"; then
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17720 $as_echo "$WINDRES" >&6; }
17721 else
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723 $as_echo "no" >&6; }
17724 fi
17725
17726
17727 fi
17728 if test -z "$ac_cv_prog_WINDRES"; then
17729 ac_ct_WINDRES=$WINDRES
17730 # Extract the first word of "windres", so it can be a program name with args.
17731 set dummy windres; ac_word=$2
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17733 $as_echo_n "checking for $ac_word... " >&6; }
17734 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17735 $as_echo_n "(cached) " >&6
17736 else
17737 if test -n "$ac_ct_WINDRES"; then
17738 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17739 else
17740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741 for as_dir in $PATH
17742 do
17743 IFS=$as_save_IFS
17744 test -z "$as_dir" && as_dir=.
17745 for ac_exec_ext in '' $ac_executable_extensions; do
17746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17747 ac_cv_prog_ac_ct_WINDRES="windres"
17748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17749 break 2
17750 fi
17751 done
17752 done
17753 IFS=$as_save_IFS
17754
17755 fi
17756 fi
17757 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17758 if test -n "$ac_ct_WINDRES"; then
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17760 $as_echo "$ac_ct_WINDRES" >&6; }
17761 else
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763 $as_echo "no" >&6; }
17764 fi
17765
17766 if test "x$ac_ct_WINDRES" = x; then
17767 WINDRES=""
17768 else
17769 case $cross_compiling:$ac_tool_warned in
17770 yes:)
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17773 ac_tool_warned=yes ;;
17774 esac
17775 WINDRES=$ac_ct_WINDRES
17776 fi
17777 else
17778 WINDRES="$ac_cv_prog_WINDRES"
17779 fi
17780
17781 if test x"$GCC" = xyes; then :
17782
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
17784 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
17785 if test -z "$ac_cv_prog_CC"; then :
17786
17787 our_gcc="$CC"
17788
17789 else
17790
17791 our_gcc="$ac_cv_prog_CC"
17792
17793 fi
17794 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then :
17795
17796 msnative_struct="-mms-bitfields"
17797 CFLAGS="$CFLAGS $msnative_struct"
17798 CXXFLAGS="$CXXFLAGS $msnative_struct"
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
17800 $as_echo "${msnative_struct}" >&6; }
17801
17802 else
17803
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
17805 $as_echo "no way" >&6; }
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
17807 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
17808
17809 fi
17810
17811 fi
17812 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
17813 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
17814
17815 else
17816
17817 if test x"$GCC" = xyes; then :
17818
17819 # Be tough with warnings and produce less careless code
17820 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
17821 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
17822 if test x"$enable_weffc" != "xno"; then :
17823
17824 CXXFLAGS="$CXXFLAGS -Weffc++"
17825
17826 fi
17827 if test x"$enable_wparanoic" != "xno"; then :
17828
17829 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
17830 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
17831 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2 -Wformat-security"
17832 CXXFLAGS="$CXXFLAGS -Wno-format-extra-args -Wno-format-zero-length"
17833 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
17834 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
17835 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
17836 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
17837 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
17838 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
17839 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
17840 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
17841 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
17842 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
17843 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
17844
17845 fi
17846
17847 fi
17848
17849 fi
17850
17851 # ============
17852 # Debug switch
17853 # ============
17854 # Check whether --enable-debug was given.
17855 if test "${enable_debug+set}" = set; then :
17856 enableval=$enable_debug; enable_debug="$enableval"
17857 else
17858 enable_debug=no
17859
17860 fi
17861
17862 if test "x$enable_debug" = "xyes"; then :
17863
17864 DEBUG_CXXFLAGS="-DDEBUG -g"
17865
17866 else
17867
17868 DEBUG_CXXFLAGS="-DNDEBUG"
17869
17870 fi
17871
17872
17873 # ============
17874 # Test switch
17875 # ============
17876 # Check whether --enable-test was given.
17877 if test "${enable_test+set}" = set; then :
17878 enableval=$enable_test; enable_test="$enableval"
17879 else
17880 enable_test=no
17881
17882 fi
17883
17884 if test "x$enable_test" = "xyes"; then
17885 COMPILE_TEST_TRUE=
17886 COMPILE_TEST_FALSE='#'
17887 else
17888 COMPILE_TEST_TRUE='#'
17889 COMPILE_TEST_FALSE=
17890 fi
17891
17892
17893 # =============
17894 # Documentation
17895 # =============
17896
17897 # Check whether --with-docs was given.
17898 if test "${with_docs+set}" = set; then :
17899 withval=$with_docs; with_docs="$withval"
17900 else
17901 if test "x$native_win32" = "xyes"; then :
17902 with_docs=no
17903 else
17904 with_docs=yes
17905 fi
17906
17907 fi
17908
17909 if test "x$with_docs" != "xno"; then :
17910
17911 # Extract the first word of "doxygen", so it can be a program name with args.
17912 set dummy doxygen; ac_word=$2
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17914 $as_echo_n "checking for $ac_word... " >&6; }
17915 if ${ac_cv_path_DOXYGEN+:} false; then :
17916 $as_echo_n "(cached) " >&6
17917 else
17918 case $DOXYGEN in
17919 [\\/]* | ?:[\\/]*)
17920 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17921 ;;
17922 *)
17923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17924 for as_dir in $PATH
17925 do
17926 IFS=$as_save_IFS
17927 test -z "$as_dir" && as_dir=.
17928 for ac_exec_ext in '' $ac_executable_extensions; do
17929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17930 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17932 break 2
17933 fi
17934 done
17935 done
17936 IFS=$as_save_IFS
17937
17938 ;;
17939 esac
17940 fi
17941 DOXYGEN=$ac_cv_path_DOXYGEN
17942 if test -n "$DOXYGEN"; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17944 $as_echo "$DOXYGEN" >&6; }
17945 else
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 $as_echo "no" >&6; }
17948 fi
17949
17950
17951 if test -z "$DOXYGEN"; then :
17952
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
17954 $as_echo "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
17956 $as_echo "$as_me: WARNING: *** The documentation will not be built." >&2;}
17957 build_docs=no
17958
17959 else
17960 build_docs=yes
17961 fi
17962
17963 else
17964 build_docs=no
17965 fi
17966 if test "x$build_docs" != "xno"; then
17967 WITH_LIBEBOOK_DOCS_TRUE=
17968 WITH_LIBEBOOK_DOCS_FALSE='#'
17969 else
17970 WITH_LIBEBOOK_DOCS_TRUE='#'
17971 WITH_LIBEBOOK_DOCS_FALSE=
17972 fi
17973
17974
17975 # =====================
17976 # Prepare all .in files
17977 # =====================
17978 ac_config_files="$ac_config_files libodfgen-$LIBODFGEN_MAJOR_VERSION.$LIBODFGEN_MINOR_VERSION.pc:libodfgen.pc.in Makefile build/Makefile build/win32/Makefile docs/Makefile docs/doxygen/Makefile inc/Makefile inc/libodfgen/Makefile src/Makefile src/libodfgen.rc test/Makefile"
17979
17980 cat >confcache <<\_ACEOF
17981 # This file is a shell script that caches the results of configure
17982 # tests run on this system so they can be shared between configure
17983 # scripts and configure runs, see configure's option --config-cache.
17984 # It is not useful on other systems. If it contains results you don't
17985 # want to keep, you may remove or edit it.
17986 #
17987 # config.status only pays attention to the cache file if you give it
17988 # the --recheck option to rerun configure.
17989 #
17990 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17991 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17992 # following values.
17993
17994 _ACEOF
17995
17996 # The following way of writing the cache mishandles newlines in values,
17997 # but we know of no workaround that is simple, portable, and efficient.
17998 # So, we kill variables containing newlines.
17999 # Ultrix sh set writes to stderr and can't be redirected directly,
18000 # and sets the high bit in the cache file unless we assign to the vars.
18001 (
18002 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18003 eval ac_val=\$$ac_var
18004 case $ac_val in #(
18005 *${as_nl}*)
18006 case $ac_var in #(
18007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18009 esac
18010 case $ac_var in #(
18011 _ | IFS | as_nl) ;; #(
18012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18013 *) { eval $ac_var=; unset $ac_var;} ;;
18014 esac ;;
18015 esac
18016 done
18017
18018 (set) 2>&1 |
18019 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18020 *${as_nl}ac_space=\ *)
18021 # `set' does not quote correctly, so add quotes: double-quote
18022 # substitution turns \\\\ into \\, and sed turns \\ into \.
18023 sed -n \
18024 "s/'/'\\\\''/g;
18025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18026 ;; #(
18027 *)
18028 # `set' quotes correctly as required by POSIX, so do not add quotes.
18029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18030 ;;
18031 esac |
18032 sort
18033 ) |
18034 sed '
18035 /^ac_cv_env_/b end
18036 t clear
18037 :clear
18038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18039 t end
18040 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18041 :end' >>confcache
18042 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18043 if test -w "$cache_file"; then
18044 if test "x$cache_file" != "x/dev/null"; then
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18046 $as_echo "$as_me: updating cache $cache_file" >&6;}
18047 if test ! -f "$cache_file" || test -h "$cache_file"; then
18048 cat confcache >"$cache_file"
18049 else
18050 case $cache_file in #(
18051 */* | ?:*)
18052 mv -f confcache "$cache_file"$$ &&
18053 mv -f "$cache_file"$$ "$cache_file" ;; #(
18054 *)
18055 mv -f confcache "$cache_file" ;;
18056 esac
18057 fi
18058 fi
18059 else
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18061 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18062 fi
18063 fi
18064 rm -f confcache
18065
18066 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18067 # Let make expand exec_prefix.
18068 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18069
18070 DEFS=-DHAVE_CONFIG_H
18071
18072 ac_libobjs=
18073 ac_ltlibobjs=
18074 U=
18075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18076 # 1. Remove the extension, and $U if already installed.
18077 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18078 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18080 # will be set to the directory where LIBOBJS objects are built.
18081 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18082 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18083 done
18084 LIBOBJS=$ac_libobjs
18085
18086 LTLIBOBJS=$ac_ltlibobjs
18087
18088
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18090 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18091 if test -n "$am_sleep_pid"; then
18092 # Hide warnings about reused PIDs.
18093 wait $am_sleep_pid 2>/dev/null
18094 fi
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18096 $as_echo "done" >&6; }
18097 if test -n "$EXEEXT"; then
18098 am__EXEEXT_TRUE=
18099 am__EXEEXT_FALSE='#'
18100 else
18101 am__EXEEXT_TRUE='#'
18102 am__EXEEXT_FALSE=
18103 fi
18104
18105 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18106 as_fn_error $? "conditional \"AMDEP\" was never defined.
18107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18108 fi
18109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18110 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18112 fi
18113 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18114 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18116 fi
18117 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
18118 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
18119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18120 fi
18121 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
18122 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
18123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18124 fi
18125 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
18126 as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined.
18127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18128 fi
18129 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
18130 as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined.
18131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18132 fi
18133 if test -z "${COMPILE_TEST_TRUE}" && test -z "${COMPILE_TEST_FALSE}"; then
18134 as_fn_error $? "conditional \"COMPILE_TEST\" was never defined.
18135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18136 fi
18137 if test -z "${WITH_LIBEBOOK_DOCS_TRUE}" && test -z "${WITH_LIBEBOOK_DOCS_FALSE}"; then
18138 as_fn_error $? "conditional \"WITH_LIBEBOOK_DOCS\" was never defined.
18139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18140 fi
18141
18142 : "${CONFIG_STATUS=./config.status}"
18143 ac_write_fail=0
18144 ac_clean_files_save=$ac_clean_files
18145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18147 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18148 as_write_fail=0
18149 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18150 #! $SHELL
18151 # Generated by $as_me.
18152 # Run this file to recreate the current configuration.
18153 # Compiler output produced by configure, useful for debugging
18154 # configure, is in config.log if it exists.
18155
18156 debug=false
18157 ac_cs_recheck=false
18158 ac_cs_silent=false
18159
18160 SHELL=\${CONFIG_SHELL-$SHELL}
18161 export SHELL
18162 _ASEOF
18163 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18164 ## -------------------- ##
18165 ## M4sh Initialization. ##
18166 ## -------------------- ##
18167
18168 # Be more Bourne compatible
18169 DUALCASE=1; export DUALCASE # for MKS sh
18170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18171 emulate sh
18172 NULLCMD=:
18173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18174 # is contrary to our usage. Disable this feature.
18175 alias -g '${1+"$@"}'='"$@"'
18176 setopt NO_GLOB_SUBST
18177 else
18178 case `(set -o) 2>/dev/null` in #(
18179 *posix*) :
18180 set -o posix ;; #(
18181 *) :
18182 ;;
18183 esac
18184 fi
18185
18186
18187 as_nl='
18188 '
18189 export as_nl
18190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18191 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18194 # Prefer a ksh shell builtin over an external printf program on Solaris,
18195 # but without wasting forks for bash or zsh.
18196 if test -z "$BASH_VERSION$ZSH_VERSION" \
18197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18198 as_echo='print -r --'
18199 as_echo_n='print -rn --'
18200 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18201 as_echo='printf %s\n'
18202 as_echo_n='printf %s'
18203 else
18204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18205 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18206 as_echo_n='/usr/ucb/echo -n'
18207 else
18208 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18209 as_echo_n_body='eval
18210 arg=$1;
18211 case $arg in #(
18212 *"$as_nl"*)
18213 expr "X$arg" : "X\\(.*\\)$as_nl";
18214 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18215 esac;
18216 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18217 '
18218 export as_echo_n_body
18219 as_echo_n='sh -c $as_echo_n_body as_echo'
18220 fi
18221 export as_echo_body
18222 as_echo='sh -c $as_echo_body as_echo'
18223 fi
18224
18225 # The user is always right.
18226 if test "${PATH_SEPARATOR+set}" != set; then
18227 PATH_SEPARATOR=:
18228 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18229 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18230 PATH_SEPARATOR=';'
18231 }
18232 fi
18233
18234
18235 # IFS
18236 # We need space, tab and new line, in precisely that order. Quoting is
18237 # there to prevent editors from complaining about space-tab.
18238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18239 # splitting by setting IFS to empty value.)
18240 IFS=" "" $as_nl"
18241
18242 # Find who we are. Look in the path if we contain no directory separator.
18243 as_myself=
18244 case $0 in #((
18245 *[\\/]* ) as_myself=$0 ;;
18246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18247 for as_dir in $PATH
18248 do
18249 IFS=$as_save_IFS
18250 test -z "$as_dir" && as_dir=.
18251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18252 done
18253 IFS=$as_save_IFS
18254
18255 ;;
18256 esac
18257 # We did not find ourselves, most probably we were run as `sh COMMAND'
18258 # in which case we are not to be found in the path.
18259 if test "x$as_myself" = x; then
18260 as_myself=$0
18261 fi
18262 if test ! -f "$as_myself"; then
18263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18264 exit 1
18265 fi
18266
18267 # Unset variables that we do not need and which cause bugs (e.g. in
18268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18269 # suppresses any "Segmentation fault" message there. '((' could
18270 # trigger a bug in pdksh 5.2.14.
18271 for as_var in BASH_ENV ENV MAIL MAILPATH
18272 do eval test x\${$as_var+set} = xset \
18273 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18274 done
18275 PS1='$ '
18276 PS2='> '
18277 PS4='+ '
18278
18279 # NLS nuisances.
18280 LC_ALL=C
18281 export LC_ALL
18282 LANGUAGE=C
18283 export LANGUAGE
18284
18285 # CDPATH.
18286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18287
18288
18289 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18290 # ----------------------------------------
18291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18293 # script with STATUS, using 1 if that was 0.
18294 as_fn_error ()
18295 {
18296 as_status=$1; test $as_status -eq 0 && as_status=1
18297 if test "$4"; then
18298 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18300 fi
18301 $as_echo "$as_me: error: $2" >&2
18302 as_fn_exit $as_status
18303 } # as_fn_error
18304
18305
18306 # as_fn_set_status STATUS
18307 # -----------------------
18308 # Set $? to STATUS, without forking.
18309 as_fn_set_status ()
18310 {
18311 return $1
18312 } # as_fn_set_status
18313
18314 # as_fn_exit STATUS
18315 # -----------------
18316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18317 as_fn_exit ()
18318 {
18319 set +e
18320 as_fn_set_status $1
18321 exit $1
18322 } # as_fn_exit
18323
18324 # as_fn_unset VAR
18325 # ---------------
18326 # Portably unset VAR.
18327 as_fn_unset ()
18328 {
18329 { eval $1=; unset $1;}
18330 }
18331 as_unset=as_fn_unset
18332 # as_fn_append VAR VALUE
18333 # ----------------------
18334 # Append the text in VALUE to the end of the definition contained in VAR. Take
18335 # advantage of any shell optimizations that allow amortized linear growth over
18336 # repeated appends, instead of the typical quadratic growth present in naive
18337 # implementations.
18338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18339 eval 'as_fn_append ()
18340 {
18341 eval $1+=\$2
18342 }'
18343 else
18344 as_fn_append ()
18345 {
18346 eval $1=\$$1\$2
18347 }
18348 fi # as_fn_append
18349
18350 # as_fn_arith ARG...
18351 # ------------------
18352 # Perform arithmetic evaluation on the ARGs, and store the result in the
18353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18354 # must be portable across $(()) and expr.
18355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18356 eval 'as_fn_arith ()
18357 {
18358 as_val=$(( $* ))
18359 }'
18360 else
18361 as_fn_arith ()
18362 {
18363 as_val=`expr "$@" || test $? -eq 1`
18364 }
18365 fi # as_fn_arith
18366
18367
18368 if expr a : '\(a\)' >/dev/null 2>&1 &&
18369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18370 as_expr=expr
18371 else
18372 as_expr=false
18373 fi
18374
18375 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18376 as_basename=basename
18377 else
18378 as_basename=false
18379 fi
18380
18381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18382 as_dirname=dirname
18383 else
18384 as_dirname=false
18385 fi
18386
18387 as_me=`$as_basename -- "$0" ||
18388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18389 X"$0" : 'X\(//\)$' \| \
18390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18391 $as_echo X/"$0" |
18392 sed '/^.*\/\([^/][^/]*\)\/*$/{
18393 s//\1/
18394 q
18395 }
18396 /^X\/\(\/\/\)$/{
18397 s//\1/
18398 q
18399 }
18400 /^X\/\(\/\).*/{
18401 s//\1/
18402 q
18403 }
18404 s/.*/./; q'`
18405
18406 # Avoid depending upon Character Ranges.
18407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18410 as_cr_digits='0123456789'
18411 as_cr_alnum=$as_cr_Letters$as_cr_digits
18412
18413 ECHO_C= ECHO_N= ECHO_T=
18414 case `echo -n x` in #(((((
18415 -n*)
18416 case `echo 'xy\c'` in
18417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18418 xy) ECHO_C='\c';;
18419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18420 ECHO_T=' ';;
18421 esac;;
18422 *)
18423 ECHO_N='-n';;
18424 esac
18425
18426 rm -f conf$$ conf$$.exe conf$$.file
18427 if test -d conf$$.dir; then
18428 rm -f conf$$.dir/conf$$.file
18429 else
18430 rm -f conf$$.dir
18431 mkdir conf$$.dir 2>/dev/null
18432 fi
18433 if (echo >conf$$.file) 2>/dev/null; then
18434 if ln -s conf$$.file conf$$ 2>/dev/null; then
18435 as_ln_s='ln -s'
18436 # ... but there are two gotchas:
18437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18439 # In both cases, we have to default to `cp -pR'.
18440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18441 as_ln_s='cp -pR'
18442 elif ln conf$$.file conf$$ 2>/dev/null; then
18443 as_ln_s=ln
18444 else
18445 as_ln_s='cp -pR'
18446 fi
18447 else
18448 as_ln_s='cp -pR'
18449 fi
18450 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18451 rmdir conf$$.dir 2>/dev/null
18452
18453
18454 # as_fn_mkdir_p
18455 # -------------
18456 # Create "$as_dir" as a directory, including parents if necessary.
18457 as_fn_mkdir_p ()
18458 {
18459
18460 case $as_dir in #(
18461 -*) as_dir=./$as_dir;;
18462 esac
18463 test -d "$as_dir" || eval $as_mkdir_p || {
18464 as_dirs=
18465 while :; do
18466 case $as_dir in #(
18467 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18468 *) as_qdir=$as_dir;;
18469 esac
18470 as_dirs="'$as_qdir' $as_dirs"
18471 as_dir=`$as_dirname -- "$as_dir" ||
18472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18473 X"$as_dir" : 'X\(//\)[^/]' \| \
18474 X"$as_dir" : 'X\(//\)$' \| \
18475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18476 $as_echo X"$as_dir" |
18477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18478 s//\1/
18479 q
18480 }
18481 /^X\(\/\/\)[^/].*/{
18482 s//\1/
18483 q
18484 }
18485 /^X\(\/\/\)$/{
18486 s//\1/
18487 q
18488 }
18489 /^X\(\/\).*/{
18490 s//\1/
18491 q
18492 }
18493 s/.*/./; q'`
18494 test -d "$as_dir" && break
18495 done
18496 test -z "$as_dirs" || eval "mkdir $as_dirs"
18497 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18498
18499
18500 } # as_fn_mkdir_p
18501 if mkdir -p . 2>/dev/null; then
18502 as_mkdir_p='mkdir -p "$as_dir"'
18503 else
18504 test -d ./-p && rmdir ./-p
18505 as_mkdir_p=false
18506 fi
18507
18508
18509 # as_fn_executable_p FILE
18510 # -----------------------
18511 # Test if FILE is an executable regular file.
18512 as_fn_executable_p ()
18513 {
18514 test -f "$1" && test -x "$1"
18515 } # as_fn_executable_p
18516 as_test_x='test -x'
18517 as_executable_p=as_fn_executable_p
18518
18519 # Sed expression to map a string onto a valid CPP name.
18520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18521
18522 # Sed expression to map a string onto a valid variable name.
18523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18524
18525
18526 exec 6>&1
18527 ## ----------------------------------- ##
18528 ## Main body of $CONFIG_STATUS script. ##
18529 ## ----------------------------------- ##
18530 _ASEOF
18531 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18532
18533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534 # Save the log message, to keep $0 and so on meaningful, and to
18535 # report actual input values of CONFIG_FILES etc. instead of their
18536 # values after options handling.
18537 ac_log="
18538 This file was extended by libodfgen $as_me 0.1.8, which was
18539 generated by GNU Autoconf 2.69. Invocation command line was
18540
18541 CONFIG_FILES = $CONFIG_FILES
18542 CONFIG_HEADERS = $CONFIG_HEADERS
18543 CONFIG_LINKS = $CONFIG_LINKS
18544 CONFIG_COMMANDS = $CONFIG_COMMANDS
18545 $ $0 $@
18546
18547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18548 "
18549
18550 _ACEOF
18551
18552 case $ac_config_files in *"
18553 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18554 esac
18555
18556 case $ac_config_headers in *"
18557 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18558 esac
18559
18560
18561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18562 # Files that config.status was made for.
18563 config_files="$ac_config_files"
18564 config_headers="$ac_config_headers"
18565 config_commands="$ac_config_commands"
18566
18567 _ACEOF
18568
18569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18570 ac_cs_usage="\
18571 \`$as_me' instantiates files and other configuration actions
18572 from templates according to the current configuration. Unless the files
18573 and actions are specified as TAGs, all are instantiated by default.
18574
18575 Usage: $0 [OPTION]... [TAG]...
18576
18577 -h, --help print this help, then exit
18578 -V, --version print version number and configuration settings, then exit
18579 --config print configuration, then exit
18580 -q, --quiet, --silent
18581 do not print progress messages
18582 -d, --debug don't remove temporary files
18583 --recheck update $as_me by reconfiguring in the same conditions
18584 --file=FILE[:TEMPLATE]
18585 instantiate the configuration file FILE
18586 --header=FILE[:TEMPLATE]
18587 instantiate the configuration header FILE
18588
18589 Configuration files:
18590 $config_files
18591
18592 Configuration headers:
18593 $config_headers
18594
18595 Configuration commands:
18596 $config_commands
18597
18598 Report bugs to the package provider."
18599
18600 _ACEOF
18601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18603 ac_cs_version="\\
18604 libodfgen config.status 0.1.8
18605 configured by $0, generated by GNU Autoconf 2.69,
18606 with options \\"\$ac_cs_config\\"
18607
18608 Copyright (C) 2012 Free Software Foundation, Inc.
18609 This config.status script is free software; the Free Software Foundation
18610 gives unlimited permission to copy, distribute and modify it."
18611
18612 ac_pwd='$ac_pwd'
18613 srcdir='$srcdir'
18614 INSTALL='$INSTALL'
18615 MKDIR_P='$MKDIR_P'
18616 AWK='$AWK'
18617 test -n "\$AWK" || AWK=awk
18618 _ACEOF
18619
18620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18621 # The default lists apply if the user does not specify any file.
18622 ac_need_defaults=:
18623 while test $# != 0
18624 do
18625 case $1 in
18626 --*=?*)
18627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18629 ac_shift=:
18630 ;;
18631 --*=)
18632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18633 ac_optarg=
18634 ac_shift=:
18635 ;;
18636 *)
18637 ac_option=$1
18638 ac_optarg=$2
18639 ac_shift=shift
18640 ;;
18641 esac
18642
18643 case $ac_option in
18644 # Handling of the options.
18645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18646 ac_cs_recheck=: ;;
18647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18648 $as_echo "$ac_cs_version"; exit ;;
18649 --config | --confi | --conf | --con | --co | --c )
18650 $as_echo "$ac_cs_config"; exit ;;
18651 --debug | --debu | --deb | --de | --d | -d )
18652 debug=: ;;
18653 --file | --fil | --fi | --f )
18654 $ac_shift
18655 case $ac_optarg in
18656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18657 '') as_fn_error $? "missing file argument" ;;
18658 esac
18659 as_fn_append CONFIG_FILES " '$ac_optarg'"
18660 ac_need_defaults=false;;
18661 --header | --heade | --head | --hea )
18662 $ac_shift
18663 case $ac_optarg in
18664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18665 esac
18666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18667 ac_need_defaults=false;;
18668 --he | --h)
18669 # Conflict between --help and --header
18670 as_fn_error $? "ambiguous option: \`$1'
18671 Try \`$0 --help' for more information.";;
18672 --help | --hel | -h )
18673 $as_echo "$ac_cs_usage"; exit ;;
18674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18676 ac_cs_silent=: ;;
18677
18678 # This is an error.
18679 -*) as_fn_error $? "unrecognized option: \`$1'
18680 Try \`$0 --help' for more information." ;;
18681
18682 *) as_fn_append ac_config_targets " $1"
18683 ac_need_defaults=false ;;
18684
18685 esac
18686 shift
18687 done
18688
18689 ac_configure_extra_args=
18690
18691 if $ac_cs_silent; then
18692 exec 6>/dev/null
18693 ac_configure_extra_args="$ac_configure_extra_args --silent"
18694 fi
18695
18696 _ACEOF
18697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18698 if \$ac_cs_recheck; then
18699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18700 shift
18701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18702 CONFIG_SHELL='$SHELL'
18703 export CONFIG_SHELL
18704 exec "\$@"
18705 fi
18706
18707 _ACEOF
18708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18709 exec 5>>config.log
18710 {
18711 echo
18712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18713 ## Running $as_me. ##
18714 _ASBOX
18715 $as_echo "$ac_log"
18716 } >&5
18717
18718 _ACEOF
18719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18720 #
18721 # INIT-COMMANDS
18722 #
18723 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18724
18725
18726 # The HP-UX ksh and POSIX shell print the target directory to stdout
18727 # if CDPATH is set.
18728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18729
18730 sed_quote_subst='$sed_quote_subst'
18731 double_quote_subst='$double_quote_subst'
18732 delay_variable_subst='$delay_variable_subst'
18733 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18734 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18735 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18736 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18737 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18739 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18740 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18741 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18742 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18743 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18744 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18745 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18746 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18747 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18748 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18749 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18750 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18751 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18752 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18753 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18754 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18755 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18756 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18757 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18758 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18759 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18760 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18761 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18762 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18763 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18764 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18765 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18766 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18767 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18768 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18769 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18770 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18771 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18772 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18773 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18774 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18775 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18776 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18777 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18778 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18779 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18780 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18781 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18782 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18783 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18784 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18785 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18786 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18787 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18788 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18789 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18790 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18791 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18792 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"`'
18793 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18794 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18795 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18796 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18797 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18798 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18799 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18800 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18801 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18802 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18803 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18804 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18805 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18806 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18807 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18808 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18809 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18810 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18811 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18812 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18813 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18814 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18815 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18816 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18817 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18818 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18819 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18820 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18821 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18822 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18823 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18824 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18825 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18826 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18827 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18828 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18829 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18830 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18831 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18832 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18833 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18834 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18835 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18836 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18837 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18838 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18839 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18840 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18841 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18842 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18843 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18844 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18845 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18846 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18847 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18848 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18849 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18850 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18851 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18852 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18853 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18854 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18855 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18856 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18857 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18858 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18859 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18860 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18861 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18862 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18863 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18864 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18865 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18866 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18867 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18868 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18869 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18870 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18871 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18872 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18873 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18874 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18875 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18876 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18877 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18878 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18879 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18880 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18881 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18882 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18883 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18884 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18885 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18886 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18887 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18888 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18889 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18890 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18891 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18892 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18893 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18894 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18895 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18896 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18897 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18898 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18899 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18900 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18901 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18902 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18903 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18904 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18905 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18906 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18907 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18908 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18909 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18910 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18911 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18912 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18913 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18914 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18915 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18916 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18917 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18918 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18919 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18920 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18921 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18922 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18923
18924 LTCC='$LTCC'
18925 LTCFLAGS='$LTCFLAGS'
18926 compiler='$compiler_DEFAULT'
18927
18928 # A function that is used when there is no print builtin or printf.
18929 func_fallback_echo ()
18930 {
18931 eval 'cat <<_LTECHO_EOF
18932 \$1
18933 _LTECHO_EOF'
18934 }
18935
18936 # Quote evaled strings.
18937 for var in AS \
18938 DLLTOOL \
18939 OBJDUMP \
18940 SHELL \
18941 ECHO \
18942 PATH_SEPARATOR \
18943 SED \
18944 GREP \
18945 EGREP \
18946 FGREP \
18947 LD \
18948 NM \
18949 LN_S \
18950 lt_SP2NL \
18951 lt_NL2SP \
18952 reload_flag \
18953 deplibs_check_method \
18954 file_magic_cmd \
18955 file_magic_glob \
18956 want_nocaseglob \
18957 sharedlib_from_linklib_cmd \
18958 AR \
18959 AR_FLAGS \
18960 archiver_list_spec \
18961 STRIP \
18962 RANLIB \
18963 CC \
18964 CFLAGS \
18965 compiler \
18966 lt_cv_sys_global_symbol_pipe \
18967 lt_cv_sys_global_symbol_to_cdecl \
18968 lt_cv_sys_global_symbol_to_import \
18969 lt_cv_sys_global_symbol_to_c_name_address \
18970 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18971 lt_cv_nm_interface \
18972 nm_file_list_spec \
18973 lt_cv_truncate_bin \
18974 lt_prog_compiler_no_builtin_flag \
18975 lt_prog_compiler_pic \
18976 lt_prog_compiler_wl \
18977 lt_prog_compiler_static \
18978 lt_cv_prog_compiler_c_o \
18979 need_locks \
18980 MANIFEST_TOOL \
18981 DSYMUTIL \
18982 NMEDIT \
18983 LIPO \
18984 OTOOL \
18985 OTOOL64 \
18986 shrext_cmds \
18987 export_dynamic_flag_spec \
18988 whole_archive_flag_spec \
18989 compiler_needs_object \
18990 with_gnu_ld \
18991 allow_undefined_flag \
18992 no_undefined_flag \
18993 hardcode_libdir_flag_spec \
18994 hardcode_libdir_separator \
18995 exclude_expsyms \
18996 include_expsyms \
18997 file_list_spec \
18998 variables_saved_for_relink \
18999 libname_spec \
19000 library_names_spec \
19001 soname_spec \
19002 install_override_mode \
19003 finish_eval \
19004 old_striplib \
19005 striplib \
19006 compiler_lib_search_dirs \
19007 predep_objects \
19008 postdep_objects \
19009 predeps \
19010 postdeps \
19011 compiler_lib_search_path \
19012 LD_CXX \
19013 reload_flag_CXX \
19014 compiler_CXX \
19015 lt_prog_compiler_no_builtin_flag_CXX \
19016 lt_prog_compiler_pic_CXX \
19017 lt_prog_compiler_wl_CXX \
19018 lt_prog_compiler_static_CXX \
19019 lt_cv_prog_compiler_c_o_CXX \
19020 export_dynamic_flag_spec_CXX \
19021 whole_archive_flag_spec_CXX \
19022 compiler_needs_object_CXX \
19023 with_gnu_ld_CXX \
19024 allow_undefined_flag_CXX \
19025 no_undefined_flag_CXX \
19026 hardcode_libdir_flag_spec_CXX \
19027 hardcode_libdir_separator_CXX \
19028 exclude_expsyms_CXX \
19029 include_expsyms_CXX \
19030 file_list_spec_CXX \
19031 compiler_lib_search_dirs_CXX \
19032 predep_objects_CXX \
19033 postdep_objects_CXX \
19034 predeps_CXX \
19035 postdeps_CXX \
19036 compiler_lib_search_path_CXX; do
19037 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19038 *[\\\\\\\`\\"\\\$]*)
19039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19040 ;;
19041 *)
19042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19043 ;;
19044 esac
19045 done
19046
19047 # Double-quote double-evaled strings.
19048 for var in reload_cmds \
19049 old_postinstall_cmds \
19050 old_postuninstall_cmds \
19051 old_archive_cmds \
19052 extract_expsyms_cmds \
19053 old_archive_from_new_cmds \
19054 old_archive_from_expsyms_cmds \
19055 archive_cmds \
19056 archive_expsym_cmds \
19057 module_cmds \
19058 module_expsym_cmds \
19059 export_symbols_cmds \
19060 prelink_cmds \
19061 postlink_cmds \
19062 postinstall_cmds \
19063 postuninstall_cmds \
19064 finish_cmds \
19065 sys_lib_search_path_spec \
19066 configure_time_dlsearch_path \
19067 configure_time_lt_sys_library_path \
19068 reload_cmds_CXX \
19069 old_archive_cmds_CXX \
19070 old_archive_from_new_cmds_CXX \
19071 old_archive_from_expsyms_cmds_CXX \
19072 archive_cmds_CXX \
19073 archive_expsym_cmds_CXX \
19074 module_cmds_CXX \
19075 module_expsym_cmds_CXX \
19076 export_symbols_cmds_CXX \
19077 prelink_cmds_CXX \
19078 postlink_cmds_CXX; do
19079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19080 *[\\\\\\\`\\"\\\$]*)
19081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19082 ;;
19083 *)
19084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19085 ;;
19086 esac
19087 done
19088
19089 ac_aux_dir='$ac_aux_dir'
19090
19091 # See if we are running on zsh, and set the options that allow our
19092 # commands through without removal of \ escapes INIT.
19093 if test -n "\${ZSH_VERSION+set}"; then
19094 setopt NO_GLOB_SUBST
19095 fi
19096
19097
19098 PACKAGE='$PACKAGE'
19099 VERSION='$VERSION'
19100 RM='$RM'
19101 ofile='$ofile'
19102
19103
19104
19105
19106
19107
19108 _ACEOF
19109
19110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19111
19112 # Handling of arguments.
19113 for ac_config_target in $ac_config_targets
19114 do
19115 case $ac_config_target in
19116 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19117 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19118 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19119 "libodfgen-$LIBODFGEN_MAJOR_VERSION.$LIBODFGEN_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libodfgen-$LIBODFGEN_MAJOR_VERSION.$LIBODFGEN_MINOR_VERSION.pc:libodfgen.pc.in" ;;
19120 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19121 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
19122 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
19123 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19124 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
19125 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
19126 "inc/libodfgen/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libodfgen/Makefile" ;;
19127 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19128 "src/libodfgen.rc") CONFIG_FILES="$CONFIG_FILES src/libodfgen.rc" ;;
19129 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19130
19131 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19132 esac
19133 done
19134
19135
19136 # If the user did not use the arguments to specify the items to instantiate,
19137 # then the envvar interface is used. Set only those that are not.
19138 # We use the long form for the default assignment because of an extremely
19139 # bizarre bug on SunOS 4.1.3.
19140 if $ac_need_defaults; then
19141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19143 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19144 fi
19145
19146 # Have a temporary directory for convenience. Make it in the build tree
19147 # simply because there is no reason against having it here, and in addition,
19148 # creating and moving files from /tmp can sometimes cause problems.
19149 # Hook for its removal unless debugging.
19150 # Note that there is a small window in which the directory will not be cleaned:
19151 # after its creation but before its name has been assigned to `$tmp'.
19152 $debug ||
19153 {
19154 tmp= ac_tmp=
19155 trap 'exit_status=$?
19156 : "${ac_tmp:=$tmp}"
19157 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19158 ' 0
19159 trap 'as_fn_exit 1' 1 2 13 15
19160 }
19161 # Create a (secure) tmp directory for tmp files.
19162
19163 {
19164 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19165 test -d "$tmp"
19166 } ||
19167 {
19168 tmp=./conf$$-$RANDOM
19169 (umask 077 && mkdir "$tmp")
19170 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19171 ac_tmp=$tmp
19172
19173 # Set up the scripts for CONFIG_FILES section.
19174 # No need to generate them if there are no CONFIG_FILES.
19175 # This happens for instance with `./config.status config.h'.
19176 if test -n "$CONFIG_FILES"; then
19177
19178
19179 ac_cr=`echo X | tr X '\015'`
19180 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19181 # But we know of no other shell where ac_cr would be empty at this
19182 # point, so we can use a bashism as a fallback.
19183 if test "x$ac_cr" = x; then
19184 eval ac_cr=\$\'\\r\'
19185 fi
19186 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19187 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19188 ac_cs_awk_cr='\\r'
19189 else
19190 ac_cs_awk_cr=$ac_cr
19191 fi
19192
19193 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19194 _ACEOF
19195
19196
19197 {
19198 echo "cat >conf$$subs.awk <<_ACEOF" &&
19199 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19200 echo "_ACEOF"
19201 } >conf$$subs.sh ||
19202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19203 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19204 ac_delim='%!_!# '
19205 for ac_last_try in false false false false false :; do
19206 . ./conf$$subs.sh ||
19207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19208
19209 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19210 if test $ac_delim_n = $ac_delim_num; then
19211 break
19212 elif $ac_last_try; then
19213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19214 else
19215 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19216 fi
19217 done
19218 rm -f conf$$subs.sh
19219
19220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19221 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19222 _ACEOF
19223 sed -n '
19224 h
19225 s/^/S["/; s/!.*/"]=/
19226 p
19227 g
19228 s/^[^!]*!//
19229 :repl
19230 t repl
19231 s/'"$ac_delim"'$//
19232 t delim
19233 :nl
19234 h
19235 s/\(.\{148\}\)..*/\1/
19236 t more1
19237 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19238 p
19239 n
19240 b repl
19241 :more1
19242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19243 p
19244 g
19245 s/.\{148\}//
19246 t nl
19247 :delim
19248 h
19249 s/\(.\{148\}\)..*/\1/
19250 t more2
19251 s/["\\]/\\&/g; s/^/"/; s/$/"/
19252 p
19253 b
19254 :more2
19255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19256 p
19257 g
19258 s/.\{148\}//
19259 t delim
19260 ' <conf$$subs.awk | sed '
19261 /^[^""]/{
19262 N
19263 s/\n//
19264 }
19265 ' >>$CONFIG_STATUS || ac_write_fail=1
19266 rm -f conf$$subs.awk
19267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19268 _ACAWK
19269 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19270 for (key in S) S_is_set[key] = 1
19271 FS = ""
19272
19273 }
19274 {
19275 line = $ 0
19276 nfields = split(line, field, "@")
19277 substed = 0
19278 len = length(field[1])
19279 for (i = 2; i < nfields; i++) {
19280 key = field[i]
19281 keylen = length(key)
19282 if (S_is_set[key]) {
19283 value = S[key]
19284 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19285 len += length(value) + length(field[++i])
19286 substed = 1
19287 } else
19288 len += 1 + keylen
19289 }
19290
19291 print line
19292 }
19293
19294 _ACAWK
19295 _ACEOF
19296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19297 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19298 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19299 else
19300 cat
19301 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19302 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19303 _ACEOF
19304
19305 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19306 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19307 # trailing colons and then remove the whole line if VPATH becomes empty
19308 # (actually we leave an empty line to preserve line numbers).
19309 if test "x$srcdir" = x.; then
19310 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19311 h
19312 s///
19313 s/^/:/
19314 s/[ ]*$/:/
19315 s/:\$(srcdir):/:/g
19316 s/:\${srcdir}:/:/g
19317 s/:@srcdir@:/:/g
19318 s/^:*//
19319 s/:*$//
19320 x
19321 s/\(=[ ]*\).*/\1/
19322 G
19323 s/\n//
19324 s/^[^=]*=[ ]*$//
19325 }'
19326 fi
19327
19328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19329 fi # test -n "$CONFIG_FILES"
19330
19331 # Set up the scripts for CONFIG_HEADERS section.
19332 # No need to generate them if there are no CONFIG_HEADERS.
19333 # This happens for instance with `./config.status Makefile'.
19334 if test -n "$CONFIG_HEADERS"; then
19335 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19336 BEGIN {
19337 _ACEOF
19338
19339 # Transform confdefs.h into an awk script `defines.awk', embedded as
19340 # here-document in config.status, that substitutes the proper values into
19341 # config.h.in to produce config.h.
19342
19343 # Create a delimiter string that does not exist in confdefs.h, to ease
19344 # handling of long lines.
19345 ac_delim='%!_!# '
19346 for ac_last_try in false false :; do
19347 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19348 if test -z "$ac_tt"; then
19349 break
19350 elif $ac_last_try; then
19351 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19352 else
19353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19354 fi
19355 done
19356
19357 # For the awk script, D is an array of macro values keyed by name,
19358 # likewise P contains macro parameters if any. Preserve backslash
19359 # newline sequences.
19360
19361 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19362 sed -n '
19363 s/.\{148\}/&'"$ac_delim"'/g
19364 t rset
19365 :rset
19366 s/^[ ]*#[ ]*define[ ][ ]*/ /
19367 t def
19368 d
19369 :def
19370 s/\\$//
19371 t bsnl
19372 s/["\\]/\\&/g
19373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19374 D["\1"]=" \3"/p
19375 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19376 d
19377 :bsnl
19378 s/["\\]/\\&/g
19379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19380 D["\1"]=" \3\\\\\\n"\\/p
19381 t cont
19382 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19383 t cont
19384 d
19385 :cont
19386 n
19387 s/.\{148\}/&'"$ac_delim"'/g
19388 t clear
19389 :clear
19390 s/\\$//
19391 t bsnlc
19392 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19393 d
19394 :bsnlc
19395 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19396 b cont
19397 ' <confdefs.h | sed '
19398 s/'"$ac_delim"'/"\\\
19399 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19400
19401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402 for (key in D) D_is_set[key] = 1
19403 FS = ""
19404 }
19405 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19406 line = \$ 0
19407 split(line, arg, " ")
19408 if (arg[1] == "#") {
19409 defundef = arg[2]
19410 mac1 = arg[3]
19411 } else {
19412 defundef = substr(arg[1], 2)
19413 mac1 = arg[2]
19414 }
19415 split(mac1, mac2, "(") #)
19416 macro = mac2[1]
19417 prefix = substr(line, 1, index(line, defundef) - 1)
19418 if (D_is_set[macro]) {
19419 # Preserve the white space surrounding the "#".
19420 print prefix "define", macro P[macro] D[macro]
19421 next
19422 } else {
19423 # Replace #undef with comments. This is necessary, for example,
19424 # in the case of _POSIX_SOURCE, which is predefined and required
19425 # on some systems where configure will not decide to define it.
19426 if (defundef == "undef") {
19427 print "/*", prefix defundef, macro, "*/"
19428 next
19429 }
19430 }
19431 }
19432 { print }
19433 _ACAWK
19434 _ACEOF
19435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19436 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19437 fi # test -n "$CONFIG_HEADERS"
19438
19439
19440 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19441 shift
19442 for ac_tag
19443 do
19444 case $ac_tag in
19445 :[FHLC]) ac_mode=$ac_tag; continue;;
19446 esac
19447 case $ac_mode$ac_tag in
19448 :[FHL]*:*);;
19449 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19450 :[FH]-) ac_tag=-:-;;
19451 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19452 esac
19453 ac_save_IFS=$IFS
19454 IFS=:
19455 set x $ac_tag
19456 IFS=$ac_save_IFS
19457 shift
19458 ac_file=$1
19459 shift
19460
19461 case $ac_mode in
19462 :L) ac_source=$1;;
19463 :[FH])
19464 ac_file_inputs=
19465 for ac_f
19466 do
19467 case $ac_f in
19468 -) ac_f="$ac_tmp/stdin";;
19469 *) # Look for the file first in the build tree, then in the source tree
19470 # (if the path is not absolute). The absolute path cannot be DOS-style,
19471 # because $ac_f cannot contain `:'.
19472 test -f "$ac_f" ||
19473 case $ac_f in
19474 [\\/$]*) false;;
19475 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19476 esac ||
19477 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19478 esac
19479 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19480 as_fn_append ac_file_inputs " '$ac_f'"
19481 done
19482
19483 # Let's still pretend it is `configure' which instantiates (i.e., don't
19484 # use $as_me), people would be surprised to read:
19485 # /* config.h. Generated by config.status. */
19486 configure_input='Generated from '`
19487 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19488 `' by configure.'
19489 if test x"$ac_file" != x-; then
19490 configure_input="$ac_file. $configure_input"
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19492 $as_echo "$as_me: creating $ac_file" >&6;}
19493 fi
19494 # Neutralize special characters interpreted by sed in replacement strings.
19495 case $configure_input in #(
19496 *\&* | *\|* | *\\* )
19497 ac_sed_conf_input=`$as_echo "$configure_input" |
19498 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19499 *) ac_sed_conf_input=$configure_input;;
19500 esac
19501
19502 case $ac_tag in
19503 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19505 esac
19506 ;;
19507 esac
19508
19509 ac_dir=`$as_dirname -- "$ac_file" ||
19510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19511 X"$ac_file" : 'X\(//\)[^/]' \| \
19512 X"$ac_file" : 'X\(//\)$' \| \
19513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19514 $as_echo X"$ac_file" |
19515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19516 s//\1/
19517 q
19518 }
19519 /^X\(\/\/\)[^/].*/{
19520 s//\1/
19521 q
19522 }
19523 /^X\(\/\/\)$/{
19524 s//\1/
19525 q
19526 }
19527 /^X\(\/\).*/{
19528 s//\1/
19529 q
19530 }
19531 s/.*/./; q'`
19532 as_dir="$ac_dir"; as_fn_mkdir_p
19533 ac_builddir=.
19534
19535 case "$ac_dir" in
19536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19537 *)
19538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19539 # A ".." for each directory in $ac_dir_suffix.
19540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19541 case $ac_top_builddir_sub in
19542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19544 esac ;;
19545 esac
19546 ac_abs_top_builddir=$ac_pwd
19547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19548 # for backward compatibility:
19549 ac_top_builddir=$ac_top_build_prefix
19550
19551 case $srcdir in
19552 .) # We are building in place.
19553 ac_srcdir=.
19554 ac_top_srcdir=$ac_top_builddir_sub
19555 ac_abs_top_srcdir=$ac_pwd ;;
19556 [\\/]* | ?:[\\/]* ) # Absolute name.
19557 ac_srcdir=$srcdir$ac_dir_suffix;
19558 ac_top_srcdir=$srcdir
19559 ac_abs_top_srcdir=$srcdir ;;
19560 *) # Relative name.
19561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19562 ac_top_srcdir=$ac_top_build_prefix$srcdir
19563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19564 esac
19565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19566
19567
19568 case $ac_mode in
19569 :F)
19570 #
19571 # CONFIG_FILE
19572 #
19573
19574 case $INSTALL in
19575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19577 esac
19578 ac_MKDIR_P=$MKDIR_P
19579 case $MKDIR_P in
19580 [\\/$]* | ?:[\\/]* ) ;;
19581 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19582 esac
19583 _ACEOF
19584
19585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19586 # If the template does not know about datarootdir, expand it.
19587 # FIXME: This hack should be removed a few years after 2.60.
19588 ac_datarootdir_hack=; ac_datarootdir_seen=
19589 ac_sed_dataroot='
19590 /datarootdir/ {
19591 p
19592 q
19593 }
19594 /@datadir@/p
19595 /@docdir@/p
19596 /@infodir@/p
19597 /@localedir@/p
19598 /@mandir@/p'
19599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19600 *datarootdir*) ac_datarootdir_seen=yes;;
19601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19603 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19604 _ACEOF
19605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19606 ac_datarootdir_hack='
19607 s&@datadir@&$datadir&g
19608 s&@docdir@&$docdir&g
19609 s&@infodir@&$infodir&g
19610 s&@localedir@&$localedir&g
19611 s&@mandir@&$mandir&g
19612 s&\\\${datarootdir}&$datarootdir&g' ;;
19613 esac
19614 _ACEOF
19615
19616 # Neutralize VPATH when `$srcdir' = `.'.
19617 # Shell code in configure.ac might set extrasub.
19618 # FIXME: do we really want to maintain this feature?
19619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19620 ac_sed_extra="$ac_vpsub
19621 $extrasub
19622 _ACEOF
19623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19624 :t
19625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19626 s|@configure_input@|$ac_sed_conf_input|;t t
19627 s&@top_builddir@&$ac_top_builddir_sub&;t t
19628 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19629 s&@srcdir@&$ac_srcdir&;t t
19630 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19631 s&@top_srcdir@&$ac_top_srcdir&;t t
19632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19633 s&@builddir@&$ac_builddir&;t t
19634 s&@abs_builddir@&$ac_abs_builddir&;t t
19635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19636 s&@INSTALL@&$ac_INSTALL&;t t
19637 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19638 $ac_datarootdir_hack
19639 "
19640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19641 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19642
19643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19644 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19646 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19648 which seems to be undefined. Please make sure it is defined" >&5
19649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19650 which seems to be undefined. Please make sure it is defined" >&2;}
19651
19652 rm -f "$ac_tmp/stdin"
19653 case $ac_file in
19654 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19655 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19656 esac \
19657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19658 ;;
19659 :H)
19660 #
19661 # CONFIG_HEADER
19662 #
19663 if test x"$ac_file" != x-; then
19664 {
19665 $as_echo "/* $configure_input */" \
19666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19667 } >"$ac_tmp/config.h" \
19668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19669 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19672 else
19673 rm -f "$ac_file"
19674 mv "$ac_tmp/config.h" "$ac_file" \
19675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19676 fi
19677 else
19678 $as_echo "/* $configure_input */" \
19679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19680 || as_fn_error $? "could not create -" "$LINENO" 5
19681 fi
19682 # Compute "$ac_file"'s index in $config_headers.
19683 _am_arg="$ac_file"
19684 _am_stamp_count=1
19685 for _am_header in $config_headers :; do
19686 case $_am_header in
19687 $_am_arg | $_am_arg:* )
19688 break ;;
19689 * )
19690 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19691 esac
19692 done
19693 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19694 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19695 X"$_am_arg" : 'X\(//\)[^/]' \| \
19696 X"$_am_arg" : 'X\(//\)$' \| \
19697 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19698 $as_echo X"$_am_arg" |
19699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19700 s//\1/
19701 q
19702 }
19703 /^X\(\/\/\)[^/].*/{
19704 s//\1/
19705 q
19706 }
19707 /^X\(\/\/\)$/{
19708 s//\1/
19709 q
19710 }
19711 /^X\(\/\).*/{
19712 s//\1/
19713 q
19714 }
19715 s/.*/./; q'`/stamp-h$_am_stamp_count
19716 ;;
19717
19718 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19719 $as_echo "$as_me: executing $ac_file commands" >&6;}
19720 ;;
19721 esac
19722
19723
19724 case $ac_file$ac_mode in
19725 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19726 # Older Autoconf quotes --file arguments for eval, but not when files
19727 # are listed without --file. Let's play safe and only enable the eval
19728 # if we detect the quoting.
19729 # TODO: see whether this extra hack can be removed once we start
19730 # requiring Autoconf 2.70 or later.
19731 case $CONFIG_FILES in #(
19732 *\'*) :
19733 eval set x "$CONFIG_FILES" ;; #(
19734 *) :
19735 set x $CONFIG_FILES ;; #(
19736 *) :
19737 ;;
19738 esac
19739 shift
19740 # Used to flag and report bootstrapping failures.
19741 am_rc=0
19742 for am_mf
19743 do
19744 # Strip MF so we end up with the name of the file.
19745 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19746 # Check whether this is an Automake generated Makefile which includes
19747 # dependency-tracking related rules and includes.
19748 # Grep'ing the whole file directly is not great: AIX grep has a line
19749 # limit of 2048, but all sed's we know have understand at least 4000.
19750 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19751 || continue
19752 am_dirpart=`$as_dirname -- "$am_mf" ||
19753 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19754 X"$am_mf" : 'X\(//\)[^/]' \| \
19755 X"$am_mf" : 'X\(//\)$' \| \
19756 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19757 $as_echo X"$am_mf" |
19758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19759 s//\1/
19760 q
19761 }
19762 /^X\(\/\/\)[^/].*/{
19763 s//\1/
19764 q
19765 }
19766 /^X\(\/\/\)$/{
19767 s//\1/
19768 q
19769 }
19770 /^X\(\/\).*/{
19771 s//\1/
19772 q
19773 }
19774 s/.*/./; q'`
19775 am_filepart=`$as_basename -- "$am_mf" ||
19776 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19777 X"$am_mf" : 'X\(//\)$' \| \
19778 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19779 $as_echo X/"$am_mf" |
19780 sed '/^.*\/\([^/][^/]*\)\/*$/{
19781 s//\1/
19782 q
19783 }
19784 /^X\/\(\/\/\)$/{
19785 s//\1/
19786 q
19787 }
19788 /^X\/\(\/\).*/{
19789 s//\1/
19790 q
19791 }
19792 s/.*/./; q'`
19793 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19794 && sed -e '/# am--include-marker/d' "$am_filepart" \
19795 | $MAKE -f - am--depfiles" >&5
19796 (cd "$am_dirpart" \
19797 && sed -e '/# am--include-marker/d' "$am_filepart" \
19798 | $MAKE -f - am--depfiles) >&5 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } || am_rc=$?
19802 done
19803 if test $am_rc -ne 0; then
19804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19806 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19807 for automatic dependency tracking. Try re-running configure with the
19808 '--disable-dependency-tracking' option to at least be able to build
19809 the package (albeit without support for automatic dependency tracking).
19810 See \`config.log' for more details" "$LINENO" 5; }
19811 fi
19812 { am_dirpart=; unset am_dirpart;}
19813 { am_filepart=; unset am_filepart;}
19814 { am_mf=; unset am_mf;}
19815 { am_rc=; unset am_rc;}
19816 rm -f conftest-deps.mk
19817 }
19818 ;;
19819 "libtool":C)
19820
19821 # See if we are running on zsh, and set the options that allow our
19822 # commands through without removal of \ escapes.
19823 if test -n "${ZSH_VERSION+set}"; then
19824 setopt NO_GLOB_SUBST
19825 fi
19826
19827 cfgfile=${ofile}T
19828 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19829 $RM "$cfgfile"
19830
19831 cat <<_LT_EOF >> "$cfgfile"
19832 #! $SHELL
19833 # Generated automatically by $as_me ($PACKAGE) $VERSION
19834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19835 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19836
19837 # Provide generalized library-building support services.
19838 # Written by Gordon Matzigkeit, 1996
19839
19840 # Copyright (C) 2014 Free Software Foundation, Inc.
19841 # This is free software; see the source for copying conditions. There is NO
19842 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19843
19844 # GNU Libtool is free software; you can redistribute it and/or modify
19845 # it under the terms of the GNU General Public License as published by
19846 # the Free Software Foundation; either version 2 of of the License, or
19847 # (at your option) any later version.
19848 #
19849 # As a special exception to the GNU General Public License, if you
19850 # distribute this file as part of a program or library that is built
19851 # using GNU Libtool, you may include this file under the same
19852 # distribution terms that you use for the rest of that program.
19853 #
19854 # GNU Libtool is distributed in the hope that it will be useful, but
19855 # WITHOUT ANY WARRANTY; without even the implied warranty of
19856 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19857 # GNU General Public License for more details.
19858 #
19859 # You should have received a copy of the GNU General Public License
19860 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19861
19862
19863 # The names of the tagged configurations supported by this script.
19864 available_tags='CXX '
19865
19866 # Configured defaults for sys_lib_dlsearch_path munging.
19867 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19868
19869 # ### BEGIN LIBTOOL CONFIG
19870
19871 # Which release of libtool.m4 was used?
19872 macro_version=$macro_version
19873 macro_revision=$macro_revision
19874
19875 # Assembler program.
19876 AS=$lt_AS
19877
19878 # DLL creation program.
19879 DLLTOOL=$lt_DLLTOOL
19880
19881 # Object dumper program.
19882 OBJDUMP=$lt_OBJDUMP
19883
19884 # Whether or not to build static libraries.
19885 build_old_libs=$enable_static
19886
19887 # What type of objects to build.
19888 pic_mode=$pic_mode
19889
19890 # Whether or not to build shared libraries.
19891 build_libtool_libs=$enable_shared
19892
19893 # Whether or not to optimize for fast installation.
19894 fast_install=$enable_fast_install
19895
19896 # Shared archive member basename,for filename based shared library versioning on AIX.
19897 shared_archive_member_spec=$shared_archive_member_spec
19898
19899 # Shell to use when invoking shell scripts.
19900 SHELL=$lt_SHELL
19901
19902 # An echo program that protects backslashes.
19903 ECHO=$lt_ECHO
19904
19905 # The PATH separator for the build system.
19906 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19907
19908 # The host system.
19909 host_alias=$host_alias
19910 host=$host
19911 host_os=$host_os
19912
19913 # The build system.
19914 build_alias=$build_alias
19915 build=$build
19916 build_os=$build_os
19917
19918 # A sed program that does not truncate output.
19919 SED=$lt_SED
19920
19921 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19922 Xsed="\$SED -e 1s/^X//"
19923
19924 # A grep program that handles long lines.
19925 GREP=$lt_GREP
19926
19927 # An ERE matcher.
19928 EGREP=$lt_EGREP
19929
19930 # A literal string matcher.
19931 FGREP=$lt_FGREP
19932
19933 # A BSD- or MS-compatible name lister.
19934 NM=$lt_NM
19935
19936 # Whether we need soft or hard links.
19937 LN_S=$lt_LN_S
19938
19939 # What is the maximum length of a command?
19940 max_cmd_len=$max_cmd_len
19941
19942 # Object file suffix (normally "o").
19943 objext=$ac_objext
19944
19945 # Executable file suffix (normally "").
19946 exeext=$exeext
19947
19948 # whether the shell understands "unset".
19949 lt_unset=$lt_unset
19950
19951 # turn spaces into newlines.
19952 SP2NL=$lt_lt_SP2NL
19953
19954 # turn newlines into spaces.
19955 NL2SP=$lt_lt_NL2SP
19956
19957 # convert \$build file names to \$host format.
19958 to_host_file_cmd=$lt_cv_to_host_file_cmd
19959
19960 # convert \$build files to toolchain format.
19961 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19962
19963 # Method to check whether dependent libraries are shared objects.
19964 deplibs_check_method=$lt_deplibs_check_method
19965
19966 # Command to use when deplibs_check_method = "file_magic".
19967 file_magic_cmd=$lt_file_magic_cmd
19968
19969 # How to find potential files when deplibs_check_method = "file_magic".
19970 file_magic_glob=$lt_file_magic_glob
19971
19972 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19973 want_nocaseglob=$lt_want_nocaseglob
19974
19975 # Command to associate shared and link libraries.
19976 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19977
19978 # The archiver.
19979 AR=$lt_AR
19980
19981 # Flags to create an archive.
19982 AR_FLAGS=$lt_AR_FLAGS
19983
19984 # How to feed a file listing to the archiver.
19985 archiver_list_spec=$lt_archiver_list_spec
19986
19987 # A symbol stripping program.
19988 STRIP=$lt_STRIP
19989
19990 # Commands used to install an old-style archive.
19991 RANLIB=$lt_RANLIB
19992 old_postinstall_cmds=$lt_old_postinstall_cmds
19993 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19994
19995 # Whether to use a lock for old archive extraction.
19996 lock_old_archive_extraction=$lock_old_archive_extraction
19997
19998 # A C compiler.
19999 LTCC=$lt_CC
20000
20001 # LTCC compiler flags.
20002 LTCFLAGS=$lt_CFLAGS
20003
20004 # Take the output of nm and produce a listing of raw symbols and C names.
20005 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20006
20007 # Transform the output of nm in a proper C declaration.
20008 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20009
20010 # Transform the output of nm into a list of symbols to manually relocate.
20011 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20012
20013 # Transform the output of nm in a C name address pair.
20014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20015
20016 # Transform the output of nm in a C name address pair when lib prefix is needed.
20017 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20018
20019 # The name lister interface.
20020 nm_interface=$lt_lt_cv_nm_interface
20021
20022 # Specify filename containing input files for \$NM.
20023 nm_file_list_spec=$lt_nm_file_list_spec
20024
20025 # The root where to search for dependent libraries,and where our libraries should be installed.
20026 lt_sysroot=$lt_sysroot
20027
20028 # Command to truncate a binary pipe.
20029 lt_truncate_bin=$lt_lt_cv_truncate_bin
20030
20031 # The name of the directory that contains temporary libtool files.
20032 objdir=$objdir
20033
20034 # Used to examine libraries when file_magic_cmd begins with "file".
20035 MAGIC_CMD=$MAGIC_CMD
20036
20037 # Must we lock files when doing compilation?
20038 need_locks=$lt_need_locks
20039
20040 # Manifest tool.
20041 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20042
20043 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20044 DSYMUTIL=$lt_DSYMUTIL
20045
20046 # Tool to change global to local symbols on Mac OS X.
20047 NMEDIT=$lt_NMEDIT
20048
20049 # Tool to manipulate fat objects and archives on Mac OS X.
20050 LIPO=$lt_LIPO
20051
20052 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20053 OTOOL=$lt_OTOOL
20054
20055 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20056 OTOOL64=$lt_OTOOL64
20057
20058 # Old archive suffix (normally "a").
20059 libext=$libext
20060
20061 # Shared library suffix (normally ".so").
20062 shrext_cmds=$lt_shrext_cmds
20063
20064 # The commands to extract the exported symbol list from a shared archive.
20065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20066
20067 # Variables whose values should be saved in libtool wrapper scripts and
20068 # restored at link time.
20069 variables_saved_for_relink=$lt_variables_saved_for_relink
20070
20071 # Do we need the "lib" prefix for modules?
20072 need_lib_prefix=$need_lib_prefix
20073
20074 # Do we need a version for libraries?
20075 need_version=$need_version
20076
20077 # Library versioning type.
20078 version_type=$version_type
20079
20080 # Shared library runtime path variable.
20081 runpath_var=$runpath_var
20082
20083 # Shared library path variable.
20084 shlibpath_var=$shlibpath_var
20085
20086 # Is shlibpath searched before the hard-coded library search path?
20087 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20088
20089 # Format of library name prefix.
20090 libname_spec=$lt_libname_spec
20091
20092 # List of archive names. First name is the real one, the rest are links.
20093 # The last name is the one that the linker finds with -lNAME
20094 library_names_spec=$lt_library_names_spec
20095
20096 # The coded name of the library, if different from the real name.
20097 soname_spec=$lt_soname_spec
20098
20099 # Permission mode override for installation of shared libraries.
20100 install_override_mode=$lt_install_override_mode
20101
20102 # Command to use after installation of a shared archive.
20103 postinstall_cmds=$lt_postinstall_cmds
20104
20105 # Command to use after uninstallation of a shared archive.
20106 postuninstall_cmds=$lt_postuninstall_cmds
20107
20108 # Commands used to finish a libtool library installation in a directory.
20109 finish_cmds=$lt_finish_cmds
20110
20111 # As "finish_cmds", except a single script fragment to be evaled but
20112 # not shown.
20113 finish_eval=$lt_finish_eval
20114
20115 # Whether we should hardcode library paths into libraries.
20116 hardcode_into_libs=$hardcode_into_libs
20117
20118 # Compile-time system search path for libraries.
20119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20120
20121 # Detected run-time system search path for libraries.
20122 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20123
20124 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20125 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20126
20127 # Whether dlopen is supported.
20128 dlopen_support=$enable_dlopen
20129
20130 # Whether dlopen of programs is supported.
20131 dlopen_self=$enable_dlopen_self
20132
20133 # Whether dlopen of statically linked programs is supported.
20134 dlopen_self_static=$enable_dlopen_self_static
20135
20136 # Commands to strip libraries.
20137 old_striplib=$lt_old_striplib
20138 striplib=$lt_striplib
20139
20140
20141 # The linker used to build libraries.
20142 LD=$lt_LD
20143
20144 # How to create reloadable object files.
20145 reload_flag=$lt_reload_flag
20146 reload_cmds=$lt_reload_cmds
20147
20148 # Commands used to build an old-style archive.
20149 old_archive_cmds=$lt_old_archive_cmds
20150
20151 # A language specific compiler.
20152 CC=$lt_compiler
20153
20154 # Is the compiler the GNU compiler?
20155 with_gcc=$GCC
20156
20157 # Compiler flag to turn off builtin functions.
20158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20159
20160 # Additional compiler flags for building library objects.
20161 pic_flag=$lt_lt_prog_compiler_pic
20162
20163 # How to pass a linker flag through the compiler.
20164 wl=$lt_lt_prog_compiler_wl
20165
20166 # Compiler flag to prevent dynamic linking.
20167 link_static_flag=$lt_lt_prog_compiler_static
20168
20169 # Does compiler simultaneously support -c and -o options?
20170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20171
20172 # Whether or not to add -lc for building shared libraries.
20173 build_libtool_need_lc=$archive_cmds_need_lc
20174
20175 # Whether or not to disallow shared libs when runtime libs are static.
20176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20177
20178 # Compiler flag to allow reflexive dlopens.
20179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20180
20181 # Compiler flag to generate shared objects directly from archives.
20182 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20183
20184 # Whether the compiler copes with passing no objects directly.
20185 compiler_needs_object=$lt_compiler_needs_object
20186
20187 # Create an old-style archive from a shared archive.
20188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20189
20190 # Create a temporary old-style archive to link instead of a shared archive.
20191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20192
20193 # Commands used to build a shared archive.
20194 archive_cmds=$lt_archive_cmds
20195 archive_expsym_cmds=$lt_archive_expsym_cmds
20196
20197 # Commands used to build a loadable module if different from building
20198 # a shared archive.
20199 module_cmds=$lt_module_cmds
20200 module_expsym_cmds=$lt_module_expsym_cmds
20201
20202 # Whether we are building with GNU ld or not.
20203 with_gnu_ld=$lt_with_gnu_ld
20204
20205 # Flag that allows shared libraries with undefined symbols to be built.
20206 allow_undefined_flag=$lt_allow_undefined_flag
20207
20208 # Flag that enforces no undefined symbols.
20209 no_undefined_flag=$lt_no_undefined_flag
20210
20211 # Flag to hardcode \$libdir into a binary during linking.
20212 # This must work even if \$libdir does not exist
20213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20214
20215 # Whether we need a single "-rpath" flag with a separated argument.
20216 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20217
20218 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20219 # DIR into the resulting binary.
20220 hardcode_direct=$hardcode_direct
20221
20222 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20223 # DIR into the resulting binary and the resulting library dependency is
20224 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20225 # library is relocated.
20226 hardcode_direct_absolute=$hardcode_direct_absolute
20227
20228 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20229 # into the resulting binary.
20230 hardcode_minus_L=$hardcode_minus_L
20231
20232 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20233 # into the resulting binary.
20234 hardcode_shlibpath_var=$hardcode_shlibpath_var
20235
20236 # Set to "yes" if building a shared library automatically hardcodes DIR
20237 # into the library and all subsequent libraries and executables linked
20238 # against it.
20239 hardcode_automatic=$hardcode_automatic
20240
20241 # Set to yes if linker adds runtime paths of dependent libraries
20242 # to runtime path list.
20243 inherit_rpath=$inherit_rpath
20244
20245 # Whether libtool must link a program against all its dependency libraries.
20246 link_all_deplibs=$link_all_deplibs
20247
20248 # Set to "yes" if exported symbols are required.
20249 always_export_symbols=$always_export_symbols
20250
20251 # The commands to list exported symbols.
20252 export_symbols_cmds=$lt_export_symbols_cmds
20253
20254 # Symbols that should not be listed in the preloaded symbols.
20255 exclude_expsyms=$lt_exclude_expsyms
20256
20257 # Symbols that must always be exported.
20258 include_expsyms=$lt_include_expsyms
20259
20260 # Commands necessary for linking programs (against libraries) with templates.
20261 prelink_cmds=$lt_prelink_cmds
20262
20263 # Commands necessary for finishing linking programs.
20264 postlink_cmds=$lt_postlink_cmds
20265
20266 # Specify filename containing input files.
20267 file_list_spec=$lt_file_list_spec
20268
20269 # How to hardcode a shared library path into an executable.
20270 hardcode_action=$hardcode_action
20271
20272 # The directories searched by this compiler when creating a shared library.
20273 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20274
20275 # Dependencies to place before and after the objects being linked to
20276 # create a shared library.
20277 predep_objects=$lt_predep_objects
20278 postdep_objects=$lt_postdep_objects
20279 predeps=$lt_predeps
20280 postdeps=$lt_postdeps
20281
20282 # The library search path used internally by the compiler when linking
20283 # a shared library.
20284 compiler_lib_search_path=$lt_compiler_lib_search_path
20285
20286 # ### END LIBTOOL CONFIG
20287
20288 _LT_EOF
20289
20290 cat <<'_LT_EOF' >> "$cfgfile"
20291
20292 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20293
20294 # func_munge_path_list VARIABLE PATH
20295 # -----------------------------------
20296 # VARIABLE is name of variable containing _space_ separated list of
20297 # directories to be munged by the contents of PATH, which is string
20298 # having a format:
20299 # "DIR[:DIR]:"
20300 # string "DIR[ DIR]" will be prepended to VARIABLE
20301 # ":DIR[:DIR]"
20302 # string "DIR[ DIR]" will be appended to VARIABLE
20303 # "DIRP[:DIRP]::[DIRA:]DIRA"
20304 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20305 # "DIRA[ DIRA]" will be appended to VARIABLE
20306 # "DIR[:DIR]"
20307 # VARIABLE will be replaced by "DIR[ DIR]"
20308 func_munge_path_list ()
20309 {
20310 case x$2 in
20311 x)
20312 ;;
20313 *:)
20314 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20315 ;;
20316 x:*)
20317 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20318 ;;
20319 *::*)
20320 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20321 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20322 ;;
20323 *)
20324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20325 ;;
20326 esac
20327 }
20328
20329
20330 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20331 func_cc_basename ()
20332 {
20333 for cc_temp in $*""; do
20334 case $cc_temp in
20335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20337 \-*) ;;
20338 *) break;;
20339 esac
20340 done
20341 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20342 }
20343
20344
20345 # ### END FUNCTIONS SHARED WITH CONFIGURE
20346
20347 _LT_EOF
20348
20349 case $host_os in
20350 aix3*)
20351 cat <<\_LT_EOF >> "$cfgfile"
20352 # AIX sometimes has problems with the GCC collect2 program. For some
20353 # reason, if we set the COLLECT_NAMES environment variable, the problems
20354 # vanish in a puff of smoke.
20355 if test set != "${COLLECT_NAMES+set}"; then
20356 COLLECT_NAMES=
20357 export COLLECT_NAMES
20358 fi
20359 _LT_EOF
20360 ;;
20361 esac
20362
20363
20364 ltmain=$ac_aux_dir/ltmain.sh
20365
20366
20367 # We use sed instead of cat because bash on DJGPP gets confused if
20368 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20369 # text mode, it properly converts lines to CR/LF. This bash problem
20370 # is reportedly fixed, but why not run on old versions too?
20371 sed '$q' "$ltmain" >> "$cfgfile" \
20372 || (rm -f "$cfgfile"; exit 1)
20373
20374 mv -f "$cfgfile" "$ofile" ||
20375 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20376 chmod +x "$ofile"
20377
20378
20379 cat <<_LT_EOF >> "$ofile"
20380
20381 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20382
20383 # The linker used to build libraries.
20384 LD=$lt_LD_CXX
20385
20386 # How to create reloadable object files.
20387 reload_flag=$lt_reload_flag_CXX
20388 reload_cmds=$lt_reload_cmds_CXX
20389
20390 # Commands used to build an old-style archive.
20391 old_archive_cmds=$lt_old_archive_cmds_CXX
20392
20393 # A language specific compiler.
20394 CC=$lt_compiler_CXX
20395
20396 # Is the compiler the GNU compiler?
20397 with_gcc=$GCC_CXX
20398
20399 # Compiler flag to turn off builtin functions.
20400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20401
20402 # Additional compiler flags for building library objects.
20403 pic_flag=$lt_lt_prog_compiler_pic_CXX
20404
20405 # How to pass a linker flag through the compiler.
20406 wl=$lt_lt_prog_compiler_wl_CXX
20407
20408 # Compiler flag to prevent dynamic linking.
20409 link_static_flag=$lt_lt_prog_compiler_static_CXX
20410
20411 # Does compiler simultaneously support -c and -o options?
20412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20413
20414 # Whether or not to add -lc for building shared libraries.
20415 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20416
20417 # Whether or not to disallow shared libs when runtime libs are static.
20418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20419
20420 # Compiler flag to allow reflexive dlopens.
20421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20422
20423 # Compiler flag to generate shared objects directly from archives.
20424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20425
20426 # Whether the compiler copes with passing no objects directly.
20427 compiler_needs_object=$lt_compiler_needs_object_CXX
20428
20429 # Create an old-style archive from a shared archive.
20430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20431
20432 # Create a temporary old-style archive to link instead of a shared archive.
20433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20434
20435 # Commands used to build a shared archive.
20436 archive_cmds=$lt_archive_cmds_CXX
20437 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20438
20439 # Commands used to build a loadable module if different from building
20440 # a shared archive.
20441 module_cmds=$lt_module_cmds_CXX
20442 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20443
20444 # Whether we are building with GNU ld or not.
20445 with_gnu_ld=$lt_with_gnu_ld_CXX
20446
20447 # Flag that allows shared libraries with undefined symbols to be built.
20448 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20449
20450 # Flag that enforces no undefined symbols.
20451 no_undefined_flag=$lt_no_undefined_flag_CXX
20452
20453 # Flag to hardcode \$libdir into a binary during linking.
20454 # This must work even if \$libdir does not exist
20455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20456
20457 # Whether we need a single "-rpath" flag with a separated argument.
20458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20459
20460 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20461 # DIR into the resulting binary.
20462 hardcode_direct=$hardcode_direct_CXX
20463
20464 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20465 # DIR into the resulting binary and the resulting library dependency is
20466 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20467 # library is relocated.
20468 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20469
20470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20471 # into the resulting binary.
20472 hardcode_minus_L=$hardcode_minus_L_CXX
20473
20474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20475 # into the resulting binary.
20476 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20477
20478 # Set to "yes" if building a shared library automatically hardcodes DIR
20479 # into the library and all subsequent libraries and executables linked
20480 # against it.
20481 hardcode_automatic=$hardcode_automatic_CXX
20482
20483 # Set to yes if linker adds runtime paths of dependent libraries
20484 # to runtime path list.
20485 inherit_rpath=$inherit_rpath_CXX
20486
20487 # Whether libtool must link a program against all its dependency libraries.
20488 link_all_deplibs=$link_all_deplibs_CXX
20489
20490 # Set to "yes" if exported symbols are required.
20491 always_export_symbols=$always_export_symbols_CXX
20492
20493 # The commands to list exported symbols.
20494 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20495
20496 # Symbols that should not be listed in the preloaded symbols.
20497 exclude_expsyms=$lt_exclude_expsyms_CXX
20498
20499 # Symbols that must always be exported.
20500 include_expsyms=$lt_include_expsyms_CXX
20501
20502 # Commands necessary for linking programs (against libraries) with templates.
20503 prelink_cmds=$lt_prelink_cmds_CXX
20504
20505 # Commands necessary for finishing linking programs.
20506 postlink_cmds=$lt_postlink_cmds_CXX
20507
20508 # Specify filename containing input files.
20509 file_list_spec=$lt_file_list_spec_CXX
20510
20511 # How to hardcode a shared library path into an executable.
20512 hardcode_action=$hardcode_action_CXX
20513
20514 # The directories searched by this compiler when creating a shared library.
20515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20516
20517 # Dependencies to place before and after the objects being linked to
20518 # create a shared library.
20519 predep_objects=$lt_predep_objects_CXX
20520 postdep_objects=$lt_postdep_objects_CXX
20521 predeps=$lt_predeps_CXX
20522 postdeps=$lt_postdeps_CXX
20523
20524 # The library search path used internally by the compiler when linking
20525 # a shared library.
20526 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20527
20528 # ### END LIBTOOL TAG CONFIG: CXX
20529 _LT_EOF
20530
20531 ;;
20532
20533 esac
20534 done # for ac_tag
20535
20536
20537 as_fn_exit 0
20538 _ACEOF
20539 ac_clean_files=$ac_clean_files_save
20540
20541 test $ac_write_fail = 0 ||
20542 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20543
20544
20545 # configure is writing to config.log, and then calls config.status.
20546 # config.status does its own redirection, appending to config.log.
20547 # Unfortunately, on DOS this fails, as config.log is still kept open
20548 # by configure, so config.status won't be able to write to it; its
20549 # output is simply discarded. So we exec the FD to /dev/null,
20550 # effectively closing config.log, so it can be properly (re)opened and
20551 # appended to by config.status. When coming back to configure, we
20552 # need to make the FD available again.
20553 if test "$no_create" != yes; then
20554 ac_cs_success=:
20555 ac_config_status_args=
20556 test "$silent" = yes &&
20557 ac_config_status_args="$ac_config_status_args --quiet"
20558 exec 5>/dev/null
20559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20560 exec 5>>config.log
20561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20562 # would make configure fail if this is the last instruction.
20563 $ac_cs_success || as_fn_exit 1
20564 fi
20565 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20567 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20568 fi
20569
20570
20571 # ==============================================
20572 # Display final informations about configuration
20573 # ==============================================
20574 { $as_echo "$as_me:${as_lineno-$LINENO}:
20575 ==============================================================================
20576 Build configuration:
20577 debug: ${enable_debug}
20578 docs: ${build_docs}
20579 werror: ${enable_werror}
20580 ==============================================================================
20581 " >&5
20582 $as_echo "$as_me:
20583 ==============================================================================
20584 Build configuration:
20585 debug: ${enable_debug}
20586 docs: ${build_docs}
20587 werror: ${enable_werror}
20588 ==============================================================================
20589 " >&6;}
20590