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 odb 2.4.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='odb'
592 PACKAGE_TARNAME='odb'
593 PACKAGE_VERSION='2.4.0'
594 PACKAGE_STRING='odb 2.4.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="odb/version.hxx"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 plugindir
640 CXXCPP
641 am__fastdepCXX_FALSE
642 am__fastdepCXX_TRUE
643 CXXDEPMODE
644 ac_ct_CXX
645 CXXFLAGS
646 CXX
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 LIBTOOL
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 ac_ct_AR
693 AR
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_static
760 enable_shared
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 with_gcc_plugin_dir
767 with_gxx_name
768 with_options_file
769 with_libcutl
770 enable_rpath
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 CXX
782 CXXFLAGS
783 CCC
784 CXXCPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures odb 2.4.0 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/odb]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of odb 2.4.0:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-static[=PKGS] build static libraries [default=no]
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-rpath patch libtool to not use rpath
1413
1414 Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 both]
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot=DIR Search for dependent libraries within DIR
1421 (or the compiler's sysroot if not specified).
1422 --with-gcc-plugin-dir=DIR
1423 install ODB plugin into the GCC plugin directory
1424 --with-gxx-name=NAME g++ executable name to embed in the ODB compiler
1425 driver
1426 --with-options-file=PATH
1427 default options file path to embed in the driver
1428 --with-libcutl=DIR location of libcutl build directory
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 CPP C preprocessor
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 CXXCPP C++ preprocessor
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to <[email protected]>.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 odb configure 2.4.0
1510 generated by GNU Autoconf 2.69
1511
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618 else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626 else
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710 fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1738
1739 #ifdef __STDC__
1740 # include <limits.h>
1741 #else
1742 # include <assert.h>
1743 #endif
1744
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main ()
1763 {
1764 return $2 ();
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_cxx_try_compile LINENO
1785 # ----------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_cxx_try_compile ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext
1791 if { { ac_try="$ac_compile"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_compile") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_cxx_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest.$ac_objext; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_cxx_try_compile
1821
1822 # ac_fn_cxx_try_cpp LINENO
1823 # ------------------------
1824 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_cxx_try_cpp ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_cpp conftest.$ac_ext"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } > conftest.i && {
1844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_cxx_try_cpp
1858
1859 # ac_fn_cxx_try_link LINENO
1860 # -------------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_link ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 test -x conftest$ac_exeext
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894 fi
1895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897 # interfere with the next link command; also delete a directory that is
1898 # left behind by Apple's compiler. We do this before executing the actions.
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903 } # ac_fn_cxx_try_link
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1907
1908 It was created by odb $as_me 2.4.0, which was
1909 generated by GNU Autoconf 2.69. Invocation command line was
1910
1911 $ $0 $@
1912
1913 _ACEOF
1914 exec 5>>config.log
1915 {
1916 cat <<_ASUNAME
1917 ## --------- ##
1918 ## Platform. ##
1919 ## --------- ##
1920
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1929
1930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937
1938 _ASUNAME
1939
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 $as_echo "PATH: $as_dir"
1946 done
1947 IFS=$as_save_IFS
1948
1949 } >&5
1950
1951 cat >&5 <<_ACEOF
1952
1953
1954 ## ----------- ##
1955 ## Core tests. ##
1956 ## ----------- ##
1957
1958 _ACEOF
1959
1960
1961 # Keep a trace of the command line.
1962 # Strip out --no-create and --no-recursion so they do not pile up.
1963 # Strip out --silent because we don't want to record it for future runs.
1964 # Also quote any args containing shell meta-characters.
1965 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_configure_args=
1967 ac_configure_args0=
1968 ac_configure_args1=
1969 ac_must_keep_next=false
1970 for ac_pass in 1 2
1971 do
1972 for ac_arg
1973 do
1974 case $ac_arg in
1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977 | -silent | --silent | --silen | --sile | --sil)
1978 continue ;;
1979 *\'*)
1980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 esac
1982 case $ac_pass in
1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1984 2)
1985 as_fn_append ac_configure_args1 " '$ac_arg'"
1986 if test $ac_must_keep_next = true; then
1987 ac_must_keep_next=false # Got value, back to normal.
1988 else
1989 case $ac_arg in
1990 *=* | --config-cache | -C | -disable-* | --disable-* \
1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993 | -with-* | --with-* | -without-* | --without-* | --x)
1994 case "$ac_configure_args0 " in
1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996 esac
1997 ;;
1998 -* ) ac_must_keep_next=true ;;
1999 esac
2000 fi
2001 as_fn_append ac_configure_args " '$ac_arg'"
2002 ;;
2003 esac
2004 done
2005 done
2006 { ac_configure_args0=; unset ac_configure_args0;}
2007 { ac_configure_args1=; unset ac_configure_args1;}
2008
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log. We remove comments because anyway the quotes in there
2011 # would cause problems or look ugly.
2012 # WARNING: Use '\'' to represent an apostrophe within the trap.
2013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2014 trap 'exit_status=$?
2015 # Save into config.log some information that might help in debugging.
2016 {
2017 echo
2018
2019 $as_echo "## ---------------- ##
2020 ## Cache variables. ##
2021 ## ---------------- ##"
2022 echo
2023 # The following way of writing the cache mishandles newlines in values,
2024 (
2025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026 eval ac_val=\$$ac_var
2027 case $ac_val in #(
2028 *${as_nl}*)
2029 case $ac_var in #(
2030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032 esac
2033 case $ac_var in #(
2034 _ | IFS | as_nl) ;; #(
2035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036 *) { eval $ac_var=; unset $ac_var;} ;;
2037 esac ;;
2038 esac
2039 done
2040 (set) 2>&1 |
2041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042 *${as_nl}ac_space=\ *)
2043 sed -n \
2044 "s/'\''/'\''\\\\'\'''\''/g;
2045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046 ;; #(
2047 *)
2048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049 ;;
2050 esac |
2051 sort
2052 )
2053 echo
2054
2055 $as_echo "## ----------------- ##
2056 ## Output variables. ##
2057 ## ----------------- ##"
2058 echo
2059 for ac_var in $ac_subst_vars
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068
2069 if test -n "$ac_subst_files"; then
2070 $as_echo "## ------------------- ##
2071 ## File substitutions. ##
2072 ## ------------------- ##"
2073 echo
2074 for ac_var in $ac_subst_files
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083 fi
2084
2085 if test -s confdefs.h; then
2086 $as_echo "## ----------- ##
2087 ## confdefs.h. ##
2088 ## ----------- ##"
2089 echo
2090 cat confdefs.h
2091 echo
2092 fi
2093 test "$ac_signal" != 0 &&
2094 $as_echo "$as_me: caught signal $ac_signal"
2095 $as_echo "$as_me: exit $exit_status"
2096 } >&5
2097 rm -f core *.core core.conftest.* &&
2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099 exit $exit_status
2100 ' 0
2101 for ac_signal in 1 2 13 15; do
2102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 done
2104 ac_signal=0
2105
2106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2107 rm -f -r conftest* confdefs.h
2108
2109 $as_echo "/* confdefs.h */" > confdefs.h
2110
2111 # Predefined preprocessor variables.
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_NAME "$PACKAGE_NAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_STRING "$PACKAGE_STRING"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_URL "$PACKAGE_URL"
2135 _ACEOF
2136
2137
2138 # Let the site file select an alternate cache file if it wants to.
2139 # Prefer an explicitly selected file to automatically selected ones.
2140 ac_site_file1=NONE
2141 ac_site_file2=NONE
2142 if test -n "$CONFIG_SITE"; then
2143 # We do not want a PATH search for config.site.
2144 case $CONFIG_SITE in #((
2145 -*) ac_site_file1=./$CONFIG_SITE;;
2146 */*) ac_site_file1=$CONFIG_SITE;;
2147 *) ac_site_file1=./$CONFIG_SITE;;
2148 esac
2149 elif test "x$prefix" != xNONE; then
2150 ac_site_file1=$prefix/share/config.site
2151 ac_site_file2=$prefix/etc/config.site
2152 else
2153 ac_site_file1=$ac_default_prefix/share/config.site
2154 ac_site_file2=$ac_default_prefix/etc/config.site
2155 fi
2156 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2157 do
2158 test "x$ac_site_file" = xNONE && continue
2159 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2162 sed 's/^/| /' "$ac_site_file" >&5
2163 . "$ac_site_file" \
2164 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 as_fn_error $? "failed to load site script $ac_site_file
2167 See \`config.log' for more details" "$LINENO" 5; }
2168 fi
2169 done
2170
2171 if test -r "$cache_file"; then
2172 # Some versions of bash will fail to source /dev/null (special files
2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2176 $as_echo "$as_me: loading cache $cache_file" >&6;}
2177 case $cache_file in
2178 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2179 *) . "./$cache_file";;
2180 esac
2181 fi
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2184 $as_echo "$as_me: creating cache $cache_file" >&6;}
2185 >$cache_file
2186 fi
2187
2188 # Check that the precious variables saved in the cache have kept the same
2189 # value.
2190 ac_cache_corrupted=false
2191 for ac_var in $ac_precious_vars; do
2192 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2193 eval ac_new_set=\$ac_env_${ac_var}_set
2194 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2195 eval ac_new_val=\$ac_env_${ac_var}_value
2196 case $ac_old_set,$ac_new_set in
2197 set,)
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2200 ac_cache_corrupted=: ;;
2201 ,set)
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2205 ,);;
2206 *)
2207 if test "x$ac_old_val" != "x$ac_new_val"; then
2208 # differences in whitespace do not lead to failure.
2209 ac_old_val_w=`echo x $ac_old_val`
2210 ac_new_val_w=`echo x $ac_new_val`
2211 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2213 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2214 ac_cache_corrupted=:
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2217 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2218 eval $ac_var=\$ac_old_val
2219 fi
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2221 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2223 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2224 fi;;
2225 esac
2226 # Pass precious variables to config.status.
2227 if test "$ac_new_set" = set; then
2228 case $ac_new_val in
2229 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 *) ac_arg=$ac_var=$ac_new_val ;;
2231 esac
2232 case " $ac_configure_args " in
2233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2234 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2235 esac
2236 fi
2237 done
2238 if $ac_cache_corrupted; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2242 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2243 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2244 fi
2245 ## -------------------- ##
2246 ## Main body of script. ##
2247 ## -------------------- ##
2248
2249 ac_ext=c
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254
2255
2256 ac_aux_dir=
2257 for ac_dir in config "$srcdir"/config; do
2258 if test -f "$ac_dir/install-sh"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/install-sh -c"
2261 break
2262 elif test -f "$ac_dir/install.sh"; then
2263 ac_aux_dir=$ac_dir
2264 ac_install_sh="$ac_aux_dir/install.sh -c"
2265 break
2266 elif test -f "$ac_dir/shtool"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/shtool install -c"
2269 break
2270 fi
2271 done
2272 if test -z "$ac_aux_dir"; then
2273 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2274 fi
2275
2276 # These three variables are undocumented and unsupported,
2277 # and are intended to be withdrawn in a future Autoconf release.
2278 # They can cause serious problems if a builder's source tree is in a directory
2279 # whose full name contains unusual characters.
2280 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2281 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2282 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2283
2284
2285
2286
2287
2288 am__api_version='1.12'
2289
2290 # Find a good install program. We prefer a C program (faster),
2291 # so one script is as good as another. But avoid the broken or
2292 # incompatible versions:
2293 # SysV /etc/install, /usr/sbin/install
2294 # SunOS /usr/etc/install
2295 # IRIX /sbin/install
2296 # AIX /bin/install
2297 # AmigaOS /C/install, which installs bootblocks on floppy discs
2298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2301 # OS/2's system install, which has a completely different semantic
2302 # ./install, which can be erroneously created by make from ./install.sh.
2303 # Reject install programs that cannot install multiple files.
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2306 if test -z "$INSTALL"; then
2307 if ${ac_cv_path_install+:} false; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 # Account for people who put trailing slashes in PATH elements.
2316 case $as_dir/ in #((
2317 ./ | .// | /[cC]/* | \
2318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2319 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2320 /usr/ucb/* ) ;;
2321 *)
2322 # OSF1 and SCO ODT 3.0 have their own names for install.
2323 # Don't use installbsd from OSF since it installs stuff as root
2324 # by default.
2325 for ac_prog in ginstall scoinst install; do
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2328 if test $ac_prog = install &&
2329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330 # AIX install. It has an incompatible calling convention.
2331 :
2332 elif test $ac_prog = install &&
2333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334 # program-specific install script used by HP pwplus--don't use.
2335 :
2336 else
2337 rm -rf conftest.one conftest.two conftest.dir
2338 echo one > conftest.one
2339 echo two > conftest.two
2340 mkdir conftest.dir
2341 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342 test -s conftest.one && test -s conftest.two &&
2343 test -s conftest.dir/conftest.one &&
2344 test -s conftest.dir/conftest.two
2345 then
2346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347 break 3
2348 fi
2349 fi
2350 fi
2351 done
2352 done
2353 ;;
2354 esac
2355
2356 done
2357 IFS=$as_save_IFS
2358
2359 rm -rf conftest.one conftest.two conftest.dir
2360
2361 fi
2362 if test "${ac_cv_path_install+set}" = set; then
2363 INSTALL=$ac_cv_path_install
2364 else
2365 # As a last resort, use the slow shell script. Don't cache a
2366 # value for INSTALL within a source directory, because that will
2367 # break other packages using the cache if that directory is
2368 # removed, or if the value is a relative name.
2369 INSTALL=$ac_install_sh
2370 fi
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373 $as_echo "$INSTALL" >&6; }
2374
2375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376 # It thinks the first close brace ends the variable substitution.
2377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2378
2379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2380
2381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2382
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384 $as_echo_n "checking whether build environment is sane... " >&6; }
2385 # Reject unsafe characters in $srcdir or the absolute working directory
2386 # name. Accept space and tab only in the latter.
2387 am_lf='
2388 '
2389 case `pwd` in
2390 *[\\\"\#\$\&\'\`$am_lf]*)
2391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2392 esac
2393 case $srcdir in
2394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2395 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2396 esac
2397
2398 # Do 'set' in a subshell so we don't clobber the current shell's
2399 # arguments. Must try -L first in case configure is actually a
2400 # symlink; some systems play weird games with the mod time of symlinks
2401 # (eg FreeBSD returns the mod time of the symlink's containing
2402 # directory).
2403 if (
2404 am_has_slept=no
2405 for am_try in 1 2; do
2406 echo "timestamp, slept: $am_has_slept" > conftest.file
2407 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408 if test "$*" = "X"; then
2409 # -L didn't work.
2410 set X `ls -t "$srcdir/configure" conftest.file`
2411 fi
2412 if test "$*" != "X $srcdir/configure conftest.file" \
2413 && test "$*" != "X conftest.file $srcdir/configure"; then
2414
2415 # If neither matched, then we have a broken ls. This can happen
2416 # if, for instance, CONFIG_SHELL is bash and it inherits a
2417 # broken ls alias from the environment. This has actually
2418 # happened. Such a system could not be considered "sane".
2419 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2420 alias in your environment" "$LINENO" 5
2421 fi
2422 if test "$2" = conftest.file || test $am_try -eq 2; then
2423 break
2424 fi
2425 # Just in case.
2426 sleep 1
2427 am_has_slept=yes
2428 done
2429 test "$2" = conftest.file
2430 )
2431 then
2432 # Ok.
2433 :
2434 else
2435 as_fn_error $? "newly created file is older than distributed files!
2436 Check your system clock" "$LINENO" 5
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2439 $as_echo "yes" >&6; }
2440 # If we didn't sleep, we still need to ensure time stamps of config.status and
2441 # generated files are strictly newer.
2442 am_sleep_pid=
2443 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2444 ( sleep 1 ) &
2445 am_sleep_pid=$!
2446 fi
2447
2448 rm -f conftest.file
2449
2450 test "$program_prefix" != NONE &&
2451 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2452 # Use a double $ so make ignores it.
2453 test "$program_suffix" != NONE &&
2454 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2455 # Double any \ or $.
2456 # By default was `s,x,x', remove it if useless.
2457 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2458 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2459
2460 # expand $ac_aux_dir to an absolute path
2461 am_aux_dir=`cd $ac_aux_dir && pwd`
2462
2463 if test x"${MISSING+set}" != xset; then
2464 case $am_aux_dir in
2465 *\ * | *\ *)
2466 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2467 *)
2468 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2469 esac
2470 fi
2471 # Use eval to expand $SHELL
2472 if eval "$MISSING --run true"; then
2473 am_missing_run="$MISSING --run "
2474 else
2475 am_missing_run=
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2477 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2478 fi
2479
2480 if test x"${install_sh}" != xset; then
2481 case $am_aux_dir in
2482 *\ * | *\ *)
2483 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2484 *)
2485 install_sh="\${SHELL} $am_aux_dir/install-sh"
2486 esac
2487 fi
2488
2489 # Installed binaries are usually stripped using 'strip' when the user
2490 # run "make install-strip". However 'strip' might not be the right
2491 # tool to use in cross-compilation environments, therefore Automake
2492 # will honor the 'STRIP' environment variable to overrule this program.
2493 if test "$cross_compiling" != no; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}strip; ac_word=$2
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498 $as_echo_n "checking for $ac_word... " >&6; }
2499 if ${ac_cv_prog_STRIP+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 if test -n "$STRIP"; then
2503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 STRIP=$ac_cv_prog_STRIP
2523 if test -n "$STRIP"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2525 $as_echo "$STRIP" >&6; }
2526 else
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528 $as_echo "no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$ac_cv_prog_STRIP"; then
2534 ac_ct_STRIP=$STRIP
2535 # Extract the first word of "strip", so it can be a program name with args.
2536 set dummy strip; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test -n "$ac_ct_STRIP"; then
2543 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552 ac_cv_prog_ac_ct_STRIP="strip"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2563 if test -n "$ac_ct_STRIP"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2565 $as_echo "$ac_ct_STRIP" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571 if test "x$ac_ct_STRIP" = x; then
2572 STRIP=":"
2573 else
2574 case $cross_compiling:$ac_tool_warned in
2575 yes:)
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2578 ac_tool_warned=yes ;;
2579 esac
2580 STRIP=$ac_ct_STRIP
2581 fi
2582 else
2583 STRIP="$ac_cv_prog_STRIP"
2584 fi
2585
2586 fi
2587 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2590 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2591 if test -z "$MKDIR_P"; then
2592 if ${ac_cv_path_mkdir+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_prog in mkdir gmkdir; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2603 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2604 'mkdir (GNU coreutils) '* | \
2605 'mkdir (coreutils) '* | \
2606 'mkdir (fileutils) '4.1*)
2607 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2608 break 3;;
2609 esac
2610 done
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616
2617 test -d ./--version && rmdir ./--version
2618 if test "${ac_cv_path_mkdir+set}" = set; then
2619 MKDIR_P="$ac_cv_path_mkdir -p"
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for MKDIR_P within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 MKDIR_P="$ac_install_sh -d"
2626 fi
2627 fi
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2629 $as_echo "$MKDIR_P" >&6; }
2630
2631 for ac_prog in gawk mawk nawk awk
2632 do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if ${ac_cv_prog_AWK+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 if test -n "$AWK"; then
2641 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_AWK="$ac_prog"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 AWK=$ac_cv_prog_AWK
2661 if test -n "$AWK"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2663 $as_echo "$AWK" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2667 fi
2668
2669
2670 test -n "$AWK" && break
2671 done
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2674 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2675 set x ${MAKE-make}
2676 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2677 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 cat >conftest.make <<\_ACEOF
2681 SHELL = /bin/sh
2682 all:
2683 @echo '@@@%%%=$(MAKE)=@@@%%%'
2684 _ACEOF
2685 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2686 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2687 *@@@%%%=?*=@@@%%%*)
2688 eval ac_cv_prog_make_${ac_make}_set=yes;;
2689 *)
2690 eval ac_cv_prog_make_${ac_make}_set=no;;
2691 esac
2692 rm -f conftest.make
2693 fi
2694 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 SET_MAKE=
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 SET_MAKE="MAKE=${MAKE-make}"
2702 fi
2703
2704 rm -rf .tst 2>/dev/null
2705 mkdir .tst 2>/dev/null
2706 if test -d .tst; then
2707 am__leading_dot=.
2708 else
2709 am__leading_dot=_
2710 fi
2711 rmdir .tst 2>/dev/null
2712
2713 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2714 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2715 # is not polluted with repeated "-I."
2716 am__isrc=' -I$(srcdir)'
2717 # test to see if srcdir already configured
2718 if test -f $srcdir/config.status; then
2719 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2720 fi
2721 fi
2722
2723 # test whether we have cygpath
2724 if test -z "$CYGPATH_W"; then
2725 if (cygpath --version) >/dev/null 2>/dev/null; then
2726 CYGPATH_W='cygpath -w'
2727 else
2728 CYGPATH_W=echo
2729 fi
2730 fi
2731
2732
2733 # Define the identity of the package.
2734 PACKAGE='odb'
2735 VERSION='2.4.0'
2736
2737
2738 cat >>confdefs.h <<_ACEOF
2739 #define PACKAGE "$PACKAGE"
2740 _ACEOF
2741
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define VERSION "$VERSION"
2745 _ACEOF
2746
2747 # Some tools Automake needs.
2748
2749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763 # For better backward compatibility. To be removed once Automake 1.9.x
2764 # dies out for good. For more background, see:
2765 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2766 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2767 mkdir_p='$(MKDIR_P)'
2768
2769 # We need awk for the "check" target. The system "awk" is bad on
2770 # some platforms.
2771 # Always define AMTAR for backward compatibility. Yes, it's still used
2772 # in the wild :-( We should find a proper way to deprecate it ...
2773 AMTAR='$${TAR-tar}'
2774
2775
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2777 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2778 # Loop over all known methods to create a tar archive until one works.
2779 _am_tools='gnutar plaintar pax cpio none'
2780 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2781 # Do not fold the above two line into one, because Tru64 sh and
2782 # Solaris sh will not grok spaces in the rhs of '-'.
2783 for _am_tool in $_am_tools
2784 do
2785 case $_am_tool in
2786 gnutar)
2787 for _am_tar in tar gnutar gtar;
2788 do
2789 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2790 ($_am_tar --version) >&5 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && break
2794 done
2795 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2796 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2797 am__untar="$_am_tar -xf -"
2798 ;;
2799 plaintar)
2800 # Must skip GNU tar: if it does not support --format= it doesn't create
2801 # ustar tarball either.
2802 (tar --version) >/dev/null 2>&1 && continue
2803 am__tar='tar chf - "$$tardir"'
2804 am__tar_='tar chf - "$tardir"'
2805 am__untar='tar xf -'
2806 ;;
2807 pax)
2808 am__tar='pax -L -x ustar -w "$$tardir"'
2809 am__tar_='pax -L -x ustar -w "$tardir"'
2810 am__untar='pax -r'
2811 ;;
2812 cpio)
2813 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2814 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2815 am__untar='cpio -i -H ustar -d'
2816 ;;
2817 none)
2818 am__tar=false
2819 am__tar_=false
2820 am__untar=false
2821 ;;
2822 esac
2823
2824 # If the value was cached, stop now. We just wanted to have am__tar
2825 # and am__untar set.
2826 test -n "${am_cv_prog_tar_ustar}" && break
2827
2828 # tar/untar a dummy directory, and stop if the command works
2829 rm -rf conftest.dir
2830 mkdir conftest.dir
2831 echo GrepMe > conftest.dir/file
2832 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2833 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2837 rm -rf conftest.dir
2838 if test -s conftest.tar; then
2839 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2840 ($am__untar <conftest.tar) >&5 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
2844 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2845 fi
2846 done
2847 rm -rf conftest.dir
2848
2849 if ${am_cv_prog_tar_ustar+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 am_cv_prog_tar_ustar=$_am_tool
2853 fi
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2856 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2857
2858
2859
2860
2861
2862 DEPDIR="${am__leading_dot}deps"
2863
2864 ac_config_commands="$ac_config_commands depfiles"
2865
2866
2867 am_make=${MAKE-make}
2868 cat > confinc << 'END'
2869 am__doit:
2870 @echo this is the am__doit target
2871 .PHONY: am__doit
2872 END
2873 # If we don't find an include directive, just comment out the code.
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2875 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2876 am__include="#"
2877 am__quote=
2878 _am_result=none
2879 # First try GNU make style include.
2880 echo "include confinc" > confmf
2881 # Ignore all kinds of additional output from 'make'.
2882 case `$am_make -s -f confmf 2> /dev/null` in #(
2883 *the\ am__doit\ target*)
2884 am__include=include
2885 am__quote=
2886 _am_result=GNU
2887 ;;
2888 esac
2889 # Now try BSD make style include.
2890 if test "$am__include" = "#"; then
2891 echo '.include "confinc"' > confmf
2892 case `$am_make -s -f confmf 2> /dev/null` in #(
2893 *the\ am__doit\ target*)
2894 am__include=.include
2895 am__quote="\""
2896 _am_result=BSD
2897 ;;
2898 esac
2899 fi
2900
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2903 $as_echo "$_am_result" >&6; }
2904 rm -f confinc confmf
2905
2906 # Check whether --enable-dependency-tracking was given.
2907 if test "${enable_dependency_tracking+set}" = set; then :
2908 enableval=$enable_dependency_tracking;
2909 fi
2910
2911 if test "x$enable_dependency_tracking" != xno; then
2912 am_depcomp="$ac_aux_dir/depcomp"
2913 AMDEPBACKSLASH='\'
2914 am__nodep='_no'
2915 fi
2916 if test "x$enable_dependency_tracking" != xno; then
2917 AMDEP_TRUE=
2918 AMDEP_FALSE='#'
2919 else
2920 AMDEP_TRUE='#'
2921 AMDEP_FALSE=
2922 fi
2923
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$ac_cv_prog_CC"; then
2970 ac_ct_CC=$CC
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 $as_echo "$ac_ct_CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3017 fi
3018 else
3019 CC="$ac_cv_prog_CC"
3020 fi
3021
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_CC="${ac_tool_prefix}cc"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061 fi
3062 fi
3063 if test -z "$CC"; then
3064 # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 ac_prog_rejected=no
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083 ac_prog_rejected=yes
3084 continue
3085 fi
3086 ac_cv_prog_CC="cc"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 if test $ac_prog_rejected = yes; then
3095 # We found a bogon in the path, so make sure we never use it.
3096 set dummy $ac_cv_prog_CC
3097 shift
3098 if test $# != 0; then
3099 # We chose a different compiler from the bogus one.
3100 # However, it has the same basename, so the bogon will be chosen
3101 # first if we set CC to just the basename; use the full file name.
3102 shift
3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104 fi
3105 fi
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 test -n "$CC" && break
3161 done
3162 fi
3163 if test -z "$CC"; then
3164 ac_ct_CC=$CC
3165 for ac_prog in cl.exe
3166 do
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_CC="$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 test -n "$ac_ct_CC" && break
3205 done
3206
3207 if test "x$ac_ct_CC" = x; then
3208 CC=""
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 CC=$ac_ct_CC
3217 fi
3218 fi
3219
3220 fi
3221
3222
3223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "no acceptable C compiler found in \$PATH
3226 See \`config.log' for more details" "$LINENO" 5; }
3227
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 set X $ac_compile
3231 ac_compiler=$2
3232 for ac_option in --version -v -V -qversion; do
3233 { { ac_try="$ac_compiler $ac_option >&5"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3241 ac_status=$?
3242 if test -s conftest.err; then
3243 sed '10a\
3244 ... rest of stderr output deleted ...
3245 10q' conftest.err >conftest.er1
3246 cat conftest.er1 >&5
3247 fi
3248 rm -f conftest.er1 conftest.err
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 done
3252
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255
3256 int
3257 main ()
3258 {
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3268 # of exeext.
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3272
3273 # The possible output files:
3274 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275
3276 ac_rmfiles=
3277 for ac_file in $ac_files
3278 do
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282 esac
3283 done
3284 rm -f $ac_rmfiles
3285
3286 if { { ac_try="$ac_link_default"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_link_default") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3299 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3300 # so that the user can short-circuit this test for compilers unknown to
3301 # Autoconf.
3302 for ac_file in $ac_files ''
3303 do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3307 ;;
3308 [ab].out )
3309 # We found the default executable, but exeext='' is most
3310 # certainly right.
3311 break;;
3312 *.* )
3313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3314 then :; else
3315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3316 fi
3317 # We set ac_cv_exeext here because the later test for it is not
3318 # safe: cross compilers may not add the suffix if given an `-o'
3319 # argument, so we may need to know it at that point already.
3320 # Even if this section looks crufty: it has the advantage of
3321 # actually working.
3322 break;;
3323 * )
3324 break;;
3325 esac
3326 done
3327 test "$ac_cv_exeext" = no && ac_cv_exeext=
3328
3329 else
3330 ac_file=''
3331 fi
3332 if test -z "$ac_file"; then :
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error 77 "C compiler cannot create executables
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347 $as_echo_n "checking for C compiler default output file name... " >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 ac_exeext=$ac_cv_exeext
3351
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 # `rm'.
3371 for ac_file in conftest.exe conftest conftest.*; do
3372 test -f "$ac_file" || continue
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 break;;
3377 * ) break;;
3378 esac
3379 done
3380 else
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details" "$LINENO" 5; }
3385 fi
3386 rm -f conftest conftest$ac_cv_exeext
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388 $as_echo "$ac_cv_exeext" >&6; }
3389
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3392 ac_exeext=$EXEEXT
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395 #include <stdio.h>
3396 int
3397 main ()
3398 {
3399 FILE *f = fopen ("conftest.out", "w");
3400 return ferror (f) || fclose (f) != 0;
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 ac_clean_files="$ac_clean_files conftest.out"
3407 # Check that the compiler produces executables we can run. If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3410 $as_echo_n "checking whether we are cross compiling... " >&6; }
3411 if test "$cross_compiling" != yes; then
3412 { { ac_try="$ac_link"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_link") 2>&5
3420 ac_status=$?
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }
3423 if { ac_try='./conftest$ac_cv_exeext'
3424 { { case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_try") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; }; then
3434 cross_compiling=no
3435 else
3436 if test "$cross_compiling" = maybe; then
3437 cross_compiling=yes
3438 else
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "cannot run C compiled programs.
3442 If you meant to cross compile, use \`--host'.
3443 See \`config.log' for more details" "$LINENO" 5; }
3444 fi
3445 fi
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3448 $as_echo "$cross_compiling" >&6; }
3449
3450 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3451 ac_clean_files=$ac_clean_files_save
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3453 $as_echo_n "checking for suffix of object files... " >&6; }
3454 if ${ac_cv_objext+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.o conftest.obj
3469 if { { ac_try="$ac_compile"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_compile") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 for ac_file in conftest.o conftest.obj conftest.*; do
3481 test -f "$ac_file" || continue;
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485 break;;
3486 esac
3487 done
3488 else
3489 $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of object files: cannot compile
3495 See \`config.log' for more details" "$LINENO" 5; }
3496 fi
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3500 $as_echo "$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3502 ac_objext=$OBJEXT
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3505 if ${ac_cv_c_compiler_gnu+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 int
3512 main ()
3513 {
3514 #ifndef __GNUC__
3515 choke me
3516 #endif
3517
3518 ;
3519 return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_compiler_gnu=yes
3524 else
3525 ac_compiler_gnu=no
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3532 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3533 if test $ac_compiler_gnu = yes; then
3534 GCC=yes
3535 else
3536 GCC=
3537 fi
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3542 if ${ac_cv_prog_cc_g+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3547 ac_cv_prog_cc_g=no
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_g=yes
3562 else
3563 CFLAGS=""
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576
3577 else
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3579 CFLAGS="-g"
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_cv_prog_cc_g=yes
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3602 $as_echo "$ac_cv_prog_cc_g" >&6; }
3603 if test "$ac_test_CFLAGS" = set; then
3604 CFLAGS=$ac_save_CFLAGS
3605 elif test $ac_cv_prog_cc_g = yes; then
3606 if test "$GCC" = yes; then
3607 CFLAGS="-g -O2"
3608 else
3609 CFLAGS="-g"
3610 fi
3611 else
3612 if test "$GCC" = yes; then
3613 CFLAGS="-O2"
3614 else
3615 CFLAGS=
3616 fi
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3620 if ${ac_cv_prog_cc_c89+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 ac_cv_prog_cc_c89=no
3624 ac_save_CC=$CC
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <stdarg.h>
3628 #include <stdio.h>
3629 struct stat;
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3634 char **p;
3635 int i;
3636 {
3637 return p[i];
3638 }
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3640 {
3641 char *s;
3642 va_list v;
3643 va_start (v,p);
3644 s = g (p, va_arg (v,int));
3645 va_end (v);
3646 return s;
3647 }
3648
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std. */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659 inside strings and character constants. */
3660 #define FOO(x) 'x'
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667 int argc;
3668 char **argv;
3669 int
3670 main ()
3671 {
3672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679 do
3680 CC="$ac_save_CC $ac_arg"
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_prog_cc_c89=$ac_arg
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3689
3690 fi
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3693 x)
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3696 xno)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3699 *)
3700 CC="$CC $ac_cv_prog_cc_c89"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3705
3706 fi
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714 depcc="$CC" am_compiler_list=
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3717 $as_echo_n "checking dependency style of $depcc... " >&6; }
3718 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3722 # We make a subdir and do the tests there. Otherwise we can end up
3723 # making bogus files that we don't know about and never remove. For
3724 # instance it was reported that on HP-UX the gcc test will end up
3725 # making a dummy file named 'D' -- because '-MD' means "put the output
3726 # in D".
3727 rm -rf conftest.dir
3728 mkdir conftest.dir
3729 # Copy depcomp to subdir because otherwise we won't find it if we're
3730 # using a relative directory.
3731 cp "$am_depcomp" conftest.dir
3732 cd conftest.dir
3733 # We will build objects and dependencies in a subdirectory because
3734 # it helps to detect inapplicable dependency modes. For instance
3735 # both Tru64's cc and ICC support -MD to output dependencies as a
3736 # side effect of compilation, but ICC will put the dependencies in
3737 # the current directory while Tru64 will put them in the object
3738 # directory.
3739 mkdir sub
3740
3741 am_cv_CC_dependencies_compiler_type=none
3742 if test "$am_compiler_list" = ""; then
3743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3744 fi
3745 am__universal=false
3746 case " $depcc " in #(
3747 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3748 esac
3749
3750 for depmode in $am_compiler_list; do
3751 # Setup a source with many dependencies, because some compilers
3752 # like to wrap large dependency lists on column 80 (with \), and
3753 # we should not choose a depcomp mode which is confused by this.
3754 #
3755 # We need to recreate these files for each test, as the compiler may
3756 # overwrite some of them when testing with obscure command lines.
3757 # This happens at least with the AIX C compiler.
3758 : > sub/conftest.c
3759 for i in 1 2 3 4 5 6; do
3760 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3762 # Solaris 10 /bin/sh.
3763 echo '/* dummy */' > sub/conftst$i.h
3764 done
3765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3766
3767 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle '-M -o', and we need to detect this. Also, some Intel
3770 # versions had trouble with output in subdirs.
3771 am__obj=sub/conftest.${OBJEXT-o}
3772 am__minus_obj="-o $am__obj"
3773 case $depmode in
3774 gcc)
3775 # This depmode causes a compiler race in universal mode.
3776 test "$am__universal" = false || continue
3777 ;;
3778 nosideeffect)
3779 # After this tag, mechanisms are not by side-effect, so they'll
3780 # only be used when explicitly requested.
3781 if test "x$enable_dependency_tracking" = xyes; then
3782 continue
3783 else
3784 break
3785 fi
3786 ;;
3787 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3788 # This compiler won't grok '-c -o', but also, the minuso test has
3789 # not run yet. These depmodes are late enough in the game, and
3790 # so weak that their functioning should not be impacted.
3791 am__obj=conftest.${OBJEXT-o}
3792 am__minus_obj=
3793 ;;
3794 none) break ;;
3795 esac
3796 if depmode=$depmode \
3797 source=sub/conftest.c object=$am__obj \
3798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3800 >/dev/null 2>conftest.err &&
3801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3805 # icc doesn't choke on unknown options, it will just issue warnings
3806 # or remarks (even with -Werror). So we grep stderr for any message
3807 # that says an option was ignored or not supported.
3808 # When given -MP, icc 7.0 and 7.1 complain thusly:
3809 # icc: Command line warning: ignoring option '-M'; no argument required
3810 # The diagnosis changed in icc 8.0:
3811 # icc: Command line remark: option '-MP' not supported
3812 if (grep 'ignoring option' conftest.err ||
3813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3814 am_cv_CC_dependencies_compiler_type=$depmode
3815 break
3816 fi
3817 fi
3818 done
3819
3820 cd ..
3821 rm -rf conftest.dir
3822 else
3823 am_cv_CC_dependencies_compiler_type=none
3824 fi
3825
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3828 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3829 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3830
3831 if
3832 test "x$enable_dependency_tracking" != xno \
3833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3834 am__fastdepCC_TRUE=
3835 am__fastdepCC_FALSE='#'
3836 else
3837 am__fastdepCC_TRUE='#'
3838 am__fastdepCC_FALSE=
3839 fi
3840
3841
3842
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog in ar lib "link -lib"
3845 do
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if ${ac_cv_prog_AR+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 if test -n "$AR"; then
3854 ac_cv_prog_AR="$AR" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867 done
3868 done
3869 IFS=$as_save_IFS
3870
3871 fi
3872 fi
3873 AR=$ac_cv_prog_AR
3874 if test -n "$AR"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3876 $as_echo "$AR" >&6; }
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 fi
3881
3882
3883 test -n "$AR" && break
3884 done
3885 fi
3886 if test -z "$AR"; then
3887 ac_ct_AR=$AR
3888 for ac_prog in ar lib "link -lib"
3889 do
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -n "$ac_ct_AR"; then
3898 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_ac_ct_AR="$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911 done
3912 done
3913 IFS=$as_save_IFS
3914
3915 fi
3916 fi
3917 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3918 if test -n "$ac_ct_AR"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3920 $as_echo "$ac_ct_AR" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 test -n "$ac_ct_AR" && break
3928 done
3929
3930 if test "x$ac_ct_AR" = x; then
3931 AR="false"
3932 else
3933 case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939 AR=$ac_ct_AR
3940 fi
3941 fi
3942
3943 : ${AR=ar}
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3946 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3947 if ${am_cv_ar_interface+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 am_cv_ar_interface=ar
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 int some_variable = 0;
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3958 (eval $am_ar_try) 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 if test "$ac_status" -eq 0; then
3963 am_cv_ar_interface=ar
3964 else
3965 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3967 (eval $am_ar_try) 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }
3971 if test "$ac_status" -eq 0; then
3972 am_cv_ar_interface=lib
3973 else
3974 am_cv_ar_interface=unknown
3975 fi
3976 fi
3977 rm -f conftest.lib libconftest.a
3978
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3984 $as_echo "$am_cv_ar_interface" >&6; }
3985
3986 case $am_cv_ar_interface in
3987 ar)
3988 ;;
3989 lib)
3990 # Microsoft lib, so override with the ar-lib wrapper script.
3991 # FIXME: It is wrong to rewrite AR.
3992 # But if we don't then we get into trouble of one sort or another.
3993 # A longer-term fix would be to have automake use am__AR in this case,
3994 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3995 # similar.
3996 AR="$am_aux_dir/ar-lib $AR"
3997 ;;
3998 unknown)
3999 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4000 ;;
4001 esac
4002 # Required by automake 1.12.
4003
4004 case `pwd` in
4005 *\ * | *\ *)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4007 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4008 esac
4009
4010
4011
4012 macro_version='2.4.2'
4013 macro_revision='1.3337'
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027 ltmain="$ac_aux_dir/ltmain.sh"
4028
4029 # Make sure we can run config.sub.
4030 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4031 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4034 $as_echo_n "checking build system type... " >&6; }
4035 if ${ac_cv_build+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 ac_build_alias=$build_alias
4039 test "x$ac_build_alias" = x &&
4040 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4041 test "x$ac_build_alias" = x &&
4042 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4043 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4044 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4045
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4048 $as_echo "$ac_cv_build" >&6; }
4049 case $ac_cv_build in
4050 *-*-*) ;;
4051 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4052 esac
4053 build=$ac_cv_build
4054 ac_save_IFS=$IFS; IFS='-'
4055 set x $ac_cv_build
4056 shift
4057 build_cpu=$1
4058 build_vendor=$2
4059 shift; shift
4060 # Remember, the first character of IFS is used to create $*,
4061 # except with old shells:
4062 build_os=$*
4063 IFS=$ac_save_IFS
4064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4068 $as_echo_n "checking host system type... " >&6; }
4069 if ${ac_cv_host+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test "x$host_alias" = x; then
4073 ac_cv_host=$ac_cv_build
4074 else
4075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4076 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4077 fi
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4081 $as_echo "$ac_cv_host" >&6; }
4082 case $ac_cv_host in
4083 *-*-*) ;;
4084 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4085 esac
4086 host=$ac_cv_host
4087 ac_save_IFS=$IFS; IFS='-'
4088 set x $ac_cv_host
4089 shift
4090 host_cpu=$1
4091 host_vendor=$2
4092 shift; shift
4093 # Remember, the first character of IFS is used to create $*,
4094 # except with old shells:
4095 host_os=$*
4096 IFS=$ac_save_IFS
4097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4098
4099
4100 # Backslashify metacharacters that are still active within
4101 # double-quoted strings.
4102 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4103
4104 # Same as above, but do not quote variable references.
4105 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4106
4107 # Sed substitution to delay expansion of an escaped shell variable in a
4108 # double_quote_subst'ed string.
4109 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4110
4111 # Sed substitution to delay expansion of an escaped single quote.
4112 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4113
4114 # Sed substitution to avoid accidental globbing in evaled expressions
4115 no_glob_subst='s/\*/\\\*/g'
4116
4117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4122 $as_echo_n "checking how to print strings... " >&6; }
4123 # Test print first, because it will be a builtin if present.
4124 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4126 ECHO='print -r --'
4127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4128 ECHO='printf %s\n'
4129 else
4130 # Use this function as a fallback that always works.
4131 func_fallback_echo ()
4132 {
4133 eval 'cat <<_LTECHO_EOF
4134 $1
4135 _LTECHO_EOF'
4136 }
4137 ECHO='func_fallback_echo'
4138 fi
4139
4140 # func_echo_all arg...
4141 # Invoke $ECHO with all args, space-separated.
4142 func_echo_all ()
4143 {
4144 $ECHO ""
4145 }
4146
4147 case "$ECHO" in
4148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4149 $as_echo "printf" >&6; } ;;
4150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4151 $as_echo "print -r" >&6; } ;;
4152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4153 $as_echo "cat" >&6; } ;;
4154 esac
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171 if ${ac_cv_path_SED+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 { ac_script=; unset ac_script;}
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 as_fn_executable_p "$ac_path_SED" || continue
4192 # Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194 case `"$ac_path_SED" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_SED_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_SED"; then
4226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4227 fi
4228 else
4229 ac_cv_path_SED=$SED
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4234 $as_echo "$ac_cv_path_SED" >&6; }
4235 SED="$ac_cv_path_SED"
4236 rm -f conftest.sed
4237
4238 test -z "$SED" && SED=sed
4239 Xsed="$SED -e 1s/^X//"
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4253 if ${ac_cv_path_GREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4267 as_fn_executable_p "$ac_path_GREP" || continue
4268 # Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270 case `"$ac_path_GREP" --version 2>&1` in
4271 *GNU*)
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273 *)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296 $ac_path_GREP_found && break 3
4297 done
4298 done
4299 done
4300 IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_GREP"; then
4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 fi
4304 else
4305 ac_cv_path_GREP=$GREP
4306 fi
4307
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310 $as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315 $as_echo_n "checking for egrep... " >&6; }
4316 if ${ac_cv_path_EGREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4321 else
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 as_fn_executable_p "$ac_path_EGREP" || continue
4334 # Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4337 *GNU*)
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339 *)
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4343 do
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4355 fi
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4361
4362 $ac_path_EGREP_found && break 3
4363 done
4364 done
4365 done
4366 IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_EGREP"; then
4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4369 fi
4370 else
4371 ac_cv_path_EGREP=$EGREP
4372 fi
4373
4374 fi
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377 $as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4379
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4382 $as_echo_n "checking for fgrep... " >&6; }
4383 if ${ac_cv_path_FGREP+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4388 else
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in fgrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 as_fn_executable_p "$ac_path_FGREP" || continue
4401 # Check for GNU ac_path_FGREP and select it if it is found.
4402 # Check for GNU $ac_path_FGREP
4403 case `"$ac_path_FGREP" --version 2>&1` in
4404 *GNU*)
4405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4406 *)
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4410 do
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'FGREP' >> "conftest.nl"
4415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_FGREP="$ac_path_FGREP"
4421 ac_path_FGREP_max=$ac_count
4422 fi
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 esac
4428
4429 $ac_path_FGREP_found && break 3
4430 done
4431 done
4432 done
4433 IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_FGREP"; then
4435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 fi
4437 else
4438 ac_cv_path_FGREP=$FGREP
4439 fi
4440
4441 fi
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4444 $as_echo "$ac_cv_path_FGREP" >&6; }
4445 FGREP="$ac_cv_path_FGREP"
4446
4447
4448 test -z "$GREP" && GREP=grep
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 # Check whether --with-gnu-ld was given.
4469 if test "${with_gnu_ld+set}" = set; then :
4470 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4471 else
4472 with_gnu_ld=no
4473 fi
4474
4475 ac_prog=ld
4476 if test "$GCC" = yes; then
4477 # Check if gcc -print-prog-name=ld gives a path.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4479 $as_echo_n "checking for ld used by $CC... " >&6; }
4480 case $host in
4481 *-*-mingw*)
4482 # gcc leaves a trailing carriage return which upsets mingw
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4484 *)
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4486 esac
4487 case $ac_prog in
4488 # Accept absolute paths.
4489 [\\/]* | ?:[\\/]*)
4490 re_direlt='/[^/][^/]*/\.\./'
4491 # Canonicalize the pathname of ld
4492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4495 done
4496 test -z "$LD" && LD="$ac_prog"
4497 ;;
4498 "")
4499 # If it fails, then pretend we aren't using GCC.
4500 ac_prog=ld
4501 ;;
4502 *)
4503 # If it is relative, then search for the first ld in PATH.
4504 with_gnu_ld=unknown
4505 ;;
4506 esac
4507 elif test "$with_gnu_ld" = yes; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4509 $as_echo_n "checking for GNU ld... " >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4512 $as_echo_n "checking for non-GNU ld... " >&6; }
4513 fi
4514 if ${lt_cv_path_LD+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -z "$LD"; then
4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4520 IFS="$lt_save_ifs"
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4523 lt_cv_path_LD="$ac_dir/$ac_prog"
4524 # Check to see if the program is GNU ld. I'd rather use --version,
4525 # but apparently some variants of GNU ld only accept -v.
4526 # Break only if it was the GNU/non-GNU ld that we prefer.
4527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4528 *GNU* | *'with BFD'*)
4529 test "$with_gnu_ld" != no && break
4530 ;;
4531 *)
4532 test "$with_gnu_ld" != yes && break
4533 ;;
4534 esac
4535 fi
4536 done
4537 IFS="$lt_save_ifs"
4538 else
4539 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4540 fi
4541 fi
4542
4543 LD="$lt_cv_path_LD"
4544 if test -n "$LD"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4546 $as_echo "$LD" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4554 if ${lt_cv_prog_gnu_ld+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4558 case `$LD -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 lt_cv_prog_gnu_ld=yes
4561 ;;
4562 *)
4563 lt_cv_prog_gnu_ld=no
4564 ;;
4565 esac
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4568 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4569 with_gnu_ld=$lt_cv_prog_gnu_ld
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4580 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4581 if ${lt_cv_path_NM+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$NM"; then
4585 # Let the user override the test.
4586 lt_cv_path_NM="$NM"
4587 else
4588 lt_nm_to_check="${ac_tool_prefix}nm"
4589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4590 lt_nm_to_check="$lt_nm_to_check nm"
4591 fi
4592 for lt_tmp_nm in $lt_nm_to_check; do
4593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4595 IFS="$lt_save_ifs"
4596 test -z "$ac_dir" && ac_dir=.
4597 tmp_nm="$ac_dir/$lt_tmp_nm"
4598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4599 # Check to see if the nm accepts a BSD-compat flag.
4600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4601 # nm: unknown option "B" ignored
4602 # Tru64's nm complains that /dev/null is an invalid object file
4603 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4604 */dev/null* | *'Invalid file or object type'*)
4605 lt_cv_path_NM="$tmp_nm -B"
4606 break
4607 ;;
4608 *)
4609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4610 */dev/null*)
4611 lt_cv_path_NM="$tmp_nm -p"
4612 break
4613 ;;
4614 *)
4615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4616 continue # so that we can try to find one that supports BSD flags
4617 ;;
4618 esac
4619 ;;
4620 esac
4621 fi
4622 done
4623 IFS="$lt_save_ifs"
4624 done
4625 : ${lt_cv_path_NM=no}
4626 fi
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4629 $as_echo "$lt_cv_path_NM" >&6; }
4630 if test "$lt_cv_path_NM" != "no"; then
4631 NM="$lt_cv_path_NM"
4632 else
4633 # Didn't find any BSD compatible name lister, look for dumpbin.
4634 if test -n "$DUMPBIN"; then :
4635 # Let the user override the test.
4636 else
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in dumpbin "link -dump"
4639 do
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_DUMPBIN+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$DUMPBIN"; then
4648 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 DUMPBIN=$ac_cv_prog_DUMPBIN
4668 if test -n "$DUMPBIN"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4670 $as_echo "$DUMPBIN" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 test -n "$DUMPBIN" && break
4678 done
4679 fi
4680 if test -z "$DUMPBIN"; then
4681 ac_ct_DUMPBIN=$DUMPBIN
4682 for ac_prog in dumpbin "link -dump"
4683 do
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_DUMPBIN"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4712 if test -n "$ac_ct_DUMPBIN"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4714 $as_echo "$ac_ct_DUMPBIN" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 test -n "$ac_ct_DUMPBIN" && break
4722 done
4723
4724 if test "x$ac_ct_DUMPBIN" = x; then
4725 DUMPBIN=":"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 DUMPBIN=$ac_ct_DUMPBIN
4734 fi
4735 fi
4736
4737 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4738 *COFF*)
4739 DUMPBIN="$DUMPBIN -symbols"
4740 ;;
4741 *)
4742 DUMPBIN=:
4743 ;;
4744 esac
4745 fi
4746
4747 if test "$DUMPBIN" != ":"; then
4748 NM="$DUMPBIN"
4749 fi
4750 fi
4751 test -z "$NM" && NM=nm
4752
4753
4754
4755
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4760 if ${lt_cv_nm_interface+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 lt_cv_nm_interface="BSD nm"
4764 echo "int some_variable = 0;" > conftest.$ac_ext
4765 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4766 (eval "$ac_compile" 2>conftest.err)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4770 cat conftest.err >&5
4771 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4772 cat conftest.out >&5
4773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4774 lt_cv_nm_interface="MS dumpbin"
4775 fi
4776 rm -f conftest*
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4779 $as_echo "$lt_cv_nm_interface" >&6; }
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782 $as_echo_n "checking whether ln -s works... " >&6; }
4783 LN_S=$as_ln_s
4784 if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786 $as_echo "yes" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789 $as_echo "no, using $LN_S" >&6; }
4790 fi
4791
4792 # find the maximum length of command line arguments
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4794 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4795 if ${lt_cv_sys_max_cmd_len+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 i=0
4799 teststring="ABCD"
4800
4801 case $build_os in
4802 msdosdjgpp*)
4803 # On DJGPP, this test can blow up pretty badly due to problems in libc
4804 # (any single argument exceeding 2000 bytes causes a buffer overrun
4805 # during glob expansion). Even if it were fixed, the result of this
4806 # check would be larger than it should be.
4807 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4808 ;;
4809
4810 gnu*)
4811 # Under GNU Hurd, this test is not required because there is
4812 # no limit to the length of command line arguments.
4813 # Libtool will interpret -1 as no limit whatsoever
4814 lt_cv_sys_max_cmd_len=-1;
4815 ;;
4816
4817 cygwin* | mingw* | cegcc*)
4818 # On Win9x/ME, this test blows up -- it succeeds, but takes
4819 # about 5 minutes as the teststring grows exponentially.
4820 # Worse, since 9x/ME are not pre-emptively multitasking,
4821 # you end up with a "frozen" computer, even though with patience
4822 # the test eventually succeeds (with a max line length of 256k).
4823 # Instead, let's just punt: use the minimum linelength reported by
4824 # all of the supported platforms: 8192 (on NT/2K/XP).
4825 lt_cv_sys_max_cmd_len=8192;
4826 ;;
4827
4828 mint*)
4829 # On MiNT this can take a long time and run out of memory.
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
4832
4833 amigaos*)
4834 # On AmigaOS with pdksh, this test takes hours, literally.
4835 # So we just punt and use a minimum line length of 8192.
4836 lt_cv_sys_max_cmd_len=8192;
4837 ;;
4838
4839 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4840 # This has been around since 386BSD, at least. Likely further.
4841 if test -x /sbin/sysctl; then
4842 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4843 elif test -x /usr/sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4845 else
4846 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4847 fi
4848 # And add a safety zone
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851 ;;
4852
4853 interix*)
4854 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4855 lt_cv_sys_max_cmd_len=196608
4856 ;;
4857
4858 os2*)
4859 # The test takes a long time on OS/2.
4860 lt_cv_sys_max_cmd_len=8192
4861 ;;
4862
4863 osf*)
4864 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4865 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4866 # nice to cause kernel panics so lets avoid the loop below.
4867 # First set a reasonable default.
4868 lt_cv_sys_max_cmd_len=16384
4869 #
4870 if test -x /sbin/sysconfig; then
4871 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4872 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4873 esac
4874 fi
4875 ;;
4876 sco3.2v5*)
4877 lt_cv_sys_max_cmd_len=102400
4878 ;;
4879 sysv5* | sco5v6* | sysv4.2uw2*)
4880 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4881 if test -n "$kargmax"; then
4882 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4883 else
4884 lt_cv_sys_max_cmd_len=32768
4885 fi
4886 ;;
4887 *)
4888 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4889 if test -n "$lt_cv_sys_max_cmd_len" && \
4890 test undefined != "$lt_cv_sys_max_cmd_len"; then
4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4893 else
4894 # Make teststring a little bigger before we do anything with it.
4895 # a 1K string should be a reasonable start.
4896 for i in 1 2 3 4 5 6 7 8 ; do
4897 teststring=$teststring$teststring
4898 done
4899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4900 # If test is not a shell built-in, we'll probably end up computing a
4901 # maximum length that is only half of the actual maximum length, but
4902 # we can't tell.
4903 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4904 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4905 test $i != 17 # 1/2 MB should be enough
4906 do
4907 i=`expr $i + 1`
4908 teststring=$teststring$teststring
4909 done
4910 # Only check the string length outside the loop.
4911 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4912 teststring=
4913 # Add a significant safety factor because C++ compilers can tack on
4914 # massive amounts of additional arguments before passing them to the
4915 # linker. It appears as though 1/2 is a usable value.
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4917 fi
4918 ;;
4919 esac
4920
4921 fi
4922
4923 if test -n $lt_cv_sys_max_cmd_len ; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4925 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4928 $as_echo "none" >&6; }
4929 fi
4930 max_cmd_len=$lt_cv_sys_max_cmd_len
4931
4932
4933
4934
4935
4936
4937 : ${CP="cp -f"}
4938 : ${MV="mv -f"}
4939 : ${RM="rm -f"}
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4942 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4943 # Try some XSI features
4944 xsi_shell=no
4945 ( _lt_dummy="a/b/c"
4946 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4947 = c,a/b,b/c, \
4948 && eval 'test $(( 1 + 1 )) -eq 2 \
4949 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4950 && xsi_shell=yes
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4952 $as_echo "$xsi_shell" >&6; }
4953
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4956 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4957 lt_shell_append=no
4958 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4959 >/dev/null 2>&1 \
4960 && lt_shell_append=yes
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4962 $as_echo "$lt_shell_append" >&6; }
4963
4964
4965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4966 lt_unset=unset
4967 else
4968 lt_unset=false
4969 fi
4970
4971
4972
4973
4974
4975 # test EBCDIC or ASCII
4976 case `echo X|tr X '\101'` in
4977 A) # ASCII based system
4978 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4979 lt_SP2NL='tr \040 \012'
4980 lt_NL2SP='tr \015\012 \040\040'
4981 ;;
4982 *) # EBCDIC based system
4983 lt_SP2NL='tr \100 \n'
4984 lt_NL2SP='tr \r\n \100\100'
4985 ;;
4986 esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4997 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4998 if ${lt_cv_to_host_file_cmd+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 case $host in
5002 *-*-mingw* )
5003 case $build in
5004 *-*-mingw* ) # actually msys
5005 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5006 ;;
5007 *-*-cygwin* )
5008 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5009 ;;
5010 * ) # otherwise, assume *nix
5011 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5012 ;;
5013 esac
5014 ;;
5015 *-*-cygwin* )
5016 case $build in
5017 *-*-mingw* ) # actually msys
5018 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5019 ;;
5020 *-*-cygwin* )
5021 lt_cv_to_host_file_cmd=func_convert_file_noop
5022 ;;
5023 * ) # otherwise, assume *nix
5024 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5025 ;;
5026 esac
5027 ;;
5028 * ) # unhandled hosts (and "normal" native builds)
5029 lt_cv_to_host_file_cmd=func_convert_file_noop
5030 ;;
5031 esac
5032
5033 fi
5034
5035 to_host_file_cmd=$lt_cv_to_host_file_cmd
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5037 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5038
5039
5040
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5044 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5045 if ${lt_cv_to_tool_file_cmd+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 #assume ordinary cross tools, or native build.
5049 lt_cv_to_tool_file_cmd=func_convert_file_noop
5050 case $host in
5051 *-*-mingw* )
5052 case $build in
5053 *-*-mingw* ) # actually msys
5054 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5055 ;;
5056 esac
5057 ;;
5058 esac
5059
5060 fi
5061
5062 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5064 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5065
5066
5067
5068
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5071 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5072 if ${lt_cv_ld_reload_flag+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 lt_cv_ld_reload_flag='-r'
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5078 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5079 reload_flag=$lt_cv_ld_reload_flag
5080 case $reload_flag in
5081 "" | " "*) ;;
5082 *) reload_flag=" $reload_flag" ;;
5083 esac
5084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5085 case $host_os in
5086 cygwin* | mingw* | pw32* | cegcc*)
5087 if test "$GCC" != yes; then
5088 reload_cmds=false
5089 fi
5090 ;;
5091 darwin*)
5092 if test "$GCC" = yes; then
5093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5094 else
5095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5096 fi
5097 ;;
5098 esac
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 if test -n "$ac_tool_prefix"; then
5109 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5110 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_OBJDUMP+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$OBJDUMP"; then
5117 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 OBJDUMP=$ac_cv_prog_OBJDUMP
5137 if test -n "$OBJDUMP"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5139 $as_echo "$OBJDUMP" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146 fi
5147 if test -z "$ac_cv_prog_OBJDUMP"; then
5148 ac_ct_OBJDUMP=$OBJDUMP
5149 # Extract the first word of "objdump", so it can be a program name with args.
5150 set dummy objdump; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if test -n "$ac_ct_OBJDUMP"; then
5157 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5177 if test -n "$ac_ct_OBJDUMP"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5179 $as_echo "$ac_ct_OBJDUMP" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184
5185 if test "x$ac_ct_OBJDUMP" = x; then
5186 OBJDUMP="false"
5187 else
5188 case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194 OBJDUMP=$ac_ct_OBJDUMP
5195 fi
5196 else
5197 OBJDUMP="$ac_cv_prog_OBJDUMP"
5198 fi
5199
5200 test -z "$OBJDUMP" && OBJDUMP=objdump
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5211 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5212 if ${lt_cv_deplibs_check_method+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 lt_cv_file_magic_cmd='$MAGIC_CMD'
5216 lt_cv_file_magic_test_file=
5217 lt_cv_deplibs_check_method='unknown'
5218 # Need to set the preceding variable on all platforms that support
5219 # interlibrary dependencies.
5220 # 'none' -- dependencies not supported.
5221 # `unknown' -- same as none, but documents that we really don't know.
5222 # 'pass_all' -- all dependencies passed with no checks.
5223 # 'test_compile' -- check by making test program.
5224 # 'file_magic [[regex]]' -- check by looking for files in library path
5225 # which responds to the $file_magic_cmd with a given extended regex.
5226 # If you have `file' or equivalent on your system and you're not sure
5227 # whether `pass_all' will *always* work, you probably want this one.
5228
5229 case $host_os in
5230 aix[4-9]*)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233
5234 beos*)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237
5238 bsdi[45]*)
5239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5240 lt_cv_file_magic_cmd='/usr/bin/file -L'
5241 lt_cv_file_magic_test_file=/shlib/libc.so
5242 ;;
5243
5244 cygwin*)
5245 # func_win32_libid is a shell function defined in ltmain.sh
5246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5247 lt_cv_file_magic_cmd='func_win32_libid'
5248 ;;
5249
5250 mingw* | pw32*)
5251 # Base MSYS/MinGW do not provide the 'file' command needed by
5252 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5253 # unless we find 'file', for example because we are cross-compiling.
5254 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5255 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5257 lt_cv_file_magic_cmd='func_win32_libid'
5258 else
5259 # Keep this pattern in sync with the one in func_win32_libid.
5260 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5261 lt_cv_file_magic_cmd='$OBJDUMP -f'
5262 fi
5263 ;;
5264
5265 cegcc*)
5266 # use the weaker test based on 'objdump'. See mingw*.
5267 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5268 lt_cv_file_magic_cmd='$OBJDUMP -f'
5269 ;;
5270
5271 darwin* | rhapsody*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274
5275 freebsd* | dragonfly*)
5276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5277 case $host_cpu in
5278 i*86 )
5279 # Not sure whether the presence of OpenBSD here was a mistake.
5280 # Let's accept both of them until this is cleared up.
5281 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5282 lt_cv_file_magic_cmd=/usr/bin/file
5283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5284 ;;
5285 esac
5286 else
5287 lt_cv_deplibs_check_method=pass_all
5288 fi
5289 ;;
5290
5291 haiku*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 hpux10.20* | hpux11*)
5296 lt_cv_file_magic_cmd=/usr/bin/file
5297 case $host_cpu in
5298 ia64*)
5299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5300 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5301 ;;
5302 hppa*64*)
5303 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]'
5304 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5305 ;;
5306 *)
5307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5308 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5309 ;;
5310 esac
5311 ;;
5312
5313 interix[3-9]*)
5314 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5316 ;;
5317
5318 irix5* | irix6* | nonstopux*)
5319 case $LD in
5320 *-32|*"-32 ") libmagic=32-bit;;
5321 *-n32|*"-n32 ") libmagic=N32;;
5322 *-64|*"-64 ") libmagic=64-bit;;
5323 *) libmagic=never-match;;
5324 esac
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 # This must be glibc/ELF.
5329 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333 netbsd* | netbsdelf*-gnu)
5334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5336 else
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5338 fi
5339 ;;
5340
5341 newos6*)
5342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5343 lt_cv_file_magic_cmd=/usr/bin/file
5344 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5345 ;;
5346
5347 *nto* | *qnx*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351 openbsd*)
5352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5354 else
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5356 fi
5357 ;;
5358
5359 osf3* | osf4* | osf5*)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362
5363 rdos*)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366
5367 solaris*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
5371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374
5375 sysv4 | sysv4.3*)
5376 case $host_vendor in
5377 motorola)
5378 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]'
5379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5380 ;;
5381 ncr)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384 sequent)
5385 lt_cv_file_magic_cmd='/bin/file'
5386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5387 ;;
5388 sni)
5389 lt_cv_file_magic_cmd='/bin/file'
5390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5391 lt_cv_file_magic_test_file=/lib/libc.so
5392 ;;
5393 siemens)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396 pc)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399 esac
5400 ;;
5401
5402 tpf*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405 esac
5406
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5409 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5410
5411 file_magic_glob=
5412 want_nocaseglob=no
5413 if test "$build" = "$host"; then
5414 case $host_os in
5415 mingw* | pw32*)
5416 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5417 want_nocaseglob=yes
5418 else
5419 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5420 fi
5421 ;;
5422 esac
5423 fi
5424
5425 file_magic_cmd=$lt_cv_file_magic_cmd
5426 deplibs_check_method=$lt_cv_deplibs_check_method
5427 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 if test -n "$ac_tool_prefix"; then
5451 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5452 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_DLLTOOL+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$DLLTOOL"; then
5459 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 DLLTOOL=$ac_cv_prog_DLLTOOL
5479 if test -n "$DLLTOOL"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5481 $as_echo "$DLLTOOL" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 fi
5489 if test -z "$ac_cv_prog_DLLTOOL"; then
5490 ac_ct_DLLTOOL=$DLLTOOL
5491 # Extract the first word of "dlltool", so it can be a program name with args.
5492 set dummy dlltool; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$ac_ct_DLLTOOL"; then
5499 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5519 if test -n "$ac_ct_DLLTOOL"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5521 $as_echo "$ac_ct_DLLTOOL" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527 if test "x$ac_ct_DLLTOOL" = x; then
5528 DLLTOOL="false"
5529 else
5530 case $cross_compiling:$ac_tool_warned in
5531 yes:)
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536 DLLTOOL=$ac_ct_DLLTOOL
5537 fi
5538 else
5539 DLLTOOL="$ac_cv_prog_DLLTOOL"
5540 fi
5541
5542 test -z "$DLLTOOL" && DLLTOOL=dlltool
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5554 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5555 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 lt_cv_sharedlib_from_linklib_cmd='unknown'
5559
5560 case $host_os in
5561 cygwin* | mingw* | pw32* | cegcc*)
5562 # two different shell functions defined in ltmain.sh
5563 # decide which to use based on capabilities of $DLLTOOL
5564 case `$DLLTOOL --help 2>&1` in
5565 *--identify-strict*)
5566 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5567 ;;
5568 *)
5569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5570 ;;
5571 esac
5572 ;;
5573 *)
5574 # fallback: assume linklib IS sharedlib
5575 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5576 ;;
5577 esac
5578
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5581 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5582 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5583 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5584
5585
5586
5587
5588
5589
5590
5591 if test -n "$ac_tool_prefix"; then
5592 for ac_prog in ar
5593 do
5594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_AR+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -n "$AR"; then
5602 ac_cv_prog_AR="$AR" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615 done
5616 done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 AR=$ac_cv_prog_AR
5622 if test -n "$AR"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5624 $as_echo "$AR" >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630
5631 test -n "$AR" && break
5632 done
5633 fi
5634 if test -z "$AR"; then
5635 ac_ct_AR=$AR
5636 for ac_prog in ar
5637 do
5638 # Extract the first word of "$ac_prog", so it can be a program name with args.
5639 set dummy $ac_prog; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$ac_ct_AR"; then
5646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_ac_ct_AR="$ac_prog"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5666 if test -n "$ac_ct_AR"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5668 $as_echo "$ac_ct_AR" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675 test -n "$ac_ct_AR" && break
5676 done
5677
5678 if test "x$ac_ct_AR" = x; then
5679 AR="false"
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned=yes ;;
5686 esac
5687 AR=$ac_ct_AR
5688 fi
5689 fi
5690
5691 : ${AR=ar}
5692 : ${AR_FLAGS=cru}
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5705 $as_echo_n "checking for archiver @FILE support... " >&6; }
5706 if ${lt_cv_ar_at_file+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 lt_cv_ar_at_file=no
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712
5713 int
5714 main ()
5715 {
5716
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 echo conftest.$ac_objext > conftest.lst
5723 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5725 (eval $lt_ar_try) 2>&5
5726 ac_status=$?
5727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5728 test $ac_status = 0; }
5729 if test "$ac_status" -eq 0; then
5730 # Ensure the archiver fails upon bogus file names.
5731 rm -f conftest.$ac_objext libconftest.a
5732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5733 (eval $lt_ar_try) 2>&5
5734 ac_status=$?
5735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5736 test $ac_status = 0; }
5737 if test "$ac_status" -ne 0; then
5738 lt_cv_ar_at_file=@
5739 fi
5740 fi
5741 rm -f conftest.* libconftest.a
5742
5743 fi
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5748 $as_echo "$lt_cv_ar_at_file" >&6; }
5749
5750 if test "x$lt_cv_ar_at_file" = xno; then
5751 archiver_list_spec=
5752 else
5753 archiver_list_spec=$lt_cv_ar_at_file
5754 fi
5755
5756
5757
5758
5759
5760
5761
5762 if test -n "$ac_tool_prefix"; then
5763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5764 set dummy ${ac_tool_prefix}strip; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_STRIP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$STRIP"; then
5771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 STRIP=$ac_cv_prog_STRIP
5791 if test -n "$STRIP"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5793 $as_echo "$STRIP" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799
5800 fi
5801 if test -z "$ac_cv_prog_STRIP"; then
5802 ac_ct_STRIP=$STRIP
5803 # Extract the first word of "strip", so it can be a program name with args.
5804 set dummy strip; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$ac_ct_STRIP"; then
5811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_STRIP="strip"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5831 if test -n "$ac_ct_STRIP"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5833 $as_echo "$ac_ct_STRIP" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839 if test "x$ac_ct_STRIP" = x; then
5840 STRIP=":"
5841 else
5842 case $cross_compiling:$ac_tool_warned in
5843 yes:)
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5846 ac_tool_warned=yes ;;
5847 esac
5848 STRIP=$ac_ct_STRIP
5849 fi
5850 else
5851 STRIP="$ac_cv_prog_STRIP"
5852 fi
5853
5854 test -z "$STRIP" && STRIP=:
5855
5856
5857
5858
5859
5860
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_RANLIB+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$RANLIB"; then
5870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 RANLIB=$ac_cv_prog_RANLIB
5890 if test -n "$RANLIB"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5892 $as_echo "$RANLIB" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 fi
5900 if test -z "$ac_cv_prog_RANLIB"; then
5901 ac_ct_RANLIB=$RANLIB
5902 # Extract the first word of "ranlib", so it can be a program name with args.
5903 set dummy ranlib; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$ac_ct_RANLIB"; then
5910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_ac_ct_RANLIB="ranlib"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5930 if test -n "$ac_ct_RANLIB"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5932 $as_echo "$ac_ct_RANLIB" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938 if test "x$ac_ct_RANLIB" = x; then
5939 RANLIB=":"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947 RANLIB=$ac_ct_RANLIB
5948 fi
5949 else
5950 RANLIB="$ac_cv_prog_RANLIB"
5951 fi
5952
5953 test -z "$RANLIB" && RANLIB=:
5954
5955
5956
5957
5958
5959
5960 # Determine commands to create old-style static archives.
5961 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5962 old_postinstall_cmds='chmod 644 $oldlib'
5963 old_postuninstall_cmds=
5964
5965 if test -n "$RANLIB"; then
5966 case $host_os in
5967 openbsd*)
5968 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5969 ;;
5970 *)
5971 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5972 ;;
5973 esac
5974 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5975 fi
5976
5977 case $host_os in
5978 darwin*)
5979 lock_old_archive_extraction=yes ;;
5980 *)
5981 lock_old_archive_extraction=no ;;
5982 esac
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 # If no C compiler was specified, use CC.
6023 LTCC=${LTCC-"$CC"}
6024
6025 # If no C compiler flags were specified, use CFLAGS.
6026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6027
6028 # Allow CC to be a program name with arguments.
6029 compiler=$CC
6030
6031
6032 # Check for command to grab the raw symbol name followed by C symbol from nm.
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6034 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6035 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038
6039 # These are sane defaults that work on at least a few old systems.
6040 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6041
6042 # Character class describing NM global symbol codes.
6043 symcode='[BCDEGRST]'
6044
6045 # Regexp to match symbols that can be accessed directly from C.
6046 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6047
6048 # Define system-specific variables.
6049 case $host_os in
6050 aix*)
6051 symcode='[BCDT]'
6052 ;;
6053 cygwin* | mingw* | pw32* | cegcc*)
6054 symcode='[ABCDGISTW]'
6055 ;;
6056 hpux*)
6057 if test "$host_cpu" = ia64; then
6058 symcode='[ABCDEGRST]'
6059 fi
6060 ;;
6061 irix* | nonstopux*)
6062 symcode='[BCDEGRST]'
6063 ;;
6064 osf*)
6065 symcode='[BCDEGQRST]'
6066 ;;
6067 solaris*)
6068 symcode='[BDRT]'
6069 ;;
6070 sco3.2v5*)
6071 symcode='[DT]'
6072 ;;
6073 sysv4.2uw2*)
6074 symcode='[DT]'
6075 ;;
6076 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6077 symcode='[ABDT]'
6078 ;;
6079 sysv4)
6080 symcode='[DFNSTU]'
6081 ;;
6082 esac
6083
6084 # If we're using GNU nm, then use its standard symbol codes.
6085 case `$NM -V 2>&1` in
6086 *GNU* | *'with BFD'*)
6087 symcode='[ABCDGIRSTW]' ;;
6088 esac
6089
6090 # Transform an extracted symbol line into a proper C declaration.
6091 # Some systems (esp. on ia64) link data and code symbols differently,
6092 # so use this general approach.
6093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6094
6095 # Transform an extracted symbol line into symbol name and symbol address
6096 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6097 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6098
6099 # Handle CRLF in mingw tool chain
6100 opt_cr=
6101 case $build_os in
6102 mingw*)
6103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6104 ;;
6105 esac
6106
6107 # Try without a prefix underscore, then with it.
6108 for ac_symprfx in "" "_"; do
6109
6110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6111 symxfrm="\\1 $ac_symprfx\\2 \\2"
6112
6113 # Write the raw and C identifiers.
6114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6115 # Fake it for dumpbin and say T for any non-static function
6116 # and D for any global variable.
6117 # Also find C++ and __fastcall symbols from MSVC++,
6118 # which start with @ or ?.
6119 lt_cv_sys_global_symbol_pipe="$AWK '"\
6120 " {last_section=section; section=\$ 3};"\
6121 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6122 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6123 " \$ 0!~/External *\|/{next};"\
6124 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6125 " {if(hide[section]) next};"\
6126 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6127 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6128 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6129 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6130 " ' prfx=^$ac_symprfx"
6131 else
6132 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6133 fi
6134 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6135
6136 # Check to see that the pipe works correctly.
6137 pipe_works=no
6138
6139 rm -f conftest*
6140 cat > conftest.$ac_ext <<_LT_EOF
6141 #ifdef __cplusplus
6142 extern "C" {
6143 #endif
6144 char nm_test_var;
6145 void nm_test_func(void);
6146 void nm_test_func(void){}
6147 #ifdef __cplusplus
6148 }
6149 #endif
6150 int main(){nm_test_var='a';nm_test_func();return(0);}
6151 _LT_EOF
6152
6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6154 (eval $ac_compile) 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157 test $ac_status = 0; }; then
6158 # Now try to grab the symbols.
6159 nlist=conftest.nm
6160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6161 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; } && test -s "$nlist"; then
6165 # Try sorting and uniquifying the output.
6166 if sort "$nlist" | uniq > "$nlist"T; then
6167 mv -f "$nlist"T "$nlist"
6168 else
6169 rm -f "$nlist"T
6170 fi
6171
6172 # Make sure that we snagged all the symbols we need.
6173 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6174 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6175 cat <<_LT_EOF > conftest.$ac_ext
6176 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6177 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6178 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6179 relocations are performed -- see ld's documentation on pseudo-relocs. */
6180 # define LT_DLSYM_CONST
6181 #elif defined(__osf__)
6182 /* This system does not cope well with relocations in const data. */
6183 # define LT_DLSYM_CONST
6184 #else
6185 # define LT_DLSYM_CONST const
6186 #endif
6187
6188 #ifdef __cplusplus
6189 extern "C" {
6190 #endif
6191
6192 _LT_EOF
6193 # Now generate the symbol file.
6194 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6195
6196 cat <<_LT_EOF >> conftest.$ac_ext
6197
6198 /* The mapping between symbol names and symbols. */
6199 LT_DLSYM_CONST struct {
6200 const char *name;
6201 void *address;
6202 }
6203 lt__PROGRAM__LTX_preloaded_symbols[] =
6204 {
6205 { "@PROGRAM@", (void *) 0 },
6206 _LT_EOF
6207 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6208 cat <<\_LT_EOF >> conftest.$ac_ext
6209 {0, (void *) 0}
6210 };
6211
6212 /* This works around a problem in FreeBSD linker */
6213 #ifdef FREEBSD_WORKAROUND
6214 static const void *lt_preloaded_setup() {
6215 return lt__PROGRAM__LTX_preloaded_symbols;
6216 }
6217 #endif
6218
6219 #ifdef __cplusplus
6220 }
6221 #endif
6222 _LT_EOF
6223 # Now try linking the two files.
6224 mv conftest.$ac_objext conftstm.$ac_objext
6225 lt_globsym_save_LIBS=$LIBS
6226 lt_globsym_save_CFLAGS=$CFLAGS
6227 LIBS="conftstm.$ac_objext"
6228 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6230 (eval $ac_link) 2>&5
6231 ac_status=$?
6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6234 pipe_works=yes
6235 fi
6236 LIBS=$lt_globsym_save_LIBS
6237 CFLAGS=$lt_globsym_save_CFLAGS
6238 else
6239 echo "cannot find nm_test_func in $nlist" >&5
6240 fi
6241 else
6242 echo "cannot find nm_test_var in $nlist" >&5
6243 fi
6244 else
6245 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6246 fi
6247 else
6248 echo "$progname: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 fi
6251 rm -rf conftest* conftst*
6252
6253 # Do not use the global_symbol_pipe unless it works.
6254 if test "$pipe_works" = yes; then
6255 break
6256 else
6257 lt_cv_sys_global_symbol_pipe=
6258 fi
6259 done
6260
6261 fi
6262
6263 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6264 lt_cv_sys_global_symbol_to_cdecl=
6265 fi
6266 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6268 $as_echo "failed" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6271 $as_echo "ok" >&6; }
6272 fi
6273
6274 # Response file support.
6275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6276 nm_file_list_spec='@'
6277 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6278 nm_file_list_spec='@'
6279 fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6308 $as_echo_n "checking for sysroot... " >&6; }
6309
6310 # Check whether --with-sysroot was given.
6311 if test "${with_sysroot+set}" = set; then :
6312 withval=$with_sysroot;
6313 else
6314 with_sysroot=no
6315 fi
6316
6317
6318 lt_sysroot=
6319 case ${with_sysroot} in #(
6320 yes)
6321 if test "$GCC" = yes; then
6322 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6323 fi
6324 ;; #(
6325 /*)
6326 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6327 ;; #(
6328 no|'')
6329 ;; #(
6330 *)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6332 $as_echo "${with_sysroot}" >&6; }
6333 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6334 ;;
6335 esac
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6338 $as_echo "${lt_sysroot:-no}" >&6; }
6339
6340
6341
6342
6343
6344 # Check whether --enable-libtool-lock was given.
6345 if test "${enable_libtool_lock+set}" = set; then :
6346 enableval=$enable_libtool_lock;
6347 fi
6348
6349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6350
6351 # Some flags need to be propagated to the compiler or linker for good
6352 # libtool support.
6353 case $host in
6354 ia64-*-hpux*)
6355 # Find out which ABI we are using.
6356 echo 'int i;' > conftest.$ac_ext
6357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358 (eval $ac_compile) 2>&5
6359 ac_status=$?
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; then
6362 case `/usr/bin/file conftest.$ac_objext` in
6363 *ELF-32*)
6364 HPUX_IA64_MODE="32"
6365 ;;
6366 *ELF-64*)
6367 HPUX_IA64_MODE="64"
6368 ;;
6369 esac
6370 fi
6371 rm -rf conftest*
6372 ;;
6373 *-*-irix6*)
6374 # Find out which ABI we are using.
6375 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }; then
6381 if test "$lt_cv_prog_gnu_ld" = yes; then
6382 case `/usr/bin/file conftest.$ac_objext` in
6383 *32-bit*)
6384 LD="${LD-ld} -melf32bsmip"
6385 ;;
6386 *N32*)
6387 LD="${LD-ld} -melf32bmipn32"
6388 ;;
6389 *64-bit*)
6390 LD="${LD-ld} -melf64bmip"
6391 ;;
6392 esac
6393 else
6394 case `/usr/bin/file conftest.$ac_objext` in
6395 *32-bit*)
6396 LD="${LD-ld} -32"
6397 ;;
6398 *N32*)
6399 LD="${LD-ld} -n32"
6400 ;;
6401 *64-bit*)
6402 LD="${LD-ld} -64"
6403 ;;
6404 esac
6405 fi
6406 fi
6407 rm -rf conftest*
6408 ;;
6409
6410 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6411 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6412 # Find out which ABI we are using.
6413 echo 'int i;' > conftest.$ac_ext
6414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6415 (eval $ac_compile) 2>&5
6416 ac_status=$?
6417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418 test $ac_status = 0; }; then
6419 case `/usr/bin/file conftest.o` in
6420 *32-bit*)
6421 case $host in
6422 x86_64-*kfreebsd*-gnu)
6423 LD="${LD-ld} -m elf_i386_fbsd"
6424 ;;
6425 x86_64-*linux*)
6426 case `/usr/bin/file conftest.o` in
6427 *x86-64*)
6428 LD="${LD-ld} -m elf32_x86_64"
6429 ;;
6430 *)
6431 LD="${LD-ld} -m elf_i386"
6432 ;;
6433 esac
6434 ;;
6435 ppc64-*linux*|powerpc64-*linux*)
6436 LD="${LD-ld} -m elf32ppclinux"
6437 ;;
6438 s390x-*linux*)
6439 LD="${LD-ld} -m elf_s390"
6440 ;;
6441 sparc64-*linux*)
6442 LD="${LD-ld} -m elf32_sparc"
6443 ;;
6444 esac
6445 ;;
6446 *64-bit*)
6447 case $host in
6448 x86_64-*kfreebsd*-gnu)
6449 LD="${LD-ld} -m elf_x86_64_fbsd"
6450 ;;
6451 x86_64-*linux*)
6452 LD="${LD-ld} -m elf_x86_64"
6453 ;;
6454 ppc*-*linux*|powerpc*-*linux*)
6455 LD="${LD-ld} -m elf64ppc"
6456 ;;
6457 s390*-*linux*|s390*-*tpf*)
6458 LD="${LD-ld} -m elf64_s390"
6459 ;;
6460 sparc*-*linux*)
6461 LD="${LD-ld} -m elf64_sparc"
6462 ;;
6463 esac
6464 ;;
6465 esac
6466 fi
6467 rm -rf conftest*
6468 ;;
6469
6470 *-*-sco3.2v5*)
6471 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6472 SAVE_CFLAGS="$CFLAGS"
6473 CFLAGS="$CFLAGS -belf"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6475 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6476 if ${lt_cv_cc_needs_belf+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 ac_ext=c
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487
6488 int
6489 main ()
6490 {
6491
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_link "$LINENO"; then :
6497 lt_cv_cc_needs_belf=yes
6498 else
6499 lt_cv_cc_needs_belf=no
6500 fi
6501 rm -f core conftest.err conftest.$ac_objext \
6502 conftest$ac_exeext conftest.$ac_ext
6503 ac_ext=c
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6508
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6511 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6512 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6513 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6514 CFLAGS="$SAVE_CFLAGS"
6515 fi
6516 ;;
6517 *-*solaris*)
6518 # Find out which ABI we are using.
6519 echo 'int i;' > conftest.$ac_ext
6520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6521 (eval $ac_compile) 2>&5
6522 ac_status=$?
6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524 test $ac_status = 0; }; then
6525 case `/usr/bin/file conftest.o` in
6526 *64-bit*)
6527 case $lt_cv_prog_gnu_ld in
6528 yes*)
6529 case $host in
6530 i?86-*-solaris*)
6531 LD="${LD-ld} -m elf_x86_64"
6532 ;;
6533 sparc*-*-solaris*)
6534 LD="${LD-ld} -m elf64_sparc"
6535 ;;
6536 esac
6537 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6538 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6539 LD="${LD-ld}_sol2"
6540 fi
6541 ;;
6542 *)
6543 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6544 LD="${LD-ld} -64"
6545 fi
6546 ;;
6547 esac
6548 ;;
6549 esac
6550 fi
6551 rm -rf conftest*
6552 ;;
6553 esac
6554
6555 need_locks="$enable_libtool_lock"
6556
6557 if test -n "$ac_tool_prefix"; then
6558 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6559 set dummy ${ac_tool_prefix}mt; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$MANIFEST_TOOL"; then
6566 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6586 if test -n "$MANIFEST_TOOL"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6588 $as_echo "$MANIFEST_TOOL" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594
6595 fi
6596 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6597 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6598 # Extract the first word of "mt", so it can be a program name with args.
6599 set dummy mt; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 if test -n "$ac_ct_MANIFEST_TOOL"; then
6606 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6626 if test -n "$ac_ct_MANIFEST_TOOL"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6628 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6635 MANIFEST_TOOL=":"
6636 else
6637 case $cross_compiling:$ac_tool_warned in
6638 yes:)
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6641 ac_tool_warned=yes ;;
6642 esac
6643 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6644 fi
6645 else
6646 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6647 fi
6648
6649 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6651 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6652 if ${lt_cv_path_mainfest_tool+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 lt_cv_path_mainfest_tool=no
6656 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6657 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6658 cat conftest.err >&5
6659 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6660 lt_cv_path_mainfest_tool=yes
6661 fi
6662 rm -f conftest*
6663 fi
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6665 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6666 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6667 MANIFEST_TOOL=:
6668 fi
6669
6670
6671
6672
6673
6674
6675 case $host_os in
6676 rhapsody* | darwin*)
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 if test -n "$DSYMUTIL"; then
6686 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6706 if test -n "$DSYMUTIL"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6708 $as_echo "$DSYMUTIL" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714
6715 fi
6716 if test -z "$ac_cv_prog_DSYMUTIL"; then
6717 ac_ct_DSYMUTIL=$DSYMUTIL
6718 # Extract the first word of "dsymutil", so it can be a program name with args.
6719 set dummy dsymutil; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$ac_ct_DSYMUTIL"; then
6726 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6746 if test -n "$ac_ct_DSYMUTIL"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6748 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754 if test "x$ac_ct_DSYMUTIL" = x; then
6755 DSYMUTIL=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763 DSYMUTIL=$ac_ct_DSYMUTIL
6764 fi
6765 else
6766 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6767 fi
6768
6769 if test -n "$ac_tool_prefix"; then
6770 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6771 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_NMEDIT+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$NMEDIT"; then
6778 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 NMEDIT=$ac_cv_prog_NMEDIT
6798 if test -n "$NMEDIT"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6800 $as_echo "$NMEDIT" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806
6807 fi
6808 if test -z "$ac_cv_prog_NMEDIT"; then
6809 ac_ct_NMEDIT=$NMEDIT
6810 # Extract the first word of "nmedit", so it can be a program name with args.
6811 set dummy nmedit; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$ac_ct_NMEDIT"; then
6818 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6838 if test -n "$ac_ct_NMEDIT"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6840 $as_echo "$ac_ct_NMEDIT" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846 if test "x$ac_ct_NMEDIT" = x; then
6847 NMEDIT=":"
6848 else
6849 case $cross_compiling:$ac_tool_warned in
6850 yes:)
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6853 ac_tool_warned=yes ;;
6854 esac
6855 NMEDIT=$ac_ct_NMEDIT
6856 fi
6857 else
6858 NMEDIT="$ac_cv_prog_NMEDIT"
6859 fi
6860
6861 if test -n "$ac_tool_prefix"; then
6862 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_LIPO+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$LIPO"; then
6870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 LIPO=$ac_cv_prog_LIPO
6890 if test -n "$LIPO"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6892 $as_echo "$LIPO" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_LIPO"; then
6901 ac_ct_LIPO=$LIPO
6902 # Extract the first word of "lipo", so it can be a program name with args.
6903 set dummy lipo; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$ac_ct_LIPO"; then
6910 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_ac_ct_LIPO="lipo"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6930 if test -n "$ac_ct_LIPO"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6932 $as_echo "$ac_ct_LIPO" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938 if test "x$ac_ct_LIPO" = x; then
6939 LIPO=":"
6940 else
6941 case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6945 ac_tool_warned=yes ;;
6946 esac
6947 LIPO=$ac_ct_LIPO
6948 fi
6949 else
6950 LIPO="$ac_cv_prog_LIPO"
6951 fi
6952
6953 if test -n "$ac_tool_prefix"; then
6954 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}otool; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_OTOOL+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$OTOOL"; then
6962 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 OTOOL=$ac_cv_prog_OTOOL
6982 if test -n "$OTOOL"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6984 $as_echo "$OTOOL" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990
6991 fi
6992 if test -z "$ac_cv_prog_OTOOL"; then
6993 ac_ct_OTOOL=$OTOOL
6994 # Extract the first word of "otool", so it can be a program name with args.
6995 set dummy otool; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$ac_ct_OTOOL"; then
7002 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_ac_ct_OTOOL="otool"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7022 if test -n "$ac_ct_OTOOL"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7024 $as_echo "$ac_ct_OTOOL" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030 if test "x$ac_ct_OTOOL" = x; then
7031 OTOOL=":"
7032 else
7033 case $cross_compiling:$ac_tool_warned in
7034 yes:)
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7037 ac_tool_warned=yes ;;
7038 esac
7039 OTOOL=$ac_ct_OTOOL
7040 fi
7041 else
7042 OTOOL="$ac_cv_prog_OTOOL"
7043 fi
7044
7045 if test -n "$ac_tool_prefix"; then
7046 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_OTOOL64+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$OTOOL64"; then
7054 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 OTOOL64=$ac_cv_prog_OTOOL64
7074 if test -n "$OTOOL64"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7076 $as_echo "$OTOOL64" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082
7083 fi
7084 if test -z "$ac_cv_prog_OTOOL64"; then
7085 ac_ct_OTOOL64=$OTOOL64
7086 # Extract the first word of "otool64", so it can be a program name with args.
7087 set dummy otool64; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$ac_ct_OTOOL64"; then
7094 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_ac_ct_OTOOL64="otool64"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7114 if test -n "$ac_ct_OTOOL64"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7116 $as_echo "$ac_ct_OTOOL64" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122 if test "x$ac_ct_OTOOL64" = x; then
7123 OTOOL64=":"
7124 else
7125 case $cross_compiling:$ac_tool_warned in
7126 yes:)
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7130 esac
7131 OTOOL64=$ac_ct_OTOOL64
7132 fi
7133 else
7134 OTOOL64="$ac_cv_prog_OTOOL64"
7135 fi
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7164 $as_echo_n "checking for -single_module linker flag... " >&6; }
7165 if ${lt_cv_apple_cc_single_mod+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 lt_cv_apple_cc_single_mod=no
7169 if test -z "${LT_MULTI_MODULE}"; then
7170 # By default we will add the -single_module flag. You can override
7171 # by either setting the environment variable LT_MULTI_MODULE
7172 # non-empty at configure time, or by adding -multi_module to the
7173 # link flags.
7174 rm -rf libconftest.dylib*
7175 echo "int foo(void){return 1;}" > conftest.c
7176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7177 -dynamiclib -Wl,-single_module conftest.c" >&5
7178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7180 _lt_result=$?
7181 # If there is a non-empty error log, and "single_module"
7182 # appears in it, assume the flag caused a linker warning
7183 if test -s conftest.err && $GREP single_module conftest.err; then
7184 cat conftest.err >&5
7185 # Otherwise, if the output was created with a 0 exit code from
7186 # the compiler, it worked.
7187 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7188 lt_cv_apple_cc_single_mod=yes
7189 else
7190 cat conftest.err >&5
7191 fi
7192 rm -rf libconftest.dylib*
7193 rm -f conftest.*
7194 fi
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7197 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7200 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7201 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 lt_cv_ld_exported_symbols_list=no
7205 save_LDFLAGS=$LDFLAGS
7206 echo "_main" > conftest.sym
7207 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210
7211 int
7212 main ()
7213 {
7214
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_link "$LINENO"; then :
7220 lt_cv_ld_exported_symbols_list=yes
7221 else
7222 lt_cv_ld_exported_symbols_list=no
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
7226 LDFLAGS="$save_LDFLAGS"
7227
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7230 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7233 $as_echo_n "checking for -force_load linker flag... " >&6; }
7234 if ${lt_cv_ld_force_load+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 lt_cv_ld_force_load=no
7238 cat > conftest.c << _LT_EOF
7239 int forced_loaded() { return 2;}
7240 _LT_EOF
7241 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7242 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7243 echo "$AR cru libconftest.a conftest.o" >&5
7244 $AR cru libconftest.a conftest.o 2>&5
7245 echo "$RANLIB libconftest.a" >&5
7246 $RANLIB libconftest.a 2>&5
7247 cat > conftest.c << _LT_EOF
7248 int main() { return 0;}
7249 _LT_EOF
7250 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7251 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7252 _lt_result=$?
7253 if test -s conftest.err && $GREP force_load conftest.err; then
7254 cat conftest.err >&5
7255 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7256 lt_cv_ld_force_load=yes
7257 else
7258 cat conftest.err >&5
7259 fi
7260 rm -f conftest.err libconftest.a conftest conftest.c
7261 rm -rf conftest.dSYM
7262
7263 fi
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7265 $as_echo "$lt_cv_ld_force_load" >&6; }
7266 case $host_os in
7267 rhapsody* | darwin1.[012])
7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7269 darwin1.*)
7270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7271 darwin*) # darwin 5.x on
7272 # if running on 10.5 or later, the deployment target defaults
7273 # to the OS version, if on x86, and 10.4, the deployment
7274 # target defaults to 10.4. Don't you love it?
7275 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7276 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7278 10.[012]*)
7279 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7280 10.*)
7281 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7282 esac
7283 ;;
7284 esac
7285 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7286 _lt_dar_single_mod='$single_module'
7287 fi
7288 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7289 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7290 else
7291 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7292 fi
7293 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7294 _lt_dsymutil='~$DSYMUTIL $lib || :'
7295 else
7296 _lt_dsymutil=
7297 fi
7298 ;;
7299 esac
7300
7301 ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7308 # On Suns, sometimes $CPP names a directory.
7309 if test -n "$CPP" && test -d "$CPP"; then
7310 CPP=
7311 fi
7312 if test -z "$CPP"; then
7313 if ${ac_cv_prog_CPP+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 # Double quotes because CPP needs to be expanded
7317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7318 do
7319 ac_preproc_ok=false
7320 for ac_c_preproc_warn_flag in '' yes
7321 do
7322 # Use a header file that comes with gcc, so configuring glibc
7323 # with a fresh cross-compiler works.
7324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 # <limits.h> exists even on freestanding compilers.
7326 # On the NeXT, cc -E runs the code through the compiler's parser,
7327 # not just through cpp. "Syntax error" is here to catch this case.
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 #ifdef __STDC__
7331 # include <limits.h>
7332 #else
7333 # include <assert.h>
7334 #endif
7335 Syntax error
7336 _ACEOF
7337 if ac_fn_c_try_cpp "$LINENO"; then :
7338
7339 else
7340 # Broken: fails on valid input.
7341 continue
7342 fi
7343 rm -f conftest.err conftest.i conftest.$ac_ext
7344
7345 # OK, works on sane cases. Now check whether nonexistent headers
7346 # can be detected and how.
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 #include <ac_nonexistent.h>
7350 _ACEOF
7351 if ac_fn_c_try_cpp "$LINENO"; then :
7352 # Broken: success on invalid input.
7353 continue
7354 else
7355 # Passes both tests.
7356 ac_preproc_ok=:
7357 break
7358 fi
7359 rm -f conftest.err conftest.i conftest.$ac_ext
7360
7361 done
7362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7363 rm -f conftest.i conftest.err conftest.$ac_ext
7364 if $ac_preproc_ok; then :
7365 break
7366 fi
7367
7368 done
7369 ac_cv_prog_CPP=$CPP
7370
7371 fi
7372 CPP=$ac_cv_prog_CPP
7373 else
7374 ac_cv_prog_CPP=$CPP
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7377 $as_echo "$CPP" >&6; }
7378 ac_preproc_ok=false
7379 for ac_c_preproc_warn_flag in '' yes
7380 do
7381 # Use a header file that comes with gcc, so configuring glibc
7382 # with a fresh cross-compiler works.
7383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7384 # <limits.h> exists even on freestanding compilers.
7385 # On the NeXT, cc -E runs the code through the compiler's parser,
7386 # not just through cpp. "Syntax error" is here to catch this case.
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7389 #ifdef __STDC__
7390 # include <limits.h>
7391 #else
7392 # include <assert.h>
7393 #endif
7394 Syntax error
7395 _ACEOF
7396 if ac_fn_c_try_cpp "$LINENO"; then :
7397
7398 else
7399 # Broken: fails on valid input.
7400 continue
7401 fi
7402 rm -f conftest.err conftest.i conftest.$ac_ext
7403
7404 # OK, works on sane cases. Now check whether nonexistent headers
7405 # can be detected and how.
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 #include <ac_nonexistent.h>
7409 _ACEOF
7410 if ac_fn_c_try_cpp "$LINENO"; then :
7411 # Broken: success on invalid input.
7412 continue
7413 else
7414 # Passes both tests.
7415 ac_preproc_ok=:
7416 break
7417 fi
7418 rm -f conftest.err conftest.i conftest.$ac_ext
7419
7420 done
7421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7422 rm -f conftest.i conftest.err conftest.$ac_ext
7423 if $ac_preproc_ok; then :
7424
7425 else
7426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7428 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7429 See \`config.log' for more details" "$LINENO" 5; }
7430 fi
7431
7432 ac_ext=c
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437
7438
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7440 $as_echo_n "checking for ANSI C header files... " >&6; }
7441 if ${ac_cv_header_stdc+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <stdlib.h>
7447 #include <stdarg.h>
7448 #include <string.h>
7449 #include <float.h>
7450
7451 int
7452 main ()
7453 {
7454
7455 ;
7456 return 0;
7457 }
7458 _ACEOF
7459 if ac_fn_c_try_compile "$LINENO"; then :
7460 ac_cv_header_stdc=yes
7461 else
7462 ac_cv_header_stdc=no
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465
7466 if test $ac_cv_header_stdc = yes; then
7467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 #include <string.h>
7471
7472 _ACEOF
7473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7474 $EGREP "memchr" >/dev/null 2>&1; then :
7475
7476 else
7477 ac_cv_header_stdc=no
7478 fi
7479 rm -f conftest*
7480
7481 fi
7482
7483 if test $ac_cv_header_stdc = yes; then
7484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <stdlib.h>
7488
7489 _ACEOF
7490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7491 $EGREP "free" >/dev/null 2>&1; then :
7492
7493 else
7494 ac_cv_header_stdc=no
7495 fi
7496 rm -f conftest*
7497
7498 fi
7499
7500 if test $ac_cv_header_stdc = yes; then
7501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7502 if test "$cross_compiling" = yes; then :
7503 :
7504 else
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <ctype.h>
7508 #include <stdlib.h>
7509 #if ((' ' & 0x0FF) == 0x020)
7510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7512 #else
7513 # define ISLOWER(c) \
7514 (('a' <= (c) && (c) <= 'i') \
7515 || ('j' <= (c) && (c) <= 'r') \
7516 || ('s' <= (c) && (c) <= 'z'))
7517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7518 #endif
7519
7520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7521 int
7522 main ()
7523 {
7524 int i;
7525 for (i = 0; i < 256; i++)
7526 if (XOR (islower (i), ISLOWER (i))
7527 || toupper (i) != TOUPPER (i))
7528 return 2;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_run "$LINENO"; then :
7533
7534 else
7535 ac_cv_header_stdc=no
7536 fi
7537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7538 conftest.$ac_objext conftest.beam conftest.$ac_ext
7539 fi
7540
7541 fi
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7544 $as_echo "$ac_cv_header_stdc" >&6; }
7545 if test $ac_cv_header_stdc = yes; then
7546
7547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7548
7549 fi
7550
7551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7553 inttypes.h stdint.h unistd.h
7554 do :
7555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7557 "
7558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7559 cat >>confdefs.h <<_ACEOF
7560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7561 _ACEOF
7562
7563 fi
7564
7565 done
7566
7567
7568 for ac_header in dlfcn.h
7569 do :
7570 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7571 "
7572 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7573 cat >>confdefs.h <<_ACEOF
7574 #define HAVE_DLFCN_H 1
7575 _ACEOF
7576
7577 fi
7578
7579 done
7580
7581
7582
7583
7584
7585 # Set options
7586 # Check whether --enable-static was given.
7587 if test "${enable_static+set}" = set; then :
7588 enableval=$enable_static; p=${PACKAGE-default}
7589 case $enableval in
7590 yes) enable_static=yes ;;
7591 no) enable_static=no ;;
7592 *)
7593 enable_static=no
7594 # Look at the argument we got. We use all the common list separators.
7595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7596 for pkg in $enableval; do
7597 IFS="$lt_save_ifs"
7598 if test "X$pkg" = "X$p"; then
7599 enable_static=yes
7600 fi
7601 done
7602 IFS="$lt_save_ifs"
7603 ;;
7604 esac
7605 else
7606 enable_static=no
7607 fi
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 enable_dlopen=no
7619
7620
7621 enable_win32_dll=no
7622
7623
7624 # Check whether --enable-shared was given.
7625 if test "${enable_shared+set}" = set; then :
7626 enableval=$enable_shared; p=${PACKAGE-default}
7627 case $enableval in
7628 yes) enable_shared=yes ;;
7629 no) enable_shared=no ;;
7630 *)
7631 enable_shared=no
7632 # Look at the argument we got. We use all the common list separators.
7633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7634 for pkg in $enableval; do
7635 IFS="$lt_save_ifs"
7636 if test "X$pkg" = "X$p"; then
7637 enable_shared=yes
7638 fi
7639 done
7640 IFS="$lt_save_ifs"
7641 ;;
7642 esac
7643 else
7644 enable_shared=yes
7645 fi
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 # Check whether --with-pic was given.
7658 if test "${with_pic+set}" = set; then :
7659 withval=$with_pic; lt_p=${PACKAGE-default}
7660 case $withval in
7661 yes|no) pic_mode=$withval ;;
7662 *)
7663 pic_mode=default
7664 # Look at the argument we got. We use all the common list separators.
7665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7666 for lt_pkg in $withval; do
7667 IFS="$lt_save_ifs"
7668 if test "X$lt_pkg" = "X$lt_p"; then
7669 pic_mode=yes
7670 fi
7671 done
7672 IFS="$lt_save_ifs"
7673 ;;
7674 esac
7675 else
7676 pic_mode=default
7677 fi
7678
7679
7680 test -z "$pic_mode" && pic_mode=default
7681
7682
7683
7684
7685
7686
7687
7688 # Check whether --enable-fast-install was given.
7689 if test "${enable_fast_install+set}" = set; then :
7690 enableval=$enable_fast_install; p=${PACKAGE-default}
7691 case $enableval in
7692 yes) enable_fast_install=yes ;;
7693 no) enable_fast_install=no ;;
7694 *)
7695 enable_fast_install=no
7696 # Look at the argument we got. We use all the common list separators.
7697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698 for pkg in $enableval; do
7699 IFS="$lt_save_ifs"
7700 if test "X$pkg" = "X$p"; then
7701 enable_fast_install=yes
7702 fi
7703 done
7704 IFS="$lt_save_ifs"
7705 ;;
7706 esac
7707 else
7708 enable_fast_install=yes
7709 fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 # This can be used to rebuild libtool when needed
7722 LIBTOOL_DEPS="$ltmain"
7723
7724 # Always use our own libtool.
7725 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 test -z "$LN_S" && LN_S="ln -s"
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 if test -n "${ZSH_VERSION+set}" ; then
7772 setopt NO_GLOB_SUBST
7773 fi
7774
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7776 $as_echo_n "checking for objdir... " >&6; }
7777 if ${lt_cv_objdir+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 rm -f .libs 2>/dev/null
7781 mkdir .libs 2>/dev/null
7782 if test -d .libs; then
7783 lt_cv_objdir=.libs
7784 else
7785 # MS-DOS does not allow filenames that begin with a dot.
7786 lt_cv_objdir=_libs
7787 fi
7788 rmdir .libs 2>/dev/null
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7791 $as_echo "$lt_cv_objdir" >&6; }
7792 objdir=$lt_cv_objdir
7793
7794
7795
7796
7797
7798 cat >>confdefs.h <<_ACEOF
7799 #define LT_OBJDIR "$lt_cv_objdir/"
7800 _ACEOF
7801
7802
7803
7804
7805 case $host_os in
7806 aix3*)
7807 # AIX sometimes has problems with the GCC collect2 program. For some
7808 # reason, if we set the COLLECT_NAMES environment variable, the problems
7809 # vanish in a puff of smoke.
7810 if test "X${COLLECT_NAMES+set}" != Xset; then
7811 COLLECT_NAMES=
7812 export COLLECT_NAMES
7813 fi
7814 ;;
7815 esac
7816
7817 # Global variables:
7818 ofile=libtool
7819 can_build_shared=yes
7820
7821 # All known linkers require a `.a' archive for static linking (except MSVC,
7822 # which needs '.lib').
7823 libext=a
7824
7825 with_gnu_ld="$lt_cv_prog_gnu_ld"
7826
7827 old_CC="$CC"
7828 old_CFLAGS="$CFLAGS"
7829
7830 # Set sane defaults for various variables
7831 test -z "$CC" && CC=cc
7832 test -z "$LTCC" && LTCC=$CC
7833 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7834 test -z "$LD" && LD=ld
7835 test -z "$ac_objext" && ac_objext=o
7836
7837 for cc_temp in $compiler""; do
7838 case $cc_temp in
7839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7841 \-*) ;;
7842 *) break;;
7843 esac
7844 done
7845 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7846
7847
7848 # Only perform the check for file, if the check method requires it
7849 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7850 case $deplibs_check_method in
7851 file_magic*)
7852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7854 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 case $MAGIC_CMD in
7859 [\\/*] | ?:[\\/]*)
7860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7861 ;;
7862 *)
7863 lt_save_MAGIC_CMD="$MAGIC_CMD"
7864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7866 for ac_dir in $ac_dummy; do
7867 IFS="$lt_save_ifs"
7868 test -z "$ac_dir" && ac_dir=.
7869 if test -f $ac_dir/${ac_tool_prefix}file; then
7870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7871 if test -n "$file_magic_test_file"; then
7872 case $deplibs_check_method in
7873 "file_magic "*)
7874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7877 $EGREP "$file_magic_regex" > /dev/null; then
7878 :
7879 else
7880 cat <<_LT_EOF 1>&2
7881
7882 *** Warning: the command libtool uses to detect shared libraries,
7883 *** $file_magic_cmd, produces output that libtool cannot recognize.
7884 *** The result is that libtool may fail to recognize shared libraries
7885 *** as such. This will affect the creation of libtool libraries that
7886 *** depend on shared libraries, but programs linked with such libtool
7887 *** libraries will work regardless of this problem. Nevertheless, you
7888 *** may want to report the problem to your system manager and/or to
7889 *** [email protected]
7890
7891 _LT_EOF
7892 fi ;;
7893 esac
7894 fi
7895 break
7896 fi
7897 done
7898 IFS="$lt_save_ifs"
7899 MAGIC_CMD="$lt_save_MAGIC_CMD"
7900 ;;
7901 esac
7902 fi
7903
7904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905 if test -n "$MAGIC_CMD"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7907 $as_echo "$MAGIC_CMD" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914
7915
7916
7917 if test -z "$lt_cv_path_MAGIC_CMD"; then
7918 if test -n "$ac_tool_prefix"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7920 $as_echo_n "checking for file... " >&6; }
7921 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 case $MAGIC_CMD in
7925 [\\/*] | ?:[\\/]*)
7926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7927 ;;
7928 *)
7929 lt_save_MAGIC_CMD="$MAGIC_CMD"
7930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7932 for ac_dir in $ac_dummy; do
7933 IFS="$lt_save_ifs"
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f $ac_dir/file; then
7936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7937 if test -n "$file_magic_test_file"; then
7938 case $deplibs_check_method in
7939 "file_magic "*)
7940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7943 $EGREP "$file_magic_regex" > /dev/null; then
7944 :
7945 else
7946 cat <<_LT_EOF 1>&2
7947
7948 *** Warning: the command libtool uses to detect shared libraries,
7949 *** $file_magic_cmd, produces output that libtool cannot recognize.
7950 *** The result is that libtool may fail to recognize shared libraries
7951 *** as such. This will affect the creation of libtool libraries that
7952 *** depend on shared libraries, but programs linked with such libtool
7953 *** libraries will work regardless of this problem. Nevertheless, you
7954 *** may want to report the problem to your system manager and/or to
7955 *** [email protected]
7956
7957 _LT_EOF
7958 fi ;;
7959 esac
7960 fi
7961 break
7962 fi
7963 done
7964 IFS="$lt_save_ifs"
7965 MAGIC_CMD="$lt_save_MAGIC_CMD"
7966 ;;
7967 esac
7968 fi
7969
7970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971 if test -n "$MAGIC_CMD"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7973 $as_echo "$MAGIC_CMD" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 else
7981 MAGIC_CMD=:
7982 fi
7983 fi
7984
7985 fi
7986 ;;
7987 esac
7988
7989 # Use C for the default configuration in the libtool script
7990
7991 lt_save_CC="$CC"
7992 ac_ext=c
7993 ac_cpp='$CPP $CPPFLAGS'
7994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998
7999 # Source file extension for C test sources.
8000 ac_ext=c
8001
8002 # Object file extension for compiled C test sources.
8003 objext=o
8004 objext=$objext
8005
8006 # Code to be used in simple compile tests
8007 lt_simple_compile_test_code="int some_variable = 0;"
8008
8009 # Code to be used in simple link tests
8010 lt_simple_link_test_code='int main(){return(0);}'
8011
8012
8013
8014
8015
8016
8017
8018 # If no C compiler was specified, use CC.
8019 LTCC=${LTCC-"$CC"}
8020
8021 # If no C compiler flags were specified, use CFLAGS.
8022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8023
8024 # Allow CC to be a program name with arguments.
8025 compiler=$CC
8026
8027 # Save the default compiler, since it gets overwritten when the other
8028 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8029 compiler_DEFAULT=$CC
8030
8031 # save warnings/boilerplate of simple test code
8032 ac_outfile=conftest.$ac_objext
8033 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8034 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8035 _lt_compiler_boilerplate=`cat conftest.err`
8036 $RM conftest*
8037
8038 ac_outfile=conftest.$ac_objext
8039 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8040 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8041 _lt_linker_boilerplate=`cat conftest.err`
8042 $RM -r conftest*
8043
8044
8045 ## CAVEAT EMPTOR:
8046 ## There is no encapsulation within the following macros, do not change
8047 ## the running order or otherwise move them around unless you know exactly
8048 ## what you are doing...
8049 if test -n "$compiler"; then
8050
8051 lt_prog_compiler_no_builtin_flag=
8052
8053 if test "$GCC" = yes; then
8054 case $cc_basename in
8055 nvcc*)
8056 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8057 *)
8058 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8059 esac
8060
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8062 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8063 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 lt_cv_prog_compiler_rtti_exceptions=no
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8069 lt_compiler_flag="-fno-rtti -fno-exceptions"
8070 # Insert the option either (1) after the last *FLAGS variable, or
8071 # (2) before a word containing "conftest.", or (3) at the end.
8072 # Note that $ac_compile itself does not contain backslashes and begins
8073 # with a dollar sign (not a hyphen), so the echo should work correctly.
8074 # The option is referenced via a variable to avoid confusing sed.
8075 lt_compile=`echo "$ac_compile" | $SED \
8076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8078 -e 's:$: $lt_compiler_flag:'`
8079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8080 (eval "$lt_compile" 2>conftest.err)
8081 ac_status=$?
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 if (exit $ac_status) && test -s "$ac_outfile"; then
8085 # The compiler can only warn and ignore the option if not recognized
8086 # So say no if there are warnings other than the usual output.
8087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8090 lt_cv_prog_compiler_rtti_exceptions=yes
8091 fi
8092 fi
8093 $RM conftest*
8094
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8097 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8098
8099 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8100 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8101 else
8102 :
8103 fi
8104
8105 fi
8106
8107
8108
8109
8110
8111
8112 lt_prog_compiler_wl=
8113 lt_prog_compiler_pic=
8114 lt_prog_compiler_static=
8115
8116
8117 if test "$GCC" = yes; then
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_static='-static'
8120
8121 case $host_os in
8122 aix*)
8123 # All AIX code is PIC.
8124 if test "$host_cpu" = ia64; then
8125 # AIX 5 now supports IA64 processor
8126 lt_prog_compiler_static='-Bstatic'
8127 fi
8128 ;;
8129
8130 amigaos*)
8131 case $host_cpu in
8132 powerpc)
8133 # see comment about AmigaOS4 .so support
8134 lt_prog_compiler_pic='-fPIC'
8135 ;;
8136 m68k)
8137 # FIXME: we need at least 68020 code to build shared libraries, but
8138 # adding the `-m68020' flag to GCC prevents building anything better,
8139 # like `-m68040'.
8140 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8141 ;;
8142 esac
8143 ;;
8144
8145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8146 # PIC is the default for these OSes.
8147 ;;
8148
8149 mingw* | cygwin* | pw32* | os2* | cegcc*)
8150 # This hack is so that the source file can tell whether it is being
8151 # built for inclusion in a dll (and should export symbols for example).
8152 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8153 # (--disable-auto-import) libraries
8154 lt_prog_compiler_pic='-DDLL_EXPORT'
8155 ;;
8156
8157 darwin* | rhapsody*)
8158 # PIC is the default on this platform
8159 # Common symbols not allowed in MH_DYLIB files
8160 lt_prog_compiler_pic='-fno-common'
8161 ;;
8162
8163 haiku*)
8164 # PIC is the default for Haiku.
8165 # The "-static" flag exists, but is broken.
8166 lt_prog_compiler_static=
8167 ;;
8168
8169 hpux*)
8170 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8171 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8172 # sets the default TLS model and affects inlining.
8173 case $host_cpu in
8174 hppa*64*)
8175 # +Z the default
8176 ;;
8177 *)
8178 lt_prog_compiler_pic='-fPIC'
8179 ;;
8180 esac
8181 ;;
8182
8183 interix[3-9]*)
8184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8185 # Instead, we relocate shared libraries at runtime.
8186 ;;
8187
8188 msdosdjgpp*)
8189 # Just because we use GCC doesn't mean we suddenly get shared libraries
8190 # on systems that don't support them.
8191 lt_prog_compiler_can_build_shared=no
8192 enable_shared=no
8193 ;;
8194
8195 *nto* | *qnx*)
8196 # QNX uses GNU C++, but need to define -shared option too, otherwise
8197 # it will coredump.
8198 lt_prog_compiler_pic='-fPIC -shared'
8199 ;;
8200
8201 sysv4*MP*)
8202 if test -d /usr/nec; then
8203 lt_prog_compiler_pic=-Kconform_pic
8204 fi
8205 ;;
8206
8207 *)
8208 lt_prog_compiler_pic='-fPIC'
8209 ;;
8210 esac
8211
8212 case $cc_basename in
8213 nvcc*) # Cuda Compiler Driver 2.2
8214 lt_prog_compiler_wl='-Xlinker '
8215 if test -n "$lt_prog_compiler_pic"; then
8216 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8217 fi
8218 ;;
8219 esac
8220 else
8221 # PORTME Check for flag to pass linker flags through the system compiler.
8222 case $host_os in
8223 aix*)
8224 lt_prog_compiler_wl='-Wl,'
8225 if test "$host_cpu" = ia64; then
8226 # AIX 5 now supports IA64 processor
8227 lt_prog_compiler_static='-Bstatic'
8228 else
8229 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8230 fi
8231 ;;
8232
8233 mingw* | cygwin* | pw32* | os2* | cegcc*)
8234 # This hack is so that the source file can tell whether it is being
8235 # built for inclusion in a dll (and should export symbols for example).
8236 lt_prog_compiler_pic='-DDLL_EXPORT'
8237 ;;
8238
8239 hpux9* | hpux10* | hpux11*)
8240 lt_prog_compiler_wl='-Wl,'
8241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8242 # not for PA HP-UX.
8243 case $host_cpu in
8244 hppa*64*|ia64*)
8245 # +Z the default
8246 ;;
8247 *)
8248 lt_prog_compiler_pic='+Z'
8249 ;;
8250 esac
8251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8252 lt_prog_compiler_static='${wl}-a ${wl}archive'
8253 ;;
8254
8255 irix5* | irix6* | nonstopux*)
8256 lt_prog_compiler_wl='-Wl,'
8257 # PIC (with -KPIC) is the default.
8258 lt_prog_compiler_static='-non_shared'
8259 ;;
8260
8261 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8262 case $cc_basename in
8263 # old Intel for x86_64 which still supported -KPIC.
8264 ecc*)
8265 lt_prog_compiler_wl='-Wl,'
8266 lt_prog_compiler_pic='-KPIC'
8267 lt_prog_compiler_static='-static'
8268 ;;
8269 # icc used to be incompatible with GCC.
8270 # ICC 10 doesn't accept -KPIC any more.
8271 icc* | ifort*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-fPIC'
8274 lt_prog_compiler_static='-static'
8275 ;;
8276 # Lahey Fortran 8.1.
8277 lf95*)
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_pic='--shared'
8280 lt_prog_compiler_static='--static'
8281 ;;
8282 nagfor*)
8283 # NAG Fortran compiler
8284 lt_prog_compiler_wl='-Wl,-Wl,,'
8285 lt_prog_compiler_pic='-PIC'
8286 lt_prog_compiler_static='-Bstatic'
8287 ;;
8288 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8289 # Portland Group compilers (*not* the Pentium gcc compiler,
8290 # which looks to be a dead project)
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-fpic'
8293 lt_prog_compiler_static='-Bstatic'
8294 ;;
8295 ccc*)
8296 lt_prog_compiler_wl='-Wl,'
8297 # All Alpha code is PIC.
8298 lt_prog_compiler_static='-non_shared'
8299 ;;
8300 xl* | bgxl* | bgf* | mpixl*)
8301 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='-qpic'
8304 lt_prog_compiler_static='-qstaticlink'
8305 ;;
8306 *)
8307 case `$CC -V 2>&1 | sed 5q` in
8308 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8309 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8310 lt_prog_compiler_pic='-KPIC'
8311 lt_prog_compiler_static='-Bstatic'
8312 lt_prog_compiler_wl=''
8313 ;;
8314 *Sun\ F* | *Sun*Fortran*)
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-Bstatic'
8317 lt_prog_compiler_wl='-Qoption ld '
8318 ;;
8319 *Sun\ C*)
8320 # Sun C 5.9
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-Bstatic'
8323 lt_prog_compiler_wl='-Wl,'
8324 ;;
8325 *Intel*\ [CF]*Compiler*)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-fPIC'
8328 lt_prog_compiler_static='-static'
8329 ;;
8330 *Portland\ Group*)
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='-fpic'
8333 lt_prog_compiler_static='-Bstatic'
8334 ;;
8335 esac
8336 ;;
8337 esac
8338 ;;
8339
8340 newsos6)
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344
8345 *nto* | *qnx*)
8346 # QNX uses GNU C++, but need to define -shared option too, otherwise
8347 # it will coredump.
8348 lt_prog_compiler_pic='-fPIC -shared'
8349 ;;
8350
8351 osf3* | osf4* | osf5*)
8352 lt_prog_compiler_wl='-Wl,'
8353 # All OSF/1 code is PIC.
8354 lt_prog_compiler_static='-non_shared'
8355 ;;
8356
8357 rdos*)
8358 lt_prog_compiler_static='-non_shared'
8359 ;;
8360
8361 solaris*)
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-Bstatic'
8364 case $cc_basename in
8365 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8366 lt_prog_compiler_wl='-Qoption ld ';;
8367 *)
8368 lt_prog_compiler_wl='-Wl,';;
8369 esac
8370 ;;
8371
8372 sunos4*)
8373 lt_prog_compiler_wl='-Qoption ld '
8374 lt_prog_compiler_pic='-PIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 ;;
8377
8378 sysv4 | sysv4.2uw2* | sysv4.3*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 ;;
8383
8384 sysv4*MP*)
8385 if test -d /usr/nec ;then
8386 lt_prog_compiler_pic='-Kconform_pic'
8387 lt_prog_compiler_static='-Bstatic'
8388 fi
8389 ;;
8390
8391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-Bstatic'
8395 ;;
8396
8397 unicos*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_can_build_shared=no
8400 ;;
8401
8402 uts4*)
8403 lt_prog_compiler_pic='-pic'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 *)
8408 lt_prog_compiler_can_build_shared=no
8409 ;;
8410 esac
8411 fi
8412
8413 case $host_os in
8414 # For platforms which do not support PIC, -DPIC is meaningless:
8415 *djgpp*)
8416 lt_prog_compiler_pic=
8417 ;;
8418 *)
8419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420 ;;
8421 esac
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8424 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8425 if ${lt_cv_prog_compiler_pic+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8431 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8432 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8433
8434 #
8435 # Check to make sure the PIC flag actually works.
8436 #
8437 if test -n "$lt_prog_compiler_pic"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8439 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8440 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 lt_cv_prog_compiler_pic_works=no
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8447 # Insert the option either (1) after the last *FLAGS variable, or
8448 # (2) before a word containing "conftest.", or (3) at the end.
8449 # Note that $ac_compile itself does not contain backslashes and begins
8450 # with a dollar sign (not a hyphen), so the echo should work correctly.
8451 # The option is referenced via a variable to avoid confusing sed.
8452 lt_compile=`echo "$ac_compile" | $SED \
8453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8455 -e 's:$: $lt_compiler_flag:'`
8456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8457 (eval "$lt_compile" 2>conftest.err)
8458 ac_status=$?
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 if (exit $ac_status) && test -s "$ac_outfile"; then
8462 # The compiler can only warn and ignore the option if not recognized
8463 # So say no if there are warnings other than the usual output.
8464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8467 lt_cv_prog_compiler_pic_works=yes
8468 fi
8469 fi
8470 $RM conftest*
8471
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8474 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8475
8476 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8477 case $lt_prog_compiler_pic in
8478 "" | " "*) ;;
8479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8480 esac
8481 else
8482 lt_prog_compiler_pic=
8483 lt_prog_compiler_can_build_shared=no
8484 fi
8485
8486 fi
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498 #
8499 # Check to make sure the static flag actually works.
8500 #
8501 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8503 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8504 if ${lt_cv_prog_compiler_static_works+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 lt_cv_prog_compiler_static_works=no
8508 save_LDFLAGS="$LDFLAGS"
8509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8510 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8512 # The linker can only warn and ignore the option if not recognized
8513 # So say no if there are warnings
8514 if test -s conftest.err; then
8515 # Append any errors to the config.log.
8516 cat conftest.err 1>&5
8517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8519 if diff conftest.exp conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_static_works=yes
8521 fi
8522 else
8523 lt_cv_prog_compiler_static_works=yes
8524 fi
8525 fi
8526 $RM -r conftest*
8527 LDFLAGS="$save_LDFLAGS"
8528
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8531 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8532
8533 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8534 :
8535 else
8536 lt_prog_compiler_static=
8537 fi
8538
8539
8540
8541
8542
8543
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8546 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8547 if ${lt_cv_prog_compiler_c_o+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 lt_cv_prog_compiler_c_o=no
8551 $RM -r conftest 2>/dev/null
8552 mkdir conftest
8553 cd conftest
8554 mkdir out
8555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556
8557 lt_compiler_flag="-o out/conftest2.$ac_objext"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 lt_compile=`echo "$ac_compile" | $SED \
8563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565 -e 's:$: $lt_compiler_flag:'`
8566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567 (eval "$lt_compile" 2>out/conftest.err)
8568 ac_status=$?
8569 cat out/conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572 then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings
8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_c_o=yes
8579 fi
8580 fi
8581 chmod u+w . 2>&5
8582 $RM conftest*
8583 # SGI C++ compiler will create directory out/ii_files/ for
8584 # template instantiation
8585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8586 $RM out/* && rmdir out
8587 cd ..
8588 $RM -r conftest
8589 $RM conftest*
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8593 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8594
8595
8596
8597
8598
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8601 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8602 if ${lt_cv_prog_compiler_c_o+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 lt_cv_prog_compiler_c_o=no
8606 $RM -r conftest 2>/dev/null
8607 mkdir conftest
8608 cd conftest
8609 mkdir out
8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611
8612 lt_compiler_flag="-o out/conftest2.$ac_objext"
8613 # Insert the option either (1) after the last *FLAGS variable, or
8614 # (2) before a word containing "conftest.", or (3) at the end.
8615 # Note that $ac_compile itself does not contain backslashes and begins
8616 # with a dollar sign (not a hyphen), so the echo should work correctly.
8617 lt_compile=`echo "$ac_compile" | $SED \
8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620 -e 's:$: $lt_compiler_flag:'`
8621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622 (eval "$lt_compile" 2>out/conftest.err)
8623 ac_status=$?
8624 cat out/conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8627 then
8628 # The compiler can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_c_o=yes
8634 fi
8635 fi
8636 chmod u+w . 2>&5
8637 $RM conftest*
8638 # SGI C++ compiler will create directory out/ii_files/ for
8639 # template instantiation
8640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8641 $RM out/* && rmdir out
8642 cd ..
8643 $RM -r conftest
8644 $RM conftest*
8645
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8648 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8649
8650
8651
8652
8653 hard_links="nottested"
8654 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8655 # do not overwrite the value of need_locks provided by the user
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8657 $as_echo_n "checking if we can lock with hard links... " >&6; }
8658 hard_links=yes
8659 $RM conftest*
8660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8661 touch conftest.a
8662 ln conftest.a conftest.b 2>&5 || hard_links=no
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8665 $as_echo "$hard_links" >&6; }
8666 if test "$hard_links" = no; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8668 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8669 need_locks=warn
8670 fi
8671 else
8672 need_locks=no
8673 fi
8674
8675
8676
8677
8678
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8681 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8682
8683 runpath_var=
8684 allow_undefined_flag=
8685 always_export_symbols=no
8686 archive_cmds=
8687 archive_expsym_cmds=
8688 compiler_needs_object=no
8689 enable_shared_with_static_runtimes=no
8690 export_dynamic_flag_spec=
8691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8692 hardcode_automatic=no
8693 hardcode_direct=no
8694 hardcode_direct_absolute=no
8695 hardcode_libdir_flag_spec=
8696 hardcode_libdir_separator=
8697 hardcode_minus_L=no
8698 hardcode_shlibpath_var=unsupported
8699 inherit_rpath=no
8700 link_all_deplibs=unknown
8701 module_cmds=
8702 module_expsym_cmds=
8703 old_archive_from_new_cmds=
8704 old_archive_from_expsyms_cmds=
8705 thread_safe_flag_spec=
8706 whole_archive_flag_spec=
8707 # include_expsyms should be a list of space-separated symbols to be *always*
8708 # included in the symbol list
8709 include_expsyms=
8710 # exclude_expsyms can be an extended regexp of symbols to exclude
8711 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8712 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8713 # as well as any symbol that contains `d'.
8714 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8715 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8716 # platforms (ab)use it in PIC code, but their linkers get confused if
8717 # the symbol is explicitly referenced. Since portable code cannot
8718 # rely on this symbol name, it's probably fine to never include it in
8719 # preloaded symbol tables.
8720 # Exclude shared library initialization/finalization symbols.
8721 extract_expsyms_cmds=
8722
8723 case $host_os in
8724 cygwin* | mingw* | pw32* | cegcc*)
8725 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8726 # When not using gcc, we currently assume that we are using
8727 # Microsoft Visual C++.
8728 if test "$GCC" != yes; then
8729 with_gnu_ld=no
8730 fi
8731 ;;
8732 interix*)
8733 # we just hope/assume this is gcc and not c89 (= MSVC++)
8734 with_gnu_ld=yes
8735 ;;
8736 openbsd*)
8737 with_gnu_ld=no
8738 ;;
8739 linux* | k*bsd*-gnu | gnu*)
8740 link_all_deplibs=no
8741 ;;
8742 esac
8743
8744 ld_shlibs=yes
8745
8746 # On some targets, GNU ld is compatible enough with the native linker
8747 # that we're better off using the native interface for both.
8748 lt_use_gnu_ld_interface=no
8749 if test "$with_gnu_ld" = yes; then
8750 case $host_os in
8751 aix*)
8752 # The AIX port of GNU ld has always aspired to compatibility
8753 # with the native linker. However, as the warning in the GNU ld
8754 # block says, versions before 2.19.5* couldn't really create working
8755 # shared libraries, regardless of the interface used.
8756 case `$LD -v 2>&1` in
8757 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8758 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8759 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760 *)
8761 lt_use_gnu_ld_interface=yes
8762 ;;
8763 esac
8764 ;;
8765 *)
8766 lt_use_gnu_ld_interface=yes
8767 ;;
8768 esac
8769 fi
8770
8771 if test "$lt_use_gnu_ld_interface" = yes; then
8772 # If archive_cmds runs LD, not CC, wlarc should be empty
8773 wlarc='${wl}'
8774
8775 # Set some defaults for GNU ld with shared library support. These
8776 # are reset later if shared libraries are not supported. Putting them
8777 # here allows them to be overridden if necessary.
8778 runpath_var=LD_RUN_PATH
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 export_dynamic_flag_spec='${wl}--export-dynamic'
8781 # ancient GNU ld didn't support --whole-archive et. al.
8782 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8783 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784 else
8785 whole_archive_flag_spec=
8786 fi
8787 supports_anon_versioning=no
8788 case `$LD -v 2>&1` in
8789 *GNU\ gold*) supports_anon_versioning=yes ;;
8790 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8793 *\ 2.11.*) ;; # other 2.11 versions
8794 *) supports_anon_versioning=yes ;;
8795 esac
8796
8797 # See if GNU ld supports shared libraries.
8798 case $host_os in
8799 aix[3-9]*)
8800 # On AIX/PPC, the GNU linker is very broken
8801 if test "$host_cpu" != ia64; then
8802 ld_shlibs=no
8803 cat <<_LT_EOF 1>&2
8804
8805 *** Warning: the GNU linker, at least up to release 2.19, is reported
8806 *** to be unable to reliably create shared libraries on AIX.
8807 *** Therefore, libtool is disabling shared libraries support. If you
8808 *** really care for shared libraries, you may want to install binutils
8809 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8810 *** You will then need to restart the configuration process.
8811
8812 _LT_EOF
8813 fi
8814 ;;
8815
8816 amigaos*)
8817 case $host_cpu in
8818 powerpc)
8819 # see comment about AmigaOS4 .so support
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821 archive_expsym_cmds=''
8822 ;;
8823 m68k)
8824 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)'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827 ;;
8828 esac
8829 ;;
8830
8831 beos*)
8832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833 allow_undefined_flag=unsupported
8834 # Joseph Beckenbach <[email protected]> says some releases of gcc
8835 # support --undefined. This deserves some investigation. FIXME
8836 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 else
8838 ld_shlibs=no
8839 fi
8840 ;;
8841
8842 cygwin* | mingw* | pw32* | cegcc*)
8843 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844 # as there is no search path for DLLs.
8845 hardcode_libdir_flag_spec='-L$libdir'
8846 export_dynamic_flag_spec='${wl}--export-all-symbols'
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=no
8849 enable_shared_with_static_runtimes=yes
8850 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'
8851 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8852
8853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 # If the export-symbols file already is a .def file (1st line
8856 # is EXPORTS), use it as is; otherwise, prepend...
8857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858 cp $export_symbols $output_objdir/$soname.def;
8859 else
8860 echo EXPORTS > $output_objdir/$soname.def;
8861 cat $export_symbols >> $output_objdir/$soname.def;
8862 fi~
8863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
8868
8869 haiku*)
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 link_all_deplibs=yes
8872 ;;
8873
8874 interix[3-9]*)
8875 hardcode_direct=no
8876 hardcode_shlibpath_var=no
8877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878 export_dynamic_flag_spec='${wl}-E'
8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880 # Instead, shared libraries are loaded at an image base (0x10000000 by
8881 # default) and relocated if they conflict, which is a slow very memory
8882 # consuming and fragmenting process. To avoid this, we pick a random,
8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886 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'
8887 ;;
8888
8889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8890 tmp_diet=no
8891 if test "$host_os" = linux-dietlibc; then
8892 case $cc_basename in
8893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8894 esac
8895 fi
8896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8897 && test "$tmp_diet" = no
8898 then
8899 tmp_addflag=' $pic_flag'
8900 tmp_sharedflag='-shared'
8901 case $cc_basename,$host_cpu in
8902 pgcc*) # Portland Group C compiler
8903 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'
8904 tmp_addflag=' $pic_flag'
8905 ;;
8906 pgf77* | pgf90* | pgf95* | pgfortran*)
8907 # Portland Group f77 and f90 compilers
8908 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'
8909 tmp_addflag=' $pic_flag -Mnomain' ;;
8910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8911 tmp_addflag=' -i_dynamic' ;;
8912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8913 tmp_addflag=' -i_dynamic -nofor_main' ;;
8914 ifc* | ifort*) # Intel Fortran compiler
8915 tmp_addflag=' -nofor_main' ;;
8916 lf95*) # Lahey Fortran 8.1
8917 whole_archive_flag_spec=
8918 tmp_sharedflag='--shared' ;;
8919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920 tmp_sharedflag='-qmkshrobj'
8921 tmp_addflag= ;;
8922 nvcc*) # Cuda Compiler Driver 2.2
8923 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'
8924 compiler_needs_object=yes
8925 ;;
8926 esac
8927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ C*) # Sun C 5.9
8929 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'
8930 compiler_needs_object=yes
8931 tmp_sharedflag='-G' ;;
8932 *Sun\ F*) # Sun Fortran 8.3
8933 tmp_sharedflag='-G' ;;
8934 esac
8935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936
8937 if test "x$supports_anon_versioning" = xyes; then
8938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940 echo "local: *; };" >> $output_objdir/$libname.ver~
8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942 fi
8943
8944 case $cc_basename in
8945 xlf* | bgf* | bgxlf* | mpixlf*)
8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8950 if test "x$supports_anon_versioning" = xyes; then
8951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953 echo "local: *; };" >> $output_objdir/$libname.ver~
8954 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955 fi
8956 ;;
8957 esac
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 netbsd* | netbsdelf*-gnu)
8964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8966 wlarc=
8967 else
8968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 fi
8971 ;;
8972
8973 solaris*)
8974 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8975 ld_shlibs=no
8976 cat <<_LT_EOF 1>&2
8977
8978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8979 *** create shared libraries on Solaris systems. Therefore, libtool
8980 *** is disabling shared libraries support. We urge you to upgrade GNU
8981 *** binutils to release 2.9.1 or newer. Another option is to modify
8982 *** your PATH or compiler configuration so that the native linker is
8983 *** used, and then restart.
8984
8985 _LT_EOF
8986 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
8994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8995 case `$LD -v 2>&1` in
8996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997 ld_shlibs=no
8998 cat <<_LT_EOF 1>&2
8999
9000 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9001 *** reliably create shared libraries on SCO systems. Therefore, libtool
9002 *** is disabling shared libraries support. We urge you to upgrade GNU
9003 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9004 *** your PATH or compiler configuration so that the native linker is
9005 *** used, and then restart.
9006
9007 _LT_EOF
9008 ;;
9009 *)
9010 # For security reasons, it is highly recommended that you always
9011 # use absolute paths for naming shared libraries, and exclude the
9012 # DT_RUNPATH tag from executables and libraries. But doing so
9013 # requires that you compile everything twice, which is a pain.
9014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 else
9019 ld_shlibs=no
9020 fi
9021 ;;
9022 esac
9023 ;;
9024
9025 sunos4*)
9026 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027 wlarc=
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9030 ;;
9031
9032 *)
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040 esac
9041
9042 if test "$ld_shlibs" = no; then
9043 runpath_var=
9044 hardcode_libdir_flag_spec=
9045 export_dynamic_flag_spec=
9046 whole_archive_flag_spec=
9047 fi
9048 else
9049 # PORTME fill in a description of your system's linker (not GNU ld)
9050 case $host_os in
9051 aix3*)
9052 allow_undefined_flag=unsupported
9053 always_export_symbols=yes
9054 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'
9055 # Note: this linker hardcodes the directories in LIBPATH if there
9056 # are no directories specified by -L.
9057 hardcode_minus_L=yes
9058 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9059 # Neither direct hardcoding nor static linking is supported with a
9060 # broken collect2.
9061 hardcode_direct=unsupported
9062 fi
9063 ;;
9064
9065 aix[4-9]*)
9066 if test "$host_cpu" = ia64; then
9067 # On IA64, the linker does run time linking by default, so we don't
9068 # have to do anything special.
9069 aix_use_runtimelinking=no
9070 exp_sym_flag='-Bexport'
9071 no_entry_flag=""
9072 else
9073 # If we're using GNU nm, then we don't want the "-C" option.
9074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9075 # Also, AIX nm treats weak defined symbols like other global
9076 # defined symbols, whereas GNU nm marks them as "W".
9077 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9078 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9079 else
9080 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9081 fi
9082 aix_use_runtimelinking=no
9083
9084 # Test if we are trying to use run time linking or normal
9085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9086 # need to do runtime linking.
9087 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9088 for ld_flag in $LDFLAGS; do
9089 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9090 aix_use_runtimelinking=yes
9091 break
9092 fi
9093 done
9094 ;;
9095 esac
9096
9097 exp_sym_flag='-bexport'
9098 no_entry_flag='-bnoentry'
9099 fi
9100
9101 # When large executables or shared objects are built, AIX ld can
9102 # have problems creating the table of contents. If linking a library
9103 # or program results in "error TOC overflow" add -mminimal-toc to
9104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106
9107 archive_cmds=''
9108 hardcode_direct=yes
9109 hardcode_direct_absolute=yes
9110 hardcode_libdir_separator=':'
9111 link_all_deplibs=yes
9112 file_list_spec='${wl}-f,'
9113
9114 if test "$GCC" = yes; then
9115 case $host_os in aix4.[012]|aix4.[012].*)
9116 # We only want to do this on AIX 4.2 and lower, the check
9117 # below for broken collect2 doesn't work under 4.3+
9118 collect2name=`${CC} -print-prog-name=collect2`
9119 if test -f "$collect2name" &&
9120 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9121 then
9122 # We have reworked collect2
9123 :
9124 else
9125 # We have old collect2
9126 hardcode_direct=unsupported
9127 # It fails to find uninstalled libraries when the uninstalled
9128 # path is not listed in the libpath. Setting hardcode_minus_L
9129 # to unsupported forces relinking
9130 hardcode_minus_L=yes
9131 hardcode_libdir_flag_spec='-L$libdir'
9132 hardcode_libdir_separator=
9133 fi
9134 ;;
9135 esac
9136 shared_flag='-shared'
9137 if test "$aix_use_runtimelinking" = yes; then
9138 shared_flag="$shared_flag "'${wl}-G'
9139 fi
9140 link_all_deplibs=no
9141 else
9142 # not using gcc
9143 if test "$host_cpu" = ia64; then
9144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145 # chokes on -Wl,-G. The following line is correct:
9146 shared_flag='-G'
9147 else
9148 if test "$aix_use_runtimelinking" = yes; then
9149 shared_flag='${wl}-G'
9150 else
9151 shared_flag='${wl}-bM:SRE'
9152 fi
9153 fi
9154 fi
9155
9156 export_dynamic_flag_spec='${wl}-bexpall'
9157 # It seems that -bexpall does not export symbols beginning with
9158 # underscore (_), so it is better to generate a list of symbols to export.
9159 always_export_symbols=yes
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # Warning - without using the other runtime loading flags (-brtl),
9162 # -berok will link without error, but may produce a broken library.
9163 allow_undefined_flag='-berok'
9164 # Determine the default libpath from the value encoded in an
9165 # empty executable.
9166 if test "${lt_cv_aix_libpath+set}" = set; then
9167 aix_libpath=$lt_cv_aix_libpath
9168 else
9169 if ${lt_cv_aix_libpath_+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174
9175 int
9176 main ()
9177 {
9178
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184
9185 lt_aix_libpath_sed='
9186 /Import File Strings/,/^$/ {
9187 /^0/ {
9188 s/^0 *\([^ ]*\) *$/\1/
9189 p
9190 }
9191 }'
9192 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193 # Check for a 64-bit object if we didn't find anything.
9194 if test -z "$lt_cv_aix_libpath_"; then
9195 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196 fi
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9200 if test -z "$lt_cv_aix_libpath_"; then
9201 lt_cv_aix_libpath_="/usr/lib:/lib"
9202 fi
9203
9204 fi
9205
9206 aix_libpath=$lt_cv_aix_libpath_
9207 fi
9208
9209 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9210 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9211 else
9212 if test "$host_cpu" = ia64; then
9213 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9214 allow_undefined_flag="-z nodefs"
9215 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"
9216 else
9217 # Determine the default libpath from the value encoded in an
9218 # empty executable.
9219 if test "${lt_cv_aix_libpath+set}" = set; then
9220 aix_libpath=$lt_cv_aix_libpath
9221 else
9222 if ${lt_cv_aix_libpath_+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 int
9229 main ()
9230 {
9231
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237
9238 lt_aix_libpath_sed='
9239 /Import File Strings/,/^$/ {
9240 /^0/ {
9241 s/^0 *\([^ ]*\) *$/\1/
9242 p
9243 }
9244 }'
9245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 # Check for a 64-bit object if we didn't find anything.
9247 if test -z "$lt_cv_aix_libpath_"; then
9248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249 fi
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 if test -z "$lt_cv_aix_libpath_"; then
9254 lt_cv_aix_libpath_="/usr/lib:/lib"
9255 fi
9256
9257 fi
9258
9259 aix_libpath=$lt_cv_aix_libpath_
9260 fi
9261
9262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9263 # Warning - without using the other run time loading flags,
9264 # -berok will link without error, but may produce a broken library.
9265 no_undefined_flag=' ${wl}-bernotok'
9266 allow_undefined_flag=' ${wl}-berok'
9267 if test "$with_gnu_ld" = yes; then
9268 # We only use this code for GNU lds that support --whole-archive.
9269 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9270 else
9271 # Exported symbols can be pulled into shared objects from archives
9272 whole_archive_flag_spec='$convenience'
9273 fi
9274 archive_cmds_need_lc=yes
9275 # This is similar to how AIX traditionally builds its shared libraries.
9276 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9277 fi
9278 fi
9279 ;;
9280
9281 amigaos*)
9282 case $host_cpu in
9283 powerpc)
9284 # see comment about AmigaOS4 .so support
9285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 archive_expsym_cmds=''
9287 ;;
9288 m68k)
9289 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)'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 ;;
9293 esac
9294 ;;
9295
9296 bsdi[45]*)
9297 export_dynamic_flag_spec=-rdynamic
9298 ;;
9299
9300 cygwin* | mingw* | pw32* | cegcc*)
9301 # When not using gcc, we currently assume that we are using
9302 # Microsoft Visual C++.
9303 # hardcode_libdir_flag_spec is actually meaningless, as there is
9304 # no search path for DLLs.
9305 case $cc_basename in
9306 cl*)
9307 # Native MSVC
9308 hardcode_libdir_flag_spec=' '
9309 allow_undefined_flag=unsupported
9310 always_export_symbols=yes
9311 file_list_spec='@'
9312 # Tell ltmain to make .lib files, not .a files.
9313 libext=lib
9314 # Tell ltmain to make .dll files, not .so files.
9315 shrext_cmds=".dll"
9316 # FIXME: Setting linknames here is a bad hack.
9317 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9319 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9320 else
9321 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9322 fi~
9323 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9324 linknames='
9325 # The linker will not automatically build a static lib if we build a DLL.
9326 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9327 enable_shared_with_static_runtimes=yes
9328 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9330 # Don't use ranlib
9331 old_postinstall_cmds='chmod 644 $oldlib'
9332 postlink_cmds='lt_outputfile="@OUTPUT@"~
9333 lt_tool_outputfile="@TOOL_OUTPUT@"~
9334 case $lt_outputfile in
9335 *.exe|*.EXE) ;;
9336 *)
9337 lt_outputfile="$lt_outputfile.exe"
9338 lt_tool_outputfile="$lt_tool_outputfile.exe"
9339 ;;
9340 esac~
9341 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9343 $RM "$lt_outputfile.manifest";
9344 fi'
9345 ;;
9346 *)
9347 # Assume MSVC wrapper
9348 hardcode_libdir_flag_spec=' '
9349 allow_undefined_flag=unsupported
9350 # Tell ltmain to make .lib files, not .a files.
9351 libext=lib
9352 # Tell ltmain to make .dll files, not .so files.
9353 shrext_cmds=".dll"
9354 # FIXME: Setting linknames here is a bad hack.
9355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9356 # The linker will automatically build a .lib file if we build a DLL.
9357 old_archive_from_new_cmds='true'
9358 # FIXME: Should let the user specify the lib program.
9359 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9360 enable_shared_with_static_runtimes=yes
9361 ;;
9362 esac
9363 ;;
9364
9365 darwin* | rhapsody*)
9366
9367
9368 archive_cmds_need_lc=no
9369 hardcode_direct=no
9370 hardcode_automatic=yes
9371 hardcode_shlibpath_var=unsupported
9372 if test "$lt_cv_ld_force_load" = "yes"; then
9373 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\"`'
9374
9375 else
9376 whole_archive_flag_spec=''
9377 fi
9378 link_all_deplibs=yes
9379 allow_undefined_flag="$_lt_dar_allow_undefined"
9380 case $cc_basename in
9381 ifort*) _lt_dar_can_shared=yes ;;
9382 *) _lt_dar_can_shared=$GCC ;;
9383 esac
9384 if test "$_lt_dar_can_shared" = "yes"; then
9385 output_verbose_link_cmd=func_echo_all
9386 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9387 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9388 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}"
9389 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}"
9390
9391 else
9392 ld_shlibs=no
9393 fi
9394
9395 ;;
9396
9397 dgux*)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_shlibpath_var=no
9401 ;;
9402
9403 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9404 # support. Future versions do this automatically, but an explicit c++rt0.o
9405 # does not break anything, and helps significantly (at the cost of a little
9406 # extra space).
9407 freebsd2.2*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9409 hardcode_libdir_flag_spec='-R$libdir'
9410 hardcode_direct=yes
9411 hardcode_shlibpath_var=no
9412 ;;
9413
9414 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9415 freebsd2.*)
9416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_direct=yes
9418 hardcode_minus_L=yes
9419 hardcode_shlibpath_var=no
9420 ;;
9421
9422 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9423 freebsd* | dragonfly*)
9424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9425 hardcode_libdir_flag_spec='-R$libdir'
9426 hardcode_direct=yes
9427 hardcode_shlibpath_var=no
9428 ;;
9429
9430 hpux9*)
9431 if test "$GCC" = yes; then
9432 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9433 else
9434 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9435 fi
9436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437 hardcode_libdir_separator=:
9438 hardcode_direct=yes
9439
9440 # hardcode_minus_L: Not really in the search PATH,
9441 # but as the default location of the library.
9442 hardcode_minus_L=yes
9443 export_dynamic_flag_spec='${wl}-E'
9444 ;;
9445
9446 hpux10*)
9447 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9448 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449 else
9450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9451 fi
9452 if test "$with_gnu_ld" = no; then
9453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454 hardcode_libdir_separator=:
9455 hardcode_direct=yes
9456 hardcode_direct_absolute=yes
9457 export_dynamic_flag_spec='${wl}-E'
9458 # hardcode_minus_L: Not really in the search PATH,
9459 # but as the default location of the library.
9460 hardcode_minus_L=yes
9461 fi
9462 ;;
9463
9464 hpux11*)
9465 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9466 case $host_cpu in
9467 hppa*64*)
9468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 ;;
9470 ia64*)
9471 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9472 ;;
9473 *)
9474 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475 ;;
9476 esac
9477 else
9478 case $host_cpu in
9479 hppa*64*)
9480 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 ;;
9482 ia64*)
9483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9484 ;;
9485 *)
9486
9487 # Older versions of the 11.00 compiler do not understand -b yet
9488 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9490 $as_echo_n "checking if $CC understands -b... " >&6; }
9491 if ${lt_cv_prog_compiler__b+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 lt_cv_prog_compiler__b=no
9495 save_LDFLAGS="$LDFLAGS"
9496 LDFLAGS="$LDFLAGS -b"
9497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9499 # The linker can only warn and ignore the option if not recognized
9500 # So say no if there are warnings
9501 if test -s conftest.err; then
9502 # Append any errors to the config.log.
9503 cat conftest.err 1>&5
9504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if diff conftest.exp conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler__b=yes
9508 fi
9509 else
9510 lt_cv_prog_compiler__b=yes
9511 fi
9512 fi
9513 $RM -r conftest*
9514 LDFLAGS="$save_LDFLAGS"
9515
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9518 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9519
9520 if test x"$lt_cv_prog_compiler__b" = xyes; then
9521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9522 else
9523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9524 fi
9525
9526 ;;
9527 esac
9528 fi
9529 if test "$with_gnu_ld" = no; then
9530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9531 hardcode_libdir_separator=:
9532
9533 case $host_cpu in
9534 hppa*64*|ia64*)
9535 hardcode_direct=no
9536 hardcode_shlibpath_var=no
9537 ;;
9538 *)
9539 hardcode_direct=yes
9540 hardcode_direct_absolute=yes
9541 export_dynamic_flag_spec='${wl}-E'
9542
9543 # hardcode_minus_L: Not really in the search PATH,
9544 # but as the default location of the library.
9545 hardcode_minus_L=yes
9546 ;;
9547 esac
9548 fi
9549 ;;
9550
9551 irix5* | irix6* | nonstopux*)
9552 if test "$GCC" = yes; then
9553 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'
9554 # Try to use the -exported_symbol ld option, if it does not
9555 # work, assume that -exports_file does not work either and
9556 # implicitly export all symbols.
9557 # This should be the same for all languages, so no per-tag cache variable.
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9559 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9560 if ${lt_cv_irix_exported_symbol+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 save_LDFLAGS="$LDFLAGS"
9564 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 int foo (void) { return 0; }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570 lt_cv_irix_exported_symbol=yes
9571 else
9572 lt_cv_irix_exported_symbol=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576 LDFLAGS="$save_LDFLAGS"
9577 fi
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9579 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9580 if test "$lt_cv_irix_exported_symbol" = yes; then
9581 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'
9582 fi
9583 else
9584 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'
9585 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'
9586 fi
9587 archive_cmds_need_lc='no'
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 hardcode_libdir_separator=:
9590 inherit_rpath=yes
9591 link_all_deplibs=yes
9592 ;;
9593
9594 netbsd* | netbsdelf*-gnu)
9595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9597 else
9598 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9599 fi
9600 hardcode_libdir_flag_spec='-R$libdir'
9601 hardcode_direct=yes
9602 hardcode_shlibpath_var=no
9603 ;;
9604
9605 newsos6)
9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_direct=yes
9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609 hardcode_libdir_separator=:
9610 hardcode_shlibpath_var=no
9611 ;;
9612
9613 *nto* | *qnx*)
9614 ;;
9615
9616 openbsd*)
9617 if test -f /usr/libexec/ld.so; then
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9620 hardcode_direct_absolute=yes
9621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9622 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625 export_dynamic_flag_spec='${wl}-E'
9626 else
9627 case $host_os in
9628 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 ;;
9632 *)
9633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9635 ;;
9636 esac
9637 fi
9638 else
9639 ld_shlibs=no
9640 fi
9641 ;;
9642
9643 os2*)
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_minus_L=yes
9646 allow_undefined_flag=unsupported
9647 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9648 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9649 ;;
9650
9651 osf3*)
9652 if test "$GCC" = yes; then
9653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9654 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'
9655 else
9656 allow_undefined_flag=' -expect_unresolved \*'
9657 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'
9658 fi
9659 archive_cmds_need_lc='no'
9660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661 hardcode_libdir_separator=:
9662 ;;
9663
9664 osf4* | osf5*) # as osf3* with the addition of -msym flag
9665 if test "$GCC" = yes; then
9666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9667 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'
9668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9669 else
9670 allow_undefined_flag=' -expect_unresolved \*'
9671 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'
9672 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~
9673 $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'
9674
9675 # Both c and cxx compiler support -rpath directly
9676 hardcode_libdir_flag_spec='-rpath $libdir'
9677 fi
9678 archive_cmds_need_lc='no'
9679 hardcode_libdir_separator=:
9680 ;;
9681
9682 solaris*)
9683 no_undefined_flag=' -z defs'
9684 if test "$GCC" = yes; then
9685 wlarc='${wl}'
9686 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9688 $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'
9689 else
9690 case `$CC -V 2>&1` in
9691 *"Compilers 5.0"*)
9692 wlarc=''
9693 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9696 ;;
9697 *)
9698 wlarc='${wl}'
9699 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9701 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9702 ;;
9703 esac
9704 fi
9705 hardcode_libdir_flag_spec='-R$libdir'
9706 hardcode_shlibpath_var=no
9707 case $host_os in
9708 solaris2.[0-5] | solaris2.[0-5].*) ;;
9709 *)
9710 # The compiler driver will combine and reorder linker options,
9711 # but understands `-z linker_flag'. GCC discards it without `$wl',
9712 # but is careful enough not to reorder.
9713 # Supported since Solaris 2.6 (maybe 2.5.1?)
9714 if test "$GCC" = yes; then
9715 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9716 else
9717 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9718 fi
9719 ;;
9720 esac
9721 link_all_deplibs=yes
9722 ;;
9723
9724 sunos4*)
9725 if test "x$host_vendor" = xsequent; then
9726 # Use $CC to link under sequent, because it throws in some extra .o
9727 # files that make .init and .fini sections work.
9728 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9729 else
9730 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9731 fi
9732 hardcode_libdir_flag_spec='-L$libdir'
9733 hardcode_direct=yes
9734 hardcode_minus_L=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 sysv4)
9739 case $host_vendor in
9740 sni)
9741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_direct=yes # is this really true???
9743 ;;
9744 siemens)
9745 ## LD is ld it makes a PLAMLIB
9746 ## CC just makes a GrossModule.
9747 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9748 reload_cmds='$CC -r -o $output$reload_objs'
9749 hardcode_direct=no
9750 ;;
9751 motorola)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9754 ;;
9755 esac
9756 runpath_var='LD_RUN_PATH'
9757 hardcode_shlibpath_var=no
9758 ;;
9759
9760 sysv4.3*)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_shlibpath_var=no
9763 export_dynamic_flag_spec='-Bexport'
9764 ;;
9765
9766 sysv4*MP*)
9767 if test -d /usr/nec; then
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 runpath_var=LD_RUN_PATH
9771 hardcode_runpath_var=yes
9772 ld_shlibs=yes
9773 fi
9774 ;;
9775
9776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9777 no_undefined_flag='${wl}-z,text'
9778 archive_cmds_need_lc=no
9779 hardcode_shlibpath_var=no
9780 runpath_var='LD_RUN_PATH'
9781
9782 if test "$GCC" = yes; then
9783 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 else
9786 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 fi
9789 ;;
9790
9791 sysv5* | sco3.2v5* | sco5v6*)
9792 # Note: We can NOT use -z defs as we might desire, because we do not
9793 # link with -lc, and that would cause any symbols used from libc to
9794 # always be unresolved, which means just about no library would
9795 # ever link correctly. If we're not using GNU ld we use -z text
9796 # though, which does catch some bad symbols but isn't as heavy-handed
9797 # as -z defs.
9798 no_undefined_flag='${wl}-z,text'
9799 allow_undefined_flag='${wl}-z,nodefs'
9800 archive_cmds_need_lc=no
9801 hardcode_shlibpath_var=no
9802 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9803 hardcode_libdir_separator=':'
9804 link_all_deplibs=yes
9805 export_dynamic_flag_spec='${wl}-Bexport'
9806 runpath_var='LD_RUN_PATH'
9807
9808 if test "$GCC" = yes; then
9809 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 else
9812 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 fi
9815 ;;
9816
9817 uts4*)
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_shlibpath_var=no
9821 ;;
9822
9823 *)
9824 ld_shlibs=no
9825 ;;
9826 esac
9827
9828 if test x$host_vendor = xsni; then
9829 case $host in
9830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9831 export_dynamic_flag_spec='${wl}-Blargedynsym'
9832 ;;
9833 esac
9834 fi
9835 fi
9836
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9838 $as_echo "$ld_shlibs" >&6; }
9839 test "$ld_shlibs" = no && can_build_shared=no
9840
9841 with_gnu_ld=$with_gnu_ld
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857 #
9858 # Do we need to explicitly link libc?
9859 #
9860 case "x$archive_cmds_need_lc" in
9861 x|xyes)
9862 # Assume -lc should be added
9863 archive_cmds_need_lc=yes
9864
9865 if test "$enable_shared" = yes && test "$GCC" = yes; then
9866 case $archive_cmds in
9867 *'~'*)
9868 # FIXME: we may have to deal with multi-command sequences.
9869 ;;
9870 '$CC '*)
9871 # Test whether the compiler implicitly links with -lc since on some
9872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9873 # to ld, don't add -lc before -lgcc.
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9875 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9876 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 $RM conftest*
9880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881
9882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9883 (eval $ac_compile) 2>&5
9884 ac_status=$?
9885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9886 test $ac_status = 0; } 2>conftest.err; then
9887 soname=conftest
9888 lib=conftest
9889 libobjs=conftest.$ac_objext
9890 deplibs=
9891 wl=$lt_prog_compiler_wl
9892 pic_flag=$lt_prog_compiler_pic
9893 compiler_flags=-v
9894 linker_flags=-v
9895 verstring=
9896 output_objdir=.
9897 libname=conftest
9898 lt_save_allow_undefined_flag=$allow_undefined_flag
9899 allow_undefined_flag=
9900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9901 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9902 ac_status=$?
9903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9904 test $ac_status = 0; }
9905 then
9906 lt_cv_archive_cmds_need_lc=no
9907 else
9908 lt_cv_archive_cmds_need_lc=yes
9909 fi
9910 allow_undefined_flag=$lt_save_allow_undefined_flag
9911 else
9912 cat conftest.err 1>&5
9913 fi
9914 $RM conftest*
9915
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9918 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9919 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9920 ;;
9921 esac
9922 fi
9923 ;;
9924 esac
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10078 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10079
10080 if test "$GCC" = yes; then
10081 case $host_os in
10082 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10083 *) lt_awk_arg="/^libraries:/" ;;
10084 esac
10085 case $host_os in
10086 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10087 *) lt_sed_strip_eq="s,=/,/,g" ;;
10088 esac
10089 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10090 case $lt_search_path_spec in
10091 *\;*)
10092 # if the path contains ";" then we assume it to be the separator
10093 # otherwise default to the standard path separator (i.e. ":") - it is
10094 # assumed that no part of a normal pathname contains ";" but that should
10095 # okay in the real world where ";" in dirpaths is itself problematic.
10096 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10097 ;;
10098 *)
10099 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10100 ;;
10101 esac
10102 # Ok, now we have the path, separated by spaces, we can step through it
10103 # and add multilib dir if necessary.
10104 lt_tmp_lt_search_path_spec=
10105 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10106 for lt_sys_path in $lt_search_path_spec; do
10107 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10108 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10109 else
10110 test -d "$lt_sys_path" && \
10111 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10112 fi
10113 done
10114 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10115 BEGIN {RS=" "; FS="/|\n";} {
10116 lt_foo="";
10117 lt_count=0;
10118 for (lt_i = NF; lt_i > 0; lt_i--) {
10119 if ($lt_i != "" && $lt_i != ".") {
10120 if ($lt_i == "..") {
10121 lt_count++;
10122 } else {
10123 if (lt_count == 0) {
10124 lt_foo="/" $lt_i lt_foo;
10125 } else {
10126 lt_count--;
10127 }
10128 }
10129 }
10130 }
10131 if (lt_foo != "") { lt_freq[lt_foo]++; }
10132 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10133 }'`
10134 # AWK program above erroneously prepends '/' to C:/dos/paths
10135 # for these hosts.
10136 case $host_os in
10137 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10138 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10139 esac
10140 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10141 else
10142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10143 fi
10144 library_names_spec=
10145 libname_spec='lib$name'
10146 soname_spec=
10147 shrext_cmds=".so"
10148 postinstall_cmds=
10149 postuninstall_cmds=
10150 finish_cmds=
10151 finish_eval=
10152 shlibpath_var=
10153 shlibpath_overrides_runpath=unknown
10154 version_type=none
10155 dynamic_linker="$host_os ld.so"
10156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10157 need_lib_prefix=unknown
10158 hardcode_into_libs=no
10159
10160 # when you set need_version to no, make sure it does not cause -set_version
10161 # flags to be left without arguments
10162 need_version=unknown
10163
10164 case $host_os in
10165 aix3*)
10166 version_type=linux # correct to gnu/linux during the next big refactor
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10168 shlibpath_var=LIBPATH
10169
10170 # AIX 3 has no versioning support, so we append a major version to the name.
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 ;;
10173
10174 aix[4-9]*)
10175 version_type=linux # correct to gnu/linux during the next big refactor
10176 need_lib_prefix=no
10177 need_version=no
10178 hardcode_into_libs=yes
10179 if test "$host_cpu" = ia64; then
10180 # AIX 5 supports IA64
10181 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 else
10184 # With GCC up to 2.95.x, collect2 would create an import file
10185 # for dependence libraries. The import file would start with
10186 # the line `#! .'. This would cause the generated library to
10187 # depend on `.', always an invalid library. This was fixed in
10188 # development snapshots of GCC prior to 3.0.
10189 case $host_os in
10190 aix4 | aix4.[01] | aix4.[01].*)
10191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10192 echo ' yes '
10193 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10194 :
10195 else
10196 can_build_shared=no
10197 fi
10198 ;;
10199 esac
10200 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10201 # soname into executable. Probably we can add versioning support to
10202 # collect2, so additional links can be useful in future.
10203 if test "$aix_use_runtimelinking" = yes; then
10204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10205 # instead of lib<name>.a to let people know that these are not
10206 # typical AIX shared libraries.
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 else
10209 # We preserve .a as extension for shared libraries through AIX4.2
10210 # and later when we are not doing run time linking.
10211 library_names_spec='${libname}${release}.a $libname.a'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 fi
10214 shlibpath_var=LIBPATH
10215 fi
10216 ;;
10217
10218 amigaos*)
10219 case $host_cpu in
10220 powerpc)
10221 # Since July 2007 AmigaOS4 officially supports .so libraries.
10222 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 ;;
10225 m68k)
10226 library_names_spec='$libname.ixlibrary $libname.a'
10227 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10228 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10229 ;;
10230 esac
10231 ;;
10232
10233 beos*)
10234 library_names_spec='${libname}${shared_ext}'
10235 dynamic_linker="$host_os ld.so"
10236 shlibpath_var=LIBRARY_PATH
10237 ;;
10238
10239 bsdi[45]*)
10240 version_type=linux # correct to gnu/linux during the next big refactor
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10247 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10248 # the default ld.so.conf also contains /usr/contrib/lib and
10249 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10250 # libtool to hard-code these into programs
10251 ;;
10252
10253 cygwin* | mingw* | pw32* | cegcc*)
10254 version_type=windows
10255 shrext_cmds=".dll"
10256 need_version=no
10257 need_lib_prefix=no
10258
10259 case $GCC,$cc_basename in
10260 yes,*)
10261 # gcc
10262 library_names_spec='$libname.dll.a'
10263 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10264 postinstall_cmds='base_file=`basename \${file}`~
10265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10266 dldir=$destdir/`dirname \$dlpath`~
10267 test -d \$dldir || mkdir -p \$dldir~
10268 $install_prog $dir/$dlname \$dldir/$dlname~
10269 chmod a+x \$dldir/$dlname~
10270 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10271 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10272 fi'
10273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10274 dlpath=$dir/\$dldll~
10275 $RM \$dlpath'
10276 shlibpath_overrides_runpath=yes
10277
10278 case $host_os in
10279 cygwin*)
10280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282
10283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10284 ;;
10285 mingw* | cegcc*)
10286 # MinGW DLLs use traditional 'lib' prefix
10287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10288 ;;
10289 pw32*)
10290 # pw32 DLLs use 'pw' prefix rather than 'lib'
10291 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10292 ;;
10293 esac
10294 dynamic_linker='Win32 ld.exe'
10295 ;;
10296
10297 *,cl*)
10298 # Native MSVC
10299 libname_spec='$name'
10300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301 library_names_spec='${libname}.dll.lib'
10302
10303 case $build_os in
10304 mingw*)
10305 sys_lib_search_path_spec=
10306 lt_save_ifs=$IFS
10307 IFS=';'
10308 for lt_path in $LIB
10309 do
10310 IFS=$lt_save_ifs
10311 # Let DOS variable expansion print the short 8.3 style file name.
10312 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10313 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10314 done
10315 IFS=$lt_save_ifs
10316 # Convert to MSYS style.
10317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10318 ;;
10319 cygwin*)
10320 # Convert to unix form, then to dos form, then back to unix form
10321 # but this time dos style (no spaces!) so that the unix form looks
10322 # like /cygdrive/c/PROGRA~1:/cygdr...
10323 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10324 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10325 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10326 ;;
10327 *)
10328 sys_lib_search_path_spec="$LIB"
10329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10330 # It is most probably a Windows format PATH.
10331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10332 else
10333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10334 fi
10335 # FIXME: find the short name or the path components, as spaces are
10336 # common. (e.g. "Program Files" -> "PROGRA~1")
10337 ;;
10338 esac
10339
10340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10341 postinstall_cmds='base_file=`basename \${file}`~
10342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10343 dldir=$destdir/`dirname \$dlpath`~
10344 test -d \$dldir || mkdir -p \$dldir~
10345 $install_prog $dir/$dlname \$dldir/$dlname'
10346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10347 dlpath=$dir/\$dldll~
10348 $RM \$dlpath'
10349 shlibpath_overrides_runpath=yes
10350 dynamic_linker='Win32 link.exe'
10351 ;;
10352
10353 *)
10354 # Assume MSVC wrapper
10355 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10356 dynamic_linker='Win32 ld.exe'
10357 ;;
10358 esac
10359 # FIXME: first we should search . and the directory the executable is in
10360 shlibpath_var=PATH
10361 ;;
10362
10363 darwin* | rhapsody*)
10364 dynamic_linker="$host_os dyld"
10365 version_type=darwin
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10369 soname_spec='${libname}${release}${major}$shared_ext'
10370 shlibpath_overrides_runpath=yes
10371 shlibpath_var=DYLD_LIBRARY_PATH
10372 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10373
10374 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10376 ;;
10377
10378 dgux*)
10379 version_type=linux # correct to gnu/linux during the next big refactor
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 ;;
10386
10387 freebsd* | dragonfly*)
10388 # DragonFly does not have aout. When/if they implement a new
10389 # versioning mechanism, adjust this.
10390 if test -x /usr/bin/objformat; then
10391 objformat=`/usr/bin/objformat`
10392 else
10393 case $host_os in
10394 freebsd[23].*) objformat=aout ;;
10395 *) objformat=elf ;;
10396 esac
10397 fi
10398 version_type=freebsd-$objformat
10399 case $version_type in
10400 freebsd-elf*)
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10402 need_version=no
10403 need_lib_prefix=no
10404 ;;
10405 freebsd-*)
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10407 need_version=yes
10408 ;;
10409 esac
10410 shlibpath_var=LD_LIBRARY_PATH
10411 case $host_os in
10412 freebsd2.*)
10413 shlibpath_overrides_runpath=yes
10414 ;;
10415 freebsd3.[01]* | freebsdelf3.[01]*)
10416 shlibpath_overrides_runpath=yes
10417 hardcode_into_libs=yes
10418 ;;
10419 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10420 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10421 shlibpath_overrides_runpath=no
10422 hardcode_into_libs=yes
10423 ;;
10424 *) # from 4.6 on, and DragonFly
10425 shlibpath_overrides_runpath=yes
10426 hardcode_into_libs=yes
10427 ;;
10428 esac
10429 ;;
10430
10431 haiku*)
10432 version_type=linux # correct to gnu/linux during the next big refactor
10433 need_lib_prefix=no
10434 need_version=no
10435 dynamic_linker="$host_os runtime_loader"
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LIBRARY_PATH
10439 shlibpath_overrides_runpath=yes
10440 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10441 hardcode_into_libs=yes
10442 ;;
10443
10444 hpux9* | hpux10* | hpux11*)
10445 # Give a soname corresponding to the major version so that dld.sl refuses to
10446 # link against other versions.
10447 version_type=sunos
10448 need_lib_prefix=no
10449 need_version=no
10450 case $host_cpu in
10451 ia64*)
10452 shrext_cmds='.so'
10453 hardcode_into_libs=yes
10454 dynamic_linker="$host_os dld.so"
10455 shlibpath_var=LD_LIBRARY_PATH
10456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 if test "X$HPUX_IA64_MODE" = X32; then
10460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10461 else
10462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10463 fi
10464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10465 ;;
10466 hppa*64*)
10467 shrext_cmds='.sl'
10468 hardcode_into_libs=yes
10469 dynamic_linker="$host_os dld.sl"
10470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473 soname_spec='${libname}${release}${shared_ext}$major'
10474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10476 ;;
10477 *)
10478 shrext_cmds='.sl'
10479 dynamic_linker="$host_os dld.sl"
10480 shlibpath_var=SHLIB_PATH
10481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 ;;
10485 esac
10486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10487 postinstall_cmds='chmod 555 $lib'
10488 # or fails outright, so override atomically:
10489 install_override_mode=555
10490 ;;
10491
10492 interix[3-9]*)
10493 version_type=linux # correct to gnu/linux during the next big refactor
10494 need_lib_prefix=no
10495 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=no
10501 hardcode_into_libs=yes
10502 ;;
10503
10504 irix5* | irix6* | nonstopux*)
10505 case $host_os in
10506 nonstopux*) version_type=nonstopux ;;
10507 *)
10508 if test "$lt_cv_prog_gnu_ld" = yes; then
10509 version_type=linux # correct to gnu/linux during the next big refactor
10510 else
10511 version_type=irix
10512 fi ;;
10513 esac
10514 need_lib_prefix=no
10515 need_version=no
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10518 case $host_os in
10519 irix5* | nonstopux*)
10520 libsuff= shlibsuff=
10521 ;;
10522 *)
10523 case $LD in # libtool.m4 will add one of these switches to LD
10524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10525 libsuff= shlibsuff= libmagic=32-bit;;
10526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10527 libsuff=32 shlibsuff=N32 libmagic=N32;;
10528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10530 *) libsuff= shlibsuff= libmagic=never-match;;
10531 esac
10532 ;;
10533 esac
10534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10535 shlibpath_overrides_runpath=no
10536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10538 hardcode_into_libs=yes
10539 ;;
10540
10541 # No shared lib support for Linux oldld, aout, or coff.
10542 linux*oldld* | linux*aout* | linux*coff*)
10543 dynamic_linker=no
10544 ;;
10545
10546 # This must be glibc/ELF.
10547 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10548 version_type=linux # correct to gnu/linux during the next big refactor
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=no
10556
10557 # Some binutils ld are patched to set DT_RUNPATH
10558 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 lt_cv_shlibpath_overrides_runpath=no
10562 save_LDFLAGS=$LDFLAGS
10563 save_libdir=$libdir
10564 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10565 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568
10569 int
10570 main ()
10571 {
10572
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10579 lt_cv_shlibpath_overrides_runpath=yes
10580 fi
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LDFLAGS=$save_LDFLAGS
10585 libdir=$save_libdir
10586
10587 fi
10588
10589 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10590
10591 # This implies no fast_install, which is unacceptable.
10592 # Some rework will be needed to allow for fast_install
10593 # before this can be enabled.
10594 hardcode_into_libs=yes
10595
10596 # Append ld.so.conf contents to the search path
10597 if test -f /etc/ld.so.conf; then
10598 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' ' '`
10599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10600 fi
10601
10602 # We used to test for /lib/ld.so.1 and disable shared libraries on
10603 # powerpc, because MkLinux only supported shared libraries with the
10604 # GNU dynamic linker. Since this was broken with cross compilers,
10605 # most powerpc-linux boxes support dynamic linking these days and
10606 # people can always --disable-shared, the test was removed, and we
10607 # assume the GNU/Linux dynamic linker is in use.
10608 dynamic_linker='GNU/Linux ld.so'
10609 ;;
10610
10611 netbsdelf*-gnu)
10612 version_type=linux
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=no
10619 hardcode_into_libs=yes
10620 dynamic_linker='NetBSD ld.elf_so'
10621 ;;
10622
10623 netbsd*)
10624 version_type=sunos
10625 need_lib_prefix=no
10626 need_version=no
10627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10630 dynamic_linker='NetBSD (a.out) ld.so'
10631 else
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 dynamic_linker='NetBSD ld.elf_so'
10635 fi
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10638 hardcode_into_libs=yes
10639 ;;
10640
10641 newsos6)
10642 version_type=linux # correct to gnu/linux during the next big refactor
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 shlibpath_overrides_runpath=yes
10646 ;;
10647
10648 *nto* | *qnx*)
10649 version_type=qnx
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 dynamic_linker='ldqnx.so'
10658 ;;
10659
10660 openbsd*)
10661 version_type=sunos
10662 sys_lib_dlsearch_path_spec="/usr/lib"
10663 need_lib_prefix=no
10664 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10665 case $host_os in
10666 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10667 *) need_version=no ;;
10668 esac
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10673 case $host_os in
10674 openbsd2.[89] | openbsd2.[89].*)
10675 shlibpath_overrides_runpath=no
10676 ;;
10677 *)
10678 shlibpath_overrides_runpath=yes
10679 ;;
10680 esac
10681 else
10682 shlibpath_overrides_runpath=yes
10683 fi
10684 ;;
10685
10686 os2*)
10687 libname_spec='$name'
10688 shrext_cmds=".dll"
10689 need_lib_prefix=no
10690 library_names_spec='$libname${shared_ext} $libname.a'
10691 dynamic_linker='OS/2 ld.exe'
10692 shlibpath_var=LIBPATH
10693 ;;
10694
10695 osf3* | osf4* | osf5*)
10696 version_type=osf
10697 need_lib_prefix=no
10698 need_version=no
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10703 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10704 ;;
10705
10706 rdos*)
10707 dynamic_linker=no
10708 ;;
10709
10710 solaris*)
10711 version_type=linux # correct to gnu/linux during the next big refactor
10712 need_lib_prefix=no
10713 need_version=no
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes
10718 hardcode_into_libs=yes
10719 # ldd complains unless libraries are executable
10720 postinstall_cmds='chmod +x $lib'
10721 ;;
10722
10723 sunos4*)
10724 version_type=sunos
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10726 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=yes
10729 if test "$with_gnu_ld" = yes; then
10730 need_lib_prefix=no
10731 fi
10732 need_version=yes
10733 ;;
10734
10735 sysv4 | sysv4.3*)
10736 version_type=linux # correct to gnu/linux during the next big refactor
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 case $host_vendor in
10741 sni)
10742 shlibpath_overrides_runpath=no
10743 need_lib_prefix=no
10744 runpath_var=LD_RUN_PATH
10745 ;;
10746 siemens)
10747 need_lib_prefix=no
10748 ;;
10749 motorola)
10750 need_lib_prefix=no
10751 need_version=no
10752 shlibpath_overrides_runpath=no
10753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10754 ;;
10755 esac
10756 ;;
10757
10758 sysv4*MP*)
10759 if test -d /usr/nec ;then
10760 version_type=linux # correct to gnu/linux during the next big refactor
10761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10762 soname_spec='$libname${shared_ext}.$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 fi
10765 ;;
10766
10767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10768 version_type=freebsd-elf
10769 need_lib_prefix=no
10770 need_version=no
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10772 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 shlibpath_overrides_runpath=yes
10775 hardcode_into_libs=yes
10776 if test "$with_gnu_ld" = yes; then
10777 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10778 else
10779 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10780 case $host_os in
10781 sco3.2v5*)
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10783 ;;
10784 esac
10785 fi
10786 sys_lib_dlsearch_path_spec='/usr/lib'
10787 ;;
10788
10789 tpf*)
10790 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10791 version_type=linux # correct to gnu/linux during the next big refactor
10792 need_lib_prefix=no
10793 need_version=no
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 ;;
10799
10800 uts4*)
10801 version_type=linux # correct to gnu/linux during the next big refactor
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 ;;
10806
10807 *)
10808 dynamic_linker=no
10809 ;;
10810 esac
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10812 $as_echo "$dynamic_linker" >&6; }
10813 test "$dynamic_linker" = no && can_build_shared=no
10814
10815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10816 if test "$GCC" = yes; then
10817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10818 fi
10819
10820 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10821 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10822 fi
10823 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10824 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10825 fi
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10919 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10920 hardcode_action=
10921 if test -n "$hardcode_libdir_flag_spec" ||
10922 test -n "$runpath_var" ||
10923 test "X$hardcode_automatic" = "Xyes" ; then
10924
10925 # We can hardcode non-existent directories.
10926 if test "$hardcode_direct" != no &&
10927 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10928 # have to relink, otherwise we might link with an installed library
10929 # when we should be linking with a yet-to-be-installed one
10930 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10931 test "$hardcode_minus_L" != no; then
10932 # Linking always hardcodes the temporary library directory.
10933 hardcode_action=relink
10934 else
10935 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10936 hardcode_action=immediate
10937 fi
10938 else
10939 # We cannot hardcode anything, or else we can only hardcode existing
10940 # directories.
10941 hardcode_action=unsupported
10942 fi
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10944 $as_echo "$hardcode_action" >&6; }
10945
10946 if test "$hardcode_action" = relink ||
10947 test "$inherit_rpath" = yes; then
10948 # Fast installation is not supported
10949 enable_fast_install=no
10950 elif test "$shlibpath_overrides_runpath" = yes ||
10951 test "$enable_shared" = no; then
10952 # Fast installation is not necessary
10953 enable_fast_install=needless
10954 fi
10955
10956
10957
10958
10959
10960
10961 if test "x$enable_dlopen" != xyes; then
10962 enable_dlopen=unknown
10963 enable_dlopen_self=unknown
10964 enable_dlopen_self_static=unknown
10965 else
10966 lt_cv_dlopen=no
10967 lt_cv_dlopen_libs=
10968
10969 case $host_os in
10970 beos*)
10971 lt_cv_dlopen="load_add_on"
10972 lt_cv_dlopen_libs=
10973 lt_cv_dlopen_self=yes
10974 ;;
10975
10976 mingw* | pw32* | cegcc*)
10977 lt_cv_dlopen="LoadLibrary"
10978 lt_cv_dlopen_libs=
10979 ;;
10980
10981 cygwin*)
10982 lt_cv_dlopen="dlopen"
10983 lt_cv_dlopen_libs=
10984 ;;
10985
10986 darwin*)
10987 # if libdl is installed we need to link against it
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10989 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10990 if ${ac_cv_lib_dl_dlopen+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldl $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char dlopen ();
11005 int
11006 main ()
11007 {
11008 return dlopen ();
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 ac_cv_lib_dl_dlopen=yes
11015 else
11016 ac_cv_lib_dl_dlopen=no
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11023 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11024 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11026 else
11027
11028 lt_cv_dlopen="dyld"
11029 lt_cv_dlopen_libs=
11030 lt_cv_dlopen_self=yes
11031
11032 fi
11033
11034 ;;
11035
11036 *)
11037 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11038 if test "x$ac_cv_func_shl_load" = xyes; then :
11039 lt_cv_dlopen="shl_load"
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11042 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11043 if ${ac_cv_lib_dld_shl_load+:} false; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-ldld $LIBS"
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 char shl_load ();
11058 int
11059 main ()
11060 {
11061 return shl_load ();
11062 ;
11063 return 0;
11064 }
11065 _ACEOF
11066 if ac_fn_c_try_link "$LINENO"; then :
11067 ac_cv_lib_dld_shl_load=yes
11068 else
11069 ac_cv_lib_dld_shl_load=no
11070 fi
11071 rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11073 LIBS=$ac_check_lib_save_LIBS
11074 fi
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11076 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11077 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11078 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11079 else
11080 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11081 if test "x$ac_cv_func_dlopen" = xyes; then :
11082 lt_cv_dlopen="dlopen"
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11086 if ${ac_cv_lib_dl_dlopen+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 ac_check_lib_save_LIBS=$LIBS
11090 LIBS="-ldl $LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char dlopen ();
11101 int
11102 main ()
11103 {
11104 return dlopen ();
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_dl_dlopen=yes
11111 else
11112 ac_cv_lib_dl_dlopen=no
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11120 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11122 else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11124 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11125 if ${ac_cv_lib_svld_dlopen+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-lsvld $LIBS"
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char dlopen ();
11140 int
11141 main ()
11142 {
11143 return dlopen ();
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 if ac_fn_c_try_link "$LINENO"; then :
11149 ac_cv_lib_svld_dlopen=yes
11150 else
11151 ac_cv_lib_svld_dlopen=no
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11156 fi
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11158 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11159 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11163 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11164 if ${ac_cv_lib_dld_dld_link+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 ac_check_lib_save_LIBS=$LIBS
11168 LIBS="-ldld $LIBS"
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 char dld_link ();
11179 int
11180 main ()
11181 {
11182 return dld_link ();
11183 ;
11184 return 0;
11185 }
11186 _ACEOF
11187 if ac_fn_c_try_link "$LINENO"; then :
11188 ac_cv_lib_dld_dld_link=yes
11189 else
11190 ac_cv_lib_dld_dld_link=no
11191 fi
11192 rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_lib_save_LIBS
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11197 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11198 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11199 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11200 fi
11201
11202
11203 fi
11204
11205
11206 fi
11207
11208
11209 fi
11210
11211
11212 fi
11213
11214
11215 fi
11216
11217 ;;
11218 esac
11219
11220 if test "x$lt_cv_dlopen" != xno; then
11221 enable_dlopen=yes
11222 else
11223 enable_dlopen=no
11224 fi
11225
11226 case $lt_cv_dlopen in
11227 dlopen)
11228 save_CPPFLAGS="$CPPFLAGS"
11229 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11230
11231 save_LDFLAGS="$LDFLAGS"
11232 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11233
11234 save_LIBS="$LIBS"
11235 LIBS="$lt_cv_dlopen_libs $LIBS"
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11238 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11239 if ${lt_cv_dlopen_self+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 if test "$cross_compiling" = yes; then :
11243 lt_cv_dlopen_self=cross
11244 else
11245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11246 lt_status=$lt_dlunknown
11247 cat > conftest.$ac_ext <<_LT_EOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250
11251 #if HAVE_DLFCN_H
11252 #include <dlfcn.h>
11253 #endif
11254
11255 #include <stdio.h>
11256
11257 #ifdef RTLD_GLOBAL
11258 # define LT_DLGLOBAL RTLD_GLOBAL
11259 #else
11260 # ifdef DL_GLOBAL
11261 # define LT_DLGLOBAL DL_GLOBAL
11262 # else
11263 # define LT_DLGLOBAL 0
11264 # endif
11265 #endif
11266
11267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11268 find out it does not work in some platform. */
11269 #ifndef LT_DLLAZY_OR_NOW
11270 # ifdef RTLD_LAZY
11271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11272 # else
11273 # ifdef DL_LAZY
11274 # define LT_DLLAZY_OR_NOW DL_LAZY
11275 # else
11276 # ifdef RTLD_NOW
11277 # define LT_DLLAZY_OR_NOW RTLD_NOW
11278 # else
11279 # ifdef DL_NOW
11280 # define LT_DLLAZY_OR_NOW DL_NOW
11281 # else
11282 # define LT_DLLAZY_OR_NOW 0
11283 # endif
11284 # endif
11285 # endif
11286 # endif
11287 #endif
11288
11289 /* When -fvisbility=hidden is used, assume the code has been annotated
11290 correspondingly for the symbols needed. */
11291 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11292 int fnord () __attribute__((visibility("default")));
11293 #endif
11294
11295 int fnord () { return 42; }
11296 int main ()
11297 {
11298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11299 int status = $lt_dlunknown;
11300
11301 if (self)
11302 {
11303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11304 else
11305 {
11306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11307 else puts (dlerror ());
11308 }
11309 /* dlclose (self); */
11310 }
11311 else
11312 puts (dlerror ());
11313
11314 return status;
11315 }
11316 _LT_EOF
11317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11318 (eval $ac_link) 2>&5
11319 ac_status=$?
11320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11322 (./conftest; exit; ) >&5 2>/dev/null
11323 lt_status=$?
11324 case x$lt_status in
11325 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11326 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11327 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11328 esac
11329 else :
11330 # compilation failed
11331 lt_cv_dlopen_self=no
11332 fi
11333 fi
11334 rm -fr conftest*
11335
11336
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11339 $as_echo "$lt_cv_dlopen_self" >&6; }
11340
11341 if test "x$lt_cv_dlopen_self" = xyes; then
11342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11344 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11345 if ${lt_cv_dlopen_self_static+:} false; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 if test "$cross_compiling" = yes; then :
11349 lt_cv_dlopen_self_static=cross
11350 else
11351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11352 lt_status=$lt_dlunknown
11353 cat > conftest.$ac_ext <<_LT_EOF
11354 #line $LINENO "configure"
11355 #include "confdefs.h"
11356
11357 #if HAVE_DLFCN_H
11358 #include <dlfcn.h>
11359 #endif
11360
11361 #include <stdio.h>
11362
11363 #ifdef RTLD_GLOBAL
11364 # define LT_DLGLOBAL RTLD_GLOBAL
11365 #else
11366 # ifdef DL_GLOBAL
11367 # define LT_DLGLOBAL DL_GLOBAL
11368 # else
11369 # define LT_DLGLOBAL 0
11370 # endif
11371 #endif
11372
11373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11374 find out it does not work in some platform. */
11375 #ifndef LT_DLLAZY_OR_NOW
11376 # ifdef RTLD_LAZY
11377 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11378 # else
11379 # ifdef DL_LAZY
11380 # define LT_DLLAZY_OR_NOW DL_LAZY
11381 # else
11382 # ifdef RTLD_NOW
11383 # define LT_DLLAZY_OR_NOW RTLD_NOW
11384 # else
11385 # ifdef DL_NOW
11386 # define LT_DLLAZY_OR_NOW DL_NOW
11387 # else
11388 # define LT_DLLAZY_OR_NOW 0
11389 # endif
11390 # endif
11391 # endif
11392 # endif
11393 #endif
11394
11395 /* When -fvisbility=hidden is used, assume the code has been annotated
11396 correspondingly for the symbols needed. */
11397 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11398 int fnord () __attribute__((visibility("default")));
11399 #endif
11400
11401 int fnord () { return 42; }
11402 int main ()
11403 {
11404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11405 int status = $lt_dlunknown;
11406
11407 if (self)
11408 {
11409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11410 else
11411 {
11412 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11413 else puts (dlerror ());
11414 }
11415 /* dlclose (self); */
11416 }
11417 else
11418 puts (dlerror ());
11419
11420 return status;
11421 }
11422 _LT_EOF
11423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11424 (eval $ac_link) 2>&5
11425 ac_status=$?
11426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11428 (./conftest; exit; ) >&5 2>/dev/null
11429 lt_status=$?
11430 case x$lt_status in
11431 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11432 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11433 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11434 esac
11435 else :
11436 # compilation failed
11437 lt_cv_dlopen_self_static=no
11438 fi
11439 fi
11440 rm -fr conftest*
11441
11442
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11445 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11446 fi
11447
11448 CPPFLAGS="$save_CPPFLAGS"
11449 LDFLAGS="$save_LDFLAGS"
11450 LIBS="$save_LIBS"
11451 ;;
11452 esac
11453
11454 case $lt_cv_dlopen_self in
11455 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11456 *) enable_dlopen_self=unknown ;;
11457 esac
11458
11459 case $lt_cv_dlopen_self_static in
11460 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11461 *) enable_dlopen_self_static=unknown ;;
11462 esac
11463 fi
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481 striplib=
11482 old_striplib=
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11484 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11485 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11486 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11487 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489 $as_echo "yes" >&6; }
11490 else
11491 # FIXME - insert some real tests, host_os isn't really good enough
11492 case $host_os in
11493 darwin*)
11494 if test -n "$STRIP" ; then
11495 striplib="$STRIP -x"
11496 old_striplib="$STRIP -S"
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498 $as_echo "yes" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11502 fi
11503 ;;
11504 *)
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 ;;
11508 esac
11509 fi
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522 # Report which library types will actually be built
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11524 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11526 $as_echo "$can_build_shared" >&6; }
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11529 $as_echo_n "checking whether to build shared libraries... " >&6; }
11530 test "$can_build_shared" = "no" && enable_shared=no
11531
11532 # On AIX, shared libraries and static libraries use the same namespace, and
11533 # are all built from PIC.
11534 case $host_os in
11535 aix3*)
11536 test "$enable_shared" = yes && enable_static=no
11537 if test -n "$RANLIB"; then
11538 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11539 postinstall_cmds='$RANLIB $lib'
11540 fi
11541 ;;
11542
11543 aix[4-9]*)
11544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11545 test "$enable_shared" = yes && enable_static=no
11546 fi
11547 ;;
11548 esac
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11550 $as_echo "$enable_shared" >&6; }
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11553 $as_echo_n "checking whether to build static libraries... " >&6; }
11554 # Make sure either enable_shared or enable_static is yes.
11555 test "$enable_shared" = yes || enable_static=yes
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11557 $as_echo "$enable_static" >&6; }
11558
11559
11560
11561
11562 fi
11563 ac_ext=c
11564 ac_cpp='$CPP $CPPFLAGS'
11565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568
11569 CC="$lt_save_CC"
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 ac_config_commands="$ac_config_commands libtool"
11586
11587
11588
11589
11590 # Only expand once:
11591
11592
11593
11594
11595
11596 # Check for C++ compiler and use it to compile the tests.
11597 #
11598 ac_ext=cpp
11599 ac_cpp='$CXXCPP $CPPFLAGS'
11600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11603 if test -z "$CXX"; then
11604 if test -n "$CCC"; then
11605 CXX=$CCC
11606 else
11607 if test -n "$ac_tool_prefix"; then
11608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11609 do
11610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 $as_echo_n "checking for $ac_word... " >&6; }
11614 if ${ac_cv_prog_CXX+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 if test -n "$CXX"; then
11618 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11619 else
11620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11622 do
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
11625 for ac_exec_ext in '' $ac_executable_extensions; do
11626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 break 2
11630 fi
11631 done
11632 done
11633 IFS=$as_save_IFS
11634
11635 fi
11636 fi
11637 CXX=$ac_cv_prog_CXX
11638 if test -n "$CXX"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11640 $as_echo "$CXX" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11644 fi
11645
11646
11647 test -n "$CXX" && break
11648 done
11649 fi
11650 if test -z "$CXX"; then
11651 ac_ct_CXX=$CXX
11652 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11653 do
11654 # Extract the first word of "$ac_prog", so it can be a program name with args.
11655 set dummy $ac_prog; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 if test -n "$ac_ct_CXX"; then
11662 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11663 else
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11666 do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_prog_ac_ct_CXX="$ac_prog"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675 done
11676 done
11677 IFS=$as_save_IFS
11678
11679 fi
11680 fi
11681 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11682 if test -n "$ac_ct_CXX"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11684 $as_echo "$ac_ct_CXX" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11688 fi
11689
11690
11691 test -n "$ac_ct_CXX" && break
11692 done
11693
11694 if test "x$ac_ct_CXX" = x; then
11695 CXX="g++"
11696 else
11697 case $cross_compiling:$ac_tool_warned in
11698 yes:)
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11701 ac_tool_warned=yes ;;
11702 esac
11703 CXX=$ac_ct_CXX
11704 fi
11705 fi
11706
11707 fi
11708 fi
11709 # Provide some information about the compiler.
11710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11711 set X $ac_compile
11712 ac_compiler=$2
11713 for ac_option in --version -v -V -qversion; do
11714 { { ac_try="$ac_compiler $ac_option >&5"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718 esac
11719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11720 $as_echo "$ac_try_echo"; } >&5
11721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11722 ac_status=$?
11723 if test -s conftest.err; then
11724 sed '10a\
11725 ... rest of stderr output deleted ...
11726 10q' conftest.err >conftest.er1
11727 cat conftest.er1 >&5
11728 fi
11729 rm -f conftest.er1 conftest.err
11730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731 test $ac_status = 0; }
11732 done
11733
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11735 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11736 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741
11742 int
11743 main ()
11744 {
11745 #ifndef __GNUC__
11746 choke me
11747 #endif
11748
11749 ;
11750 return 0;
11751 }
11752 _ACEOF
11753 if ac_fn_cxx_try_compile "$LINENO"; then :
11754 ac_compiler_gnu=yes
11755 else
11756 ac_compiler_gnu=no
11757 fi
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11760
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11763 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11764 if test $ac_compiler_gnu = yes; then
11765 GXX=yes
11766 else
11767 GXX=
11768 fi
11769 ac_test_CXXFLAGS=${CXXFLAGS+set}
11770 ac_save_CXXFLAGS=$CXXFLAGS
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11772 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11773 if ${ac_cv_prog_cxx_g+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11777 ac_cxx_werror_flag=yes
11778 ac_cv_prog_cxx_g=no
11779 CXXFLAGS="-g"
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782
11783 int
11784 main ()
11785 {
11786
11787 ;
11788 return 0;
11789 }
11790 _ACEOF
11791 if ac_fn_cxx_try_compile "$LINENO"; then :
11792 ac_cv_prog_cxx_g=yes
11793 else
11794 CXXFLAGS=""
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11797
11798 int
11799 main ()
11800 {
11801
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_cxx_try_compile "$LINENO"; then :
11807
11808 else
11809 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11810 CXXFLAGS="-g"
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813
11814 int
11815 main ()
11816 {
11817
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_cxx_try_compile "$LINENO"; then :
11823 ac_cv_prog_cxx_g=yes
11824 fi
11825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11833 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11834 if test "$ac_test_CXXFLAGS" = set; then
11835 CXXFLAGS=$ac_save_CXXFLAGS
11836 elif test $ac_cv_prog_cxx_g = yes; then
11837 if test "$GXX" = yes; then
11838 CXXFLAGS="-g -O2"
11839 else
11840 CXXFLAGS="-g"
11841 fi
11842 else
11843 if test "$GXX" = yes; then
11844 CXXFLAGS="-O2"
11845 else
11846 CXXFLAGS=
11847 fi
11848 fi
11849 ac_ext=c
11850 ac_cpp='$CPP $CPPFLAGS'
11851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11854
11855 depcc="$CXX" am_compiler_list=
11856
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11858 $as_echo_n "checking dependency style of $depcc... " >&6; }
11859 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11863 # We make a subdir and do the tests there. Otherwise we can end up
11864 # making bogus files that we don't know about and never remove. For
11865 # instance it was reported that on HP-UX the gcc test will end up
11866 # making a dummy file named 'D' -- because '-MD' means "put the output
11867 # in D".
11868 rm -rf conftest.dir
11869 mkdir conftest.dir
11870 # Copy depcomp to subdir because otherwise we won't find it if we're
11871 # using a relative directory.
11872 cp "$am_depcomp" conftest.dir
11873 cd conftest.dir
11874 # We will build objects and dependencies in a subdirectory because
11875 # it helps to detect inapplicable dependency modes. For instance
11876 # both Tru64's cc and ICC support -MD to output dependencies as a
11877 # side effect of compilation, but ICC will put the dependencies in
11878 # the current directory while Tru64 will put them in the object
11879 # directory.
11880 mkdir sub
11881
11882 am_cv_CXX_dependencies_compiler_type=none
11883 if test "$am_compiler_list" = ""; then
11884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11885 fi
11886 am__universal=false
11887 case " $depcc " in #(
11888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11889 esac
11890
11891 for depmode in $am_compiler_list; do
11892 # Setup a source with many dependencies, because some compilers
11893 # like to wrap large dependency lists on column 80 (with \), and
11894 # we should not choose a depcomp mode which is confused by this.
11895 #
11896 # We need to recreate these files for each test, as the compiler may
11897 # overwrite some of them when testing with obscure command lines.
11898 # This happens at least with the AIX C compiler.
11899 : > sub/conftest.c
11900 for i in 1 2 3 4 5 6; do
11901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11902 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11903 # Solaris 10 /bin/sh.
11904 echo '/* dummy */' > sub/conftst$i.h
11905 done
11906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11907
11908 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11909 # mode. It turns out that the SunPro C++ compiler does not properly
11910 # handle '-M -o', and we need to detect this. Also, some Intel
11911 # versions had trouble with output in subdirs.
11912 am__obj=sub/conftest.${OBJEXT-o}
11913 am__minus_obj="-o $am__obj"
11914 case $depmode in
11915 gcc)
11916 # This depmode causes a compiler race in universal mode.
11917 test "$am__universal" = false || continue
11918 ;;
11919 nosideeffect)
11920 # After this tag, mechanisms are not by side-effect, so they'll
11921 # only be used when explicitly requested.
11922 if test "x$enable_dependency_tracking" = xyes; then
11923 continue
11924 else
11925 break
11926 fi
11927 ;;
11928 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11929 # This compiler won't grok '-c -o', but also, the minuso test has
11930 # not run yet. These depmodes are late enough in the game, and
11931 # so weak that their functioning should not be impacted.
11932 am__obj=conftest.${OBJEXT-o}
11933 am__minus_obj=
11934 ;;
11935 none) break ;;
11936 esac
11937 if depmode=$depmode \
11938 source=sub/conftest.c object=$am__obj \
11939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11941 >/dev/null 2>conftest.err &&
11942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11946 # icc doesn't choke on unknown options, it will just issue warnings
11947 # or remarks (even with -Werror). So we grep stderr for any message
11948 # that says an option was ignored or not supported.
11949 # When given -MP, icc 7.0 and 7.1 complain thusly:
11950 # icc: Command line warning: ignoring option '-M'; no argument required
11951 # The diagnosis changed in icc 8.0:
11952 # icc: Command line remark: option '-MP' not supported
11953 if (grep 'ignoring option' conftest.err ||
11954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11955 am_cv_CXX_dependencies_compiler_type=$depmode
11956 break
11957 fi
11958 fi
11959 done
11960
11961 cd ..
11962 rm -rf conftest.dir
11963 else
11964 am_cv_CXX_dependencies_compiler_type=none
11965 fi
11966
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11969 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11970 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11971
11972 if
11973 test "x$enable_dependency_tracking" != xno \
11974 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11975 am__fastdepCXX_TRUE=
11976 am__fastdepCXX_FALSE='#'
11977 else
11978 am__fastdepCXX_TRUE='#'
11979 am__fastdepCXX_FALSE=
11980 fi
11981
11982
11983
11984
11985 func_stripname_cnf ()
11986 {
11987 case ${2} in
11988 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11989 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11990 esac
11991 } # func_stripname_cnf
11992
11993 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11994 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11995 (test "X$CXX" != "Xg++"))) ; then
11996 ac_ext=cpp
11997 ac_cpp='$CXXCPP $CPPFLAGS'
11998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12002 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12003 if test -z "$CXXCPP"; then
12004 if ${ac_cv_prog_CXXCPP+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 # Double quotes because CXXCPP needs to be expanded
12008 for CXXCPP in "$CXX -E" "/lib/cpp"
12009 do
12010 ac_preproc_ok=false
12011 for ac_cxx_preproc_warn_flag in '' yes
12012 do
12013 # Use a header file that comes with gcc, so configuring glibc
12014 # with a fresh cross-compiler works.
12015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016 # <limits.h> exists even on freestanding compilers.
12017 # On the NeXT, cc -E runs the code through the compiler's parser,
12018 # not just through cpp. "Syntax error" is here to catch this case.
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 #ifdef __STDC__
12022 # include <limits.h>
12023 #else
12024 # include <assert.h>
12025 #endif
12026 Syntax error
12027 _ACEOF
12028 if ac_fn_cxx_try_cpp "$LINENO"; then :
12029
12030 else
12031 # Broken: fails on valid input.
12032 continue
12033 fi
12034 rm -f conftest.err conftest.i conftest.$ac_ext
12035
12036 # OK, works on sane cases. Now check whether nonexistent headers
12037 # can be detected and how.
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #include <ac_nonexistent.h>
12041 _ACEOF
12042 if ac_fn_cxx_try_cpp "$LINENO"; then :
12043 # Broken: success on invalid input.
12044 continue
12045 else
12046 # Passes both tests.
12047 ac_preproc_ok=:
12048 break
12049 fi
12050 rm -f conftest.err conftest.i conftest.$ac_ext
12051
12052 done
12053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12054 rm -f conftest.i conftest.err conftest.$ac_ext
12055 if $ac_preproc_ok; then :
12056 break
12057 fi
12058
12059 done
12060 ac_cv_prog_CXXCPP=$CXXCPP
12061
12062 fi
12063 CXXCPP=$ac_cv_prog_CXXCPP
12064 else
12065 ac_cv_prog_CXXCPP=$CXXCPP
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12068 $as_echo "$CXXCPP" >&6; }
12069 ac_preproc_ok=false
12070 for ac_cxx_preproc_warn_flag in '' yes
12071 do
12072 # Use a header file that comes with gcc, so configuring glibc
12073 # with a fresh cross-compiler works.
12074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 # <limits.h> exists even on freestanding compilers.
12076 # On the NeXT, cc -E runs the code through the compiler's parser,
12077 # not just through cpp. "Syntax error" is here to catch this case.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #ifdef __STDC__
12081 # include <limits.h>
12082 #else
12083 # include <assert.h>
12084 #endif
12085 Syntax error
12086 _ACEOF
12087 if ac_fn_cxx_try_cpp "$LINENO"; then :
12088
12089 else
12090 # Broken: fails on valid input.
12091 continue
12092 fi
12093 rm -f conftest.err conftest.i conftest.$ac_ext
12094
12095 # OK, works on sane cases. Now check whether nonexistent headers
12096 # can be detected and how.
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include <ac_nonexistent.h>
12100 _ACEOF
12101 if ac_fn_cxx_try_cpp "$LINENO"; then :
12102 # Broken: success on invalid input.
12103 continue
12104 else
12105 # Passes both tests.
12106 ac_preproc_ok=:
12107 break
12108 fi
12109 rm -f conftest.err conftest.i conftest.$ac_ext
12110
12111 done
12112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12113 rm -f conftest.i conftest.err conftest.$ac_ext
12114 if $ac_preproc_ok; then :
12115
12116 else
12117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12119 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12120 See \`config.log' for more details" "$LINENO" 5; }
12121 fi
12122
12123 ac_ext=c
12124 ac_cpp='$CPP $CPPFLAGS'
12125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12128
12129 else
12130 _lt_caught_CXX_error=yes
12131 fi
12132
12133 ac_ext=cpp
12134 ac_cpp='$CXXCPP $CPPFLAGS'
12135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12138
12139 archive_cmds_need_lc_CXX=no
12140 allow_undefined_flag_CXX=
12141 always_export_symbols_CXX=no
12142 archive_expsym_cmds_CXX=
12143 compiler_needs_object_CXX=no
12144 export_dynamic_flag_spec_CXX=
12145 hardcode_direct_CXX=no
12146 hardcode_direct_absolute_CXX=no
12147 hardcode_libdir_flag_spec_CXX=
12148 hardcode_libdir_separator_CXX=
12149 hardcode_minus_L_CXX=no
12150 hardcode_shlibpath_var_CXX=unsupported
12151 hardcode_automatic_CXX=no
12152 inherit_rpath_CXX=no
12153 module_cmds_CXX=
12154 module_expsym_cmds_CXX=
12155 link_all_deplibs_CXX=unknown
12156 old_archive_cmds_CXX=$old_archive_cmds
12157 reload_flag_CXX=$reload_flag
12158 reload_cmds_CXX=$reload_cmds
12159 no_undefined_flag_CXX=
12160 whole_archive_flag_spec_CXX=
12161 enable_shared_with_static_runtimes_CXX=no
12162
12163 # Source file extension for C++ test sources.
12164 ac_ext=cpp
12165
12166 # Object file extension for compiled C++ test sources.
12167 objext=o
12168 objext_CXX=$objext
12169
12170 # No sense in running all these tests if we already determined that
12171 # the CXX compiler isn't working. Some variables (like enable_shared)
12172 # are currently assumed to apply to all compilers on this platform,
12173 # and will be corrupted by setting them based on a non-working compiler.
12174 if test "$_lt_caught_CXX_error" != yes; then
12175 # Code to be used in simple compile tests
12176 lt_simple_compile_test_code="int some_variable = 0;"
12177
12178 # Code to be used in simple link tests
12179 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12180
12181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12182
12183
12184
12185
12186
12187
12188 # If no C compiler was specified, use CC.
12189 LTCC=${LTCC-"$CC"}
12190
12191 # If no C compiler flags were specified, use CFLAGS.
12192 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12193
12194 # Allow CC to be a program name with arguments.
12195 compiler=$CC
12196
12197
12198 # save warnings/boilerplate of simple test code
12199 ac_outfile=conftest.$ac_objext
12200 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12201 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12202 _lt_compiler_boilerplate=`cat conftest.err`
12203 $RM conftest*
12204
12205 ac_outfile=conftest.$ac_objext
12206 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12207 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12208 _lt_linker_boilerplate=`cat conftest.err`
12209 $RM -r conftest*
12210
12211
12212 # Allow CC to be a program name with arguments.
12213 lt_save_CC=$CC
12214 lt_save_CFLAGS=$CFLAGS
12215 lt_save_LD=$LD
12216 lt_save_GCC=$GCC
12217 GCC=$GXX
12218 lt_save_with_gnu_ld=$with_gnu_ld
12219 lt_save_path_LD=$lt_cv_path_LD
12220 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12221 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12222 else
12223 $as_unset lt_cv_prog_gnu_ld
12224 fi
12225 if test -n "${lt_cv_path_LDCXX+set}"; then
12226 lt_cv_path_LD=$lt_cv_path_LDCXX
12227 else
12228 $as_unset lt_cv_path_LD
12229 fi
12230 test -z "${LDCXX+set}" || LD=$LDCXX
12231 CC=${CXX-"c++"}
12232 CFLAGS=$CXXFLAGS
12233 compiler=$CC
12234 compiler_CXX=$CC
12235 for cc_temp in $compiler""; do
12236 case $cc_temp in
12237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12239 \-*) ;;
12240 *) break;;
12241 esac
12242 done
12243 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12244
12245
12246 if test -n "$compiler"; then
12247 # We don't want -fno-exception when compiling C++ code, so set the
12248 # no_builtin_flag separately
12249 if test "$GXX" = yes; then
12250 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12251 else
12252 lt_prog_compiler_no_builtin_flag_CXX=
12253 fi
12254
12255 if test "$GXX" = yes; then
12256 # Set up default GNU C++ configuration
12257
12258
12259
12260 # Check whether --with-gnu-ld was given.
12261 if test "${with_gnu_ld+set}" = set; then :
12262 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12263 else
12264 with_gnu_ld=no
12265 fi
12266
12267 ac_prog=ld
12268 if test "$GCC" = yes; then
12269 # Check if gcc -print-prog-name=ld gives a path.
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12271 $as_echo_n "checking for ld used by $CC... " >&6; }
12272 case $host in
12273 *-*-mingw*)
12274 # gcc leaves a trailing carriage return which upsets mingw
12275 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12276 *)
12277 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12278 esac
12279 case $ac_prog in
12280 # Accept absolute paths.
12281 [\\/]* | ?:[\\/]*)
12282 re_direlt='/[^/][^/]*/\.\./'
12283 # Canonicalize the pathname of ld
12284 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12285 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12286 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12287 done
12288 test -z "$LD" && LD="$ac_prog"
12289 ;;
12290 "")
12291 # If it fails, then pretend we aren't using GCC.
12292 ac_prog=ld
12293 ;;
12294 *)
12295 # If it is relative, then search for the first ld in PATH.
12296 with_gnu_ld=unknown
12297 ;;
12298 esac
12299 elif test "$with_gnu_ld" = yes; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12301 $as_echo_n "checking for GNU ld... " >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12304 $as_echo_n "checking for non-GNU ld... " >&6; }
12305 fi
12306 if ${lt_cv_path_LD+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 if test -z "$LD"; then
12310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12311 for ac_dir in $PATH; do
12312 IFS="$lt_save_ifs"
12313 test -z "$ac_dir" && ac_dir=.
12314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12315 lt_cv_path_LD="$ac_dir/$ac_prog"
12316 # Check to see if the program is GNU ld. I'd rather use --version,
12317 # but apparently some variants of GNU ld only accept -v.
12318 # Break only if it was the GNU/non-GNU ld that we prefer.
12319 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12320 *GNU* | *'with BFD'*)
12321 test "$with_gnu_ld" != no && break
12322 ;;
12323 *)
12324 test "$with_gnu_ld" != yes && break
12325 ;;
12326 esac
12327 fi
12328 done
12329 IFS="$lt_save_ifs"
12330 else
12331 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12332 fi
12333 fi
12334
12335 LD="$lt_cv_path_LD"
12336 if test -n "$LD"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12338 $as_echo "$LD" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12346 if ${lt_cv_prog_gnu_ld+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12350 case `$LD -v 2>&1 </dev/null` in
12351 *GNU* | *'with BFD'*)
12352 lt_cv_prog_gnu_ld=yes
12353 ;;
12354 *)
12355 lt_cv_prog_gnu_ld=no
12356 ;;
12357 esac
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12360 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12361 with_gnu_ld=$lt_cv_prog_gnu_ld
12362
12363
12364
12365
12366
12367
12368
12369 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12370 # archiving commands below assume that GNU ld is being used.
12371 if test "$with_gnu_ld" = yes; then
12372 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12373 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'
12374
12375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12377
12378 # If archive_cmds runs LD, not CC, wlarc should be empty
12379 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12380 # investigate it a little bit more. (MM)
12381 wlarc='${wl}'
12382
12383 # ancient GNU ld didn't support --whole-archive et. al.
12384 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12385 $GREP 'no-whole-archive' > /dev/null; then
12386 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12387 else
12388 whole_archive_flag_spec_CXX=
12389 fi
12390 else
12391 with_gnu_ld=no
12392 wlarc=
12393
12394 # A generic and very simple default shared library creation
12395 # command for GNU C++ for the case where it uses the native
12396 # linker, instead of GNU ld. If possible, this setting should
12397 # overridden to take advantage of the native linker features on
12398 # the platform it is being used on.
12399 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12400 fi
12401
12402 # Commands to make compiler produce verbose output that lists
12403 # what "hidden" libraries, object files and flags are used when
12404 # linking a shared library.
12405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12406
12407 else
12408 GXX=no
12409 with_gnu_ld=no
12410 wlarc=
12411 fi
12412
12413 # PORTME: fill in a description of your system's C++ link characteristics
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12416 ld_shlibs_CXX=yes
12417 case $host_os in
12418 aix3*)
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12421 ;;
12422 aix[4-9]*)
12423 if test "$host_cpu" = ia64; then
12424 # On IA64, the linker does run time linking by default, so we don't
12425 # have to do anything special.
12426 aix_use_runtimelinking=no
12427 exp_sym_flag='-Bexport'
12428 no_entry_flag=""
12429 else
12430 aix_use_runtimelinking=no
12431
12432 # Test if we are trying to use run time linking or normal
12433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12434 # need to do runtime linking.
12435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12436 for ld_flag in $LDFLAGS; do
12437 case $ld_flag in
12438 *-brtl*)
12439 aix_use_runtimelinking=yes
12440 break
12441 ;;
12442 esac
12443 done
12444 ;;
12445 esac
12446
12447 exp_sym_flag='-bexport'
12448 no_entry_flag='-bnoentry'
12449 fi
12450
12451 # When large executables or shared objects are built, AIX ld can
12452 # have problems creating the table of contents. If linking a library
12453 # or program results in "error TOC overflow" add -mminimal-toc to
12454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12456
12457 archive_cmds_CXX=''
12458 hardcode_direct_CXX=yes
12459 hardcode_direct_absolute_CXX=yes
12460 hardcode_libdir_separator_CXX=':'
12461 link_all_deplibs_CXX=yes
12462 file_list_spec_CXX='${wl}-f,'
12463
12464 if test "$GXX" = yes; then
12465 case $host_os in aix4.[012]|aix4.[012].*)
12466 # We only want to do this on AIX 4.2 and lower, the check
12467 # below for broken collect2 doesn't work under 4.3+
12468 collect2name=`${CC} -print-prog-name=collect2`
12469 if test -f "$collect2name" &&
12470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12471 then
12472 # We have reworked collect2
12473 :
12474 else
12475 # We have old collect2
12476 hardcode_direct_CXX=unsupported
12477 # It fails to find uninstalled libraries when the uninstalled
12478 # path is not listed in the libpath. Setting hardcode_minus_L
12479 # to unsupported forces relinking
12480 hardcode_minus_L_CXX=yes
12481 hardcode_libdir_flag_spec_CXX='-L$libdir'
12482 hardcode_libdir_separator_CXX=
12483 fi
12484 esac
12485 shared_flag='-shared'
12486 if test "$aix_use_runtimelinking" = yes; then
12487 shared_flag="$shared_flag "'${wl}-G'
12488 fi
12489 else
12490 # not using gcc
12491 if test "$host_cpu" = ia64; then
12492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12493 # chokes on -Wl,-G. The following line is correct:
12494 shared_flag='-G'
12495 else
12496 if test "$aix_use_runtimelinking" = yes; then
12497 shared_flag='${wl}-G'
12498 else
12499 shared_flag='${wl}-bM:SRE'
12500 fi
12501 fi
12502 fi
12503
12504 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12505 # It seems that -bexpall does not export symbols beginning with
12506 # underscore (_), so it is better to generate a list of symbols to
12507 # export.
12508 always_export_symbols_CXX=yes
12509 if test "$aix_use_runtimelinking" = yes; then
12510 # Warning - without using the other runtime loading flags (-brtl),
12511 # -berok will link without error, but may produce a broken library.
12512 allow_undefined_flag_CXX='-berok'
12513 # Determine the default libpath from the value encoded in an empty
12514 # executable.
12515 if test "${lt_cv_aix_libpath+set}" = set; then
12516 aix_libpath=$lt_cv_aix_libpath
12517 else
12518 if ${lt_cv_aix_libpath__CXX+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 int
12525 main ()
12526 {
12527
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_cxx_try_link "$LINENO"; then :
12533
12534 lt_aix_libpath_sed='
12535 /Import File Strings/,/^$/ {
12536 /^0/ {
12537 s/^0 *\([^ ]*\) *$/\1/
12538 p
12539 }
12540 }'
12541 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12542 # Check for a 64-bit object if we didn't find anything.
12543 if test -z "$lt_cv_aix_libpath__CXX"; then
12544 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12545 fi
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 if test -z "$lt_cv_aix_libpath__CXX"; then
12550 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12551 fi
12552
12553 fi
12554
12555 aix_libpath=$lt_cv_aix_libpath__CXX
12556 fi
12557
12558 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12559
12560 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12561 else
12562 if test "$host_cpu" = ia64; then
12563 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12564 allow_undefined_flag_CXX="-z nodefs"
12565 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"
12566 else
12567 # Determine the default libpath from the value encoded in an
12568 # empty executable.
12569 if test "${lt_cv_aix_libpath+set}" = set; then
12570 aix_libpath=$lt_cv_aix_libpath
12571 else
12572 if ${lt_cv_aix_libpath__CXX+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577
12578 int
12579 main ()
12580 {
12581
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_cxx_try_link "$LINENO"; then :
12587
12588 lt_aix_libpath_sed='
12589 /Import File Strings/,/^$/ {
12590 /^0/ {
12591 s/^0 *\([^ ]*\) *$/\1/
12592 p
12593 }
12594 }'
12595 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596 # Check for a 64-bit object if we didn't find anything.
12597 if test -z "$lt_cv_aix_libpath__CXX"; then
12598 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599 fi
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 if test -z "$lt_cv_aix_libpath__CXX"; then
12604 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12605 fi
12606
12607 fi
12608
12609 aix_libpath=$lt_cv_aix_libpath__CXX
12610 fi
12611
12612 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12613 # Warning - without using the other run time loading flags,
12614 # -berok will link without error, but may produce a broken library.
12615 no_undefined_flag_CXX=' ${wl}-bernotok'
12616 allow_undefined_flag_CXX=' ${wl}-berok'
12617 if test "$with_gnu_ld" = yes; then
12618 # We only use this code for GNU lds that support --whole-archive.
12619 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12620 else
12621 # Exported symbols can be pulled into shared objects from archives
12622 whole_archive_flag_spec_CXX='$convenience'
12623 fi
12624 archive_cmds_need_lc_CXX=yes
12625 # This is similar to how AIX traditionally builds its shared
12626 # libraries.
12627 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12628 fi
12629 fi
12630 ;;
12631
12632 beos*)
12633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12634 allow_undefined_flag_CXX=unsupported
12635 # Joseph Beckenbach <[email protected]> says some releases of gcc
12636 # support --undefined. This deserves some investigation. FIXME
12637 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12638 else
12639 ld_shlibs_CXX=no
12640 fi
12641 ;;
12642
12643 chorus*)
12644 case $cc_basename in
12645 *)
12646 # FIXME: insert proper C++ library support
12647 ld_shlibs_CXX=no
12648 ;;
12649 esac
12650 ;;
12651
12652 cygwin* | mingw* | pw32* | cegcc*)
12653 case $GXX,$cc_basename in
12654 ,cl* | no,cl*)
12655 # Native MSVC
12656 # hardcode_libdir_flag_spec is actually meaningless, as there is
12657 # no search path for DLLs.
12658 hardcode_libdir_flag_spec_CXX=' '
12659 allow_undefined_flag_CXX=unsupported
12660 always_export_symbols_CXX=yes
12661 file_list_spec_CXX='@'
12662 # Tell ltmain to make .lib files, not .a files.
12663 libext=lib
12664 # Tell ltmain to make .dll files, not .so files.
12665 shrext_cmds=".dll"
12666 # FIXME: Setting linknames here is a bad hack.
12667 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12668 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12669 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12670 else
12671 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12672 fi~
12673 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12674 linknames='
12675 # The linker will not automatically build a static lib if we build a DLL.
12676 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12677 enable_shared_with_static_runtimes_CXX=yes
12678 # Don't use ranlib
12679 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12680 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12681 lt_tool_outputfile="@TOOL_OUTPUT@"~
12682 case $lt_outputfile in
12683 *.exe|*.EXE) ;;
12684 *)
12685 lt_outputfile="$lt_outputfile.exe"
12686 lt_tool_outputfile="$lt_tool_outputfile.exe"
12687 ;;
12688 esac~
12689 func_to_tool_file "$lt_outputfile"~
12690 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12691 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12692 $RM "$lt_outputfile.manifest";
12693 fi'
12694 ;;
12695 *)
12696 # g++
12697 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12698 # as there is no search path for DLLs.
12699 hardcode_libdir_flag_spec_CXX='-L$libdir'
12700 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12701 allow_undefined_flag_CXX=unsupported
12702 always_export_symbols_CXX=no
12703 enable_shared_with_static_runtimes_CXX=yes
12704
12705 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12706 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'
12707 # If the export-symbols file already is a .def file (1st line
12708 # is EXPORTS), use it as is; otherwise, prepend...
12709 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12710 cp $export_symbols $output_objdir/$soname.def;
12711 else
12712 echo EXPORTS > $output_objdir/$soname.def;
12713 cat $export_symbols >> $output_objdir/$soname.def;
12714 fi~
12715 $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'
12716 else
12717 ld_shlibs_CXX=no
12718 fi
12719 ;;
12720 esac
12721 ;;
12722 darwin* | rhapsody*)
12723
12724
12725 archive_cmds_need_lc_CXX=no
12726 hardcode_direct_CXX=no
12727 hardcode_automatic_CXX=yes
12728 hardcode_shlibpath_var_CXX=unsupported
12729 if test "$lt_cv_ld_force_load" = "yes"; then
12730 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\"`'
12731
12732 else
12733 whole_archive_flag_spec_CXX=''
12734 fi
12735 link_all_deplibs_CXX=yes
12736 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12737 case $cc_basename in
12738 ifort*) _lt_dar_can_shared=yes ;;
12739 *) _lt_dar_can_shared=$GCC ;;
12740 esac
12741 if test "$_lt_dar_can_shared" = "yes"; then
12742 output_verbose_link_cmd=func_echo_all
12743 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}"
12744 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12745 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}"
12746 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}"
12747 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12748 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}"
12749 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}"
12750 fi
12751
12752 else
12753 ld_shlibs_CXX=no
12754 fi
12755
12756 ;;
12757
12758 dgux*)
12759 case $cc_basename in
12760 ec++*)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12763 ;;
12764 ghcx*)
12765 # Green Hills C++ Compiler
12766 # FIXME: insert proper C++ library support
12767 ld_shlibs_CXX=no
12768 ;;
12769 *)
12770 # FIXME: insert proper C++ library support
12771 ld_shlibs_CXX=no
12772 ;;
12773 esac
12774 ;;
12775
12776 freebsd2.*)
12777 # C++ shared libraries reported to be fairly broken before
12778 # switch to ELF
12779 ld_shlibs_CXX=no
12780 ;;
12781
12782 freebsd-elf*)
12783 archive_cmds_need_lc_CXX=no
12784 ;;
12785
12786 freebsd* | dragonfly*)
12787 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12788 # conventions
12789 ld_shlibs_CXX=yes
12790 ;;
12791
12792 haiku*)
12793 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 link_all_deplibs_CXX=yes
12795 ;;
12796
12797 hpux9*)
12798 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12799 hardcode_libdir_separator_CXX=:
12800 export_dynamic_flag_spec_CXX='${wl}-E'
12801 hardcode_direct_CXX=yes
12802 hardcode_minus_L_CXX=yes # Not in the search PATH,
12803 # but as the default
12804 # location of the library.
12805
12806 case $cc_basename in
12807 CC*)
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12810 ;;
12811 aCC*)
12812 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12813 # Commands to make compiler produce verbose output that lists
12814 # what "hidden" libraries, object files and flags are used when
12815 # linking a shared library.
12816 #
12817 # There doesn't appear to be a way to prevent this compiler from
12818 # explicitly linking system object files so we need to strip them
12819 # from the output so that they don't get included in the library
12820 # dependencies.
12821 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"'
12822 ;;
12823 *)
12824 if test "$GXX" = yes; then
12825 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12826 else
12827 # FIXME: insert proper C++ library support
12828 ld_shlibs_CXX=no
12829 fi
12830 ;;
12831 esac
12832 ;;
12833
12834 hpux10*|hpux11*)
12835 if test $with_gnu_ld = no; then
12836 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12837 hardcode_libdir_separator_CXX=:
12838
12839 case $host_cpu in
12840 hppa*64*|ia64*)
12841 ;;
12842 *)
12843 export_dynamic_flag_spec_CXX='${wl}-E'
12844 ;;
12845 esac
12846 fi
12847 case $host_cpu in
12848 hppa*64*|ia64*)
12849 hardcode_direct_CXX=no
12850 hardcode_shlibpath_var_CXX=no
12851 ;;
12852 *)
12853 hardcode_direct_CXX=yes
12854 hardcode_direct_absolute_CXX=yes
12855 hardcode_minus_L_CXX=yes # Not in the search PATH,
12856 # but as the default
12857 # location of the library.
12858 ;;
12859 esac
12860
12861 case $cc_basename in
12862 CC*)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 aCC*)
12867 case $host_cpu in
12868 hppa*64*)
12869 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870 ;;
12871 ia64*)
12872 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 ;;
12874 *)
12875 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 esac
12878 # Commands to make compiler produce verbose output that lists
12879 # what "hidden" libraries, object files and flags are used when
12880 # linking a shared library.
12881 #
12882 # There doesn't appear to be a way to prevent this compiler from
12883 # explicitly linking system object files so we need to strip them
12884 # from the output so that they don't get included in the library
12885 # dependencies.
12886 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"'
12887 ;;
12888 *)
12889 if test "$GXX" = yes; then
12890 if test $with_gnu_ld = no; then
12891 case $host_cpu in
12892 hppa*64*)
12893 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12894 ;;
12895 ia64*)
12896 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897 ;;
12898 *)
12899 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'
12900 ;;
12901 esac
12902 fi
12903 else
12904 # FIXME: insert proper C++ library support
12905 ld_shlibs_CXX=no
12906 fi
12907 ;;
12908 esac
12909 ;;
12910
12911 interix[3-9]*)
12912 hardcode_direct_CXX=no
12913 hardcode_shlibpath_var_CXX=no
12914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12915 export_dynamic_flag_spec_CXX='${wl}-E'
12916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12917 # Instead, shared libraries are loaded at an image base (0x10000000 by
12918 # default) and relocated if they conflict, which is a slow very memory
12919 # consuming and fragmenting process. To avoid this, we pick a random,
12920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12922 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'
12923 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'
12924 ;;
12925 irix5* | irix6*)
12926 case $cc_basename in
12927 CC*)
12928 # SGI C++
12929 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'
12930
12931 # Archives containing C++ object files must be created using
12932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12933 # necessary to make sure instantiated templates are included
12934 # in the archive.
12935 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12936 ;;
12937 *)
12938 if test "$GXX" = yes; then
12939 if test "$with_gnu_ld" = no; then
12940 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'
12941 else
12942 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'
12943 fi
12944 fi
12945 link_all_deplibs_CXX=yes
12946 ;;
12947 esac
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator_CXX=:
12950 inherit_rpath_CXX=yes
12951 ;;
12952
12953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12954 case $cc_basename in
12955 KCC*)
12956 # Kuck and Associates, Inc. (KAI) C++ Compiler
12957
12958 # KCC will only create a shared library if the output file
12959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12960 # to its proper name (with version) after linking.
12961 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'
12962 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'
12963 # Commands to make compiler produce verbose output that lists
12964 # what "hidden" libraries, object files and flags are used when
12965 # linking a shared library.
12966 #
12967 # There doesn't appear to be a way to prevent this compiler from
12968 # explicitly linking system object files so we need to strip them
12969 # from the output so that they don't get included in the library
12970 # dependencies.
12971 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"'
12972
12973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12975
12976 # Archives containing C++ object files must be created using
12977 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12978 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12979 ;;
12980 icpc* | ecpc* )
12981 # Intel C++
12982 with_gnu_ld=yes
12983 # version 8.0 and above of icpc choke on multiply defined symbols
12984 # if we add $predep_objects and $postdep_objects, however 7.1 and
12985 # earlier do not add the objects themselves.
12986 case `$CC -V 2>&1` in
12987 *"Version 7."*)
12988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 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'
12990 ;;
12991 *) # Version 8.0 or newer
12992 tmp_idyn=
12993 case $host_cpu in
12994 ia64*) tmp_idyn=' -i_dynamic';;
12995 esac
12996 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12997 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'
12998 ;;
12999 esac
13000 archive_cmds_need_lc_CXX=no
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13004 ;;
13005 pgCC* | pgcpp*)
13006 # Portland Group C++ compiler
13007 case `$CC -V` in
13008 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13009 prelink_cmds_CXX='tpldir=Template.dir~
13010 rm -rf $tpldir~
13011 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13012 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13013 old_archive_cmds_CXX='tpldir=Template.dir~
13014 rm -rf $tpldir~
13015 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13016 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13017 $RANLIB $oldlib'
13018 archive_cmds_CXX='tpldir=Template.dir~
13019 rm -rf $tpldir~
13020 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13021 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13022 archive_expsym_cmds_CXX='tpldir=Template.dir~
13023 rm -rf $tpldir~
13024 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13025 $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'
13026 ;;
13027 *) # Version 6 and above use weak symbols
13028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13029 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'
13030 ;;
13031 esac
13032
13033 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13035 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'
13036 ;;
13037 cxx*)
13038 # Compaq C++
13039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 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'
13041
13042 runpath_var=LD_RUN_PATH
13043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13044 hardcode_libdir_separator_CXX=:
13045
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 #
13050 # There doesn't appear to be a way to prevent this compiler from
13051 # explicitly linking system object files so we need to strip them
13052 # from the output so that they don't get included in the library
13053 # dependencies.
13054 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'
13055 ;;
13056 xl* | mpixl* | bgxl*)
13057 # IBM XL 8.0 on PPC, with GNU ld
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13060 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 if test "x$supports_anon_versioning" = xyes; then
13062 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13064 echo "local: *; };" >> $output_objdir/$libname.ver~
13065 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13066 fi
13067 ;;
13068 *)
13069 case `$CC -V 2>&1 | sed 5q` in
13070 *Sun\ C*)
13071 # Sun C++ 5.9
13072 no_undefined_flag_CXX=' -zdefs'
13073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074 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'
13075 hardcode_libdir_flag_spec_CXX='-R$libdir'
13076 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'
13077 compiler_needs_object_CXX=yes
13078
13079 # Not sure whether something based on
13080 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13081 # would be better.
13082 output_verbose_link_cmd='func_echo_all'
13083
13084 # Archives containing C++ object files must be created using
13085 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13086 # necessary to make sure instantiated templates are included
13087 # in the archive.
13088 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13089 ;;
13090 esac
13091 ;;
13092 esac
13093 ;;
13094
13095 lynxos*)
13096 # FIXME: insert proper C++ library support
13097 ld_shlibs_CXX=no
13098 ;;
13099
13100 m88k*)
13101 # FIXME: insert proper C++ library support
13102 ld_shlibs_CXX=no
13103 ;;
13104
13105 mvs*)
13106 case $cc_basename in
13107 cxx*)
13108 # FIXME: insert proper C++ library support
13109 ld_shlibs_CXX=no
13110 ;;
13111 *)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 esac
13116 ;;
13117
13118 netbsd*)
13119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13120 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13121 wlarc=
13122 hardcode_libdir_flag_spec_CXX='-R$libdir'
13123 hardcode_direct_CXX=yes
13124 hardcode_shlibpath_var_CXX=no
13125 fi
13126 # Workaround some broken pre-1.5 toolchains
13127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13128 ;;
13129
13130 *nto* | *qnx*)
13131 ld_shlibs_CXX=yes
13132 ;;
13133
13134 openbsd2*)
13135 # C++ shared libraries are fairly broken
13136 ld_shlibs_CXX=no
13137 ;;
13138
13139 openbsd*)
13140 if test -f /usr/libexec/ld.so; then
13141 hardcode_direct_CXX=yes
13142 hardcode_shlibpath_var_CXX=no
13143 hardcode_direct_absolute_CXX=yes
13144 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13147 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13148 export_dynamic_flag_spec_CXX='${wl}-E'
13149 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13150 fi
13151 output_verbose_link_cmd=func_echo_all
13152 else
13153 ld_shlibs_CXX=no
13154 fi
13155 ;;
13156
13157 osf3* | osf4* | osf5*)
13158 case $cc_basename in
13159 KCC*)
13160 # Kuck and Associates, Inc. (KAI) C++ Compiler
13161
13162 # KCC will only create a shared library if the output file
13163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13164 # to its proper name (with version) after linking.
13165 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'
13166
13167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13168 hardcode_libdir_separator_CXX=:
13169
13170 # Archives containing C++ object files must be created using
13171 # the KAI C++ compiler.
13172 case $host in
13173 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13174 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13175 esac
13176 ;;
13177 RCC*)
13178 # Rational C++ 2.4.1
13179 # FIXME: insert proper C++ library support
13180 ld_shlibs_CXX=no
13181 ;;
13182 cxx*)
13183 case $host in
13184 osf3*)
13185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13186 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'
13187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13188 ;;
13189 *)
13190 allow_undefined_flag_CXX=' -expect_unresolved \*'
13191 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'
13192 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13193 echo "-hidden">> $lib.exp~
13194 $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~
13195 $RM $lib.exp'
13196 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13197 ;;
13198 esac
13199
13200 hardcode_libdir_separator_CXX=:
13201
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 #
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 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"'
13211 ;;
13212 *)
13213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13214 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13215 case $host in
13216 osf3*)
13217 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'
13218 ;;
13219 *)
13220 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'
13221 ;;
13222 esac
13223
13224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13225 hardcode_libdir_separator_CXX=:
13226
13227 # Commands to make compiler produce verbose output that lists
13228 # what "hidden" libraries, object files and flags are used when
13229 # linking a shared library.
13230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13231
13232 else
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 fi
13236 ;;
13237 esac
13238 ;;
13239
13240 psos*)
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244
13245 sunos4*)
13246 case $cc_basename in
13247 CC*)
13248 # Sun C++ 4.x
13249 # FIXME: insert proper C++ library support
13250 ld_shlibs_CXX=no
13251 ;;
13252 lcc*)
13253 # Lucid
13254 # FIXME: insert proper C++ library support
13255 ld_shlibs_CXX=no
13256 ;;
13257 *)
13258 # FIXME: insert proper C++ library support
13259 ld_shlibs_CXX=no
13260 ;;
13261 esac
13262 ;;
13263
13264 solaris*)
13265 case $cc_basename in
13266 CC* | sunCC*)
13267 # Sun C++ 4.2, 5.x and Centerline C++
13268 archive_cmds_need_lc_CXX=yes
13269 no_undefined_flag_CXX=' -zdefs'
13270 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13272 $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'
13273
13274 hardcode_libdir_flag_spec_CXX='-R$libdir'
13275 hardcode_shlibpath_var_CXX=no
13276 case $host_os in
13277 solaris2.[0-5] | solaris2.[0-5].*) ;;
13278 *)
13279 # The compiler driver will combine and reorder linker options,
13280 # but understands `-z linker_flag'.
13281 # Supported since Solaris 2.6 (maybe 2.5.1?)
13282 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13283 ;;
13284 esac
13285 link_all_deplibs_CXX=yes
13286
13287 output_verbose_link_cmd='func_echo_all'
13288
13289 # Archives containing C++ object files must be created using
13290 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13291 # necessary to make sure instantiated templates are included
13292 # in the archive.
13293 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13294 ;;
13295 gcx*)
13296 # Green Hills C++ Compiler
13297 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13298
13299 # The C++ compiler must be used to create the archive.
13300 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13301 ;;
13302 *)
13303 # GNU C++ compiler with Solaris linker
13304 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13305 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13306 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13307 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13308 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13309 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13310
13311 # Commands to make compiler produce verbose output that lists
13312 # what "hidden" libraries, object files and flags are used when
13313 # linking a shared library.
13314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13315 else
13316 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13317 # platform.
13318 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13319 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13320 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13321
13322 # Commands to make compiler produce verbose output that lists
13323 # what "hidden" libraries, object files and flags are used when
13324 # linking a shared library.
13325 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13326 fi
13327
13328 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13329 case $host_os in
13330 solaris2.[0-5] | solaris2.[0-5].*) ;;
13331 *)
13332 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13333 ;;
13334 esac
13335 fi
13336 ;;
13337 esac
13338 ;;
13339
13340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13341 no_undefined_flag_CXX='${wl}-z,text'
13342 archive_cmds_need_lc_CXX=no
13343 hardcode_shlibpath_var_CXX=no
13344 runpath_var='LD_RUN_PATH'
13345
13346 case $cc_basename in
13347 CC*)
13348 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13349 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 ;;
13351 *)
13352 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 ;;
13355 esac
13356 ;;
13357
13358 sysv5* | sco3.2v5* | sco5v6*)
13359 # Note: We can NOT use -z defs as we might desire, because we do not
13360 # link with -lc, and that would cause any symbols used from libc to
13361 # always be unresolved, which means just about no library would
13362 # ever link correctly. If we're not using GNU ld we use -z text
13363 # though, which does catch some bad symbols but isn't as heavy-handed
13364 # as -z defs.
13365 no_undefined_flag_CXX='${wl}-z,text'
13366 allow_undefined_flag_CXX='${wl}-z,nodefs'
13367 archive_cmds_need_lc_CXX=no
13368 hardcode_shlibpath_var_CXX=no
13369 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13370 hardcode_libdir_separator_CXX=':'
13371 link_all_deplibs_CXX=yes
13372 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13373 runpath_var='LD_RUN_PATH'
13374
13375 case $cc_basename in
13376 CC*)
13377 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13378 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13380 '"$old_archive_cmds_CXX"
13381 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13382 '"$reload_cmds_CXX"
13383 ;;
13384 *)
13385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 esac
13389 ;;
13390
13391 tandem*)
13392 case $cc_basename in
13393 NCC*)
13394 # NonStop-UX NCC 3.20
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13397 ;;
13398 *)
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13401 ;;
13402 esac
13403 ;;
13404
13405 vxworks*)
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13408 ;;
13409
13410 *)
13411 # FIXME: insert proper C++ library support
13412 ld_shlibs_CXX=no
13413 ;;
13414 esac
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13417 $as_echo "$ld_shlibs_CXX" >&6; }
13418 test "$ld_shlibs_CXX" = no && can_build_shared=no
13419
13420 GCC_CXX="$GXX"
13421 LD_CXX="$LD"
13422
13423 ## CAVEAT EMPTOR:
13424 ## There is no encapsulation within the following macros, do not change
13425 ## the running order or otherwise move them around unless you know exactly
13426 ## what you are doing...
13427 # Dependencies to place before and after the object being linked:
13428 predep_objects_CXX=
13429 postdep_objects_CXX=
13430 predeps_CXX=
13431 postdeps_CXX=
13432 compiler_lib_search_path_CXX=
13433
13434 cat > conftest.$ac_ext <<_LT_EOF
13435 class Foo
13436 {
13437 public:
13438 Foo (void) { a = 0; }
13439 private:
13440 int a;
13441 };
13442 _LT_EOF
13443
13444
13445 _lt_libdeps_save_CFLAGS=$CFLAGS
13446 case "$CC $CFLAGS " in #(
13447 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13448 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13449 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13450 esac
13451
13452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13453 (eval $ac_compile) 2>&5
13454 ac_status=$?
13455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13456 test $ac_status = 0; }; then
13457 # Parse the compiler output and extract the necessary
13458 # objects, libraries and library flags.
13459
13460 # Sentinel used to keep track of whether or not we are before
13461 # the conftest object file.
13462 pre_test_object_deps_done=no
13463
13464 for p in `eval "$output_verbose_link_cmd"`; do
13465 case ${prev}${p} in
13466
13467 -L* | -R* | -l*)
13468 # Some compilers place space between "-{L,R}" and the path.
13469 # Remove the space.
13470 if test $p = "-L" ||
13471 test $p = "-R"; then
13472 prev=$p
13473 continue
13474 fi
13475
13476 # Expand the sysroot to ease extracting the directories later.
13477 if test -z "$prev"; then
13478 case $p in
13479 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13480 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13481 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13482 esac
13483 fi
13484 case $p in
13485 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13486 esac
13487 if test "$pre_test_object_deps_done" = no; then
13488 case ${prev} in
13489 -L | -R)
13490 # Internal compiler library paths should come after those
13491 # provided the user. The postdeps already come after the
13492 # user supplied libs so there is no need to process them.
13493 if test -z "$compiler_lib_search_path_CXX"; then
13494 compiler_lib_search_path_CXX="${prev}${p}"
13495 else
13496 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13497 fi
13498 ;;
13499 # The "-l" case would never come before the object being
13500 # linked, so don't bother handling this case.
13501 esac
13502 else
13503 if test -z "$postdeps_CXX"; then
13504 postdeps_CXX="${prev}${p}"
13505 else
13506 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13507 fi
13508 fi
13509 prev=
13510 ;;
13511
13512 *.lto.$objext) ;; # Ignore GCC LTO objects
13513 *.$objext)
13514 # This assumes that the test object file only shows up
13515 # once in the compiler output.
13516 if test "$p" = "conftest.$objext"; then
13517 pre_test_object_deps_done=yes
13518 continue
13519 fi
13520
13521 if test "$pre_test_object_deps_done" = no; then
13522 if test -z "$predep_objects_CXX"; then
13523 predep_objects_CXX="$p"
13524 else
13525 predep_objects_CXX="$predep_objects_CXX $p"
13526 fi
13527 else
13528 if test -z "$postdep_objects_CXX"; then
13529 postdep_objects_CXX="$p"
13530 else
13531 postdep_objects_CXX="$postdep_objects_CXX $p"
13532 fi
13533 fi
13534 ;;
13535
13536 *) ;; # Ignore the rest.
13537
13538 esac
13539 done
13540
13541 # Clean up.
13542 rm -f a.out a.exe
13543 else
13544 echo "libtool.m4: error: problem compiling CXX test program"
13545 fi
13546
13547 $RM -f confest.$objext
13548 CFLAGS=$_lt_libdeps_save_CFLAGS
13549
13550 # PORTME: override above test on systems where it is broken
13551 case $host_os in
13552 interix[3-9]*)
13553 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13554 # hack all around it, let's just trust "g++" to DTRT.
13555 predep_objects_CXX=
13556 postdep_objects_CXX=
13557 postdeps_CXX=
13558 ;;
13559
13560 linux*)
13561 case `$CC -V 2>&1 | sed 5q` in
13562 *Sun\ C*)
13563 # Sun C++ 5.9
13564
13565 # The more standards-conforming stlport4 library is
13566 # incompatible with the Cstd library. Avoid specifying
13567 # it if it's in CXXFLAGS. Ignore libCrun as
13568 # -library=stlport4 depends on it.
13569 case " $CXX $CXXFLAGS " in
13570 *" -library=stlport4 "*)
13571 solaris_use_stlport4=yes
13572 ;;
13573 esac
13574
13575 if test "$solaris_use_stlport4" != yes; then
13576 postdeps_CXX='-library=Cstd -library=Crun'
13577 fi
13578 ;;
13579 esac
13580 ;;
13581
13582 solaris*)
13583 case $cc_basename in
13584 CC* | sunCC*)
13585 # The more standards-conforming stlport4 library is
13586 # incompatible with the Cstd library. Avoid specifying
13587 # it if it's in CXXFLAGS. Ignore libCrun as
13588 # -library=stlport4 depends on it.
13589 case " $CXX $CXXFLAGS " in
13590 *" -library=stlport4 "*)
13591 solaris_use_stlport4=yes
13592 ;;
13593 esac
13594
13595 # Adding this requires a known-good setup of shared libraries for
13596 # Sun compiler versions before 5.6, else PIC objects from an old
13597 # archive will be linked into the output, leading to subtle bugs.
13598 if test "$solaris_use_stlport4" != yes; then
13599 postdeps_CXX='-library=Cstd -library=Crun'
13600 fi
13601 ;;
13602 esac
13603 ;;
13604 esac
13605
13606
13607 case " $postdeps_CXX " in
13608 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13609 esac
13610 compiler_lib_search_dirs_CXX=
13611 if test -n "${compiler_lib_search_path_CXX}"; then
13612 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13613 fi
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645 lt_prog_compiler_wl_CXX=
13646 lt_prog_compiler_pic_CXX=
13647 lt_prog_compiler_static_CXX=
13648
13649
13650 # C++ specific cases for pic, static, wl, etc.
13651 if test "$GXX" = yes; then
13652 lt_prog_compiler_wl_CXX='-Wl,'
13653 lt_prog_compiler_static_CXX='-static'
13654
13655 case $host_os in
13656 aix*)
13657 # All AIX code is PIC.
13658 if test "$host_cpu" = ia64; then
13659 # AIX 5 now supports IA64 processor
13660 lt_prog_compiler_static_CXX='-Bstatic'
13661 fi
13662 ;;
13663
13664 amigaos*)
13665 case $host_cpu in
13666 powerpc)
13667 # see comment about AmigaOS4 .so support
13668 lt_prog_compiler_pic_CXX='-fPIC'
13669 ;;
13670 m68k)
13671 # FIXME: we need at least 68020 code to build shared libraries, but
13672 # adding the `-m68020' flag to GCC prevents building anything better,
13673 # like `-m68040'.
13674 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13675 ;;
13676 esac
13677 ;;
13678
13679 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13680 # PIC is the default for these OSes.
13681 ;;
13682 mingw* | cygwin* | os2* | pw32* | cegcc*)
13683 # This hack is so that the source file can tell whether it is being
13684 # built for inclusion in a dll (and should export symbols for example).
13685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13686 # (--disable-auto-import) libraries
13687 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13688 ;;
13689 darwin* | rhapsody*)
13690 # PIC is the default on this platform
13691 # Common symbols not allowed in MH_DYLIB files
13692 lt_prog_compiler_pic_CXX='-fno-common'
13693 ;;
13694 *djgpp*)
13695 # DJGPP does not support shared libraries at all
13696 lt_prog_compiler_pic_CXX=
13697 ;;
13698 haiku*)
13699 # PIC is the default for Haiku.
13700 # The "-static" flag exists, but is broken.
13701 lt_prog_compiler_static_CXX=
13702 ;;
13703 interix[3-9]*)
13704 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13705 # Instead, we relocate shared libraries at runtime.
13706 ;;
13707 sysv4*MP*)
13708 if test -d /usr/nec; then
13709 lt_prog_compiler_pic_CXX=-Kconform_pic
13710 fi
13711 ;;
13712 hpux*)
13713 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13714 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13715 # sets the default TLS model and affects inlining.
13716 case $host_cpu in
13717 hppa*64*)
13718 ;;
13719 *)
13720 lt_prog_compiler_pic_CXX='-fPIC'
13721 ;;
13722 esac
13723 ;;
13724 *qnx* | *nto*)
13725 # QNX uses GNU C++, but need to define -shared option too, otherwise
13726 # it will coredump.
13727 lt_prog_compiler_pic_CXX='-fPIC -shared'
13728 ;;
13729 *)
13730 lt_prog_compiler_pic_CXX='-fPIC'
13731 ;;
13732 esac
13733 else
13734 case $host_os in
13735 aix[4-9]*)
13736 # All AIX code is PIC.
13737 if test "$host_cpu" = ia64; then
13738 # AIX 5 now supports IA64 processor
13739 lt_prog_compiler_static_CXX='-Bstatic'
13740 else
13741 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13742 fi
13743 ;;
13744 chorus*)
13745 case $cc_basename in
13746 cxch68*)
13747 # Green Hills C++ Compiler
13748 # _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"
13749 ;;
13750 esac
13751 ;;
13752 mingw* | cygwin* | os2* | pw32* | cegcc*)
13753 # This hack is so that the source file can tell whether it is being
13754 # built for inclusion in a dll (and should export symbols for example).
13755 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13756 ;;
13757 dgux*)
13758 case $cc_basename in
13759 ec++*)
13760 lt_prog_compiler_pic_CXX='-KPIC'
13761 ;;
13762 ghcx*)
13763 # Green Hills C++ Compiler
13764 lt_prog_compiler_pic_CXX='-pic'
13765 ;;
13766 *)
13767 ;;
13768 esac
13769 ;;
13770 freebsd* | dragonfly*)
13771 # FreeBSD uses GNU C++
13772 ;;
13773 hpux9* | hpux10* | hpux11*)
13774 case $cc_basename in
13775 CC*)
13776 lt_prog_compiler_wl_CXX='-Wl,'
13777 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13778 if test "$host_cpu" != ia64; then
13779 lt_prog_compiler_pic_CXX='+Z'
13780 fi
13781 ;;
13782 aCC*)
13783 lt_prog_compiler_wl_CXX='-Wl,'
13784 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13785 case $host_cpu in
13786 hppa*64*|ia64*)
13787 # +Z the default
13788 ;;
13789 *)
13790 lt_prog_compiler_pic_CXX='+Z'
13791 ;;
13792 esac
13793 ;;
13794 *)
13795 ;;
13796 esac
13797 ;;
13798 interix*)
13799 # This is c89, which is MS Visual C++ (no shared libs)
13800 # Anyone wants to do a port?
13801 ;;
13802 irix5* | irix6* | nonstopux*)
13803 case $cc_basename in
13804 CC*)
13805 lt_prog_compiler_wl_CXX='-Wl,'
13806 lt_prog_compiler_static_CXX='-non_shared'
13807 # CC pic flag -KPIC is the default.
13808 ;;
13809 *)
13810 ;;
13811 esac
13812 ;;
13813 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13814 case $cc_basename in
13815 KCC*)
13816 # KAI C++ Compiler
13817 lt_prog_compiler_wl_CXX='--backend -Wl,'
13818 lt_prog_compiler_pic_CXX='-fPIC'
13819 ;;
13820 ecpc* )
13821 # old Intel C++ for x86_64 which still supported -KPIC.
13822 lt_prog_compiler_wl_CXX='-Wl,'
13823 lt_prog_compiler_pic_CXX='-KPIC'
13824 lt_prog_compiler_static_CXX='-static'
13825 ;;
13826 icpc* )
13827 # Intel C++, used to be incompatible with GCC.
13828 # ICC 10 doesn't accept -KPIC any more.
13829 lt_prog_compiler_wl_CXX='-Wl,'
13830 lt_prog_compiler_pic_CXX='-fPIC'
13831 lt_prog_compiler_static_CXX='-static'
13832 ;;
13833 pgCC* | pgcpp*)
13834 # Portland Group C++ compiler
13835 lt_prog_compiler_wl_CXX='-Wl,'
13836 lt_prog_compiler_pic_CXX='-fpic'
13837 lt_prog_compiler_static_CXX='-Bstatic'
13838 ;;
13839 cxx*)
13840 # Compaq C++
13841 # Make sure the PIC flag is empty. It appears that all Alpha
13842 # Linux and Compaq Tru64 Unix objects are PIC.
13843 lt_prog_compiler_pic_CXX=
13844 lt_prog_compiler_static_CXX='-non_shared'
13845 ;;
13846 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13847 # IBM XL 8.0, 9.0 on PPC and BlueGene
13848 lt_prog_compiler_wl_CXX='-Wl,'
13849 lt_prog_compiler_pic_CXX='-qpic'
13850 lt_prog_compiler_static_CXX='-qstaticlink'
13851 ;;
13852 *)
13853 case `$CC -V 2>&1 | sed 5q` in
13854 *Sun\ C*)
13855 # Sun C++ 5.9
13856 lt_prog_compiler_pic_CXX='-KPIC'
13857 lt_prog_compiler_static_CXX='-Bstatic'
13858 lt_prog_compiler_wl_CXX='-Qoption ld '
13859 ;;
13860 esac
13861 ;;
13862 esac
13863 ;;
13864 lynxos*)
13865 ;;
13866 m88k*)
13867 ;;
13868 mvs*)
13869 case $cc_basename in
13870 cxx*)
13871 lt_prog_compiler_pic_CXX='-W c,exportall'
13872 ;;
13873 *)
13874 ;;
13875 esac
13876 ;;
13877 netbsd* | netbsdelf*-gnu)
13878 ;;
13879 *qnx* | *nto*)
13880 # QNX uses GNU C++, but need to define -shared option too, otherwise
13881 # it will coredump.
13882 lt_prog_compiler_pic_CXX='-fPIC -shared'
13883 ;;
13884 osf3* | osf4* | osf5*)
13885 case $cc_basename in
13886 KCC*)
13887 lt_prog_compiler_wl_CXX='--backend -Wl,'
13888 ;;
13889 RCC*)
13890 # Rational C++ 2.4.1
13891 lt_prog_compiler_pic_CXX='-pic'
13892 ;;
13893 cxx*)
13894 # Digital/Compaq C++
13895 lt_prog_compiler_wl_CXX='-Wl,'
13896 # Make sure the PIC flag is empty. It appears that all Alpha
13897 # Linux and Compaq Tru64 Unix objects are PIC.
13898 lt_prog_compiler_pic_CXX=
13899 lt_prog_compiler_static_CXX='-non_shared'
13900 ;;
13901 *)
13902 ;;
13903 esac
13904 ;;
13905 psos*)
13906 ;;
13907 solaris*)
13908 case $cc_basename in
13909 CC* | sunCC*)
13910 # Sun C++ 4.2, 5.x and Centerline C++
13911 lt_prog_compiler_pic_CXX='-KPIC'
13912 lt_prog_compiler_static_CXX='-Bstatic'
13913 lt_prog_compiler_wl_CXX='-Qoption ld '
13914 ;;
13915 gcx*)
13916 # Green Hills C++ Compiler
13917 lt_prog_compiler_pic_CXX='-PIC'
13918 ;;
13919 *)
13920 ;;
13921 esac
13922 ;;
13923 sunos4*)
13924 case $cc_basename in
13925 CC*)
13926 # Sun C++ 4.x
13927 lt_prog_compiler_pic_CXX='-pic'
13928 lt_prog_compiler_static_CXX='-Bstatic'
13929 ;;
13930 lcc*)
13931 # Lucid
13932 lt_prog_compiler_pic_CXX='-pic'
13933 ;;
13934 *)
13935 ;;
13936 esac
13937 ;;
13938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13939 case $cc_basename in
13940 CC*)
13941 lt_prog_compiler_wl_CXX='-Wl,'
13942 lt_prog_compiler_pic_CXX='-KPIC'
13943 lt_prog_compiler_static_CXX='-Bstatic'
13944 ;;
13945 esac
13946 ;;
13947 tandem*)
13948 case $cc_basename in
13949 NCC*)
13950 # NonStop-UX NCC 3.20
13951 lt_prog_compiler_pic_CXX='-KPIC'
13952 ;;
13953 *)
13954 ;;
13955 esac
13956 ;;
13957 vxworks*)
13958 ;;
13959 *)
13960 lt_prog_compiler_can_build_shared_CXX=no
13961 ;;
13962 esac
13963 fi
13964
13965 case $host_os in
13966 # For platforms which do not support PIC, -DPIC is meaningless:
13967 *djgpp*)
13968 lt_prog_compiler_pic_CXX=
13969 ;;
13970 *)
13971 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13972 ;;
13973 esac
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13976 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13977 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13981 fi
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13983 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13984 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13985
13986 #
13987 # Check to make sure the PIC flag actually works.
13988 #
13989 if test -n "$lt_prog_compiler_pic_CXX"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13991 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13992 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 lt_cv_prog_compiler_pic_works_CXX=no
13996 ac_outfile=conftest.$ac_objext
13997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13998 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13999 # Insert the option either (1) after the last *FLAGS variable, or
14000 # (2) before a word containing "conftest.", or (3) at the end.
14001 # Note that $ac_compile itself does not contain backslashes and begins
14002 # with a dollar sign (not a hyphen), so the echo should work correctly.
14003 # The option is referenced via a variable to avoid confusing sed.
14004 lt_compile=`echo "$ac_compile" | $SED \
14005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14007 -e 's:$: $lt_compiler_flag:'`
14008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14009 (eval "$lt_compile" 2>conftest.err)
14010 ac_status=$?
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 if (exit $ac_status) && test -s "$ac_outfile"; then
14014 # The compiler can only warn and ignore the option if not recognized
14015 # So say no if there are warnings other than the usual output.
14016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14019 lt_cv_prog_compiler_pic_works_CXX=yes
14020 fi
14021 fi
14022 $RM conftest*
14023
14024 fi
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14026 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14027
14028 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14029 case $lt_prog_compiler_pic_CXX in
14030 "" | " "*) ;;
14031 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14032 esac
14033 else
14034 lt_prog_compiler_pic_CXX=
14035 lt_prog_compiler_can_build_shared_CXX=no
14036 fi
14037
14038 fi
14039
14040
14041
14042
14043
14044 #
14045 # Check to make sure the static flag actually works.
14046 #
14047 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14049 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14050 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 lt_cv_prog_compiler_static_works_CXX=no
14054 save_LDFLAGS="$LDFLAGS"
14055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14056 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14058 # The linker can only warn and ignore the option if not recognized
14059 # So say no if there are warnings
14060 if test -s conftest.err; then
14061 # Append any errors to the config.log.
14062 cat conftest.err 1>&5
14063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14065 if diff conftest.exp conftest.er2 >/dev/null; then
14066 lt_cv_prog_compiler_static_works_CXX=yes
14067 fi
14068 else
14069 lt_cv_prog_compiler_static_works_CXX=yes
14070 fi
14071 fi
14072 $RM -r conftest*
14073 LDFLAGS="$save_LDFLAGS"
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14077 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14078
14079 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14080 :
14081 else
14082 lt_prog_compiler_static_CXX=
14083 fi
14084
14085
14086
14087
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14090 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 lt_cv_prog_compiler_c_o_CXX=no
14094 $RM -r conftest 2>/dev/null
14095 mkdir conftest
14096 cd conftest
14097 mkdir out
14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099
14100 lt_compiler_flag="-o out/conftest2.$ac_objext"
14101 # Insert the option either (1) after the last *FLAGS variable, or
14102 # (2) before a word containing "conftest.", or (3) at the end.
14103 # Note that $ac_compile itself does not contain backslashes and begins
14104 # with a dollar sign (not a hyphen), so the echo should work correctly.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
14109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14110 (eval "$lt_compile" 2>out/conftest.err)
14111 ac_status=$?
14112 cat out/conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115 then
14116 # The compiler can only warn and ignore the option if not recognized
14117 # So say no if there are warnings
14118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121 lt_cv_prog_compiler_c_o_CXX=yes
14122 fi
14123 fi
14124 chmod u+w . 2>&5
14125 $RM conftest*
14126 # SGI C++ compiler will create directory out/ii_files/ for
14127 # template instantiation
14128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14129 $RM out/* && rmdir out
14130 cd ..
14131 $RM -r conftest
14132 $RM conftest*
14133
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14137
14138
14139
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14141 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14142 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 lt_cv_prog_compiler_c_o_CXX=no
14146 $RM -r conftest 2>/dev/null
14147 mkdir conftest
14148 cd conftest
14149 mkdir out
14150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14151
14152 lt_compiler_flag="-o out/conftest2.$ac_objext"
14153 # Insert the option either (1) after the last *FLAGS variable, or
14154 # (2) before a word containing "conftest.", or (3) at the end.
14155 # Note that $ac_compile itself does not contain backslashes and begins
14156 # with a dollar sign (not a hyphen), so the echo should work correctly.
14157 lt_compile=`echo "$ac_compile" | $SED \
14158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14160 -e 's:$: $lt_compiler_flag:'`
14161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14162 (eval "$lt_compile" 2>out/conftest.err)
14163 ac_status=$?
14164 cat out/conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14167 then
14168 # The compiler can only warn and ignore the option if not recognized
14169 # So say no if there are warnings
14170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14173 lt_cv_prog_compiler_c_o_CXX=yes
14174 fi
14175 fi
14176 chmod u+w . 2>&5
14177 $RM conftest*
14178 # SGI C++ compiler will create directory out/ii_files/ for
14179 # template instantiation
14180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14181 $RM out/* && rmdir out
14182 cd ..
14183 $RM -r conftest
14184 $RM conftest*
14185
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14188 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14189
14190
14191
14192
14193 hard_links="nottested"
14194 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14195 # do not overwrite the value of need_locks provided by the user
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14197 $as_echo_n "checking if we can lock with hard links... " >&6; }
14198 hard_links=yes
14199 $RM conftest*
14200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14201 touch conftest.a
14202 ln conftest.a conftest.b 2>&5 || hard_links=no
14203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14205 $as_echo "$hard_links" >&6; }
14206 if test "$hard_links" = no; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14209 need_locks=warn
14210 fi
14211 else
14212 need_locks=no
14213 fi
14214
14215
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14218 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14219
14220 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14221 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14222 case $host_os in
14223 aix[4-9]*)
14224 # If we're using GNU nm, then we don't want the "-C" option.
14225 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14226 # Also, AIX nm treats weak defined symbols like other global defined
14227 # symbols, whereas GNU nm marks them as "W".
14228 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14229 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14230 else
14231 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14232 fi
14233 ;;
14234 pw32*)
14235 export_symbols_cmds_CXX="$ltdll_cmds"
14236 ;;
14237 cygwin* | mingw* | cegcc*)
14238 case $cc_basename in
14239 cl*)
14240 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14241 ;;
14242 *)
14243 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'
14244 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14245 ;;
14246 esac
14247 ;;
14248 linux* | k*bsd*-gnu | gnu*)
14249 link_all_deplibs_CXX=no
14250 ;;
14251 *)
14252 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14253 ;;
14254 esac
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14257 $as_echo "$ld_shlibs_CXX" >&6; }
14258 test "$ld_shlibs_CXX" = no && can_build_shared=no
14259
14260 with_gnu_ld_CXX=$with_gnu_ld
14261
14262
14263
14264
14265
14266
14267 #
14268 # Do we need to explicitly link libc?
14269 #
14270 case "x$archive_cmds_need_lc_CXX" in
14271 x|xyes)
14272 # Assume -lc should be added
14273 archive_cmds_need_lc_CXX=yes
14274
14275 if test "$enable_shared" = yes && test "$GCC" = yes; then
14276 case $archive_cmds_CXX in
14277 *'~'*)
14278 # FIXME: we may have to deal with multi-command sequences.
14279 ;;
14280 '$CC '*)
14281 # Test whether the compiler implicitly links with -lc since on some
14282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14283 # to ld, don't add -lc before -lgcc.
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14285 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14286 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 $RM conftest*
14290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14291
14292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14293 (eval $ac_compile) 2>&5
14294 ac_status=$?
14295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; } 2>conftest.err; then
14297 soname=conftest
14298 lib=conftest
14299 libobjs=conftest.$ac_objext
14300 deplibs=
14301 wl=$lt_prog_compiler_wl_CXX
14302 pic_flag=$lt_prog_compiler_pic_CXX
14303 compiler_flags=-v
14304 linker_flags=-v
14305 verstring=
14306 output_objdir=.
14307 libname=conftest
14308 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14309 allow_undefined_flag_CXX=
14310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14311 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14312 ac_status=$?
14313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14314 test $ac_status = 0; }
14315 then
14316 lt_cv_archive_cmds_need_lc_CXX=no
14317 else
14318 lt_cv_archive_cmds_need_lc_CXX=yes
14319 fi
14320 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14321 else
14322 cat conftest.err 1>&5
14323 fi
14324 $RM conftest*
14325
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14328 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14329 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14330 ;;
14331 esac
14332 fi
14333 ;;
14334 esac
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14398 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14399
14400 library_names_spec=
14401 libname_spec='lib$name'
14402 soname_spec=
14403 shrext_cmds=".so"
14404 postinstall_cmds=
14405 postuninstall_cmds=
14406 finish_cmds=
14407 finish_eval=
14408 shlibpath_var=
14409 shlibpath_overrides_runpath=unknown
14410 version_type=none
14411 dynamic_linker="$host_os ld.so"
14412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14413 need_lib_prefix=unknown
14414 hardcode_into_libs=no
14415
14416 # when you set need_version to no, make sure it does not cause -set_version
14417 # flags to be left without arguments
14418 need_version=unknown
14419
14420 case $host_os in
14421 aix3*)
14422 version_type=linux # correct to gnu/linux during the next big refactor
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14424 shlibpath_var=LIBPATH
14425
14426 # AIX 3 has no versioning support, so we append a major version to the name.
14427 soname_spec='${libname}${release}${shared_ext}$major'
14428 ;;
14429
14430 aix[4-9]*)
14431 version_type=linux # correct to gnu/linux during the next big refactor
14432 need_lib_prefix=no
14433 need_version=no
14434 hardcode_into_libs=yes
14435 if test "$host_cpu" = ia64; then
14436 # AIX 5 supports IA64
14437 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 else
14440 # With GCC up to 2.95.x, collect2 would create an import file
14441 # for dependence libraries. The import file would start with
14442 # the line `#! .'. This would cause the generated library to
14443 # depend on `.', always an invalid library. This was fixed in
14444 # development snapshots of GCC prior to 3.0.
14445 case $host_os in
14446 aix4 | aix4.[01] | aix4.[01].*)
14447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14448 echo ' yes '
14449 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14450 :
14451 else
14452 can_build_shared=no
14453 fi
14454 ;;
14455 esac
14456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14457 # soname into executable. Probably we can add versioning support to
14458 # collect2, so additional links can be useful in future.
14459 if test "$aix_use_runtimelinking" = yes; then
14460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14461 # instead of lib<name>.a to let people know that these are not
14462 # typical AIX shared libraries.
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 else
14465 # We preserve .a as extension for shared libraries through AIX4.2
14466 # and later when we are not doing run time linking.
14467 library_names_spec='${libname}${release}.a $libname.a'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 fi
14470 shlibpath_var=LIBPATH
14471 fi
14472 ;;
14473
14474 amigaos*)
14475 case $host_cpu in
14476 powerpc)
14477 # Since July 2007 AmigaOS4 officially supports .so libraries.
14478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 ;;
14481 m68k)
14482 library_names_spec='$libname.ixlibrary $libname.a'
14483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14484 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14485 ;;
14486 esac
14487 ;;
14488
14489 beos*)
14490 library_names_spec='${libname}${shared_ext}'
14491 dynamic_linker="$host_os ld.so"
14492 shlibpath_var=LIBRARY_PATH
14493 ;;
14494
14495 bsdi[45]*)
14496 version_type=linux # correct to gnu/linux during the next big refactor
14497 need_version=no
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14504 # the default ld.so.conf also contains /usr/contrib/lib and
14505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14506 # libtool to hard-code these into programs
14507 ;;
14508
14509 cygwin* | mingw* | pw32* | cegcc*)
14510 version_type=windows
14511 shrext_cmds=".dll"
14512 need_version=no
14513 need_lib_prefix=no
14514
14515 case $GCC,$cc_basename in
14516 yes,*)
14517 # gcc
14518 library_names_spec='$libname.dll.a'
14519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14520 postinstall_cmds='base_file=`basename \${file}`~
14521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14522 dldir=$destdir/`dirname \$dlpath`~
14523 test -d \$dldir || mkdir -p \$dldir~
14524 $install_prog $dir/$dlname \$dldir/$dlname~
14525 chmod a+x \$dldir/$dlname~
14526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14528 fi'
14529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14530 dlpath=$dir/\$dldll~
14531 $RM \$dlpath'
14532 shlibpath_overrides_runpath=yes
14533
14534 case $host_os in
14535 cygwin*)
14536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538
14539 ;;
14540 mingw* | cegcc*)
14541 # MinGW DLLs use traditional 'lib' prefix
14542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14543 ;;
14544 pw32*)
14545 # pw32 DLLs use 'pw' prefix rather than 'lib'
14546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14547 ;;
14548 esac
14549 dynamic_linker='Win32 ld.exe'
14550 ;;
14551
14552 *,cl*)
14553 # Native MSVC
14554 libname_spec='$name'
14555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14556 library_names_spec='${libname}.dll.lib'
14557
14558 case $build_os in
14559 mingw*)
14560 sys_lib_search_path_spec=
14561 lt_save_ifs=$IFS
14562 IFS=';'
14563 for lt_path in $LIB
14564 do
14565 IFS=$lt_save_ifs
14566 # Let DOS variable expansion print the short 8.3 style file name.
14567 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14568 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14569 done
14570 IFS=$lt_save_ifs
14571 # Convert to MSYS style.
14572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14573 ;;
14574 cygwin*)
14575 # Convert to unix form, then to dos form, then back to unix form
14576 # but this time dos style (no spaces!) so that the unix form looks
14577 # like /cygdrive/c/PROGRA~1:/cygdr...
14578 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14579 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14580 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14581 ;;
14582 *)
14583 sys_lib_search_path_spec="$LIB"
14584 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14585 # It is most probably a Windows format PATH.
14586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14587 else
14588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14589 fi
14590 # FIXME: find the short name or the path components, as spaces are
14591 # common. (e.g. "Program Files" -> "PROGRA~1")
14592 ;;
14593 esac
14594
14595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14596 postinstall_cmds='base_file=`basename \${file}`~
14597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14598 dldir=$destdir/`dirname \$dlpath`~
14599 test -d \$dldir || mkdir -p \$dldir~
14600 $install_prog $dir/$dlname \$dldir/$dlname'
14601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14602 dlpath=$dir/\$dldll~
14603 $RM \$dlpath'
14604 shlibpath_overrides_runpath=yes
14605 dynamic_linker='Win32 link.exe'
14606 ;;
14607
14608 *)
14609 # Assume MSVC wrapper
14610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14611 dynamic_linker='Win32 ld.exe'
14612 ;;
14613 esac
14614 # FIXME: first we should search . and the directory the executable is in
14615 shlibpath_var=PATH
14616 ;;
14617
14618 darwin* | rhapsody*)
14619 dynamic_linker="$host_os dyld"
14620 version_type=darwin
14621 need_lib_prefix=no
14622 need_version=no
14623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14624 soname_spec='${libname}${release}${major}$shared_ext'
14625 shlibpath_overrides_runpath=yes
14626 shlibpath_var=DYLD_LIBRARY_PATH
14627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14628
14629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14630 ;;
14631
14632 dgux*)
14633 version_type=linux # correct to gnu/linux during the next big refactor
14634 need_lib_prefix=no
14635 need_version=no
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 ;;
14640
14641 freebsd* | dragonfly*)
14642 # DragonFly does not have aout. When/if they implement a new
14643 # versioning mechanism, adjust this.
14644 if test -x /usr/bin/objformat; then
14645 objformat=`/usr/bin/objformat`
14646 else
14647 case $host_os in
14648 freebsd[23].*) objformat=aout ;;
14649 *) objformat=elf ;;
14650 esac
14651 fi
14652 version_type=freebsd-$objformat
14653 case $version_type in
14654 freebsd-elf*)
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14656 need_version=no
14657 need_lib_prefix=no
14658 ;;
14659 freebsd-*)
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14661 need_version=yes
14662 ;;
14663 esac
14664 shlibpath_var=LD_LIBRARY_PATH
14665 case $host_os in
14666 freebsd2.*)
14667 shlibpath_overrides_runpath=yes
14668 ;;
14669 freebsd3.[01]* | freebsdelf3.[01]*)
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14672 ;;
14673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678 *) # from 4.6 on, and DragonFly
14679 shlibpath_overrides_runpath=yes
14680 hardcode_into_libs=yes
14681 ;;
14682 esac
14683 ;;
14684
14685 haiku*)
14686 version_type=linux # correct to gnu/linux during the next big refactor
14687 need_lib_prefix=no
14688 need_version=no
14689 dynamic_linker="$host_os runtime_loader"
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 shlibpath_var=LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14695 hardcode_into_libs=yes
14696 ;;
14697
14698 hpux9* | hpux10* | hpux11*)
14699 # Give a soname corresponding to the major version so that dld.sl refuses to
14700 # link against other versions.
14701 version_type=sunos
14702 need_lib_prefix=no
14703 need_version=no
14704 case $host_cpu in
14705 ia64*)
14706 shrext_cmds='.so'
14707 hardcode_into_libs=yes
14708 dynamic_linker="$host_os dld.so"
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712 soname_spec='${libname}${release}${shared_ext}$major'
14713 if test "X$HPUX_IA64_MODE" = X32; then
14714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14715 else
14716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14717 fi
14718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14719 ;;
14720 hppa*64*)
14721 shrext_cmds='.sl'
14722 hardcode_into_libs=yes
14723 dynamic_linker="$host_os dld.sl"
14724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14730 ;;
14731 *)
14732 shrext_cmds='.sl'
14733 dynamic_linker="$host_os dld.sl"
14734 shlibpath_var=SHLIB_PATH
14735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 ;;
14739 esac
14740 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14741 postinstall_cmds='chmod 555 $lib'
14742 # or fails outright, so override atomically:
14743 install_override_mode=555
14744 ;;
14745
14746 interix[3-9]*)
14747 version_type=linux # correct to gnu/linux during the next big refactor
14748 need_lib_prefix=no
14749 need_version=no
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 shlibpath_overrides_runpath=no
14755 hardcode_into_libs=yes
14756 ;;
14757
14758 irix5* | irix6* | nonstopux*)
14759 case $host_os in
14760 nonstopux*) version_type=nonstopux ;;
14761 *)
14762 if test "$lt_cv_prog_gnu_ld" = yes; then
14763 version_type=linux # correct to gnu/linux during the next big refactor
14764 else
14765 version_type=irix
14766 fi ;;
14767 esac
14768 need_lib_prefix=no
14769 need_version=no
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14772 case $host_os in
14773 irix5* | nonstopux*)
14774 libsuff= shlibsuff=
14775 ;;
14776 *)
14777 case $LD in # libtool.m4 will add one of these switches to LD
14778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14779 libsuff= shlibsuff= libmagic=32-bit;;
14780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14781 libsuff=32 shlibsuff=N32 libmagic=N32;;
14782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14783 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14784 *) libsuff= shlibsuff= libmagic=never-match;;
14785 esac
14786 ;;
14787 esac
14788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14789 shlibpath_overrides_runpath=no
14790 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14791 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14792 hardcode_into_libs=yes
14793 ;;
14794
14795 # No shared lib support for Linux oldld, aout, or coff.
14796 linux*oldld* | linux*aout* | linux*coff*)
14797 dynamic_linker=no
14798 ;;
14799
14800 # This must be glibc/ELF.
14801 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14802 version_type=linux # correct to gnu/linux during the next big refactor
14803 need_lib_prefix=no
14804 need_version=no
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath=no
14810
14811 # Some binutils ld are patched to set DT_RUNPATH
14812 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 lt_cv_shlibpath_overrides_runpath=no
14816 save_LDFLAGS=$LDFLAGS
14817 save_libdir=$libdir
14818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822
14823 int
14824 main ()
14825 {
14826
14827 ;
14828 return 0;
14829 }
14830 _ACEOF
14831 if ac_fn_cxx_try_link "$LINENO"; then :
14832 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14833 lt_cv_shlibpath_overrides_runpath=yes
14834 fi
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 LDFLAGS=$save_LDFLAGS
14839 libdir=$save_libdir
14840
14841 fi
14842
14843 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14844
14845 # This implies no fast_install, which is unacceptable.
14846 # Some rework will be needed to allow for fast_install
14847 # before this can be enabled.
14848 hardcode_into_libs=yes
14849
14850 # Append ld.so.conf contents to the search path
14851 if test -f /etc/ld.so.conf; then
14852 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' ' '`
14853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14854 fi
14855
14856 # We used to test for /lib/ld.so.1 and disable shared libraries on
14857 # powerpc, because MkLinux only supported shared libraries with the
14858 # GNU dynamic linker. Since this was broken with cross compilers,
14859 # most powerpc-linux boxes support dynamic linking these days and
14860 # people can always --disable-shared, the test was removed, and we
14861 # assume the GNU/Linux dynamic linker is in use.
14862 dynamic_linker='GNU/Linux ld.so'
14863 ;;
14864
14865 netbsdelf*-gnu)
14866 version_type=linux
14867 need_lib_prefix=no
14868 need_version=no
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 shlibpath_overrides_runpath=no
14873 hardcode_into_libs=yes
14874 dynamic_linker='NetBSD ld.elf_so'
14875 ;;
14876
14877 netbsd*)
14878 version_type=sunos
14879 need_lib_prefix=no
14880 need_version=no
14881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14884 dynamic_linker='NetBSD (a.out) ld.so'
14885 else
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 dynamic_linker='NetBSD ld.elf_so'
14889 fi
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=yes
14892 hardcode_into_libs=yes
14893 ;;
14894
14895 newsos6)
14896 version_type=linux # correct to gnu/linux during the next big refactor
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=yes
14900 ;;
14901
14902 *nto* | *qnx*)
14903 version_type=qnx
14904 need_lib_prefix=no
14905 need_version=no
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 shlibpath_overrides_runpath=no
14910 hardcode_into_libs=yes
14911 dynamic_linker='ldqnx.so'
14912 ;;
14913
14914 openbsd*)
14915 version_type=sunos
14916 sys_lib_dlsearch_path_spec="/usr/lib"
14917 need_lib_prefix=no
14918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14919 case $host_os in
14920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14921 *) need_version=no ;;
14922 esac
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14927 case $host_os in
14928 openbsd2.[89] | openbsd2.[89].*)
14929 shlibpath_overrides_runpath=no
14930 ;;
14931 *)
14932 shlibpath_overrides_runpath=yes
14933 ;;
14934 esac
14935 else
14936 shlibpath_overrides_runpath=yes
14937 fi
14938 ;;
14939
14940 os2*)
14941 libname_spec='$name'
14942 shrext_cmds=".dll"
14943 need_lib_prefix=no
14944 library_names_spec='$libname${shared_ext} $libname.a'
14945 dynamic_linker='OS/2 ld.exe'
14946 shlibpath_var=LIBPATH
14947 ;;
14948
14949 osf3* | osf4* | osf5*)
14950 version_type=osf
14951 need_lib_prefix=no
14952 need_version=no
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955 shlibpath_var=LD_LIBRARY_PATH
14956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14958 ;;
14959
14960 rdos*)
14961 dynamic_linker=no
14962 ;;
14963
14964 solaris*)
14965 version_type=linux # correct to gnu/linux during the next big refactor
14966 need_lib_prefix=no
14967 need_version=no
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 shlibpath_overrides_runpath=yes
14972 hardcode_into_libs=yes
14973 # ldd complains unless libraries are executable
14974 postinstall_cmds='chmod +x $lib'
14975 ;;
14976
14977 sunos4*)
14978 version_type=sunos
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath=yes
14983 if test "$with_gnu_ld" = yes; then
14984 need_lib_prefix=no
14985 fi
14986 need_version=yes
14987 ;;
14988
14989 sysv4 | sysv4.3*)
14990 version_type=linux # correct to gnu/linux during the next big refactor
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 case $host_vendor in
14995 sni)
14996 shlibpath_overrides_runpath=no
14997 need_lib_prefix=no
14998 runpath_var=LD_RUN_PATH
14999 ;;
15000 siemens)
15001 need_lib_prefix=no
15002 ;;
15003 motorola)
15004 need_lib_prefix=no
15005 need_version=no
15006 shlibpath_overrides_runpath=no
15007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15008 ;;
15009 esac
15010 ;;
15011
15012 sysv4*MP*)
15013 if test -d /usr/nec ;then
15014 version_type=linux # correct to gnu/linux during the next big refactor
15015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15016 soname_spec='$libname${shared_ext}.$major'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 fi
15019 ;;
15020
15021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15022 version_type=freebsd-elf
15023 need_lib_prefix=no
15024 need_version=no
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 shlibpath_overrides_runpath=yes
15029 hardcode_into_libs=yes
15030 if test "$with_gnu_ld" = yes; then
15031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15032 else
15033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15034 case $host_os in
15035 sco3.2v5*)
15036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15037 ;;
15038 esac
15039 fi
15040 sys_lib_dlsearch_path_spec='/usr/lib'
15041 ;;
15042
15043 tpf*)
15044 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15045 version_type=linux # correct to gnu/linux during the next big refactor
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=no
15051 hardcode_into_libs=yes
15052 ;;
15053
15054 uts4*)
15055 version_type=linux # correct to gnu/linux during the next big refactor
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 ;;
15060
15061 *)
15062 dynamic_linker=no
15063 ;;
15064 esac
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15066 $as_echo "$dynamic_linker" >&6; }
15067 test "$dynamic_linker" = no && can_build_shared=no
15068
15069 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15070 if test "$GCC" = yes; then
15071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15072 fi
15073
15074 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15075 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15076 fi
15077 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15078 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15079 fi
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15119 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15120 hardcode_action_CXX=
15121 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15122 test -n "$runpath_var_CXX" ||
15123 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15124
15125 # We can hardcode non-existent directories.
15126 if test "$hardcode_direct_CXX" != no &&
15127 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15128 # have to relink, otherwise we might link with an installed library
15129 # when we should be linking with a yet-to-be-installed one
15130 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15131 test "$hardcode_minus_L_CXX" != no; then
15132 # Linking always hardcodes the temporary library directory.
15133 hardcode_action_CXX=relink
15134 else
15135 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15136 hardcode_action_CXX=immediate
15137 fi
15138 else
15139 # We cannot hardcode anything, or else we can only hardcode existing
15140 # directories.
15141 hardcode_action_CXX=unsupported
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15144 $as_echo "$hardcode_action_CXX" >&6; }
15145
15146 if test "$hardcode_action_CXX" = relink ||
15147 test "$inherit_rpath_CXX" = yes; then
15148 # Fast installation is not supported
15149 enable_fast_install=no
15150 elif test "$shlibpath_overrides_runpath" = yes ||
15151 test "$enable_shared" = no; then
15152 # Fast installation is not necessary
15153 enable_fast_install=needless
15154 fi
15155
15156
15157
15158
15159
15160
15161
15162 fi # test -n "$compiler"
15163
15164 CC=$lt_save_CC
15165 CFLAGS=$lt_save_CFLAGS
15166 LDCXX=$LD
15167 LD=$lt_save_LD
15168 GCC=$lt_save_GCC
15169 with_gnu_ld=$lt_save_with_gnu_ld
15170 lt_cv_path_LDCXX=$lt_cv_path_LD
15171 lt_cv_path_LD=$lt_save_path_LD
15172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15174 fi # test "$_lt_caught_CXX_error" != yes
15175
15176 ac_ext=c
15177 ac_cpp='$CPP $CPPFLAGS'
15178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15181
15182
15183 ac_ext=cpp
15184 ac_cpp='$CXXCPP $CPPFLAGS'
15185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15188
15189
15190 # Create the libtool executable so that we can use it in further tests.
15191 #
15192 : ${CONFIG_LT=./config.lt}
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15194 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
15195 as_write_fail=0
15196 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15197 #! $SHELL
15198 # Generated by $as_me.
15199 # Run this file to recreate a libtool stub with the current configuration.
15200 SHELL=\${CONFIG_SHELL-$SHELL}
15201 export SHELL
15202 _ASEOF
15203 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15204 ## -------------------- ##
15205 ## M4sh Initialization. ##
15206 ## -------------------- ##
15207
15208 # Be more Bourne compatible
15209 DUALCASE=1; export DUALCASE # for MKS sh
15210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15211 emulate sh
15212 NULLCMD=:
15213 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15214 # is contrary to our usage. Disable this feature.
15215 alias -g '${1+"$@"}'='"$@"'
15216 setopt NO_GLOB_SUBST
15217 else
15218 case `(set -o) 2>/dev/null` in #(
15219 *posix*) :
15220 set -o posix ;; #(
15221 *) :
15222 ;;
15223 esac
15224 fi
15225
15226
15227 as_nl='
15228 '
15229 export as_nl
15230 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15231 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15234 # Prefer a ksh shell builtin over an external printf program on Solaris,
15235 # but without wasting forks for bash or zsh.
15236 if test -z "$BASH_VERSION$ZSH_VERSION" \
15237 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15238 as_echo='print -r --'
15239 as_echo_n='print -rn --'
15240 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15241 as_echo='printf %s\n'
15242 as_echo_n='printf %s'
15243 else
15244 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15245 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15246 as_echo_n='/usr/ucb/echo -n'
15247 else
15248 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15249 as_echo_n_body='eval
15250 arg=$1;
15251 case $arg in #(
15252 *"$as_nl"*)
15253 expr "X$arg" : "X\\(.*\\)$as_nl";
15254 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15255 esac;
15256 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15257 '
15258 export as_echo_n_body
15259 as_echo_n='sh -c $as_echo_n_body as_echo'
15260 fi
15261 export as_echo_body
15262 as_echo='sh -c $as_echo_body as_echo'
15263 fi
15264
15265 # The user is always right.
15266 if test "${PATH_SEPARATOR+set}" != set; then
15267 PATH_SEPARATOR=:
15268 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15269 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15270 PATH_SEPARATOR=';'
15271 }
15272 fi
15273
15274
15275 # IFS
15276 # We need space, tab and new line, in precisely that order. Quoting is
15277 # there to prevent editors from complaining about space-tab.
15278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15279 # splitting by setting IFS to empty value.)
15280 IFS=" "" $as_nl"
15281
15282 # Find who we are. Look in the path if we contain no directory separator.
15283 as_myself=
15284 case $0 in #((
15285 *[\\/]* ) as_myself=$0 ;;
15286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287 for as_dir in $PATH
15288 do
15289 IFS=$as_save_IFS
15290 test -z "$as_dir" && as_dir=.
15291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15292 done
15293 IFS=$as_save_IFS
15294
15295 ;;
15296 esac
15297 # We did not find ourselves, most probably we were run as `sh COMMAND'
15298 # in which case we are not to be found in the path.
15299 if test "x$as_myself" = x; then
15300 as_myself=$0
15301 fi
15302 if test ! -f "$as_myself"; then
15303 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15304 exit 1
15305 fi
15306
15307 # Unset variables that we do not need and which cause bugs (e.g. in
15308 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15309 # suppresses any "Segmentation fault" message there. '((' could
15310 # trigger a bug in pdksh 5.2.14.
15311 for as_var in BASH_ENV ENV MAIL MAILPATH
15312 do eval test x\${$as_var+set} = xset \
15313 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15314 done
15315 PS1='$ '
15316 PS2='> '
15317 PS4='+ '
15318
15319 # NLS nuisances.
15320 LC_ALL=C
15321 export LC_ALL
15322 LANGUAGE=C
15323 export LANGUAGE
15324
15325 # CDPATH.
15326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15327
15328
15329 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15330 # ----------------------------------------
15331 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15332 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15333 # script with STATUS, using 1 if that was 0.
15334 as_fn_error ()
15335 {
15336 as_status=$1; test $as_status -eq 0 && as_status=1
15337 if test "$4"; then
15338 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15339 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15340 fi
15341 $as_echo "$as_me: error: $2" >&2
15342 as_fn_exit $as_status
15343 } # as_fn_error
15344
15345
15346 # as_fn_set_status STATUS
15347 # -----------------------
15348 # Set $? to STATUS, without forking.
15349 as_fn_set_status ()
15350 {
15351 return $1
15352 } # as_fn_set_status
15353
15354 # as_fn_exit STATUS
15355 # -----------------
15356 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15357 as_fn_exit ()
15358 {
15359 set +e
15360 as_fn_set_status $1
15361 exit $1
15362 } # as_fn_exit
15363
15364 # as_fn_unset VAR
15365 # ---------------
15366 # Portably unset VAR.
15367 as_fn_unset ()
15368 {
15369 { eval $1=; unset $1;}
15370 }
15371 as_unset=as_fn_unset
15372 # as_fn_append VAR VALUE
15373 # ----------------------
15374 # Append the text in VALUE to the end of the definition contained in VAR. Take
15375 # advantage of any shell optimizations that allow amortized linear growth over
15376 # repeated appends, instead of the typical quadratic growth present in naive
15377 # implementations.
15378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15379 eval 'as_fn_append ()
15380 {
15381 eval $1+=\$2
15382 }'
15383 else
15384 as_fn_append ()
15385 {
15386 eval $1=\$$1\$2
15387 }
15388 fi # as_fn_append
15389
15390 # as_fn_arith ARG...
15391 # ------------------
15392 # Perform arithmetic evaluation on the ARGs, and store the result in the
15393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15394 # must be portable across $(()) and expr.
15395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15396 eval 'as_fn_arith ()
15397 {
15398 as_val=$(( $* ))
15399 }'
15400 else
15401 as_fn_arith ()
15402 {
15403 as_val=`expr "$@" || test $? -eq 1`
15404 }
15405 fi # as_fn_arith
15406
15407
15408 if expr a : '\(a\)' >/dev/null 2>&1 &&
15409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15410 as_expr=expr
15411 else
15412 as_expr=false
15413 fi
15414
15415 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15416 as_basename=basename
15417 else
15418 as_basename=false
15419 fi
15420
15421 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15422 as_dirname=dirname
15423 else
15424 as_dirname=false
15425 fi
15426
15427 as_me=`$as_basename -- "$0" ||
15428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15429 X"$0" : 'X\(//\)$' \| \
15430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15431 $as_echo X/"$0" |
15432 sed '/^.*\/\([^/][^/]*\)\/*$/{
15433 s//\1/
15434 q
15435 }
15436 /^X\/\(\/\/\)$/{
15437 s//\1/
15438 q
15439 }
15440 /^X\/\(\/\).*/{
15441 s//\1/
15442 q
15443 }
15444 s/.*/./; q'`
15445
15446 # Avoid depending upon Character Ranges.
15447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15450 as_cr_digits='0123456789'
15451 as_cr_alnum=$as_cr_Letters$as_cr_digits
15452
15453 ECHO_C= ECHO_N= ECHO_T=
15454 case `echo -n x` in #(((((
15455 -n*)
15456 case `echo 'xy\c'` in
15457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15458 xy) ECHO_C='\c';;
15459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15460 ECHO_T=' ';;
15461 esac;;
15462 *)
15463 ECHO_N='-n';;
15464 esac
15465
15466 rm -f conf$$ conf$$.exe conf$$.file
15467 if test -d conf$$.dir; then
15468 rm -f conf$$.dir/conf$$.file
15469 else
15470 rm -f conf$$.dir
15471 mkdir conf$$.dir 2>/dev/null
15472 fi
15473 if (echo >conf$$.file) 2>/dev/null; then
15474 if ln -s conf$$.file conf$$ 2>/dev/null; then
15475 as_ln_s='ln -s'
15476 # ... but there are two gotchas:
15477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15479 # In both cases, we have to default to `cp -pR'.
15480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15481 as_ln_s='cp -pR'
15482 elif ln conf$$.file conf$$ 2>/dev/null; then
15483 as_ln_s=ln
15484 else
15485 as_ln_s='cp -pR'
15486 fi
15487 else
15488 as_ln_s='cp -pR'
15489 fi
15490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15491 rmdir conf$$.dir 2>/dev/null
15492
15493
15494 # as_fn_mkdir_p
15495 # -------------
15496 # Create "$as_dir" as a directory, including parents if necessary.
15497 as_fn_mkdir_p ()
15498 {
15499
15500 case $as_dir in #(
15501 -*) as_dir=./$as_dir;;
15502 esac
15503 test -d "$as_dir" || eval $as_mkdir_p || {
15504 as_dirs=
15505 while :; do
15506 case $as_dir in #(
15507 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15508 *) as_qdir=$as_dir;;
15509 esac
15510 as_dirs="'$as_qdir' $as_dirs"
15511 as_dir=`$as_dirname -- "$as_dir" ||
15512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15513 X"$as_dir" : 'X\(//\)[^/]' \| \
15514 X"$as_dir" : 'X\(//\)$' \| \
15515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15516 $as_echo X"$as_dir" |
15517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\/\)[^/].*/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\/\)$/{
15526 s//\1/
15527 q
15528 }
15529 /^X\(\/\).*/{
15530 s//\1/
15531 q
15532 }
15533 s/.*/./; q'`
15534 test -d "$as_dir" && break
15535 done
15536 test -z "$as_dirs" || eval "mkdir $as_dirs"
15537 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15538
15539
15540 } # as_fn_mkdir_p
15541 if mkdir -p . 2>/dev/null; then
15542 as_mkdir_p='mkdir -p "$as_dir"'
15543 else
15544 test -d ./-p && rmdir ./-p
15545 as_mkdir_p=false
15546 fi
15547
15548
15549 # as_fn_executable_p FILE
15550 # -----------------------
15551 # Test if FILE is an executable regular file.
15552 as_fn_executable_p ()
15553 {
15554 test -f "$1" && test -x "$1"
15555 } # as_fn_executable_p
15556 as_test_x='test -x'
15557 as_executable_p=as_fn_executable_p
15558
15559 # Sed expression to map a string onto a valid CPP name.
15560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15561
15562 # Sed expression to map a string onto a valid variable name.
15563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15564
15565
15566 exec 6>&1
15567 ## --------------------------------- ##
15568 ## Main body of "$CONFIG_LT" script. ##
15569 ## --------------------------------- ##
15570 _ASEOF
15571 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15572
15573 cat >>"$CONFIG_LT" <<\_LTEOF
15574 lt_cl_silent=false
15575 exec 5>>config.log
15576 {
15577 echo
15578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15579 ## Running $as_me. ##
15580 _ASBOX
15581 } >&5
15582
15583 lt_cl_help="\
15584 \`$as_me' creates a local libtool stub from the current configuration,
15585 for use in further configure time tests before the real libtool is
15586 generated.
15587
15588 Usage: $0 [OPTIONS]
15589
15590 -h, --help print this help, then exit
15591 -V, --version print version number, then exit
15592 -q, --quiet do not print progress messages
15593 -d, --debug don't remove temporary files
15594
15595 Report bugs to <[email protected]>."
15596
15597 lt_cl_version="\
15598 odb config.lt 2.4.0
15599 configured by $0, generated by GNU Autoconf 2.69.
15600
15601 Copyright (C) 2011 Free Software Foundation, Inc.
15602 This config.lt script is free software; the Free Software Foundation
15603 gives unlimited permision to copy, distribute and modify it."
15604
15605 while test $# != 0
15606 do
15607 case $1 in
15608 --version | --v* | -V )
15609 echo "$lt_cl_version"; exit 0 ;;
15610 --help | --h* | -h )
15611 echo "$lt_cl_help"; exit 0 ;;
15612 --debug | --d* | -d )
15613 debug=: ;;
15614 --quiet | --q* | --silent | --s* | -q )
15615 lt_cl_silent=: ;;
15616
15617 -*) as_fn_error $? "unrecognized option: $1
15618 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15619
15620 *) as_fn_error $? "unrecognized argument: $1
15621 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15622 esac
15623 shift
15624 done
15625
15626 if $lt_cl_silent; then
15627 exec 6>/dev/null
15628 fi
15629 _LTEOF
15630
15631 cat >>"$CONFIG_LT" <<_LTEOF
15632
15633
15634 # The HP-UX ksh and POSIX shell print the target directory to stdout
15635 # if CDPATH is set.
15636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15637
15638 sed_quote_subst='$sed_quote_subst'
15639 double_quote_subst='$double_quote_subst'
15640 delay_variable_subst='$delay_variable_subst'
15641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15643 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15644 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15647 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15648 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15649 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15650 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15651 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15652 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15653 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15654 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15655 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15656 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15657 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15658 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15659 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15660 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15661 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15662 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15663 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15664 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15665 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15666 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15667 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15668 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15669 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15670 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15671 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15672 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15673 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15674 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15675 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15676 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15677 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15678 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15679 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15680 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15681 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15682 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15683 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15684 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15685 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15686 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15687 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15688 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15689 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15690 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15691 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15692 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15693 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15694 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15695 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15696 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15697 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"`'
15698 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15699 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15700 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15701 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15702 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15703 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15704 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15705 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15706 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15707 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15708 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15709 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15710 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15711 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15712 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15713 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15714 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15715 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15716 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15717 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15718 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15719 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15720 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15721 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15722 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15723 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15724 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15725 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15726 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15727 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15728 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15729 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15730 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15731 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15732 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15733 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15734 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15735 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15736 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15737 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15738 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15739 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15740 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15741 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15742 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15743 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15744 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15745 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15746 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15747 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15748 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15749 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15750 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15751 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15752 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15753 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15754 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15755 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15756 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15757 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15758 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15759 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15760 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15761 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15762 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15763 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15764 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15765 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15766 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15767 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15768 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15769 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15770 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15771 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15772 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15773 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15774 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15775 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15776 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15777 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15778 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15779 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15780 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15781 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15782 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15783 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15784 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15785 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15786 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15787 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15788 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15789 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15790 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15791 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15792 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15793 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15794 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15795 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15796 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15797 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15798 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15799 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15800 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15801 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15802 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15803 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15804 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15805 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15806 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15807 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15808 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15809 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15810 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15811 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15812 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15813 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15814 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15815 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15816 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15817 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15818 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15819 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15820 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15821 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15822 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15823 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15824 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15825
15826 LTCC='$LTCC'
15827 LTCFLAGS='$LTCFLAGS'
15828 compiler='$compiler_DEFAULT'
15829
15830 # A function that is used when there is no print builtin or printf.
15831 func_fallback_echo ()
15832 {
15833 eval 'cat <<_LTECHO_EOF
15834 \$1
15835 _LTECHO_EOF'
15836 }
15837
15838 # Quote evaled strings.
15839 for var in SHELL \
15840 ECHO \
15841 PATH_SEPARATOR \
15842 SED \
15843 GREP \
15844 EGREP \
15845 FGREP \
15846 LD \
15847 NM \
15848 LN_S \
15849 lt_SP2NL \
15850 lt_NL2SP \
15851 reload_flag \
15852 OBJDUMP \
15853 deplibs_check_method \
15854 file_magic_cmd \
15855 file_magic_glob \
15856 want_nocaseglob \
15857 DLLTOOL \
15858 sharedlib_from_linklib_cmd \
15859 AR \
15860 AR_FLAGS \
15861 archiver_list_spec \
15862 STRIP \
15863 RANLIB \
15864 CC \
15865 CFLAGS \
15866 compiler \
15867 lt_cv_sys_global_symbol_pipe \
15868 lt_cv_sys_global_symbol_to_cdecl \
15869 lt_cv_sys_global_symbol_to_c_name_address \
15870 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15871 nm_file_list_spec \
15872 lt_prog_compiler_no_builtin_flag \
15873 lt_prog_compiler_pic \
15874 lt_prog_compiler_wl \
15875 lt_prog_compiler_static \
15876 lt_cv_prog_compiler_c_o \
15877 need_locks \
15878 MANIFEST_TOOL \
15879 DSYMUTIL \
15880 NMEDIT \
15881 LIPO \
15882 OTOOL \
15883 OTOOL64 \
15884 shrext_cmds \
15885 export_dynamic_flag_spec \
15886 whole_archive_flag_spec \
15887 compiler_needs_object \
15888 with_gnu_ld \
15889 allow_undefined_flag \
15890 no_undefined_flag \
15891 hardcode_libdir_flag_spec \
15892 hardcode_libdir_separator \
15893 exclude_expsyms \
15894 include_expsyms \
15895 file_list_spec \
15896 variables_saved_for_relink \
15897 libname_spec \
15898 library_names_spec \
15899 soname_spec \
15900 install_override_mode \
15901 finish_eval \
15902 old_striplib \
15903 striplib \
15904 compiler_lib_search_dirs \
15905 predep_objects \
15906 postdep_objects \
15907 predeps \
15908 postdeps \
15909 compiler_lib_search_path \
15910 LD_CXX \
15911 reload_flag_CXX \
15912 compiler_CXX \
15913 lt_prog_compiler_no_builtin_flag_CXX \
15914 lt_prog_compiler_pic_CXX \
15915 lt_prog_compiler_wl_CXX \
15916 lt_prog_compiler_static_CXX \
15917 lt_cv_prog_compiler_c_o_CXX \
15918 export_dynamic_flag_spec_CXX \
15919 whole_archive_flag_spec_CXX \
15920 compiler_needs_object_CXX \
15921 with_gnu_ld_CXX \
15922 allow_undefined_flag_CXX \
15923 no_undefined_flag_CXX \
15924 hardcode_libdir_flag_spec_CXX \
15925 hardcode_libdir_separator_CXX \
15926 exclude_expsyms_CXX \
15927 include_expsyms_CXX \
15928 file_list_spec_CXX \
15929 compiler_lib_search_dirs_CXX \
15930 predep_objects_CXX \
15931 postdep_objects_CXX \
15932 predeps_CXX \
15933 postdeps_CXX \
15934 compiler_lib_search_path_CXX; do
15935 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15936 *[\\\\\\\`\\"\\\$]*)
15937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15938 ;;
15939 *)
15940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15941 ;;
15942 esac
15943 done
15944
15945 # Double-quote double-evaled strings.
15946 for var in reload_cmds \
15947 old_postinstall_cmds \
15948 old_postuninstall_cmds \
15949 old_archive_cmds \
15950 extract_expsyms_cmds \
15951 old_archive_from_new_cmds \
15952 old_archive_from_expsyms_cmds \
15953 archive_cmds \
15954 archive_expsym_cmds \
15955 module_cmds \
15956 module_expsym_cmds \
15957 export_symbols_cmds \
15958 prelink_cmds \
15959 postlink_cmds \
15960 postinstall_cmds \
15961 postuninstall_cmds \
15962 finish_cmds \
15963 sys_lib_search_path_spec \
15964 sys_lib_dlsearch_path_spec \
15965 reload_cmds_CXX \
15966 old_archive_cmds_CXX \
15967 old_archive_from_new_cmds_CXX \
15968 old_archive_from_expsyms_cmds_CXX \
15969 archive_cmds_CXX \
15970 archive_expsym_cmds_CXX \
15971 module_cmds_CXX \
15972 module_expsym_cmds_CXX \
15973 export_symbols_cmds_CXX \
15974 prelink_cmds_CXX \
15975 postlink_cmds_CXX; do
15976 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15977 *[\\\\\\\`\\"\\\$]*)
15978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15979 ;;
15980 *)
15981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15982 ;;
15983 esac
15984 done
15985
15986 ac_aux_dir='$ac_aux_dir'
15987 xsi_shell='$xsi_shell'
15988 lt_shell_append='$lt_shell_append'
15989
15990 # See if we are running on zsh, and set the options which allow our
15991 # commands through without removal of \ escapes INIT.
15992 if test -n "\${ZSH_VERSION+set}" ; then
15993 setopt NO_GLOB_SUBST
15994 fi
15995
15996
15997 PACKAGE='$PACKAGE'
15998 VERSION='$VERSION'
15999 TIMESTAMP='$TIMESTAMP'
16000 RM='$RM'
16001 ofile='$ofile'
16002
16003
16004
16005
16006
16007 _LTEOF
16008
16009 cat >>"$CONFIG_LT" <<\_LTEOF
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16011 $as_echo "$as_me: creating $ofile" >&6;}
16012
16013
16014 # See if we are running on zsh, and set the options which allow our
16015 # commands through without removal of \ escapes.
16016 if test -n "${ZSH_VERSION+set}" ; then
16017 setopt NO_GLOB_SUBST
16018 fi
16019
16020 cfgfile="${ofile}T"
16021 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16022 $RM "$cfgfile"
16023
16024 cat <<_LT_EOF >> "$cfgfile"
16025 #! $SHELL
16026
16027 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16028 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16029 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16031 #
16032 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16033 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16034 # Foundation, Inc.
16035 # Written by Gordon Matzigkeit, 1996
16036 #
16037 # This file is part of GNU Libtool.
16038 #
16039 # GNU Libtool is free software; you can redistribute it and/or
16040 # modify it under the terms of the GNU General Public License as
16041 # published by the Free Software Foundation; either version 2 of
16042 # the License, or (at your option) any later version.
16043 #
16044 # As a special exception to the GNU General Public License,
16045 # if you distribute this file as part of a program or library that
16046 # is built using GNU Libtool, you may include this file under the
16047 # same distribution terms that you use for the rest of that program.
16048 #
16049 # GNU Libtool is distributed in the hope that it will be useful,
16050 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16051 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16052 # GNU General Public License for more details.
16053 #
16054 # You should have received a copy of the GNU General Public License
16055 # along with GNU Libtool; see the file COPYING. If not, a copy
16056 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16057 # obtained by writing to the Free Software Foundation, Inc.,
16058 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16059
16060
16061 # The names of the tagged configurations supported by this script.
16062 available_tags="CXX "
16063
16064 # ### BEGIN LIBTOOL CONFIG
16065
16066 # Which release of libtool.m4 was used?
16067 macro_version=$macro_version
16068 macro_revision=$macro_revision
16069
16070 # Whether or not to build static libraries.
16071 build_old_libs=$enable_static
16072
16073 # Whether or not to build shared libraries.
16074 build_libtool_libs=$enable_shared
16075
16076 # What type of objects to build.
16077 pic_mode=$pic_mode
16078
16079 # Whether or not to optimize for fast installation.
16080 fast_install=$enable_fast_install
16081
16082 # Shell to use when invoking shell scripts.
16083 SHELL=$lt_SHELL
16084
16085 # An echo program that protects backslashes.
16086 ECHO=$lt_ECHO
16087
16088 # The PATH separator for the build system.
16089 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16090
16091 # The host system.
16092 host_alias=$host_alias
16093 host=$host
16094 host_os=$host_os
16095
16096 # The build system.
16097 build_alias=$build_alias
16098 build=$build
16099 build_os=$build_os
16100
16101 # A sed program that does not truncate output.
16102 SED=$lt_SED
16103
16104 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16105 Xsed="\$SED -e 1s/^X//"
16106
16107 # A grep program that handles long lines.
16108 GREP=$lt_GREP
16109
16110 # An ERE matcher.
16111 EGREP=$lt_EGREP
16112
16113 # A literal string matcher.
16114 FGREP=$lt_FGREP
16115
16116 # A BSD- or MS-compatible name lister.
16117 NM=$lt_NM
16118
16119 # Whether we need soft or hard links.
16120 LN_S=$lt_LN_S
16121
16122 # What is the maximum length of a command?
16123 max_cmd_len=$max_cmd_len
16124
16125 # Object file suffix (normally "o").
16126 objext=$ac_objext
16127
16128 # Executable file suffix (normally "").
16129 exeext=$exeext
16130
16131 # whether the shell understands "unset".
16132 lt_unset=$lt_unset
16133
16134 # turn spaces into newlines.
16135 SP2NL=$lt_lt_SP2NL
16136
16137 # turn newlines into spaces.
16138 NL2SP=$lt_lt_NL2SP
16139
16140 # convert \$build file names to \$host format.
16141 to_host_file_cmd=$lt_cv_to_host_file_cmd
16142
16143 # convert \$build files to toolchain format.
16144 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16145
16146 # An object symbol dumper.
16147 OBJDUMP=$lt_OBJDUMP
16148
16149 # Method to check whether dependent libraries are shared objects.
16150 deplibs_check_method=$lt_deplibs_check_method
16151
16152 # Command to use when deplibs_check_method = "file_magic".
16153 file_magic_cmd=$lt_file_magic_cmd
16154
16155 # How to find potential files when deplibs_check_method = "file_magic".
16156 file_magic_glob=$lt_file_magic_glob
16157
16158 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16159 want_nocaseglob=$lt_want_nocaseglob
16160
16161 # DLL creation program.
16162 DLLTOOL=$lt_DLLTOOL
16163
16164 # Command to associate shared and link libraries.
16165 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16166
16167 # The archiver.
16168 AR=$lt_AR
16169
16170 # Flags to create an archive.
16171 AR_FLAGS=$lt_AR_FLAGS
16172
16173 # How to feed a file listing to the archiver.
16174 archiver_list_spec=$lt_archiver_list_spec
16175
16176 # A symbol stripping program.
16177 STRIP=$lt_STRIP
16178
16179 # Commands used to install an old-style archive.
16180 RANLIB=$lt_RANLIB
16181 old_postinstall_cmds=$lt_old_postinstall_cmds
16182 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16183
16184 # Whether to use a lock for old archive extraction.
16185 lock_old_archive_extraction=$lock_old_archive_extraction
16186
16187 # A C compiler.
16188 LTCC=$lt_CC
16189
16190 # LTCC compiler flags.
16191 LTCFLAGS=$lt_CFLAGS
16192
16193 # Take the output of nm and produce a listing of raw symbols and C names.
16194 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16195
16196 # Transform the output of nm in a proper C declaration.
16197 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16198
16199 # Transform the output of nm in a C name address pair.
16200 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16201
16202 # Transform the output of nm in a C name address pair when lib prefix is needed.
16203 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16204
16205 # Specify filename containing input files for \$NM.
16206 nm_file_list_spec=$lt_nm_file_list_spec
16207
16208 # The root where to search for dependent libraries,and in which our libraries should be installed.
16209 lt_sysroot=$lt_sysroot
16210
16211 # The name of the directory that contains temporary libtool files.
16212 objdir=$objdir
16213
16214 # Used to examine libraries when file_magic_cmd begins with "file".
16215 MAGIC_CMD=$MAGIC_CMD
16216
16217 # Must we lock files when doing compilation?
16218 need_locks=$lt_need_locks
16219
16220 # Manifest tool.
16221 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16222
16223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16224 DSYMUTIL=$lt_DSYMUTIL
16225
16226 # Tool to change global to local symbols on Mac OS X.
16227 NMEDIT=$lt_NMEDIT
16228
16229 # Tool to manipulate fat objects and archives on Mac OS X.
16230 LIPO=$lt_LIPO
16231
16232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16233 OTOOL=$lt_OTOOL
16234
16235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16236 OTOOL64=$lt_OTOOL64
16237
16238 # Old archive suffix (normally "a").
16239 libext=$libext
16240
16241 # Shared library suffix (normally ".so").
16242 shrext_cmds=$lt_shrext_cmds
16243
16244 # The commands to extract the exported symbol list from a shared archive.
16245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16246
16247 # Variables whose values should be saved in libtool wrapper scripts and
16248 # restored at link time.
16249 variables_saved_for_relink=$lt_variables_saved_for_relink
16250
16251 # Do we need the "lib" prefix for modules?
16252 need_lib_prefix=$need_lib_prefix
16253
16254 # Do we need a version for libraries?
16255 need_version=$need_version
16256
16257 # Library versioning type.
16258 version_type=$version_type
16259
16260 # Shared library runtime path variable.
16261 runpath_var=$runpath_var
16262
16263 # Shared library path variable.
16264 shlibpath_var=$shlibpath_var
16265
16266 # Is shlibpath searched before the hard-coded library search path?
16267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16268
16269 # Format of library name prefix.
16270 libname_spec=$lt_libname_spec
16271
16272 # List of archive names. First name is the real one, the rest are links.
16273 # The last name is the one that the linker finds with -lNAME
16274 library_names_spec=$lt_library_names_spec
16275
16276 # The coded name of the library, if different from the real name.
16277 soname_spec=$lt_soname_spec
16278
16279 # Permission mode override for installation of shared libraries.
16280 install_override_mode=$lt_install_override_mode
16281
16282 # Command to use after installation of a shared archive.
16283 postinstall_cmds=$lt_postinstall_cmds
16284
16285 # Command to use after uninstallation of a shared archive.
16286 postuninstall_cmds=$lt_postuninstall_cmds
16287
16288 # Commands used to finish a libtool library installation in a directory.
16289 finish_cmds=$lt_finish_cmds
16290
16291 # As "finish_cmds", except a single script fragment to be evaled but
16292 # not shown.
16293 finish_eval=$lt_finish_eval
16294
16295 # Whether we should hardcode library paths into libraries.
16296 hardcode_into_libs=$hardcode_into_libs
16297
16298 # Compile-time system search path for libraries.
16299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16300
16301 # Run-time system search path for libraries.
16302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16303
16304 # Whether dlopen is supported.
16305 dlopen_support=$enable_dlopen
16306
16307 # Whether dlopen of programs is supported.
16308 dlopen_self=$enable_dlopen_self
16309
16310 # Whether dlopen of statically linked programs is supported.
16311 dlopen_self_static=$enable_dlopen_self_static
16312
16313 # Commands to strip libraries.
16314 old_striplib=$lt_old_striplib
16315 striplib=$lt_striplib
16316
16317
16318 # The linker used to build libraries.
16319 LD=$lt_LD
16320
16321 # How to create reloadable object files.
16322 reload_flag=$lt_reload_flag
16323 reload_cmds=$lt_reload_cmds
16324
16325 # Commands used to build an old-style archive.
16326 old_archive_cmds=$lt_old_archive_cmds
16327
16328 # A language specific compiler.
16329 CC=$lt_compiler
16330
16331 # Is the compiler the GNU compiler?
16332 with_gcc=$GCC
16333
16334 # Compiler flag to turn off builtin functions.
16335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16336
16337 # Additional compiler flags for building library objects.
16338 pic_flag=$lt_lt_prog_compiler_pic
16339
16340 # How to pass a linker flag through the compiler.
16341 wl=$lt_lt_prog_compiler_wl
16342
16343 # Compiler flag to prevent dynamic linking.
16344 link_static_flag=$lt_lt_prog_compiler_static
16345
16346 # Does compiler simultaneously support -c and -o options?
16347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16348
16349 # Whether or not to add -lc for building shared libraries.
16350 build_libtool_need_lc=$archive_cmds_need_lc
16351
16352 # Whether or not to disallow shared libs when runtime libs are static.
16353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16354
16355 # Compiler flag to allow reflexive dlopens.
16356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16357
16358 # Compiler flag to generate shared objects directly from archives.
16359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16360
16361 # Whether the compiler copes with passing no objects directly.
16362 compiler_needs_object=$lt_compiler_needs_object
16363
16364 # Create an old-style archive from a shared archive.
16365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16366
16367 # Create a temporary old-style archive to link instead of a shared archive.
16368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16369
16370 # Commands used to build a shared archive.
16371 archive_cmds=$lt_archive_cmds
16372 archive_expsym_cmds=$lt_archive_expsym_cmds
16373
16374 # Commands used to build a loadable module if different from building
16375 # a shared archive.
16376 module_cmds=$lt_module_cmds
16377 module_expsym_cmds=$lt_module_expsym_cmds
16378
16379 # Whether we are building with GNU ld or not.
16380 with_gnu_ld=$lt_with_gnu_ld
16381
16382 # Flag that allows shared libraries with undefined symbols to be built.
16383 allow_undefined_flag=$lt_allow_undefined_flag
16384
16385 # Flag that enforces no undefined symbols.
16386 no_undefined_flag=$lt_no_undefined_flag
16387
16388 # Flag to hardcode \$libdir into a binary during linking.
16389 # This must work even if \$libdir does not exist
16390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16391
16392 # Whether we need a single "-rpath" flag with a separated argument.
16393 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16394
16395 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16396 # DIR into the resulting binary.
16397 hardcode_direct=$hardcode_direct
16398
16399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16400 # DIR into the resulting binary and the resulting library dependency is
16401 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16402 # library is relocated.
16403 hardcode_direct_absolute=$hardcode_direct_absolute
16404
16405 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16406 # into the resulting binary.
16407 hardcode_minus_L=$hardcode_minus_L
16408
16409 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16410 # into the resulting binary.
16411 hardcode_shlibpath_var=$hardcode_shlibpath_var
16412
16413 # Set to "yes" if building a shared library automatically hardcodes DIR
16414 # into the library and all subsequent libraries and executables linked
16415 # against it.
16416 hardcode_automatic=$hardcode_automatic
16417
16418 # Set to yes if linker adds runtime paths of dependent libraries
16419 # to runtime path list.
16420 inherit_rpath=$inherit_rpath
16421
16422 # Whether libtool must link a program against all its dependency libraries.
16423 link_all_deplibs=$link_all_deplibs
16424
16425 # Set to "yes" if exported symbols are required.
16426 always_export_symbols=$always_export_symbols
16427
16428 # The commands to list exported symbols.
16429 export_symbols_cmds=$lt_export_symbols_cmds
16430
16431 # Symbols that should not be listed in the preloaded symbols.
16432 exclude_expsyms=$lt_exclude_expsyms
16433
16434 # Symbols that must always be exported.
16435 include_expsyms=$lt_include_expsyms
16436
16437 # Commands necessary for linking programs (against libraries) with templates.
16438 prelink_cmds=$lt_prelink_cmds
16439
16440 # Commands necessary for finishing linking programs.
16441 postlink_cmds=$lt_postlink_cmds
16442
16443 # Specify filename containing input files.
16444 file_list_spec=$lt_file_list_spec
16445
16446 # How to hardcode a shared library path into an executable.
16447 hardcode_action=$hardcode_action
16448
16449 # The directories searched by this compiler when creating a shared library.
16450 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16451
16452 # Dependencies to place before and after the objects being linked to
16453 # create a shared library.
16454 predep_objects=$lt_predep_objects
16455 postdep_objects=$lt_postdep_objects
16456 predeps=$lt_predeps
16457 postdeps=$lt_postdeps
16458
16459 # The library search path used internally by the compiler when linking
16460 # a shared library.
16461 compiler_lib_search_path=$lt_compiler_lib_search_path
16462
16463 # ### END LIBTOOL CONFIG
16464
16465 _LT_EOF
16466
16467 case $host_os in
16468 aix3*)
16469 cat <<\_LT_EOF >> "$cfgfile"
16470 # AIX sometimes has problems with the GCC collect2 program. For some
16471 # reason, if we set the COLLECT_NAMES environment variable, the problems
16472 # vanish in a puff of smoke.
16473 if test "X${COLLECT_NAMES+set}" != Xset; then
16474 COLLECT_NAMES=
16475 export COLLECT_NAMES
16476 fi
16477 _LT_EOF
16478 ;;
16479 esac
16480
16481
16482 ltmain="$ac_aux_dir/ltmain.sh"
16483
16484
16485 # We use sed instead of cat because bash on DJGPP gets confused if
16486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16487 # text mode, it properly converts lines to CR/LF. This bash problem
16488 # is reportedly fixed, but why not run on old versions too?
16489 sed '$q' "$ltmain" >> "$cfgfile" \
16490 || (rm -f "$cfgfile"; exit 1)
16491
16492 if test x"$xsi_shell" = xyes; then
16493 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16494 func_dirname ()\
16495 {\
16496 \ case ${1} in\
16497 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16498 \ * ) func_dirname_result="${3}" ;;\
16499 \ esac\
16500 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16501 && mv -f "$cfgfile.tmp" "$cfgfile" \
16502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16503 test 0 -eq $? || _lt_function_replace_fail=:
16504
16505
16506 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16507 func_basename ()\
16508 {\
16509 \ func_basename_result="${1##*/}"\
16510 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16511 && mv -f "$cfgfile.tmp" "$cfgfile" \
16512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16513 test 0 -eq $? || _lt_function_replace_fail=:
16514
16515
16516 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16517 func_dirname_and_basename ()\
16518 {\
16519 \ case ${1} in\
16520 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16521 \ * ) func_dirname_result="${3}" ;;\
16522 \ esac\
16523 \ func_basename_result="${1##*/}"\
16524 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16525 && mv -f "$cfgfile.tmp" "$cfgfile" \
16526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16527 test 0 -eq $? || _lt_function_replace_fail=:
16528
16529
16530 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16531 func_stripname ()\
16532 {\
16533 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16534 \ # positional parameters, so assign one to ordinary parameter first.\
16535 \ func_stripname_result=${3}\
16536 \ func_stripname_result=${func_stripname_result#"${1}"}\
16537 \ func_stripname_result=${func_stripname_result%"${2}"}\
16538 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16539 && mv -f "$cfgfile.tmp" "$cfgfile" \
16540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16541 test 0 -eq $? || _lt_function_replace_fail=:
16542
16543
16544 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16545 func_split_long_opt ()\
16546 {\
16547 \ func_split_long_opt_name=${1%%=*}\
16548 \ func_split_long_opt_arg=${1#*=}\
16549 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16550 && mv -f "$cfgfile.tmp" "$cfgfile" \
16551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16552 test 0 -eq $? || _lt_function_replace_fail=:
16553
16554
16555 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16556 func_split_short_opt ()\
16557 {\
16558 \ func_split_short_opt_arg=${1#??}\
16559 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16560 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16561 && mv -f "$cfgfile.tmp" "$cfgfile" \
16562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16563 test 0 -eq $? || _lt_function_replace_fail=:
16564
16565
16566 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16567 func_lo2o ()\
16568 {\
16569 \ case ${1} in\
16570 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16571 \ *) func_lo2o_result=${1} ;;\
16572 \ esac\
16573 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16574 && mv -f "$cfgfile.tmp" "$cfgfile" \
16575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16576 test 0 -eq $? || _lt_function_replace_fail=:
16577
16578
16579 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16580 func_xform ()\
16581 {\
16582 func_xform_result=${1%.*}.lo\
16583 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16584 && mv -f "$cfgfile.tmp" "$cfgfile" \
16585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16586 test 0 -eq $? || _lt_function_replace_fail=:
16587
16588
16589 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16590 func_arith ()\
16591 {\
16592 func_arith_result=$(( $* ))\
16593 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16594 && mv -f "$cfgfile.tmp" "$cfgfile" \
16595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16596 test 0 -eq $? || _lt_function_replace_fail=:
16597
16598
16599 sed -e '/^func_len ()$/,/^} # func_len /c\
16600 func_len ()\
16601 {\
16602 func_len_result=${#1}\
16603 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16604 && mv -f "$cfgfile.tmp" "$cfgfile" \
16605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16606 test 0 -eq $? || _lt_function_replace_fail=:
16607
16608 fi
16609
16610 if test x"$lt_shell_append" = xyes; then
16611 sed -e '/^func_append ()$/,/^} # func_append /c\
16612 func_append ()\
16613 {\
16614 eval "${1}+=\\${2}"\
16615 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16616 && mv -f "$cfgfile.tmp" "$cfgfile" \
16617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16618 test 0 -eq $? || _lt_function_replace_fail=:
16619
16620
16621 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16622 func_append_quoted ()\
16623 {\
16624 \ func_quote_for_eval "${2}"\
16625 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16626 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16627 && mv -f "$cfgfile.tmp" "$cfgfile" \
16628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16629 test 0 -eq $? || _lt_function_replace_fail=:
16630
16631
16632 # Save a `func_append' function call where possible by direct use of '+='
16633 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16634 && mv -f "$cfgfile.tmp" "$cfgfile" \
16635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16636 test 0 -eq $? || _lt_function_replace_fail=:
16637 else
16638 # Save a `func_append' function call even when '+=' is not available
16639 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16640 && mv -f "$cfgfile.tmp" "$cfgfile" \
16641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16642 test 0 -eq $? || _lt_function_replace_fail=:
16643 fi
16644
16645 if test x"$_lt_function_replace_fail" = x":"; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16647 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16648 fi
16649
16650
16651 mv -f "$cfgfile" "$ofile" ||
16652 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16653 chmod +x "$ofile"
16654
16655
16656 cat <<_LT_EOF >> "$ofile"
16657
16658 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16659
16660 # The linker used to build libraries.
16661 LD=$lt_LD_CXX
16662
16663 # How to create reloadable object files.
16664 reload_flag=$lt_reload_flag_CXX
16665 reload_cmds=$lt_reload_cmds_CXX
16666
16667 # Commands used to build an old-style archive.
16668 old_archive_cmds=$lt_old_archive_cmds_CXX
16669
16670 # A language specific compiler.
16671 CC=$lt_compiler_CXX
16672
16673 # Is the compiler the GNU compiler?
16674 with_gcc=$GCC_CXX
16675
16676 # Compiler flag to turn off builtin functions.
16677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16678
16679 # Additional compiler flags for building library objects.
16680 pic_flag=$lt_lt_prog_compiler_pic_CXX
16681
16682 # How to pass a linker flag through the compiler.
16683 wl=$lt_lt_prog_compiler_wl_CXX
16684
16685 # Compiler flag to prevent dynamic linking.
16686 link_static_flag=$lt_lt_prog_compiler_static_CXX
16687
16688 # Does compiler simultaneously support -c and -o options?
16689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16690
16691 # Whether or not to add -lc for building shared libraries.
16692 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16693
16694 # Whether or not to disallow shared libs when runtime libs are static.
16695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16696
16697 # Compiler flag to allow reflexive dlopens.
16698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16699
16700 # Compiler flag to generate shared objects directly from archives.
16701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16702
16703 # Whether the compiler copes with passing no objects directly.
16704 compiler_needs_object=$lt_compiler_needs_object_CXX
16705
16706 # Create an old-style archive from a shared archive.
16707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16708
16709 # Create a temporary old-style archive to link instead of a shared archive.
16710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16711
16712 # Commands used to build a shared archive.
16713 archive_cmds=$lt_archive_cmds_CXX
16714 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16715
16716 # Commands used to build a loadable module if different from building
16717 # a shared archive.
16718 module_cmds=$lt_module_cmds_CXX
16719 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16720
16721 # Whether we are building with GNU ld or not.
16722 with_gnu_ld=$lt_with_gnu_ld_CXX
16723
16724 # Flag that allows shared libraries with undefined symbols to be built.
16725 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16726
16727 # Flag that enforces no undefined symbols.
16728 no_undefined_flag=$lt_no_undefined_flag_CXX
16729
16730 # Flag to hardcode \$libdir into a binary during linking.
16731 # This must work even if \$libdir does not exist
16732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16733
16734 # Whether we need a single "-rpath" flag with a separated argument.
16735 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16736
16737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16738 # DIR into the resulting binary.
16739 hardcode_direct=$hardcode_direct_CXX
16740
16741 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16742 # DIR into the resulting binary and the resulting library dependency is
16743 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16744 # library is relocated.
16745 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16746
16747 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16748 # into the resulting binary.
16749 hardcode_minus_L=$hardcode_minus_L_CXX
16750
16751 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16752 # into the resulting binary.
16753 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16754
16755 # Set to "yes" if building a shared library automatically hardcodes DIR
16756 # into the library and all subsequent libraries and executables linked
16757 # against it.
16758 hardcode_automatic=$hardcode_automatic_CXX
16759
16760 # Set to yes if linker adds runtime paths of dependent libraries
16761 # to runtime path list.
16762 inherit_rpath=$inherit_rpath_CXX
16763
16764 # Whether libtool must link a program against all its dependency libraries.
16765 link_all_deplibs=$link_all_deplibs_CXX
16766
16767 # Set to "yes" if exported symbols are required.
16768 always_export_symbols=$always_export_symbols_CXX
16769
16770 # The commands to list exported symbols.
16771 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16772
16773 # Symbols that should not be listed in the preloaded symbols.
16774 exclude_expsyms=$lt_exclude_expsyms_CXX
16775
16776 # Symbols that must always be exported.
16777 include_expsyms=$lt_include_expsyms_CXX
16778
16779 # Commands necessary for linking programs (against libraries) with templates.
16780 prelink_cmds=$lt_prelink_cmds_CXX
16781
16782 # Commands necessary for finishing linking programs.
16783 postlink_cmds=$lt_postlink_cmds_CXX
16784
16785 # Specify filename containing input files.
16786 file_list_spec=$lt_file_list_spec_CXX
16787
16788 # How to hardcode a shared library path into an executable.
16789 hardcode_action=$hardcode_action_CXX
16790
16791 # The directories searched by this compiler when creating a shared library.
16792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16793
16794 # Dependencies to place before and after the objects being linked to
16795 # create a shared library.
16796 predep_objects=$lt_predep_objects_CXX
16797 postdep_objects=$lt_postdep_objects_CXX
16798 predeps=$lt_predeps_CXX
16799 postdeps=$lt_postdeps_CXX
16800
16801 # The library search path used internally by the compiler when linking
16802 # a shared library.
16803 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16804
16805 # ### END LIBTOOL TAG CONFIG: CXX
16806 _LT_EOF
16807
16808
16809 as_fn_exit 0
16810 _LTEOF
16811 chmod +x "$CONFIG_LT"
16812
16813 # configure is writing to config.log, but config.lt does its own redirection,
16814 # appending to config.log, which fails on DOS, as config.log is still kept
16815 # open by configure. Here we exec the FD to /dev/null, effectively closing
16816 # config.log, so it can be properly (re)opened and appended to by config.lt.
16817 lt_cl_success=:
16818 test "$silent" = yes &&
16819 lt_config_lt_args="$lt_config_lt_args --quiet"
16820 exec 5>/dev/null
16821 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16822 exec 5>>config.log
16823 $lt_cl_success || as_fn_exit 1
16824
16825
16826 # Test for plugin support in GCC.
16827 #
16828
16829 static_plugin=$enable_static
16830
16831
16832 # Check whether --with-gcc-plugin-dir was given.
16833 if test "${with_gcc_plugin_dir+set}" = set; then :
16834 withval=$with_gcc_plugin_dir; gcc_plugin_dir=$withval
16835 else
16836 gcc_plugin_dir=test
16837 fi
16838
16839
16840 if test x"$static_plugin" = xyes; then
16841 gcc_plugin_dir=no
16842 else
16843 if test x"$cross_compiling" = xyes; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install into default GCC plugin dir" >&5
16845 $as_echo_n "checking whether to install into default GCC plugin dir... " >&6; }
16846 case $gcc_plugin_dir in
16847 yes)
16848 as_fn_error $? "GCC plugin directory must be specified explicitly when cross-compiling" "$LINENO" 5
16849 ;;
16850 test)
16851 # We cannot detect the plugin directory since there is no way to
16852 # run host GCC. So assume no.
16853 #
16854 gcc_plugin_dir=no
16855 ;;
16856 no)
16857 ;;
16858 *)
16859 # Add the include/ subdirectory of the plugin dir to CPPFLAGS since
16860 # the plugin headers are normally installed there.
16861 #
16862 CPPFLAGS="$CPPFLAGS -I$gcc_plugin_dir/include"
16863 ;;
16864 esac
16865 else
16866 if test x"$GXX" != xyes; then
16867 as_fn_error $? "$CXX is not a GNU C++ compiler" "$LINENO" 5
16868 fi
16869
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports plugins" >&5
16871 $as_echo_n "checking whether $CXX supports plugins... " >&6; }
16872 dir=`$CXX -print-file-name=plugin 2>/dev/null`
16873
16874 if test x"$dir" = xplugin; then
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16877 as_fn_error $? "$CXX does not support plugins; reconfigure GCC with --enable-plugin" "$LINENO" 5
16878 else
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16880 $as_echo "yes" >&6; }
16881 fi
16882
16883 CPPFLAGS="$CPPFLAGS -I$dir/include"
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install ODB plugin into default GCC plugin directory" >&5
16886 $as_echo_n "checking whether to install ODB plugin into default GCC plugin directory... " >&6; }
16887 case $gcc_plugin_dir in
16888 yes)
16889 gcc_plugin_dir=$dir
16890 ;;
16891 test)
16892 # Only install into the GCC plugin dir if both GCC and ODB are
16893 # installed into the same prefix. Testing whether $libdir or
16894 # $libexecdir is a prefix of the GCC plugin dir is a good
16895 # approximation.
16896 #
16897
16898 # Get the expanded values for libdir and libexecdir.
16899 #
16900 if test x$exec_prefix = xNONE; then
16901 if test x$prefix = xNONE; then
16902 e_exec_prefix=$ac_default_prefix
16903 else
16904 e_exec_prefix=$prefix
16905 fi
16906 else
16907 e_exec_prefix=$exec_prefix
16908 fi
16909
16910 # On some systems GCC is installed into $prefix/lib even though
16911 # libdir is $prefix/lib64 and libexecdir is $prefix/libexec. To
16912 # cover this special case, we will also test $prefix/lib.
16913 #
16914 e_libdir=`echo "$libdir" | sed "s?^\\\${exec_prefix}?$e_exec_prefix?"`
16915 e_libexecdir=`echo "$libexecdir" | sed "s?^\\\${exec_prefix}?$e_exec_prefix?"`
16916 e_libdir32=$e_exec_prefix/lib
16917
16918 # See if either one of them is a prefix of the plugin dir.
16919 #
16920 ld_suffix=`echo "$dir" | sed "s?^$e_libdir/*??"`
16921 led_suffix=`echo "$dir" | sed "s?^$e_libexecdir/*??"`
16922 l32d_suffix=`echo "$dir" | sed "s?^$e_libdir32/*??"`
16923
16924 if test x$ld_suffix != x$dir -o x$led_suffix != x$dir -o x$l32d_suffix != x$dir; then
16925 gcc_plugin_dir=$dir
16926 else
16927 gcc_plugin_dir=no
16928 fi
16929 ;;
16930 *)
16931 ;;
16932 esac
16933 fi
16934
16935 if test x"$gcc_plugin_dir" != xno; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16937 $as_echo "yes" >&6; }
16938 else
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941 fi
16942 fi
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC plugin headers" >&5
16945 $as_echo_n "checking for GCC plugin headers... " >&6; }
16946
16947
16948
16949 ac_ext=cpp
16950 ac_cpp='$CXXCPP $CPPFLAGS'
16951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16954
16955
16956 if test -d .libs; then
16957 delete_libs_dir=no
16958 else
16959 delete_libs_dir=yes
16960 fi
16961
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16964
16965
16966 #include <bversion.h>
16967
16968 #ifndef BUILDING_GCC_MAJOR
16969 # error no BUILDING_GCC_MAJOR in bversion.h
16970 #endif
16971
16972 int main () {}
16973
16974 _ACEOF
16975 if ac_fn_cxx_try_compile "$LINENO"; then :
16976
16977 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
16978 if { { case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981 esac
16982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16983 $as_echo "$ac_try_echo"; } >&5
16984 (eval "$ac_try") 2>&5
16985 ac_status=$?
16986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16987 test $ac_status = 0; }; then
16988 libtool_link_ok=yes
16989 else
16990 libtool_link_ok=no
16991 fi
16992
16993 else
16994
16995 libtool_link_ok=no
16996
16997 fi
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999
17000 if test x"$delete_libs_dir" = xyes; then
17001 rm -rf .libs
17002 fi
17003
17004 if test x"$libtool_link_ok" = xyes; then
17005 gcc_plugin_headers=yes
17006 :
17007 else
17008 gcc_plugin_headers=no
17009 :
17010 fi
17011
17012 ac_ext=cpp
17013 ac_cpp='$CXXCPP $CPPFLAGS'
17014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17017
17018
17019 if test x"$gcc_plugin_headers" = xyes; then
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17021 $as_echo "yes" >&6; }
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17025 as_fn_error $? "GCC plugin headers not found; consider installing GCC plugin development package" "$LINENO" 5
17026 fi
17027
17028
17029 # See if we are building static plugin. Static build should only be
17030 # used if you are building a custom version of GCC with the ODB
17031 # plugin linked-in statically. This is primarily useful on Windows
17032 # where GCC plugins are not (yet) supported due to dynamic loading
17033 # limitations. In this case the headers normally come from the GCC
17034 # build directly via CPPFLAGS.
17035 #
17036 if test x$static_plugin = xyes; then
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building static plugin for direct linking into GCC executable!" >&5
17038 $as_echo "$as_me: WARNING: Building static plugin for direct linking into GCC executable!" >&2;}
17039
17040 $as_echo "#define ODB_STATIC_PLUGIN 1" >>confdefs.h
17041
17042 plugindir='$(pkglibexecdir)'
17043
17044 # Otherwise, see if we should install the plugin into the GCC plugin dir.
17045 #
17046 elif test x$gcc_plugin_dir != xno; then
17047
17048 $as_echo "#define ODB_GCC_PLUGIN_DIR 1" >>confdefs.h
17049
17050 plugindir=$gcc_plugin_dir
17051
17052 # Otherwise, try to figure out a relative path from the driver (bindir) to
17053 # the plugin (libexecdir).
17054 #
17055 elif test x$static_plugin = xno; then
17056 # Get the expanded values for bindir and libexecdir.
17057 #
17058 if test x$exec_prefix = xNONE; then
17059 if test x$prefix = xNONE; then
17060 e_exec_prefix=$ac_default_prefix
17061 else
17062 e_exec_prefix=$prefix
17063 fi
17064 else
17065 e_exec_prefix=$exec_prefix
17066 fi
17067
17068 e_pkglibexecdir=`echo "$libexecdir/$PACKAGE_NAME" | sed "s?^\\\${exec_prefix}?$e_exec_prefix?"`
17069 e_bindir=`echo "$bindir" | sed "s?^\\\${exec_prefix}?$e_exec_prefix?"`
17070
17071 # Try to find a common prefix.
17072 #
17073 common=$e_bindir
17074 rel_plugindir=$e_pkglibexecdir
17075
17076 while test x$common != x/; do
17077 suffix=`echo "$e_pkglibexecdir" | sed "s?^$common/*??"`
17078 if test x$suffix != x$e_pkglibexecdir; then
17079 # Replace all the remaining directories in bindir with ".."
17080 # and append the suffix.
17081 rel_plugindir=`echo "$e_bindir" | sed "s?^$common/*??"`
17082 rel_plugindir=`echo "$rel_plugindir" | sed 's?[^/][^/]*?..?g'`
17083 if test x$rel_plugindir != x -a x$suffix != x; then
17084 rel_plugindir="$rel_plugindir/$suffix"
17085 else
17086 rel_plugindir="$rel_plugindir$suffix"
17087 fi
17088 break
17089 fi
17090 common=`$as_dirname -- "$common" ||
17091 $as_expr X"$common" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17092 X"$common" : 'X\(//\)[^/]' \| \
17093 X"$common" : 'X\(//\)$' \| \
17094 X"$common" : 'X\(/\)' \| . 2>/dev/null ||
17095 $as_echo X"$common" |
17096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17097 s//\1/
17098 q
17099 }
17100 /^X\(\/\/\)[^/].*/{
17101 s//\1/
17102 q
17103 }
17104 /^X\(\/\/\)$/{
17105 s//\1/
17106 q
17107 }
17108 /^X\(\/\).*/{
17109 s//\1/
17110 q
17111 }
17112 s/.*/./; q'`
17113 done
17114
17115 cat >>confdefs.h <<_ACEOF
17116 #define ODB_PLUGIN_PATH "$rel_plugindir"
17117 _ACEOF
17118
17119 plugindir='$(pkglibexecdir)'
17120 fi
17121
17122
17123
17124 # G++ name.
17125 #
17126
17127 # Check whether --with-gxx-name was given.
17128 if test "${with_gxx_name+set}" = set; then :
17129 withval=$with_gxx_name; case $withval in
17130 no)
17131 gxx_name=
17132 ;;
17133 yes)
17134 gxx_name=$CXX
17135 ;;
17136 *)
17137 gxx_name="$withval"
17138 ;;
17139 esac
17140 else
17141 gxx_name=$CXX
17142 fi
17143
17144
17145 if test "x$gxx_name" != x; then :
17146
17147 cat >>confdefs.h <<_ACEOF
17148 #define ODB_GXX_NAME "$gxx_name"
17149 _ACEOF
17150
17151 fi
17152
17153 # Default options file.
17154 #
17155
17156 # Check whether --with-options-file was given.
17157 if test "${with_options_file+set}" = set; then :
17158 withval=$with_options_file; case $withval in
17159 no)
17160 options_file=
17161 ;;
17162 yes)
17163 options_file=../etc/odb/default.options
17164 ;;
17165 *)
17166 options_file="$withval"
17167 ;;
17168 esac
17169 else
17170 options_file=
17171 fi
17172
17173
17174 if test "x$options_file" != x; then :
17175
17176 cat >>confdefs.h <<_ACEOF
17177 #define ODB_DEFAULT_OPTIONS_FILE "$options_file"
17178 _ACEOF
17179
17180 fi
17181
17182 # Check for libcutl.
17183 #
17184
17185 libcutl_found=no
17186
17187
17188 # Check whether --with-libcutl was given.
17189 if test "${with_libcutl+set}" = set; then :
17190 withval=$with_libcutl; libcutl_dir=${withval}
17191 else
17192 libcutl_dir=
17193 fi
17194
17195
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcutl" >&5
17197 $as_echo_n "checking for libcutl... " >&6; }
17198
17199 # If libcutl_dir was given, add the necessary preprocessor and linker flags.
17200 #
17201 if test x"$libcutl_dir" != x; then
17202 save_CPPFLAGS="$CPPFLAGS"
17203 save_LDFLAGS="$LDFLAGS"
17204
17205 case $ac_pwd in #((
17206 .) abs_libcutl_dir=$libcutl_dir;;
17207 *)
17208 case $libcutl_dir in #(((
17209 .) abs_libcutl_dir=$ac_pwd;;
17210 [\\/]* | ?:[\\/]* ) abs_libcutl_dir=$libcutl_dir;;
17211 *) abs_libcutl_dir=$ac_pwd/$libcutl_dir;;
17212 esac;;
17213 esac
17214
17215 CPPFLAGS="$CPPFLAGS -I$abs_libcutl_dir"
17216 LDFLAGS="$LDFLAGS -L$abs_libcutl_dir/cutl"
17217 fi
17218
17219 save_LIBS="$LIBS"
17220 LIBS="-lcutl $LIBS"
17221
17222
17223
17224 ac_ext=cpp
17225 ac_cpp='$CXXCPP $CPPFLAGS'
17226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17229
17230
17231 if test -d .libs; then
17232 delete_libs_dir=no
17233 else
17234 delete_libs_dir=yes
17235 fi
17236
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17239
17240
17241 #include <cutl/exception.hxx>
17242
17243 void
17244 f ()
17245 {
17246 }
17247
17248 const char*
17249 g ()
17250 {
17251 try
17252 {
17253 f ();
17254 }
17255 catch (const cutl::exception& e)
17256 {
17257 return e.what ();
17258 }
17259 return 0;
17260 }
17261
17262 int
17263 main ()
17264 {
17265 const char* m (g ());
17266 return m != 0;
17267 }
17268
17269 _ACEOF
17270 if ac_fn_cxx_try_compile "$LINENO"; then :
17271
17272 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17273 if { { case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276 esac
17277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17278 $as_echo "$ac_try_echo"; } >&5
17279 (eval "$ac_try") 2>&5
17280 ac_status=$?
17281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17282 test $ac_status = 0; }; then
17283 libtool_link_ok=yes
17284 else
17285 libtool_link_ok=no
17286 fi
17287
17288 else
17289
17290 libtool_link_ok=no
17291
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294
17295 if test x"$delete_libs_dir" = xyes; then
17296 rm -rf .libs
17297 fi
17298
17299 if test x"$libtool_link_ok" = xyes; then
17300 libcutl_found=yes
17301 :
17302 else
17303
17304 :
17305 fi
17306
17307 ac_ext=cpp
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17312
17313
17314 if test x"$libcutl_found" = xno; then
17315 LIBS="$save_LIBS"
17316
17317 if test x"$libcutl_dir" != x; then
17318 CPPFLAGS="$save_CPPFLAGS"
17319 LDFLAGS="$save_LDFLAGS"
17320 fi
17321 fi
17322
17323 if test x"$libcutl_found" = xyes; then
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17325 $as_echo "yes" >&6; }
17326
17327 else
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17330 as_fn_error $? "libcutl is not found; consider using --with-libcutl=DIR" "$LINENO" 5
17331 fi
17332
17333
17334 # Check if we should disable rpath.
17335 #
17336
17337
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
17339 $as_echo_n "checking whether to use rpath... " >&6; }
17340 # Check whether --enable-rpath was given.
17341 if test "${enable_rpath+set}" = set; then :
17342 enableval=$enable_rpath; libtool_rpath="$enable_rpath"
17343 else
17344 libtool_rpath="yes"
17345 fi
17346
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool_rpath" >&5
17348 $as_echo "$libtool_rpath" >&6; }
17349
17350 # Patch libtool to not use rpath if requested.
17351 #
17352 ac_config_commands="$ac_config_commands libtool-rpath-patch"
17353
17354
17355
17356 # Output.
17357 #
17358 ac_config_headers="$ac_config_headers odb/config.h"
17359
17360 ac_config_files="$ac_config_files doc/Makefile Makefile odb/Makefile"
17361
17362 cat >confcache <<\_ACEOF
17363 # This file is a shell script that caches the results of configure
17364 # tests run on this system so they can be shared between configure
17365 # scripts and configure runs, see configure's option --config-cache.
17366 # It is not useful on other systems. If it contains results you don't
17367 # want to keep, you may remove or edit it.
17368 #
17369 # config.status only pays attention to the cache file if you give it
17370 # the --recheck option to rerun configure.
17371 #
17372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17374 # following values.
17375
17376 _ACEOF
17377
17378 # The following way of writing the cache mishandles newlines in values,
17379 # but we know of no workaround that is simple, portable, and efficient.
17380 # So, we kill variables containing newlines.
17381 # Ultrix sh set writes to stderr and can't be redirected directly,
17382 # and sets the high bit in the cache file unless we assign to the vars.
17383 (
17384 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17385 eval ac_val=\$$ac_var
17386 case $ac_val in #(
17387 *${as_nl}*)
17388 case $ac_var in #(
17389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17391 esac
17392 case $ac_var in #(
17393 _ | IFS | as_nl) ;; #(
17394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17395 *) { eval $ac_var=; unset $ac_var;} ;;
17396 esac ;;
17397 esac
17398 done
17399
17400 (set) 2>&1 |
17401 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17402 *${as_nl}ac_space=\ *)
17403 # `set' does not quote correctly, so add quotes: double-quote
17404 # substitution turns \\\\ into \\, and sed turns \\ into \.
17405 sed -n \
17406 "s/'/'\\\\''/g;
17407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17408 ;; #(
17409 *)
17410 # `set' quotes correctly as required by POSIX, so do not add quotes.
17411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17412 ;;
17413 esac |
17414 sort
17415 ) |
17416 sed '
17417 /^ac_cv_env_/b end
17418 t clear
17419 :clear
17420 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17421 t end
17422 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17423 :end' >>confcache
17424 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17425 if test -w "$cache_file"; then
17426 if test "x$cache_file" != "x/dev/null"; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17428 $as_echo "$as_me: updating cache $cache_file" >&6;}
17429 if test ! -f "$cache_file" || test -h "$cache_file"; then
17430 cat confcache >"$cache_file"
17431 else
17432 case $cache_file in #(
17433 */* | ?:*)
17434 mv -f confcache "$cache_file"$$ &&
17435 mv -f "$cache_file"$$ "$cache_file" ;; #(
17436 *)
17437 mv -f confcache "$cache_file" ;;
17438 esac
17439 fi
17440 fi
17441 else
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17443 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17444 fi
17445 fi
17446 rm -f confcache
17447
17448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17449 # Let make expand exec_prefix.
17450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17451
17452 DEFS=-DHAVE_CONFIG_H
17453
17454 ac_libobjs=
17455 ac_ltlibobjs=
17456 U=
17457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17458 # 1. Remove the extension, and $U if already installed.
17459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17462 # will be set to the directory where LIBOBJS objects are built.
17463 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17464 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17465 done
17466 LIBOBJS=$ac_libobjs
17467
17468 LTLIBOBJS=$ac_ltlibobjs
17469
17470
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17472 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17473 if test -n "$am_sleep_pid"; then
17474 # Hide warnings about reused PIDs.
17475 wait $am_sleep_pid 2>/dev/null
17476 fi
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17478 $as_echo "done" >&6; }
17479 if test -n "$EXEEXT"; then
17480 am__EXEEXT_TRUE=
17481 am__EXEEXT_FALSE='#'
17482 else
17483 am__EXEEXT_TRUE='#'
17484 am__EXEEXT_FALSE=
17485 fi
17486
17487 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17488 as_fn_error $? "conditional \"AMDEP\" was never defined.
17489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17490 fi
17491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17492 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17494 fi
17495 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17496 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17498 fi
17499
17500 : "${CONFIG_STATUS=./config.status}"
17501 ac_write_fail=0
17502 ac_clean_files_save=$ac_clean_files
17503 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17505 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17506 as_write_fail=0
17507 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17508 #! $SHELL
17509 # Generated by $as_me.
17510 # Run this file to recreate the current configuration.
17511 # Compiler output produced by configure, useful for debugging
17512 # configure, is in config.log if it exists.
17513
17514 debug=false
17515 ac_cs_recheck=false
17516 ac_cs_silent=false
17517
17518 SHELL=\${CONFIG_SHELL-$SHELL}
17519 export SHELL
17520 _ASEOF
17521 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17522 ## -------------------- ##
17523 ## M4sh Initialization. ##
17524 ## -------------------- ##
17525
17526 # Be more Bourne compatible
17527 DUALCASE=1; export DUALCASE # for MKS sh
17528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17529 emulate sh
17530 NULLCMD=:
17531 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17532 # is contrary to our usage. Disable this feature.
17533 alias -g '${1+"$@"}'='"$@"'
17534 setopt NO_GLOB_SUBST
17535 else
17536 case `(set -o) 2>/dev/null` in #(
17537 *posix*) :
17538 set -o posix ;; #(
17539 *) :
17540 ;;
17541 esac
17542 fi
17543
17544
17545 as_nl='
17546 '
17547 export as_nl
17548 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17549 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17550 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17552 # Prefer a ksh shell builtin over an external printf program on Solaris,
17553 # but without wasting forks for bash or zsh.
17554 if test -z "$BASH_VERSION$ZSH_VERSION" \
17555 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17556 as_echo='print -r --'
17557 as_echo_n='print -rn --'
17558 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17559 as_echo='printf %s\n'
17560 as_echo_n='printf %s'
17561 else
17562 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17563 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17564 as_echo_n='/usr/ucb/echo -n'
17565 else
17566 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17567 as_echo_n_body='eval
17568 arg=$1;
17569 case $arg in #(
17570 *"$as_nl"*)
17571 expr "X$arg" : "X\\(.*\\)$as_nl";
17572 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17573 esac;
17574 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17575 '
17576 export as_echo_n_body
17577 as_echo_n='sh -c $as_echo_n_body as_echo'
17578 fi
17579 export as_echo_body
17580 as_echo='sh -c $as_echo_body as_echo'
17581 fi
17582
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585 PATH_SEPARATOR=:
17586 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17587 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17588 PATH_SEPARATOR=';'
17589 }
17590 fi
17591
17592
17593 # IFS
17594 # We need space, tab and new line, in precisely that order. Quoting is
17595 # there to prevent editors from complaining about space-tab.
17596 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17597 # splitting by setting IFS to empty value.)
17598 IFS=" "" $as_nl"
17599
17600 # Find who we are. Look in the path if we contain no directory separator.
17601 as_myself=
17602 case $0 in #((
17603 *[\\/]* ) as_myself=$0 ;;
17604 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17605 for as_dir in $PATH
17606 do
17607 IFS=$as_save_IFS
17608 test -z "$as_dir" && as_dir=.
17609 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17610 done
17611 IFS=$as_save_IFS
17612
17613 ;;
17614 esac
17615 # We did not find ourselves, most probably we were run as `sh COMMAND'
17616 # in which case we are not to be found in the path.
17617 if test "x$as_myself" = x; then
17618 as_myself=$0
17619 fi
17620 if test ! -f "$as_myself"; then
17621 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17622 exit 1
17623 fi
17624
17625 # Unset variables that we do not need and which cause bugs (e.g. in
17626 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17627 # suppresses any "Segmentation fault" message there. '((' could
17628 # trigger a bug in pdksh 5.2.14.
17629 for as_var in BASH_ENV ENV MAIL MAILPATH
17630 do eval test x\${$as_var+set} = xset \
17631 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17632 done
17633 PS1='$ '
17634 PS2='> '
17635 PS4='+ '
17636
17637 # NLS nuisances.
17638 LC_ALL=C
17639 export LC_ALL
17640 LANGUAGE=C
17641 export LANGUAGE
17642
17643 # CDPATH.
17644 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17645
17646
17647 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17648 # ----------------------------------------
17649 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17650 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17651 # script with STATUS, using 1 if that was 0.
17652 as_fn_error ()
17653 {
17654 as_status=$1; test $as_status -eq 0 && as_status=1
17655 if test "$4"; then
17656 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17657 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17658 fi
17659 $as_echo "$as_me: error: $2" >&2
17660 as_fn_exit $as_status
17661 } # as_fn_error
17662
17663
17664 # as_fn_set_status STATUS
17665 # -----------------------
17666 # Set $? to STATUS, without forking.
17667 as_fn_set_status ()
17668 {
17669 return $1
17670 } # as_fn_set_status
17671
17672 # as_fn_exit STATUS
17673 # -----------------
17674 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17675 as_fn_exit ()
17676 {
17677 set +e
17678 as_fn_set_status $1
17679 exit $1
17680 } # as_fn_exit
17681
17682 # as_fn_unset VAR
17683 # ---------------
17684 # Portably unset VAR.
17685 as_fn_unset ()
17686 {
17687 { eval $1=; unset $1;}
17688 }
17689 as_unset=as_fn_unset
17690 # as_fn_append VAR VALUE
17691 # ----------------------
17692 # Append the text in VALUE to the end of the definition contained in VAR. Take
17693 # advantage of any shell optimizations that allow amortized linear growth over
17694 # repeated appends, instead of the typical quadratic growth present in naive
17695 # implementations.
17696 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17697 eval 'as_fn_append ()
17698 {
17699 eval $1+=\$2
17700 }'
17701 else
17702 as_fn_append ()
17703 {
17704 eval $1=\$$1\$2
17705 }
17706 fi # as_fn_append
17707
17708 # as_fn_arith ARG...
17709 # ------------------
17710 # Perform arithmetic evaluation on the ARGs, and store the result in the
17711 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17712 # must be portable across $(()) and expr.
17713 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17714 eval 'as_fn_arith ()
17715 {
17716 as_val=$(( $* ))
17717 }'
17718 else
17719 as_fn_arith ()
17720 {
17721 as_val=`expr "$@" || test $? -eq 1`
17722 }
17723 fi # as_fn_arith
17724
17725
17726 if expr a : '\(a\)' >/dev/null 2>&1 &&
17727 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17728 as_expr=expr
17729 else
17730 as_expr=false
17731 fi
17732
17733 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17734 as_basename=basename
17735 else
17736 as_basename=false
17737 fi
17738
17739 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17740 as_dirname=dirname
17741 else
17742 as_dirname=false
17743 fi
17744
17745 as_me=`$as_basename -- "$0" ||
17746 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17747 X"$0" : 'X\(//\)$' \| \
17748 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17749 $as_echo X/"$0" |
17750 sed '/^.*\/\([^/][^/]*\)\/*$/{
17751 s//\1/
17752 q
17753 }
17754 /^X\/\(\/\/\)$/{
17755 s//\1/
17756 q
17757 }
17758 /^X\/\(\/\).*/{
17759 s//\1/
17760 q
17761 }
17762 s/.*/./; q'`
17763
17764 # Avoid depending upon Character Ranges.
17765 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17766 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17767 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17768 as_cr_digits='0123456789'
17769 as_cr_alnum=$as_cr_Letters$as_cr_digits
17770
17771 ECHO_C= ECHO_N= ECHO_T=
17772 case `echo -n x` in #(((((
17773 -n*)
17774 case `echo 'xy\c'` in
17775 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17776 xy) ECHO_C='\c';;
17777 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17778 ECHO_T=' ';;
17779 esac;;
17780 *)
17781 ECHO_N='-n';;
17782 esac
17783
17784 rm -f conf$$ conf$$.exe conf$$.file
17785 if test -d conf$$.dir; then
17786 rm -f conf$$.dir/conf$$.file
17787 else
17788 rm -f conf$$.dir
17789 mkdir conf$$.dir 2>/dev/null
17790 fi
17791 if (echo >conf$$.file) 2>/dev/null; then
17792 if ln -s conf$$.file conf$$ 2>/dev/null; then
17793 as_ln_s='ln -s'
17794 # ... but there are two gotchas:
17795 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17796 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17797 # In both cases, we have to default to `cp -pR'.
17798 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17799 as_ln_s='cp -pR'
17800 elif ln conf$$.file conf$$ 2>/dev/null; then
17801 as_ln_s=ln
17802 else
17803 as_ln_s='cp -pR'
17804 fi
17805 else
17806 as_ln_s='cp -pR'
17807 fi
17808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17809 rmdir conf$$.dir 2>/dev/null
17810
17811
17812 # as_fn_mkdir_p
17813 # -------------
17814 # Create "$as_dir" as a directory, including parents if necessary.
17815 as_fn_mkdir_p ()
17816 {
17817
17818 case $as_dir in #(
17819 -*) as_dir=./$as_dir;;
17820 esac
17821 test -d "$as_dir" || eval $as_mkdir_p || {
17822 as_dirs=
17823 while :; do
17824 case $as_dir in #(
17825 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17826 *) as_qdir=$as_dir;;
17827 esac
17828 as_dirs="'$as_qdir' $as_dirs"
17829 as_dir=`$as_dirname -- "$as_dir" ||
17830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17831 X"$as_dir" : 'X\(//\)[^/]' \| \
17832 X"$as_dir" : 'X\(//\)$' \| \
17833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17834 $as_echo X"$as_dir" |
17835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17836 s//\1/
17837 q
17838 }
17839 /^X\(\/\/\)[^/].*/{
17840 s//\1/
17841 q
17842 }
17843 /^X\(\/\/\)$/{
17844 s//\1/
17845 q
17846 }
17847 /^X\(\/\).*/{
17848 s//\1/
17849 q
17850 }
17851 s/.*/./; q'`
17852 test -d "$as_dir" && break
17853 done
17854 test -z "$as_dirs" || eval "mkdir $as_dirs"
17855 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17856
17857
17858 } # as_fn_mkdir_p
17859 if mkdir -p . 2>/dev/null; then
17860 as_mkdir_p='mkdir -p "$as_dir"'
17861 else
17862 test -d ./-p && rmdir ./-p
17863 as_mkdir_p=false
17864 fi
17865
17866
17867 # as_fn_executable_p FILE
17868 # -----------------------
17869 # Test if FILE is an executable regular file.
17870 as_fn_executable_p ()
17871 {
17872 test -f "$1" && test -x "$1"
17873 } # as_fn_executable_p
17874 as_test_x='test -x'
17875 as_executable_p=as_fn_executable_p
17876
17877 # Sed expression to map a string onto a valid CPP name.
17878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17879
17880 # Sed expression to map a string onto a valid variable name.
17881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17882
17883
17884 exec 6>&1
17885 ## ----------------------------------- ##
17886 ## Main body of $CONFIG_STATUS script. ##
17887 ## ----------------------------------- ##
17888 _ASEOF
17889 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17890
17891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17892 # Save the log message, to keep $0 and so on meaningful, and to
17893 # report actual input values of CONFIG_FILES etc. instead of their
17894 # values after options handling.
17895 ac_log="
17896 This file was extended by odb $as_me 2.4.0, which was
17897 generated by GNU Autoconf 2.69. Invocation command line was
17898
17899 CONFIG_FILES = $CONFIG_FILES
17900 CONFIG_HEADERS = $CONFIG_HEADERS
17901 CONFIG_LINKS = $CONFIG_LINKS
17902 CONFIG_COMMANDS = $CONFIG_COMMANDS
17903 $ $0 $@
17904
17905 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17906 "
17907
17908 _ACEOF
17909
17910 case $ac_config_files in *"
17911 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17912 esac
17913
17914 case $ac_config_headers in *"
17915 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17916 esac
17917
17918
17919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17920 # Files that config.status was made for.
17921 config_files="$ac_config_files"
17922 config_headers="$ac_config_headers"
17923 config_commands="$ac_config_commands"
17924
17925 _ACEOF
17926
17927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17928 ac_cs_usage="\
17929 \`$as_me' instantiates files and other configuration actions
17930 from templates according to the current configuration. Unless the files
17931 and actions are specified as TAGs, all are instantiated by default.
17932
17933 Usage: $0 [OPTION]... [TAG]...
17934
17935 -h, --help print this help, then exit
17936 -V, --version print version number and configuration settings, then exit
17937 --config print configuration, then exit
17938 -q, --quiet, --silent
17939 do not print progress messages
17940 -d, --debug don't remove temporary files
17941 --recheck update $as_me by reconfiguring in the same conditions
17942 --file=FILE[:TEMPLATE]
17943 instantiate the configuration file FILE
17944 --header=FILE[:TEMPLATE]
17945 instantiate the configuration header FILE
17946
17947 Configuration files:
17948 $config_files
17949
17950 Configuration headers:
17951 $config_headers
17952
17953 Configuration commands:
17954 $config_commands
17955
17956 Report bugs to <[email protected]>."
17957
17958 _ACEOF
17959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17960 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17961 ac_cs_version="\\
17962 odb config.status 2.4.0
17963 configured by $0, generated by GNU Autoconf 2.69,
17964 with options \\"\$ac_cs_config\\"
17965
17966 Copyright (C) 2012 Free Software Foundation, Inc.
17967 This config.status script is free software; the Free Software Foundation
17968 gives unlimited permission to copy, distribute and modify it."
17969
17970 ac_pwd='$ac_pwd'
17971 srcdir='$srcdir'
17972 INSTALL='$INSTALL'
17973 MKDIR_P='$MKDIR_P'
17974 AWK='$AWK'
17975 test -n "\$AWK" || AWK=awk
17976 _ACEOF
17977
17978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17979 # The default lists apply if the user does not specify any file.
17980 ac_need_defaults=:
17981 while test $# != 0
17982 do
17983 case $1 in
17984 --*=?*)
17985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17987 ac_shift=:
17988 ;;
17989 --*=)
17990 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17991 ac_optarg=
17992 ac_shift=:
17993 ;;
17994 *)
17995 ac_option=$1
17996 ac_optarg=$2
17997 ac_shift=shift
17998 ;;
17999 esac
18000
18001 case $ac_option in
18002 # Handling of the options.
18003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18004 ac_cs_recheck=: ;;
18005 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18006 $as_echo "$ac_cs_version"; exit ;;
18007 --config | --confi | --conf | --con | --co | --c )
18008 $as_echo "$ac_cs_config"; exit ;;
18009 --debug | --debu | --deb | --de | --d | -d )
18010 debug=: ;;
18011 --file | --fil | --fi | --f )
18012 $ac_shift
18013 case $ac_optarg in
18014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18015 '') as_fn_error $? "missing file argument" ;;
18016 esac
18017 as_fn_append CONFIG_FILES " '$ac_optarg'"
18018 ac_need_defaults=false;;
18019 --header | --heade | --head | --hea )
18020 $ac_shift
18021 case $ac_optarg in
18022 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18023 esac
18024 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18025 ac_need_defaults=false;;
18026 --he | --h)
18027 # Conflict between --help and --header
18028 as_fn_error $? "ambiguous option: \`$1'
18029 Try \`$0 --help' for more information.";;
18030 --help | --hel | -h )
18031 $as_echo "$ac_cs_usage"; exit ;;
18032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18033 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18034 ac_cs_silent=: ;;
18035
18036 # This is an error.
18037 -*) as_fn_error $? "unrecognized option: \`$1'
18038 Try \`$0 --help' for more information." ;;
18039
18040 *) as_fn_append ac_config_targets " $1"
18041 ac_need_defaults=false ;;
18042
18043 esac
18044 shift
18045 done
18046
18047 ac_configure_extra_args=
18048
18049 if $ac_cs_silent; then
18050 exec 6>/dev/null
18051 ac_configure_extra_args="$ac_configure_extra_args --silent"
18052 fi
18053
18054 _ACEOF
18055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18056 if \$ac_cs_recheck; then
18057 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18058 shift
18059 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18060 CONFIG_SHELL='$SHELL'
18061 export CONFIG_SHELL
18062 exec "\$@"
18063 fi
18064
18065 _ACEOF
18066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18067 exec 5>>config.log
18068 {
18069 echo
18070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18071 ## Running $as_me. ##
18072 _ASBOX
18073 $as_echo "$ac_log"
18074 } >&5
18075
18076 _ACEOF
18077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18078 #
18079 # INIT-COMMANDS
18080 #
18081 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18082
18083
18084 # The HP-UX ksh and POSIX shell print the target directory to stdout
18085 # if CDPATH is set.
18086 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18087
18088 sed_quote_subst='$sed_quote_subst'
18089 double_quote_subst='$double_quote_subst'
18090 delay_variable_subst='$delay_variable_subst'
18091 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18092 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18093 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18094 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18095 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18096 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18097 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18098 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18099 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18100 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18101 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18102 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18103 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18104 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18105 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18106 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18107 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18108 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18109 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18110 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18111 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18112 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18113 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18114 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18115 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18116 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18117 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18118 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18119 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18120 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18121 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18122 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18123 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18124 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18125 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18126 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18127 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18128 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18129 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18130 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18131 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18132 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18133 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18134 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18135 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18136 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18137 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18138 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18139 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18140 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18141 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18142 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18143 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18144 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18145 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18146 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18147 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"`'
18148 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18149 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18150 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18151 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18152 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18153 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18154 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18155 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18156 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18157 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18158 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18159 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18160 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18161 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18162 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18163 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18164 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18165 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18166 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18167 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18168 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18169 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18170 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18171 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18172 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18173 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18174 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18175 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18176 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18177 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18178 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18179 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18180 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18181 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18182 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18183 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18184 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18185 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18186 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18187 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18188 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18189 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18190 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18191 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18192 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18193 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18194 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18195 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18196 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18197 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18198 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18199 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18200 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18201 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18202 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18203 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18204 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18205 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18206 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18207 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18208 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18209 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18210 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18211 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18212 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18213 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18214 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18215 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18216 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18217 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18218 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18219 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18220 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18221 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18222 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18223 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18224 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18225 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18226 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18227 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18228 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18229 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18230 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18231 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18232 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18233 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18234 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18235 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18236 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18237 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18238 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18239 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18240 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18241 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18242 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18243 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18244 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18245 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18246 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18247 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18248 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18249 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18250 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18251 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18252 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18253 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18254 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18255 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18256 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18257 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18258 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18259 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18260 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18261 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18262 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18263 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18264 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18265 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18266 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18267 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18268 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18269 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18270 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18271 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18272 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18273 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18274 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18275
18276 LTCC='$LTCC'
18277 LTCFLAGS='$LTCFLAGS'
18278 compiler='$compiler_DEFAULT'
18279
18280 # A function that is used when there is no print builtin or printf.
18281 func_fallback_echo ()
18282 {
18283 eval 'cat <<_LTECHO_EOF
18284 \$1
18285 _LTECHO_EOF'
18286 }
18287
18288 # Quote evaled strings.
18289 for var in SHELL \
18290 ECHO \
18291 PATH_SEPARATOR \
18292 SED \
18293 GREP \
18294 EGREP \
18295 FGREP \
18296 LD \
18297 NM \
18298 LN_S \
18299 lt_SP2NL \
18300 lt_NL2SP \
18301 reload_flag \
18302 OBJDUMP \
18303 deplibs_check_method \
18304 file_magic_cmd \
18305 file_magic_glob \
18306 want_nocaseglob \
18307 DLLTOOL \
18308 sharedlib_from_linklib_cmd \
18309 AR \
18310 AR_FLAGS \
18311 archiver_list_spec \
18312 STRIP \
18313 RANLIB \
18314 CC \
18315 CFLAGS \
18316 compiler \
18317 lt_cv_sys_global_symbol_pipe \
18318 lt_cv_sys_global_symbol_to_cdecl \
18319 lt_cv_sys_global_symbol_to_c_name_address \
18320 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18321 nm_file_list_spec \
18322 lt_prog_compiler_no_builtin_flag \
18323 lt_prog_compiler_pic \
18324 lt_prog_compiler_wl \
18325 lt_prog_compiler_static \
18326 lt_cv_prog_compiler_c_o \
18327 need_locks \
18328 MANIFEST_TOOL \
18329 DSYMUTIL \
18330 NMEDIT \
18331 LIPO \
18332 OTOOL \
18333 OTOOL64 \
18334 shrext_cmds \
18335 export_dynamic_flag_spec \
18336 whole_archive_flag_spec \
18337 compiler_needs_object \
18338 with_gnu_ld \
18339 allow_undefined_flag \
18340 no_undefined_flag \
18341 hardcode_libdir_flag_spec \
18342 hardcode_libdir_separator \
18343 exclude_expsyms \
18344 include_expsyms \
18345 file_list_spec \
18346 variables_saved_for_relink \
18347 libname_spec \
18348 library_names_spec \
18349 soname_spec \
18350 install_override_mode \
18351 finish_eval \
18352 old_striplib \
18353 striplib \
18354 compiler_lib_search_dirs \
18355 predep_objects \
18356 postdep_objects \
18357 predeps \
18358 postdeps \
18359 compiler_lib_search_path \
18360 LD_CXX \
18361 reload_flag_CXX \
18362 compiler_CXX \
18363 lt_prog_compiler_no_builtin_flag_CXX \
18364 lt_prog_compiler_pic_CXX \
18365 lt_prog_compiler_wl_CXX \
18366 lt_prog_compiler_static_CXX \
18367 lt_cv_prog_compiler_c_o_CXX \
18368 export_dynamic_flag_spec_CXX \
18369 whole_archive_flag_spec_CXX \
18370 compiler_needs_object_CXX \
18371 with_gnu_ld_CXX \
18372 allow_undefined_flag_CXX \
18373 no_undefined_flag_CXX \
18374 hardcode_libdir_flag_spec_CXX \
18375 hardcode_libdir_separator_CXX \
18376 exclude_expsyms_CXX \
18377 include_expsyms_CXX \
18378 file_list_spec_CXX \
18379 compiler_lib_search_dirs_CXX \
18380 predep_objects_CXX \
18381 postdep_objects_CXX \
18382 predeps_CXX \
18383 postdeps_CXX \
18384 compiler_lib_search_path_CXX; do
18385 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18386 *[\\\\\\\`\\"\\\$]*)
18387 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18388 ;;
18389 *)
18390 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18391 ;;
18392 esac
18393 done
18394
18395 # Double-quote double-evaled strings.
18396 for var in reload_cmds \
18397 old_postinstall_cmds \
18398 old_postuninstall_cmds \
18399 old_archive_cmds \
18400 extract_expsyms_cmds \
18401 old_archive_from_new_cmds \
18402 old_archive_from_expsyms_cmds \
18403 archive_cmds \
18404 archive_expsym_cmds \
18405 module_cmds \
18406 module_expsym_cmds \
18407 export_symbols_cmds \
18408 prelink_cmds \
18409 postlink_cmds \
18410 postinstall_cmds \
18411 postuninstall_cmds \
18412 finish_cmds \
18413 sys_lib_search_path_spec \
18414 sys_lib_dlsearch_path_spec \
18415 reload_cmds_CXX \
18416 old_archive_cmds_CXX \
18417 old_archive_from_new_cmds_CXX \
18418 old_archive_from_expsyms_cmds_CXX \
18419 archive_cmds_CXX \
18420 archive_expsym_cmds_CXX \
18421 module_cmds_CXX \
18422 module_expsym_cmds_CXX \
18423 export_symbols_cmds_CXX \
18424 prelink_cmds_CXX \
18425 postlink_cmds_CXX; do
18426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18427 *[\\\\\\\`\\"\\\$]*)
18428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18429 ;;
18430 *)
18431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18432 ;;
18433 esac
18434 done
18435
18436 ac_aux_dir='$ac_aux_dir'
18437 xsi_shell='$xsi_shell'
18438 lt_shell_append='$lt_shell_append'
18439
18440 # See if we are running on zsh, and set the options which allow our
18441 # commands through without removal of \ escapes INIT.
18442 if test -n "\${ZSH_VERSION+set}" ; then
18443 setopt NO_GLOB_SUBST
18444 fi
18445
18446
18447 PACKAGE='$PACKAGE'
18448 VERSION='$VERSION'
18449 TIMESTAMP='$TIMESTAMP'
18450 RM='$RM'
18451 ofile='$ofile'
18452
18453
18454
18455 ac_aux_dir='$ac_aux_dir'
18456
18457
18458 libtool_use_rpath=$libtool_rpath
18459
18460 _ACEOF
18461
18462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18463
18464 # Handling of arguments.
18465 for ac_config_target in $ac_config_targets
18466 do
18467 case $ac_config_target in
18468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18469 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18470 "libtool-rpath-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-rpath-patch" ;;
18471 "odb/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/config.h" ;;
18472 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18474 "odb/Makefile") CONFIG_FILES="$CONFIG_FILES odb/Makefile" ;;
18475
18476 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18477 esac
18478 done
18479
18480
18481 # If the user did not use the arguments to specify the items to instantiate,
18482 # then the envvar interface is used. Set only those that are not.
18483 # We use the long form for the default assignment because of an extremely
18484 # bizarre bug on SunOS 4.1.3.
18485 if $ac_need_defaults; then
18486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18489 fi
18490
18491 # Have a temporary directory for convenience. Make it in the build tree
18492 # simply because there is no reason against having it here, and in addition,
18493 # creating and moving files from /tmp can sometimes cause problems.
18494 # Hook for its removal unless debugging.
18495 # Note that there is a small window in which the directory will not be cleaned:
18496 # after its creation but before its name has been assigned to `$tmp'.
18497 $debug ||
18498 {
18499 tmp= ac_tmp=
18500 trap 'exit_status=$?
18501 : "${ac_tmp:=$tmp}"
18502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18503 ' 0
18504 trap 'as_fn_exit 1' 1 2 13 15
18505 }
18506 # Create a (secure) tmp directory for tmp files.
18507
18508 {
18509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18510 test -d "$tmp"
18511 } ||
18512 {
18513 tmp=./conf$$-$RANDOM
18514 (umask 077 && mkdir "$tmp")
18515 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18516 ac_tmp=$tmp
18517
18518 # Set up the scripts for CONFIG_FILES section.
18519 # No need to generate them if there are no CONFIG_FILES.
18520 # This happens for instance with `./config.status config.h'.
18521 if test -n "$CONFIG_FILES"; then
18522
18523
18524 ac_cr=`echo X | tr X '\015'`
18525 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18526 # But we know of no other shell where ac_cr would be empty at this
18527 # point, so we can use a bashism as a fallback.
18528 if test "x$ac_cr" = x; then
18529 eval ac_cr=\$\'\\r\'
18530 fi
18531 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18532 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18533 ac_cs_awk_cr='\\r'
18534 else
18535 ac_cs_awk_cr=$ac_cr
18536 fi
18537
18538 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18539 _ACEOF
18540
18541
18542 {
18543 echo "cat >conf$$subs.awk <<_ACEOF" &&
18544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18545 echo "_ACEOF"
18546 } >conf$$subs.sh ||
18547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18548 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18549 ac_delim='%!_!# '
18550 for ac_last_try in false false false false false :; do
18551 . ./conf$$subs.sh ||
18552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18553
18554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18555 if test $ac_delim_n = $ac_delim_num; then
18556 break
18557 elif $ac_last_try; then
18558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18559 else
18560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18561 fi
18562 done
18563 rm -f conf$$subs.sh
18564
18565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18566 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18567 _ACEOF
18568 sed -n '
18569 h
18570 s/^/S["/; s/!.*/"]=/
18571 p
18572 g
18573 s/^[^!]*!//
18574 :repl
18575 t repl
18576 s/'"$ac_delim"'$//
18577 t delim
18578 :nl
18579 h
18580 s/\(.\{148\}\)..*/\1/
18581 t more1
18582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18583 p
18584 n
18585 b repl
18586 :more1
18587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18588 p
18589 g
18590 s/.\{148\}//
18591 t nl
18592 :delim
18593 h
18594 s/\(.\{148\}\)..*/\1/
18595 t more2
18596 s/["\\]/\\&/g; s/^/"/; s/$/"/
18597 p
18598 b
18599 :more2
18600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18601 p
18602 g
18603 s/.\{148\}//
18604 t delim
18605 ' <conf$$subs.awk | sed '
18606 /^[^""]/{
18607 N
18608 s/\n//
18609 }
18610 ' >>$CONFIG_STATUS || ac_write_fail=1
18611 rm -f conf$$subs.awk
18612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18613 _ACAWK
18614 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18615 for (key in S) S_is_set[key] = 1
18616 FS = ""
18617
18618 }
18619 {
18620 line = $ 0
18621 nfields = split(line, field, "@")
18622 substed = 0
18623 len = length(field[1])
18624 for (i = 2; i < nfields; i++) {
18625 key = field[i]
18626 keylen = length(key)
18627 if (S_is_set[key]) {
18628 value = S[key]
18629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18630 len += length(value) + length(field[++i])
18631 substed = 1
18632 } else
18633 len += 1 + keylen
18634 }
18635
18636 print line
18637 }
18638
18639 _ACAWK
18640 _ACEOF
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18644 else
18645 cat
18646 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18647 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18648 _ACEOF
18649
18650 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18651 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18652 # trailing colons and then remove the whole line if VPATH becomes empty
18653 # (actually we leave an empty line to preserve line numbers).
18654 if test "x$srcdir" = x.; then
18655 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18656 h
18657 s///
18658 s/^/:/
18659 s/[ ]*$/:/
18660 s/:\$(srcdir):/:/g
18661 s/:\${srcdir}:/:/g
18662 s/:@srcdir@:/:/g
18663 s/^:*//
18664 s/:*$//
18665 x
18666 s/\(=[ ]*\).*/\1/
18667 G
18668 s/\n//
18669 s/^[^=]*=[ ]*$//
18670 }'
18671 fi
18672
18673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674 fi # test -n "$CONFIG_FILES"
18675
18676 # Set up the scripts for CONFIG_HEADERS section.
18677 # No need to generate them if there are no CONFIG_HEADERS.
18678 # This happens for instance with `./config.status Makefile'.
18679 if test -n "$CONFIG_HEADERS"; then
18680 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18681 BEGIN {
18682 _ACEOF
18683
18684 # Transform confdefs.h into an awk script `defines.awk', embedded as
18685 # here-document in config.status, that substitutes the proper values into
18686 # config.h.in to produce config.h.
18687
18688 # Create a delimiter string that does not exist in confdefs.h, to ease
18689 # handling of long lines.
18690 ac_delim='%!_!# '
18691 for ac_last_try in false false :; do
18692 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18693 if test -z "$ac_tt"; then
18694 break
18695 elif $ac_last_try; then
18696 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18697 else
18698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18699 fi
18700 done
18701
18702 # For the awk script, D is an array of macro values keyed by name,
18703 # likewise P contains macro parameters if any. Preserve backslash
18704 # newline sequences.
18705
18706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18707 sed -n '
18708 s/.\{148\}/&'"$ac_delim"'/g
18709 t rset
18710 :rset
18711 s/^[ ]*#[ ]*define[ ][ ]*/ /
18712 t def
18713 d
18714 :def
18715 s/\\$//
18716 t bsnl
18717 s/["\\]/\\&/g
18718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18719 D["\1"]=" \3"/p
18720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18721 d
18722 :bsnl
18723 s/["\\]/\\&/g
18724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18725 D["\1"]=" \3\\\\\\n"\\/p
18726 t cont
18727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18728 t cont
18729 d
18730 :cont
18731 n
18732 s/.\{148\}/&'"$ac_delim"'/g
18733 t clear
18734 :clear
18735 s/\\$//
18736 t bsnlc
18737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18738 d
18739 :bsnlc
18740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18741 b cont
18742 ' <confdefs.h | sed '
18743 s/'"$ac_delim"'/"\\\
18744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18745
18746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18747 for (key in D) D_is_set[key] = 1
18748 FS = ""
18749 }
18750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18751 line = \$ 0
18752 split(line, arg, " ")
18753 if (arg[1] == "#") {
18754 defundef = arg[2]
18755 mac1 = arg[3]
18756 } else {
18757 defundef = substr(arg[1], 2)
18758 mac1 = arg[2]
18759 }
18760 split(mac1, mac2, "(") #)
18761 macro = mac2[1]
18762 prefix = substr(line, 1, index(line, defundef) - 1)
18763 if (D_is_set[macro]) {
18764 # Preserve the white space surrounding the "#".
18765 print prefix "define", macro P[macro] D[macro]
18766 next
18767 } else {
18768 # Replace #undef with comments. This is necessary, for example,
18769 # in the case of _POSIX_SOURCE, which is predefined and required
18770 # on some systems where configure will not decide to define it.
18771 if (defundef == "undef") {
18772 print "/*", prefix defundef, macro, "*/"
18773 next
18774 }
18775 }
18776 }
18777 { print }
18778 _ACAWK
18779 _ACEOF
18780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18782 fi # test -n "$CONFIG_HEADERS"
18783
18784
18785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18786 shift
18787 for ac_tag
18788 do
18789 case $ac_tag in
18790 :[FHLC]) ac_mode=$ac_tag; continue;;
18791 esac
18792 case $ac_mode$ac_tag in
18793 :[FHL]*:*);;
18794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18795 :[FH]-) ac_tag=-:-;;
18796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18797 esac
18798 ac_save_IFS=$IFS
18799 IFS=:
18800 set x $ac_tag
18801 IFS=$ac_save_IFS
18802 shift
18803 ac_file=$1
18804 shift
18805
18806 case $ac_mode in
18807 :L) ac_source=$1;;
18808 :[FH])
18809 ac_file_inputs=
18810 for ac_f
18811 do
18812 case $ac_f in
18813 -) ac_f="$ac_tmp/stdin";;
18814 *) # Look for the file first in the build tree, then in the source tree
18815 # (if the path is not absolute). The absolute path cannot be DOS-style,
18816 # because $ac_f cannot contain `:'.
18817 test -f "$ac_f" ||
18818 case $ac_f in
18819 [\\/$]*) false;;
18820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18821 esac ||
18822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18823 esac
18824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18825 as_fn_append ac_file_inputs " '$ac_f'"
18826 done
18827
18828 # Let's still pretend it is `configure' which instantiates (i.e., don't
18829 # use $as_me), people would be surprised to read:
18830 # /* config.h. Generated by config.status. */
18831 configure_input='Generated from '`
18832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18833 `' by configure.'
18834 if test x"$ac_file" != x-; then
18835 configure_input="$ac_file. $configure_input"
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18837 $as_echo "$as_me: creating $ac_file" >&6;}
18838 fi
18839 # Neutralize special characters interpreted by sed in replacement strings.
18840 case $configure_input in #(
18841 *\&* | *\|* | *\\* )
18842 ac_sed_conf_input=`$as_echo "$configure_input" |
18843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18844 *) ac_sed_conf_input=$configure_input;;
18845 esac
18846
18847 case $ac_tag in
18848 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18850 esac
18851 ;;
18852 esac
18853
18854 ac_dir=`$as_dirname -- "$ac_file" ||
18855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18856 X"$ac_file" : 'X\(//\)[^/]' \| \
18857 X"$ac_file" : 'X\(//\)$' \| \
18858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18859 $as_echo X"$ac_file" |
18860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18861 s//\1/
18862 q
18863 }
18864 /^X\(\/\/\)[^/].*/{
18865 s//\1/
18866 q
18867 }
18868 /^X\(\/\/\)$/{
18869 s//\1/
18870 q
18871 }
18872 /^X\(\/\).*/{
18873 s//\1/
18874 q
18875 }
18876 s/.*/./; q'`
18877 as_dir="$ac_dir"; as_fn_mkdir_p
18878 ac_builddir=.
18879
18880 case "$ac_dir" in
18881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18882 *)
18883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18884 # A ".." for each directory in $ac_dir_suffix.
18885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18886 case $ac_top_builddir_sub in
18887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18889 esac ;;
18890 esac
18891 ac_abs_top_builddir=$ac_pwd
18892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18893 # for backward compatibility:
18894 ac_top_builddir=$ac_top_build_prefix
18895
18896 case $srcdir in
18897 .) # We are building in place.
18898 ac_srcdir=.
18899 ac_top_srcdir=$ac_top_builddir_sub
18900 ac_abs_top_srcdir=$ac_pwd ;;
18901 [\\/]* | ?:[\\/]* ) # Absolute name.
18902 ac_srcdir=$srcdir$ac_dir_suffix;
18903 ac_top_srcdir=$srcdir
18904 ac_abs_top_srcdir=$srcdir ;;
18905 *) # Relative name.
18906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18907 ac_top_srcdir=$ac_top_build_prefix$srcdir
18908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18909 esac
18910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18911
18912
18913 case $ac_mode in
18914 :F)
18915 #
18916 # CONFIG_FILE
18917 #
18918
18919 case $INSTALL in
18920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18922 esac
18923 ac_MKDIR_P=$MKDIR_P
18924 case $MKDIR_P in
18925 [\\/$]* | ?:[\\/]* ) ;;
18926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18927 esac
18928 _ACEOF
18929
18930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18931 # If the template does not know about datarootdir, expand it.
18932 # FIXME: This hack should be removed a few years after 2.60.
18933 ac_datarootdir_hack=; ac_datarootdir_seen=
18934 ac_sed_dataroot='
18935 /datarootdir/ {
18936 p
18937 q
18938 }
18939 /@datadir@/p
18940 /@docdir@/p
18941 /@infodir@/p
18942 /@localedir@/p
18943 /@mandir@/p'
18944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18945 *datarootdir*) ac_datarootdir_seen=yes;;
18946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18949 _ACEOF
18950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18951 ac_datarootdir_hack='
18952 s&@datadir@&$datadir&g
18953 s&@docdir@&$docdir&g
18954 s&@infodir@&$infodir&g
18955 s&@localedir@&$localedir&g
18956 s&@mandir@&$mandir&g
18957 s&\\\${datarootdir}&$datarootdir&g' ;;
18958 esac
18959 _ACEOF
18960
18961 # Neutralize VPATH when `$srcdir' = `.'.
18962 # Shell code in configure.ac might set extrasub.
18963 # FIXME: do we really want to maintain this feature?
18964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18965 ac_sed_extra="$ac_vpsub
18966 $extrasub
18967 _ACEOF
18968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18969 :t
18970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18971 s|@configure_input@|$ac_sed_conf_input|;t t
18972 s&@top_builddir@&$ac_top_builddir_sub&;t t
18973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18974 s&@srcdir@&$ac_srcdir&;t t
18975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18976 s&@top_srcdir@&$ac_top_srcdir&;t t
18977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18978 s&@builddir@&$ac_builddir&;t t
18979 s&@abs_builddir@&$ac_abs_builddir&;t t
18980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18981 s&@INSTALL@&$ac_INSTALL&;t t
18982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18983 $ac_datarootdir_hack
18984 "
18985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18987
18988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18993 which seems to be undefined. Please make sure it is defined" >&5
18994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18995 which seems to be undefined. Please make sure it is defined" >&2;}
18996
18997 rm -f "$ac_tmp/stdin"
18998 case $ac_file in
18999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19001 esac \
19002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19003 ;;
19004 :H)
19005 #
19006 # CONFIG_HEADER
19007 #
19008 if test x"$ac_file" != x-; then
19009 {
19010 $as_echo "/* $configure_input */" \
19011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19012 } >"$ac_tmp/config.h" \
19013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19017 else
19018 rm -f "$ac_file"
19019 mv "$ac_tmp/config.h" "$ac_file" \
19020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19021 fi
19022 else
19023 $as_echo "/* $configure_input */" \
19024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19025 || as_fn_error $? "could not create -" "$LINENO" 5
19026 fi
19027 # Compute "$ac_file"'s index in $config_headers.
19028 _am_arg="$ac_file"
19029 _am_stamp_count=1
19030 for _am_header in $config_headers :; do
19031 case $_am_header in
19032 $_am_arg | $_am_arg:* )
19033 break ;;
19034 * )
19035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19036 esac
19037 done
19038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19040 X"$_am_arg" : 'X\(//\)[^/]' \| \
19041 X"$_am_arg" : 'X\(//\)$' \| \
19042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19043 $as_echo X"$_am_arg" |
19044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19045 s//\1/
19046 q
19047 }
19048 /^X\(\/\/\)[^/].*/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\/\)$/{
19053 s//\1/
19054 q
19055 }
19056 /^X\(\/\).*/{
19057 s//\1/
19058 q
19059 }
19060 s/.*/./; q'`/stamp-h$_am_stamp_count
19061 ;;
19062
19063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19064 $as_echo "$as_me: executing $ac_file commands" >&6;}
19065 ;;
19066 esac
19067
19068
19069 case $ac_file$ac_mode in
19070 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19071 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19072 # are listed without --file. Let's play safe and only enable the eval
19073 # if we detect the quoting.
19074 case $CONFIG_FILES in
19075 *\'*) eval set x "$CONFIG_FILES" ;;
19076 *) set x $CONFIG_FILES ;;
19077 esac
19078 shift
19079 for mf
19080 do
19081 # Strip MF so we end up with the name of the file.
19082 mf=`echo "$mf" | sed -e 's/:.*$//'`
19083 # Check whether this is an Automake generated Makefile or not.
19084 # We used to match only the files named 'Makefile.in', but
19085 # some people rename them; so instead we look at the file content.
19086 # Grep'ing the first line is not enough: some people post-process
19087 # each Makefile.in and add a new line on top of each file to say so.
19088 # Grep'ing the whole file is not good either: AIX grep has a line
19089 # limit of 2048, but all sed's we know have understand at least 4000.
19090 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19091 dirpart=`$as_dirname -- "$mf" ||
19092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19093 X"$mf" : 'X\(//\)[^/]' \| \
19094 X"$mf" : 'X\(//\)$' \| \
19095 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19096 $as_echo X"$mf" |
19097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19098 s//\1/
19099 q
19100 }
19101 /^X\(\/\/\)[^/].*/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)$/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\).*/{
19110 s//\1/
19111 q
19112 }
19113 s/.*/./; q'`
19114 else
19115 continue
19116 fi
19117 # Extract the definition of DEPDIR, am__include, and am__quote
19118 # from the Makefile without running 'make'.
19119 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19120 test -z "$DEPDIR" && continue
19121 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19122 test -z "am__include" && continue
19123 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19124 # Find all dependency output files, they are included files with
19125 # $(DEPDIR) in their names. We invoke sed twice because it is the
19126 # simplest approach to changing $(DEPDIR) to its actual value in the
19127 # expansion.
19128 for file in `sed -n "
19129 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19130 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19131 # Make sure the directory exists.
19132 test -f "$dirpart/$file" && continue
19133 fdir=`$as_dirname -- "$file" ||
19134 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135 X"$file" : 'X\(//\)[^/]' \| \
19136 X"$file" : 'X\(//\)$' \| \
19137 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19138 $as_echo X"$file" |
19139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19140 s//\1/
19141 q
19142 }
19143 /^X\(\/\/\)[^/].*/{
19144 s//\1/
19145 q
19146 }
19147 /^X\(\/\/\)$/{
19148 s//\1/
19149 q
19150 }
19151 /^X\(\/\).*/{
19152 s//\1/
19153 q
19154 }
19155 s/.*/./; q'`
19156 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19157 # echo "creating $dirpart/$file"
19158 echo '# dummy' > "$dirpart/$file"
19159 done
19160 done
19161 }
19162 ;;
19163 "libtool":C)
19164
19165 # See if we are running on zsh, and set the options which allow our
19166 # commands through without removal of \ escapes.
19167 if test -n "${ZSH_VERSION+set}" ; then
19168 setopt NO_GLOB_SUBST
19169 fi
19170
19171 cfgfile="${ofile}T"
19172 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19173 $RM "$cfgfile"
19174
19175 cat <<_LT_EOF >> "$cfgfile"
19176 #! $SHELL
19177
19178 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19179 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19181 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19182 #
19183 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19184 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19185 # Foundation, Inc.
19186 # Written by Gordon Matzigkeit, 1996
19187 #
19188 # This file is part of GNU Libtool.
19189 #
19190 # GNU Libtool is free software; you can redistribute it and/or
19191 # modify it under the terms of the GNU General Public License as
19192 # published by the Free Software Foundation; either version 2 of
19193 # the License, or (at your option) any later version.
19194 #
19195 # As a special exception to the GNU General Public License,
19196 # if you distribute this file as part of a program or library that
19197 # is built using GNU Libtool, you may include this file under the
19198 # same distribution terms that you use for the rest of that program.
19199 #
19200 # GNU Libtool is distributed in the hope that it will be useful,
19201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19203 # GNU General Public License for more details.
19204 #
19205 # You should have received a copy of the GNU General Public License
19206 # along with GNU Libtool; see the file COPYING. If not, a copy
19207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19208 # obtained by writing to the Free Software Foundation, Inc.,
19209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19210
19211
19212 # The names of the tagged configurations supported by this script.
19213 available_tags="CXX "
19214
19215 # ### BEGIN LIBTOOL CONFIG
19216
19217 # Which release of libtool.m4 was used?
19218 macro_version=$macro_version
19219 macro_revision=$macro_revision
19220
19221 # Whether or not to build static libraries.
19222 build_old_libs=$enable_static
19223
19224 # Whether or not to build shared libraries.
19225 build_libtool_libs=$enable_shared
19226
19227 # What type of objects to build.
19228 pic_mode=$pic_mode
19229
19230 # Whether or not to optimize for fast installation.
19231 fast_install=$enable_fast_install
19232
19233 # Shell to use when invoking shell scripts.
19234 SHELL=$lt_SHELL
19235
19236 # An echo program that protects backslashes.
19237 ECHO=$lt_ECHO
19238
19239 # The PATH separator for the build system.
19240 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19241
19242 # The host system.
19243 host_alias=$host_alias
19244 host=$host
19245 host_os=$host_os
19246
19247 # The build system.
19248 build_alias=$build_alias
19249 build=$build
19250 build_os=$build_os
19251
19252 # A sed program that does not truncate output.
19253 SED=$lt_SED
19254
19255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19256 Xsed="\$SED -e 1s/^X//"
19257
19258 # A grep program that handles long lines.
19259 GREP=$lt_GREP
19260
19261 # An ERE matcher.
19262 EGREP=$lt_EGREP
19263
19264 # A literal string matcher.
19265 FGREP=$lt_FGREP
19266
19267 # A BSD- or MS-compatible name lister.
19268 NM=$lt_NM
19269
19270 # Whether we need soft or hard links.
19271 LN_S=$lt_LN_S
19272
19273 # What is the maximum length of a command?
19274 max_cmd_len=$max_cmd_len
19275
19276 # Object file suffix (normally "o").
19277 objext=$ac_objext
19278
19279 # Executable file suffix (normally "").
19280 exeext=$exeext
19281
19282 # whether the shell understands "unset".
19283 lt_unset=$lt_unset
19284
19285 # turn spaces into newlines.
19286 SP2NL=$lt_lt_SP2NL
19287
19288 # turn newlines into spaces.
19289 NL2SP=$lt_lt_NL2SP
19290
19291 # convert \$build file names to \$host format.
19292 to_host_file_cmd=$lt_cv_to_host_file_cmd
19293
19294 # convert \$build files to toolchain format.
19295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19296
19297 # An object symbol dumper.
19298 OBJDUMP=$lt_OBJDUMP
19299
19300 # Method to check whether dependent libraries are shared objects.
19301 deplibs_check_method=$lt_deplibs_check_method
19302
19303 # Command to use when deplibs_check_method = "file_magic".
19304 file_magic_cmd=$lt_file_magic_cmd
19305
19306 # How to find potential files when deplibs_check_method = "file_magic".
19307 file_magic_glob=$lt_file_magic_glob
19308
19309 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19310 want_nocaseglob=$lt_want_nocaseglob
19311
19312 # DLL creation program.
19313 DLLTOOL=$lt_DLLTOOL
19314
19315 # Command to associate shared and link libraries.
19316 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19317
19318 # The archiver.
19319 AR=$lt_AR
19320
19321 # Flags to create an archive.
19322 AR_FLAGS=$lt_AR_FLAGS
19323
19324 # How to feed a file listing to the archiver.
19325 archiver_list_spec=$lt_archiver_list_spec
19326
19327 # A symbol stripping program.
19328 STRIP=$lt_STRIP
19329
19330 # Commands used to install an old-style archive.
19331 RANLIB=$lt_RANLIB
19332 old_postinstall_cmds=$lt_old_postinstall_cmds
19333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19334
19335 # Whether to use a lock for old archive extraction.
19336 lock_old_archive_extraction=$lock_old_archive_extraction
19337
19338 # A C compiler.
19339 LTCC=$lt_CC
19340
19341 # LTCC compiler flags.
19342 LTCFLAGS=$lt_CFLAGS
19343
19344 # Take the output of nm and produce a listing of raw symbols and C names.
19345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19346
19347 # Transform the output of nm in a proper C declaration.
19348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19349
19350 # Transform the output of nm in a C name address pair.
19351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19352
19353 # Transform the output of nm in a C name address pair when lib prefix is needed.
19354 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19355
19356 # Specify filename containing input files for \$NM.
19357 nm_file_list_spec=$lt_nm_file_list_spec
19358
19359 # The root where to search for dependent libraries,and in which our libraries should be installed.
19360 lt_sysroot=$lt_sysroot
19361
19362 # The name of the directory that contains temporary libtool files.
19363 objdir=$objdir
19364
19365 # Used to examine libraries when file_magic_cmd begins with "file".
19366 MAGIC_CMD=$MAGIC_CMD
19367
19368 # Must we lock files when doing compilation?
19369 need_locks=$lt_need_locks
19370
19371 # Manifest tool.
19372 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19373
19374 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19375 DSYMUTIL=$lt_DSYMUTIL
19376
19377 # Tool to change global to local symbols on Mac OS X.
19378 NMEDIT=$lt_NMEDIT
19379
19380 # Tool to manipulate fat objects and archives on Mac OS X.
19381 LIPO=$lt_LIPO
19382
19383 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19384 OTOOL=$lt_OTOOL
19385
19386 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19387 OTOOL64=$lt_OTOOL64
19388
19389 # Old archive suffix (normally "a").
19390 libext=$libext
19391
19392 # Shared library suffix (normally ".so").
19393 shrext_cmds=$lt_shrext_cmds
19394
19395 # The commands to extract the exported symbol list from a shared archive.
19396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19397
19398 # Variables whose values should be saved in libtool wrapper scripts and
19399 # restored at link time.
19400 variables_saved_for_relink=$lt_variables_saved_for_relink
19401
19402 # Do we need the "lib" prefix for modules?
19403 need_lib_prefix=$need_lib_prefix
19404
19405 # Do we need a version for libraries?
19406 need_version=$need_version
19407
19408 # Library versioning type.
19409 version_type=$version_type
19410
19411 # Shared library runtime path variable.
19412 runpath_var=$runpath_var
19413
19414 # Shared library path variable.
19415 shlibpath_var=$shlibpath_var
19416
19417 # Is shlibpath searched before the hard-coded library search path?
19418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19419
19420 # Format of library name prefix.
19421 libname_spec=$lt_libname_spec
19422
19423 # List of archive names. First name is the real one, the rest are links.
19424 # The last name is the one that the linker finds with -lNAME
19425 library_names_spec=$lt_library_names_spec
19426
19427 # The coded name of the library, if different from the real name.
19428 soname_spec=$lt_soname_spec
19429
19430 # Permission mode override for installation of shared libraries.
19431 install_override_mode=$lt_install_override_mode
19432
19433 # Command to use after installation of a shared archive.
19434 postinstall_cmds=$lt_postinstall_cmds
19435
19436 # Command to use after uninstallation of a shared archive.
19437 postuninstall_cmds=$lt_postuninstall_cmds
19438
19439 # Commands used to finish a libtool library installation in a directory.
19440 finish_cmds=$lt_finish_cmds
19441
19442 # As "finish_cmds", except a single script fragment to be evaled but
19443 # not shown.
19444 finish_eval=$lt_finish_eval
19445
19446 # Whether we should hardcode library paths into libraries.
19447 hardcode_into_libs=$hardcode_into_libs
19448
19449 # Compile-time system search path for libraries.
19450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19451
19452 # Run-time system search path for libraries.
19453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19454
19455 # Whether dlopen is supported.
19456 dlopen_support=$enable_dlopen
19457
19458 # Whether dlopen of programs is supported.
19459 dlopen_self=$enable_dlopen_self
19460
19461 # Whether dlopen of statically linked programs is supported.
19462 dlopen_self_static=$enable_dlopen_self_static
19463
19464 # Commands to strip libraries.
19465 old_striplib=$lt_old_striplib
19466 striplib=$lt_striplib
19467
19468
19469 # The linker used to build libraries.
19470 LD=$lt_LD
19471
19472 # How to create reloadable object files.
19473 reload_flag=$lt_reload_flag
19474 reload_cmds=$lt_reload_cmds
19475
19476 # Commands used to build an old-style archive.
19477 old_archive_cmds=$lt_old_archive_cmds
19478
19479 # A language specific compiler.
19480 CC=$lt_compiler
19481
19482 # Is the compiler the GNU compiler?
19483 with_gcc=$GCC
19484
19485 # Compiler flag to turn off builtin functions.
19486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19487
19488 # Additional compiler flags for building library objects.
19489 pic_flag=$lt_lt_prog_compiler_pic
19490
19491 # How to pass a linker flag through the compiler.
19492 wl=$lt_lt_prog_compiler_wl
19493
19494 # Compiler flag to prevent dynamic linking.
19495 link_static_flag=$lt_lt_prog_compiler_static
19496
19497 # Does compiler simultaneously support -c and -o options?
19498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19499
19500 # Whether or not to add -lc for building shared libraries.
19501 build_libtool_need_lc=$archive_cmds_need_lc
19502
19503 # Whether or not to disallow shared libs when runtime libs are static.
19504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19505
19506 # Compiler flag to allow reflexive dlopens.
19507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19508
19509 # Compiler flag to generate shared objects directly from archives.
19510 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19511
19512 # Whether the compiler copes with passing no objects directly.
19513 compiler_needs_object=$lt_compiler_needs_object
19514
19515 # Create an old-style archive from a shared archive.
19516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19517
19518 # Create a temporary old-style archive to link instead of a shared archive.
19519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19520
19521 # Commands used to build a shared archive.
19522 archive_cmds=$lt_archive_cmds
19523 archive_expsym_cmds=$lt_archive_expsym_cmds
19524
19525 # Commands used to build a loadable module if different from building
19526 # a shared archive.
19527 module_cmds=$lt_module_cmds
19528 module_expsym_cmds=$lt_module_expsym_cmds
19529
19530 # Whether we are building with GNU ld or not.
19531 with_gnu_ld=$lt_with_gnu_ld
19532
19533 # Flag that allows shared libraries with undefined symbols to be built.
19534 allow_undefined_flag=$lt_allow_undefined_flag
19535
19536 # Flag that enforces no undefined symbols.
19537 no_undefined_flag=$lt_no_undefined_flag
19538
19539 # Flag to hardcode \$libdir into a binary during linking.
19540 # This must work even if \$libdir does not exist
19541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19542
19543 # Whether we need a single "-rpath" flag with a separated argument.
19544 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19545
19546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19547 # DIR into the resulting binary.
19548 hardcode_direct=$hardcode_direct
19549
19550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19551 # DIR into the resulting binary and the resulting library dependency is
19552 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19553 # library is relocated.
19554 hardcode_direct_absolute=$hardcode_direct_absolute
19555
19556 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19557 # into the resulting binary.
19558 hardcode_minus_L=$hardcode_minus_L
19559
19560 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19561 # into the resulting binary.
19562 hardcode_shlibpath_var=$hardcode_shlibpath_var
19563
19564 # Set to "yes" if building a shared library automatically hardcodes DIR
19565 # into the library and all subsequent libraries and executables linked
19566 # against it.
19567 hardcode_automatic=$hardcode_automatic
19568
19569 # Set to yes if linker adds runtime paths of dependent libraries
19570 # to runtime path list.
19571 inherit_rpath=$inherit_rpath
19572
19573 # Whether libtool must link a program against all its dependency libraries.
19574 link_all_deplibs=$link_all_deplibs
19575
19576 # Set to "yes" if exported symbols are required.
19577 always_export_symbols=$always_export_symbols
19578
19579 # The commands to list exported symbols.
19580 export_symbols_cmds=$lt_export_symbols_cmds
19581
19582 # Symbols that should not be listed in the preloaded symbols.
19583 exclude_expsyms=$lt_exclude_expsyms
19584
19585 # Symbols that must always be exported.
19586 include_expsyms=$lt_include_expsyms
19587
19588 # Commands necessary for linking programs (against libraries) with templates.
19589 prelink_cmds=$lt_prelink_cmds
19590
19591 # Commands necessary for finishing linking programs.
19592 postlink_cmds=$lt_postlink_cmds
19593
19594 # Specify filename containing input files.
19595 file_list_spec=$lt_file_list_spec
19596
19597 # How to hardcode a shared library path into an executable.
19598 hardcode_action=$hardcode_action
19599
19600 # The directories searched by this compiler when creating a shared library.
19601 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19602
19603 # Dependencies to place before and after the objects being linked to
19604 # create a shared library.
19605 predep_objects=$lt_predep_objects
19606 postdep_objects=$lt_postdep_objects
19607 predeps=$lt_predeps
19608 postdeps=$lt_postdeps
19609
19610 # The library search path used internally by the compiler when linking
19611 # a shared library.
19612 compiler_lib_search_path=$lt_compiler_lib_search_path
19613
19614 # ### END LIBTOOL CONFIG
19615
19616 _LT_EOF
19617
19618 case $host_os in
19619 aix3*)
19620 cat <<\_LT_EOF >> "$cfgfile"
19621 # AIX sometimes has problems with the GCC collect2 program. For some
19622 # reason, if we set the COLLECT_NAMES environment variable, the problems
19623 # vanish in a puff of smoke.
19624 if test "X${COLLECT_NAMES+set}" != Xset; then
19625 COLLECT_NAMES=
19626 export COLLECT_NAMES
19627 fi
19628 _LT_EOF
19629 ;;
19630 esac
19631
19632
19633 ltmain="$ac_aux_dir/ltmain.sh"
19634
19635
19636 # We use sed instead of cat because bash on DJGPP gets confused if
19637 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19638 # text mode, it properly converts lines to CR/LF. This bash problem
19639 # is reportedly fixed, but why not run on old versions too?
19640 sed '$q' "$ltmain" >> "$cfgfile" \
19641 || (rm -f "$cfgfile"; exit 1)
19642
19643 if test x"$xsi_shell" = xyes; then
19644 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19645 func_dirname ()\
19646 {\
19647 \ case ${1} in\
19648 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19649 \ * ) func_dirname_result="${3}" ;;\
19650 \ esac\
19651 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19652 && mv -f "$cfgfile.tmp" "$cfgfile" \
19653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19654 test 0 -eq $? || _lt_function_replace_fail=:
19655
19656
19657 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19658 func_basename ()\
19659 {\
19660 \ func_basename_result="${1##*/}"\
19661 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19662 && mv -f "$cfgfile.tmp" "$cfgfile" \
19663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19664 test 0 -eq $? || _lt_function_replace_fail=:
19665
19666
19667 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19668 func_dirname_and_basename ()\
19669 {\
19670 \ case ${1} in\
19671 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19672 \ * ) func_dirname_result="${3}" ;;\
19673 \ esac\
19674 \ func_basename_result="${1##*/}"\
19675 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19676 && mv -f "$cfgfile.tmp" "$cfgfile" \
19677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19678 test 0 -eq $? || _lt_function_replace_fail=:
19679
19680
19681 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19682 func_stripname ()\
19683 {\
19684 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19685 \ # positional parameters, so assign one to ordinary parameter first.\
19686 \ func_stripname_result=${3}\
19687 \ func_stripname_result=${func_stripname_result#"${1}"}\
19688 \ func_stripname_result=${func_stripname_result%"${2}"}\
19689 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19690 && mv -f "$cfgfile.tmp" "$cfgfile" \
19691 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19692 test 0 -eq $? || _lt_function_replace_fail=:
19693
19694
19695 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19696 func_split_long_opt ()\
19697 {\
19698 \ func_split_long_opt_name=${1%%=*}\
19699 \ func_split_long_opt_arg=${1#*=}\
19700 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19701 && mv -f "$cfgfile.tmp" "$cfgfile" \
19702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19703 test 0 -eq $? || _lt_function_replace_fail=:
19704
19705
19706 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19707 func_split_short_opt ()\
19708 {\
19709 \ func_split_short_opt_arg=${1#??}\
19710 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19711 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19712 && mv -f "$cfgfile.tmp" "$cfgfile" \
19713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19714 test 0 -eq $? || _lt_function_replace_fail=:
19715
19716
19717 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19718 func_lo2o ()\
19719 {\
19720 \ case ${1} in\
19721 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19722 \ *) func_lo2o_result=${1} ;;\
19723 \ esac\
19724 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19725 && mv -f "$cfgfile.tmp" "$cfgfile" \
19726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19727 test 0 -eq $? || _lt_function_replace_fail=:
19728
19729
19730 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19731 func_xform ()\
19732 {\
19733 func_xform_result=${1%.*}.lo\
19734 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19735 && mv -f "$cfgfile.tmp" "$cfgfile" \
19736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19737 test 0 -eq $? || _lt_function_replace_fail=:
19738
19739
19740 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19741 func_arith ()\
19742 {\
19743 func_arith_result=$(( $* ))\
19744 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19745 && mv -f "$cfgfile.tmp" "$cfgfile" \
19746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19747 test 0 -eq $? || _lt_function_replace_fail=:
19748
19749
19750 sed -e '/^func_len ()$/,/^} # func_len /c\
19751 func_len ()\
19752 {\
19753 func_len_result=${#1}\
19754 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19755 && mv -f "$cfgfile.tmp" "$cfgfile" \
19756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19757 test 0 -eq $? || _lt_function_replace_fail=:
19758
19759 fi
19760
19761 if test x"$lt_shell_append" = xyes; then
19762 sed -e '/^func_append ()$/,/^} # func_append /c\
19763 func_append ()\
19764 {\
19765 eval "${1}+=\\${2}"\
19766 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19767 && mv -f "$cfgfile.tmp" "$cfgfile" \
19768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19769 test 0 -eq $? || _lt_function_replace_fail=:
19770
19771
19772 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19773 func_append_quoted ()\
19774 {\
19775 \ func_quote_for_eval "${2}"\
19776 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19777 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19778 && mv -f "$cfgfile.tmp" "$cfgfile" \
19779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19780 test 0 -eq $? || _lt_function_replace_fail=:
19781
19782
19783 # Save a `func_append' function call where possible by direct use of '+='
19784 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19785 && mv -f "$cfgfile.tmp" "$cfgfile" \
19786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19787 test 0 -eq $? || _lt_function_replace_fail=:
19788 else
19789 # Save a `func_append' function call even when '+=' is not available
19790 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19791 && mv -f "$cfgfile.tmp" "$cfgfile" \
19792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19793 test 0 -eq $? || _lt_function_replace_fail=:
19794 fi
19795
19796 if test x"$_lt_function_replace_fail" = x":"; then
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19798 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19799 fi
19800
19801
19802 mv -f "$cfgfile" "$ofile" ||
19803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19804 chmod +x "$ofile"
19805
19806
19807 cat <<_LT_EOF >> "$ofile"
19808
19809 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19810
19811 # The linker used to build libraries.
19812 LD=$lt_LD_CXX
19813
19814 # How to create reloadable object files.
19815 reload_flag=$lt_reload_flag_CXX
19816 reload_cmds=$lt_reload_cmds_CXX
19817
19818 # Commands used to build an old-style archive.
19819 old_archive_cmds=$lt_old_archive_cmds_CXX
19820
19821 # A language specific compiler.
19822 CC=$lt_compiler_CXX
19823
19824 # Is the compiler the GNU compiler?
19825 with_gcc=$GCC_CXX
19826
19827 # Compiler flag to turn off builtin functions.
19828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19829
19830 # Additional compiler flags for building library objects.
19831 pic_flag=$lt_lt_prog_compiler_pic_CXX
19832
19833 # How to pass a linker flag through the compiler.
19834 wl=$lt_lt_prog_compiler_wl_CXX
19835
19836 # Compiler flag to prevent dynamic linking.
19837 link_static_flag=$lt_lt_prog_compiler_static_CXX
19838
19839 # Does compiler simultaneously support -c and -o options?
19840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19841
19842 # Whether or not to add -lc for building shared libraries.
19843 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19844
19845 # Whether or not to disallow shared libs when runtime libs are static.
19846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19847
19848 # Compiler flag to allow reflexive dlopens.
19849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19850
19851 # Compiler flag to generate shared objects directly from archives.
19852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19853
19854 # Whether the compiler copes with passing no objects directly.
19855 compiler_needs_object=$lt_compiler_needs_object_CXX
19856
19857 # Create an old-style archive from a shared archive.
19858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19859
19860 # Create a temporary old-style archive to link instead of a shared archive.
19861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19862
19863 # Commands used to build a shared archive.
19864 archive_cmds=$lt_archive_cmds_CXX
19865 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19866
19867 # Commands used to build a loadable module if different from building
19868 # a shared archive.
19869 module_cmds=$lt_module_cmds_CXX
19870 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19871
19872 # Whether we are building with GNU ld or not.
19873 with_gnu_ld=$lt_with_gnu_ld_CXX
19874
19875 # Flag that allows shared libraries with undefined symbols to be built.
19876 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19877
19878 # Flag that enforces no undefined symbols.
19879 no_undefined_flag=$lt_no_undefined_flag_CXX
19880
19881 # Flag to hardcode \$libdir into a binary during linking.
19882 # This must work even if \$libdir does not exist
19883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19884
19885 # Whether we need a single "-rpath" flag with a separated argument.
19886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19887
19888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19889 # DIR into the resulting binary.
19890 hardcode_direct=$hardcode_direct_CXX
19891
19892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19893 # DIR into the resulting binary and the resulting library dependency is
19894 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19895 # library is relocated.
19896 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19897
19898 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19899 # into the resulting binary.
19900 hardcode_minus_L=$hardcode_minus_L_CXX
19901
19902 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19903 # into the resulting binary.
19904 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19905
19906 # Set to "yes" if building a shared library automatically hardcodes DIR
19907 # into the library and all subsequent libraries and executables linked
19908 # against it.
19909 hardcode_automatic=$hardcode_automatic_CXX
19910
19911 # Set to yes if linker adds runtime paths of dependent libraries
19912 # to runtime path list.
19913 inherit_rpath=$inherit_rpath_CXX
19914
19915 # Whether libtool must link a program against all its dependency libraries.
19916 link_all_deplibs=$link_all_deplibs_CXX
19917
19918 # Set to "yes" if exported symbols are required.
19919 always_export_symbols=$always_export_symbols_CXX
19920
19921 # The commands to list exported symbols.
19922 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19923
19924 # Symbols that should not be listed in the preloaded symbols.
19925 exclude_expsyms=$lt_exclude_expsyms_CXX
19926
19927 # Symbols that must always be exported.
19928 include_expsyms=$lt_include_expsyms_CXX
19929
19930 # Commands necessary for linking programs (against libraries) with templates.
19931 prelink_cmds=$lt_prelink_cmds_CXX
19932
19933 # Commands necessary for finishing linking programs.
19934 postlink_cmds=$lt_postlink_cmds_CXX
19935
19936 # Specify filename containing input files.
19937 file_list_spec=$lt_file_list_spec_CXX
19938
19939 # How to hardcode a shared library path into an executable.
19940 hardcode_action=$hardcode_action_CXX
19941
19942 # The directories searched by this compiler when creating a shared library.
19943 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19944
19945 # Dependencies to place before and after the objects being linked to
19946 # create a shared library.
19947 predep_objects=$lt_predep_objects_CXX
19948 postdep_objects=$lt_postdep_objects_CXX
19949 predeps=$lt_predeps_CXX
19950 postdeps=$lt_postdeps_CXX
19951
19952 # The library search path used internally by the compiler when linking
19953 # a shared library.
19954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19955
19956 # ### END LIBTOOL TAG CONFIG: CXX
19957 _LT_EOF
19958
19959 ;;
19960 "libtool-rpath-patch":C) if test "$libtool_use_rpath" = "no"; then
19961 sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
19962 mv libtool-2 libtool
19963 chmod 755 libtool
19964 fi ;;
19965
19966 esac
19967 done # for ac_tag
19968
19969
19970 as_fn_exit 0
19971 _ACEOF
19972 ac_clean_files=$ac_clean_files_save
19973
19974 test $ac_write_fail = 0 ||
19975 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19976
19977
19978 # configure is writing to config.log, and then calls config.status.
19979 # config.status does its own redirection, appending to config.log.
19980 # Unfortunately, on DOS this fails, as config.log is still kept open
19981 # by configure, so config.status won't be able to write to it; its
19982 # output is simply discarded. So we exec the FD to /dev/null,
19983 # effectively closing config.log, so it can be properly (re)opened and
19984 # appended to by config.status. When coming back to configure, we
19985 # need to make the FD available again.
19986 if test "$no_create" != yes; then
19987 ac_cs_success=:
19988 ac_config_status_args=
19989 test "$silent" = yes &&
19990 ac_config_status_args="$ac_config_status_args --quiet"
19991 exec 5>/dev/null
19992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19993 exec 5>>config.log
19994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19995 # would make configure fail if this is the last instruction.
19996 $ac_cs_success || as_fn_exit 1
19997 fi
19998 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20000 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20001 fi
20002