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 libodb-mysql 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='libodb-mysql'
592 PACKAGE_TARNAME='libodb-mysql'
593 PACKAGE_VERSION='2.4.0'
594 PACKAGE_STRING='libodb-mysql 2.4.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="odb/mysql/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 pkgconfigdir
640 PTHREAD_CXX
641 PTHREAD_CXXFLAGS
642 PTHREAD_LIBS
643 acx_pthread_config
644 CXXCPP
645 am__fastdepCXX_FALSE
646 am__fastdepCXX_TRUE
647 CXXDEPMODE
648 ac_ct_CXX
649 CXXFLAGS
650 CXX
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 OBJDUMP
678 DLLTOOL
679 AS
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 ac_ct_AR
698 AR
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_threads
772 with_libodb
773 with_pkgconfigdir
774 enable_rpath
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 CXX
786 CXXFLAGS
787 CCC
788 CXXCPP'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures libodb-mysql 2.4.0 to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libodb-mysql]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of libodb-mysql 2.4.0:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-dependency-tracking
1408 do not reject slow dependency extractors
1409 --disable-dependency-tracking
1410 speeds up one-time build
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --disable-threads disable threads (enabled by default)
1417 --disable-rpath patch libtool to not use rpath
1418
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 --with-sysroot=DIR Search for dependent libraries within DIR
1426 (or the compiler's sysroot if not specified).
1427 --with-libodb=DIR location of libodb build directory
1428 --with-pkgconfigdir=DIR location of pkgconfig dir (default is
1429 libdir/pkgconfig)
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440 CXX C++ compiler command
1441 CXXFLAGS C++ compiler flags
1442 CXXCPP C++ preprocessor
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to <[email protected]>.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 libodb-mysql configure 2.4.0
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619 else
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 eval "$3=yes"
1627 else
1628 eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_header_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711 fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1734
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1739
1740 #ifdef __STDC__
1741 # include <limits.h>
1742 #else
1743 # include <assert.h>
1744 #endif
1745
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 int
1763 main ()
1764 {
1765 return $2 ();
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"; then :
1771 eval "$3=yes"
1772 else
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext \
1776 conftest$ac_exeext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_func
1784
1785 # ac_fn_cxx_try_compile LINENO
1786 # ----------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_compile ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext
1792 if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_cxx_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817 fi
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1820
1821 } # ac_fn_cxx_try_compile
1822
1823 # ac_fn_cxx_try_cpp LINENO
1824 # ------------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_cpp ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1846 test ! -s conftest.err
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_cxx_try_cpp
1859
1860 # ac_fn_cxx_try_link LINENO
1861 # -------------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_link ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_cxx_try_link
1905 cat >config.log <<_ACEOF
1906 This file contains any messages produced by compilers while
1907 running configure, to aid debugging if configure makes a mistake.
1908
1909 It was created by libodb-mysql $as_me 2.4.0, which was
1910 generated by GNU Autoconf 2.69. Invocation command line was
1911
1912 $ $0 $@
1913
1914 _ACEOF
1915 exec 5>>config.log
1916 {
1917 cat <<_ASUNAME
1918 ## --------- ##
1919 ## Platform. ##
1920 ## --------- ##
1921
1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1923 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1924 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1925 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1926 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1927
1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1930
1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1938
1939 _ASUNAME
1940
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 $as_echo "PATH: $as_dir"
1947 done
1948 IFS=$as_save_IFS
1949
1950 } >&5
1951
1952 cat >&5 <<_ACEOF
1953
1954
1955 ## ----------- ##
1956 ## Core tests. ##
1957 ## ----------- ##
1958
1959 _ACEOF
1960
1961
1962 # Keep a trace of the command line.
1963 # Strip out --no-create and --no-recursion so they do not pile up.
1964 # Strip out --silent because we don't want to record it for future runs.
1965 # Also quote any args containing shell meta-characters.
1966 # Make two passes to allow for proper duplicate-argument suppression.
1967 ac_configure_args=
1968 ac_configure_args0=
1969 ac_configure_args1=
1970 ac_must_keep_next=false
1971 for ac_pass in 1 2
1972 do
1973 for ac_arg
1974 do
1975 case $ac_arg in
1976 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1978 | -silent | --silent | --silen | --sile | --sil)
1979 continue ;;
1980 *\'*)
1981 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 esac
1983 case $ac_pass in
1984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985 2)
1986 as_fn_append ac_configure_args1 " '$ac_arg'"
1987 if test $ac_must_keep_next = true; then
1988 ac_must_keep_next=false # Got value, back to normal.
1989 else
1990 case $ac_arg in
1991 *=* | --config-cache | -C | -disable-* | --disable-* \
1992 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1993 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1994 | -with-* | --with-* | -without-* | --without-* | --x)
1995 case "$ac_configure_args0 " in
1996 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997 esac
1998 ;;
1999 -* ) ac_must_keep_next=true ;;
2000 esac
2001 fi
2002 as_fn_append ac_configure_args " '$ac_arg'"
2003 ;;
2004 esac
2005 done
2006 done
2007 { ac_configure_args0=; unset ac_configure_args0;}
2008 { ac_configure_args1=; unset ac_configure_args1;}
2009
2010 # When interrupted or exit'd, cleanup temporary files, and complete
2011 # config.log. We remove comments because anyway the quotes in there
2012 # would cause problems or look ugly.
2013 # WARNING: Use '\'' to represent an apostrophe within the trap.
2014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2015 trap 'exit_status=$?
2016 # Save into config.log some information that might help in debugging.
2017 {
2018 echo
2019
2020 $as_echo "## ---------------- ##
2021 ## Cache variables. ##
2022 ## ---------------- ##"
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
2025 (
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
2041 (set) 2>&1 |
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
2044 sed -n \
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
2048 *)
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2050 ;;
2051 esac |
2052 sort
2053 )
2054 echo
2055
2056 $as_echo "## ----------------- ##
2057 ## Output variables. ##
2058 ## ----------------- ##"
2059 echo
2060 for ac_var in $ac_subst_vars
2061 do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
2067 done | sort
2068 echo
2069
2070 if test -n "$ac_subst_files"; then
2071 $as_echo "## ------------------- ##
2072 ## File substitutions. ##
2073 ## ------------------- ##"
2074 echo
2075 for ac_var in $ac_subst_files
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084 fi
2085
2086 if test -s confdefs.h; then
2087 $as_echo "## ----------- ##
2088 ## confdefs.h. ##
2089 ## ----------- ##"
2090 echo
2091 cat confdefs.h
2092 echo
2093 fi
2094 test "$ac_signal" != 0 &&
2095 $as_echo "$as_me: caught signal $ac_signal"
2096 $as_echo "$as_me: exit $exit_status"
2097 } >&5
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100 exit $exit_status
2101 ' 0
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 done
2105 ac_signal=0
2106
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2109
2110 $as_echo "/* confdefs.h */" > confdefs.h
2111
2112 # Predefined preprocessor variables.
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_NAME "$PACKAGE_NAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_STRING "$PACKAGE_STRING"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_URL "$PACKAGE_URL"
2136 _ACEOF
2137
2138
2139 # Let the site file select an alternate cache file if it wants to.
2140 # Prefer an explicitly selected file to automatically selected ones.
2141 ac_site_file1=NONE
2142 ac_site_file2=NONE
2143 if test -n "$CONFIG_SITE"; then
2144 # We do not want a PATH search for config.site.
2145 case $CONFIG_SITE in #((
2146 -*) ac_site_file1=./$CONFIG_SITE;;
2147 */*) ac_site_file1=$CONFIG_SITE;;
2148 *) ac_site_file1=./$CONFIG_SITE;;
2149 esac
2150 elif test "x$prefix" != xNONE; then
2151 ac_site_file1=$prefix/share/config.site
2152 ac_site_file2=$prefix/etc/config.site
2153 else
2154 ac_site_file1=$ac_default_prefix/share/config.site
2155 ac_site_file2=$ac_default_prefix/etc/config.site
2156 fi
2157 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2158 do
2159 test "x$ac_site_file" = xNONE && continue
2160 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2162 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2163 sed 's/^/| /' "$ac_site_file" >&5
2164 . "$ac_site_file" \
2165 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 as_fn_error $? "failed to load site script $ac_site_file
2168 See \`config.log' for more details" "$LINENO" 5; }
2169 fi
2170 done
2171
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special files
2174 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2175 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
2178 case $cache_file in
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2181 esac
2182 fi
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
2186 >$cache_file
2187 fi
2188
2189 # Check that the precious variables saved in the cache have kept the same
2190 # value.
2191 ac_cache_corrupted=false
2192 for ac_var in $ac_precious_vars; do
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
2197 case $ac_old_set,$ac_new_set in
2198 set,)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,set)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236 esac
2237 fi
2238 done
2239 if $ac_cache_corrupted; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2245 fi
2246 ## -------------------- ##
2247 ## Main body of script. ##
2248 ## -------------------- ##
2249
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
2256
2257 ac_aux_dir=
2258 for ac_dir in config "$srcdir"/config; do
2259 if test -f "$ac_dir/install-sh"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/install-sh -c"
2262 break
2263 elif test -f "$ac_dir/install.sh"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/install.sh -c"
2266 break
2267 elif test -f "$ac_dir/shtool"; then
2268 ac_aux_dir=$ac_dir
2269 ac_install_sh="$ac_aux_dir/shtool install -c"
2270 break
2271 fi
2272 done
2273 if test -z "$ac_aux_dir"; then
2274 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2275 fi
2276
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284
2285
2286
2287
2288
2289 am__api_version='1.12'
2290
2291 # Find a good install program. We prefer a C program (faster),
2292 # so one script is as good as another. But avoid the broken or
2293 # incompatible versions:
2294 # SysV /etc/install, /usr/sbin/install
2295 # SunOS /usr/etc/install
2296 # IRIX /sbin/install
2297 # AIX /bin/install
2298 # AmigaOS /C/install, which installs bootblocks on floppy discs
2299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2302 # OS/2's system install, which has a completely different semantic
2303 # ./install, which can be erroneously created by make from ./install.sh.
2304 # Reject install programs that cannot install multiple files.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2306 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2307 if test -z "$INSTALL"; then
2308 if ${ac_cv_path_install+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 # Account for people who put trailing slashes in PATH elements.
2317 case $as_dir/ in #((
2318 ./ | .// | /[cC]/* | \
2319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2321 /usr/ucb/* ) ;;
2322 *)
2323 # OSF1 and SCO ODT 3.0 have their own names for install.
2324 # Don't use installbsd from OSF since it installs stuff as root
2325 # by default.
2326 for ac_prog in ginstall scoinst install; do
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2329 if test $ac_prog = install &&
2330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # AIX install. It has an incompatible calling convention.
2332 :
2333 elif test $ac_prog = install &&
2334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # program-specific install script used by HP pwplus--don't use.
2336 :
2337 else
2338 rm -rf conftest.one conftest.two conftest.dir
2339 echo one > conftest.one
2340 echo two > conftest.two
2341 mkdir conftest.dir
2342 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2343 test -s conftest.one && test -s conftest.two &&
2344 test -s conftest.dir/conftest.one &&
2345 test -s conftest.dir/conftest.two
2346 then
2347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2348 break 3
2349 fi
2350 fi
2351 fi
2352 done
2353 done
2354 ;;
2355 esac
2356
2357 done
2358 IFS=$as_save_IFS
2359
2360 rm -rf conftest.one conftest.two conftest.dir
2361
2362 fi
2363 if test "${ac_cv_path_install+set}" = set; then
2364 INSTALL=$ac_cv_path_install
2365 else
2366 # As a last resort, use the slow shell script. Don't cache a
2367 # value for INSTALL within a source directory, because that will
2368 # break other packages using the cache if that directory is
2369 # removed, or if the value is a relative name.
2370 INSTALL=$ac_install_sh
2371 fi
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2374 $as_echo "$INSTALL" >&6; }
2375
2376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2377 # It thinks the first close brace ends the variable substitution.
2378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2379
2380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2381
2382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2385 $as_echo_n "checking whether build environment is sane... " >&6; }
2386 # Reject unsafe characters in $srcdir or the absolute working directory
2387 # name. Accept space and tab only in the latter.
2388 am_lf='
2389 '
2390 case `pwd` in
2391 *[\\\"\#\$\&\'\`$am_lf]*)
2392 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2393 esac
2394 case $srcdir in
2395 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2396 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2397 esac
2398
2399 # Do 'set' in a subshell so we don't clobber the current shell's
2400 # arguments. Must try -L first in case configure is actually a
2401 # symlink; some systems play weird games with the mod time of symlinks
2402 # (eg FreeBSD returns the mod time of the symlink's containing
2403 # directory).
2404 if (
2405 am_has_slept=no
2406 for am_try in 1 2; do
2407 echo "timestamp, slept: $am_has_slept" > conftest.file
2408 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409 if test "$*" = "X"; then
2410 # -L didn't work.
2411 set X `ls -t "$srcdir/configure" conftest.file`
2412 fi
2413 if test "$*" != "X $srcdir/configure conftest.file" \
2414 && test "$*" != "X conftest.file $srcdir/configure"; then
2415
2416 # If neither matched, then we have a broken ls. This can happen
2417 # if, for instance, CONFIG_SHELL is bash and it inherits a
2418 # broken ls alias from the environment. This has actually
2419 # happened. Such a system could not be considered "sane".
2420 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2422 fi
2423 if test "$2" = conftest.file || test $am_try -eq 2; then
2424 break
2425 fi
2426 # Just in case.
2427 sleep 1
2428 am_has_slept=yes
2429 done
2430 test "$2" = conftest.file
2431 )
2432 then
2433 # Ok.
2434 :
2435 else
2436 as_fn_error $? "newly created file is older than distributed files!
2437 Check your system clock" "$LINENO" 5
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440 $as_echo "yes" >&6; }
2441 # If we didn't sleep, we still need to ensure time stamps of config.status and
2442 # generated files are strictly newer.
2443 am_sleep_pid=
2444 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2445 ( sleep 1 ) &
2446 am_sleep_pid=$!
2447 fi
2448
2449 rm -f conftest.file
2450
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461 # expand $ac_aux_dir to an absolute path
2462 am_aux_dir=`cd $ac_aux_dir && pwd`
2463
2464 if test x"${MISSING+set}" != xset; then
2465 case $am_aux_dir in
2466 *\ * | *\ *)
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2468 *)
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470 esac
2471 fi
2472 # Use eval to expand $SHELL
2473 if eval "$MISSING --run true"; then
2474 am_missing_run="$MISSING --run "
2475 else
2476 am_missing_run=
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2478 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2479 fi
2480
2481 if test x"${install_sh}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2485 *)
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2487 esac
2488 fi
2489
2490 # Installed binaries are usually stripped using 'strip' when the user
2491 # run "make install-strip". However 'strip' might not be the right
2492 # tool to use in cross-compilation environments, therefore Automake
2493 # will honor the 'STRIP' environment variable to overrule this program.
2494 if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 STRIP=$ac_cv_prog_STRIP
2524 if test -n "$STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526 $as_echo "$STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533 fi
2534 if test -z "$ac_cv_prog_STRIP"; then
2535 ac_ct_STRIP=$STRIP
2536 # Extract the first word of "strip", so it can be a program name with args.
2537 set dummy strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_ac_ct_STRIP="strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564 if test -n "$ac_ct_STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566 $as_echo "$ac_ct_STRIP" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572 if test "x$ac_ct_STRIP" = x; then
2573 STRIP=":"
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581 STRIP=$ac_ct_STRIP
2582 fi
2583 else
2584 STRIP="$ac_cv_prog_STRIP"
2585 fi
2586
2587 fi
2588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592 if test -z "$MKDIR_P"; then
2593 if ${ac_cv_path_mkdir+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in mkdir gmkdir; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609 break 3;;
2610 esac
2611 done
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617
2618 test -d ./--version && rmdir ./--version
2619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 MKDIR_P="$ac_install_sh -d"
2627 fi
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630 $as_echo "$MKDIR_P" >&6; }
2631
2632 for ac_prog in gawk mawk nawk awk
2633 do
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_AWK+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$AWK"; then
2642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_AWK="$ac_prog"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 AWK=$ac_cv_prog_AWK
2662 if test -n "$AWK"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2664 $as_echo "$AWK" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671 test -n "$AWK" && break
2672 done
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2676 set x ${MAKE-make}
2677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 cat >conftest.make <<\_ACEOF
2682 SHELL = /bin/sh
2683 all:
2684 @echo '@@@%%%=$(MAKE)=@@@%%%'
2685 _ACEOF
2686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2688 *@@@%%%=?*=@@@%%%*)
2689 eval ac_cv_prog_make_${ac_make}_set=yes;;
2690 *)
2691 eval ac_cv_prog_make_${ac_make}_set=no;;
2692 esac
2693 rm -f conftest.make
2694 fi
2695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697 $as_echo "yes" >&6; }
2698 SET_MAKE=
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 SET_MAKE="MAKE=${MAKE-make}"
2703 fi
2704
2705 rm -rf .tst 2>/dev/null
2706 mkdir .tst 2>/dev/null
2707 if test -d .tst; then
2708 am__leading_dot=.
2709 else
2710 am__leading_dot=_
2711 fi
2712 rmdir .tst 2>/dev/null
2713
2714 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2715 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2716 # is not polluted with repeated "-I."
2717 am__isrc=' -I$(srcdir)'
2718 # test to see if srcdir already configured
2719 if test -f $srcdir/config.status; then
2720 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2721 fi
2722 fi
2723
2724 # test whether we have cygpath
2725 if test -z "$CYGPATH_W"; then
2726 if (cygpath --version) >/dev/null 2>/dev/null; then
2727 CYGPATH_W='cygpath -w'
2728 else
2729 CYGPATH_W=echo
2730 fi
2731 fi
2732
2733
2734 # Define the identity of the package.
2735 PACKAGE='libodb-mysql'
2736 VERSION='2.4.0'
2737
2738
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE "$PACKAGE"
2741 _ACEOF
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define VERSION "$VERSION"
2746 _ACEOF
2747
2748 # Some tools Automake needs.
2749
2750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2751
2752
2753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2754
2755
2756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2757
2758
2759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2760
2761
2762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2763
2764 # For better backward compatibility. To be removed once Automake 1.9.x
2765 # dies out for good. For more background, see:
2766 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2767 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2768 mkdir_p='$(MKDIR_P)'
2769
2770 # We need awk for the "check" target. The system "awk" is bad on
2771 # some platforms.
2772 # Always define AMTAR for backward compatibility. Yes, it's still used
2773 # in the wild :-( We should find a proper way to deprecate it ...
2774 AMTAR='$${TAR-tar}'
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2778 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2779 # Loop over all known methods to create a tar archive until one works.
2780 _am_tools='gnutar plaintar pax cpio none'
2781 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2782 # Do not fold the above two line into one, because Tru64 sh and
2783 # Solaris sh will not grok spaces in the rhs of '-'.
2784 for _am_tool in $_am_tools
2785 do
2786 case $_am_tool in
2787 gnutar)
2788 for _am_tar in tar gnutar gtar;
2789 do
2790 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2791 ($_am_tar --version) >&5 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } && break
2795 done
2796 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2797 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2798 am__untar="$_am_tar -xf -"
2799 ;;
2800 plaintar)
2801 # Must skip GNU tar: if it does not support --format= it doesn't create
2802 # ustar tarball either.
2803 (tar --version) >/dev/null 2>&1 && continue
2804 am__tar='tar chf - "$$tardir"'
2805 am__tar_='tar chf - "$tardir"'
2806 am__untar='tar xf -'
2807 ;;
2808 pax)
2809 am__tar='pax -L -x ustar -w "$$tardir"'
2810 am__tar_='pax -L -x ustar -w "$tardir"'
2811 am__untar='pax -r'
2812 ;;
2813 cpio)
2814 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2815 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2816 am__untar='cpio -i -H ustar -d'
2817 ;;
2818 none)
2819 am__tar=false
2820 am__tar_=false
2821 am__untar=false
2822 ;;
2823 esac
2824
2825 # If the value was cached, stop now. We just wanted to have am__tar
2826 # and am__untar set.
2827 test -n "${am_cv_prog_tar_ustar}" && break
2828
2829 # tar/untar a dummy directory, and stop if the command works
2830 rm -rf conftest.dir
2831 mkdir conftest.dir
2832 echo GrepMe > conftest.dir/file
2833 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2834 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 rm -rf conftest.dir
2839 if test -s conftest.tar; then
2840 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2841 ($am__untar <conftest.tar) >&5 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2846 fi
2847 done
2848 rm -rf conftest.dir
2849
2850 if ${am_cv_prog_tar_ustar+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 am_cv_prog_tar_ustar=$_am_tool
2854 fi
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2857 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2858
2859
2860
2861
2862
2863 DEPDIR="${am__leading_dot}deps"
2864
2865 ac_config_commands="$ac_config_commands depfiles"
2866
2867
2868 am_make=${MAKE-make}
2869 cat > confinc << 'END'
2870 am__doit:
2871 @echo this is the am__doit target
2872 .PHONY: am__doit
2873 END
2874 # If we don't find an include directive, just comment out the code.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2876 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2877 am__include="#"
2878 am__quote=
2879 _am_result=none
2880 # First try GNU make style include.
2881 echo "include confinc" > confmf
2882 # Ignore all kinds of additional output from 'make'.
2883 case `$am_make -s -f confmf 2> /dev/null` in #(
2884 *the\ am__doit\ target*)
2885 am__include=include
2886 am__quote=
2887 _am_result=GNU
2888 ;;
2889 esac
2890 # Now try BSD make style include.
2891 if test "$am__include" = "#"; then
2892 echo '.include "confinc"' > confmf
2893 case `$am_make -s -f confmf 2> /dev/null` in #(
2894 *the\ am__doit\ target*)
2895 am__include=.include
2896 am__quote="\""
2897 _am_result=BSD
2898 ;;
2899 esac
2900 fi
2901
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2904 $as_echo "$_am_result" >&6; }
2905 rm -f confinc confmf
2906
2907 # Check whether --enable-dependency-tracking was given.
2908 if test "${enable_dependency_tracking+set}" = set; then :
2909 enableval=$enable_dependency_tracking;
2910 fi
2911
2912 if test "x$enable_dependency_tracking" != xno; then
2913 am_depcomp="$ac_aux_dir/depcomp"
2914 AMDEPBACKSLASH='\'
2915 am__nodep='_no'
2916 fi
2917 if test "x$enable_dependency_tracking" != xno; then
2918 AMDEP_TRUE=
2919 AMDEP_FALSE='#'
2920 else
2921 AMDEP_TRUE='#'
2922 AMDEP_FALSE=
2923 fi
2924
2925
2926 ac_ext=c
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$ac_cv_prog_CC"; then
2971 ac_ct_CC=$CC
2972 # Extract the first word of "gcc", so it can be a program name with args.
2973 set dummy gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_CC="gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002 $as_echo "$ac_ct_CC" >&6; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3018 fi
3019 else
3020 CC="$ac_cv_prog_CC"
3021 fi
3022
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="${ac_tool_prefix}cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 fi
3064 if test -z "$CC"; then
3065 # Extract the first word of "cc", so it can be a program name with args.
3066 set dummy cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 ac_prog_rejected=no
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3084 ac_prog_rejected=yes
3085 continue
3086 fi
3087 ac_cv_prog_CC="cc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091 done
3092 done
3093 IFS=$as_save_IFS
3094
3095 if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_CC
3098 shift
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set CC to just the basename; use the full file name.
3103 shift
3104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3105 fi
3106 fi
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 fi
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 for ac_prog in cl.exe
3123 do
3124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161 test -n "$CC" && break
3162 done
3163 fi
3164 if test -z "$CC"; then
3165 ac_ct_CC=$CC
3166 for ac_prog in cl.exe
3167 do
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_ac_ct_CC="$ac_prog"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 test -n "$ac_ct_CC" && break
3206 done
3207
3208 if test "x$ac_ct_CC" = x; then
3209 CC=""
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212 yes:)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3216 esac
3217 CC=$ac_ct_CC
3218 fi
3219 fi
3220
3221 fi
3222
3223
3224 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "no acceptable C compiler found in \$PATH
3227 See \`config.log' for more details" "$LINENO" 5; }
3228
3229 # Provide some information about the compiler.
3230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3231 set X $ac_compile
3232 ac_compiler=$2
3233 for ac_option in --version -v -V -qversion; do
3234 { { ac_try="$ac_compiler $ac_option >&5"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3242 ac_status=$?
3243 if test -s conftest.err; then
3244 sed '10a\
3245 ... rest of stderr output deleted ...
3246 10q' conftest.err >conftest.er1
3247 cat conftest.er1 >&5
3248 fi
3249 rm -f conftest.er1 conftest.err
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }
3252 done
3253
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 ac_clean_files_save=$ac_clean_files
3266 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3267 # Try to create an executable without -o first, disregard a.out.
3268 # It will help us diagnose broken compilers, and finding out an intuition
3269 # of exeext.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3271 $as_echo_n "checking whether the C compiler works... " >&6; }
3272 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273
3274 # The possible output files:
3275 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3276
3277 ac_rmfiles=
3278 for ac_file in $ac_files
3279 do
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3283 esac
3284 done
3285 rm -f $ac_rmfiles
3286
3287 if { { ac_try="$ac_link_default"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link_default") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3300 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3301 # so that the user can short-circuit this test for compilers unknown to
3302 # Autoconf.
3303 for ac_file in $ac_files ''
3304 do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3308 ;;
3309 [ab].out )
3310 # We found the default executable, but exeext='' is most
3311 # certainly right.
3312 break;;
3313 *.* )
3314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3315 then :; else
3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 fi
3318 # We set ac_cv_exeext here because the later test for it is not
3319 # safe: cross compilers may not add the suffix if given an `-o'
3320 # argument, so we may need to know it at that point already.
3321 # Even if this section looks crufty: it has the advantage of
3322 # actually working.
3323 break;;
3324 * )
3325 break;;
3326 esac
3327 done
3328 test "$ac_cv_exeext" = no && ac_cv_exeext=
3329
3330 else
3331 ac_file=''
3332 fi
3333 if test -z "$ac_file"; then :
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error 77 "C compiler cannot create executables
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3348 $as_echo_n "checking for C compiler default output file name... " >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3350 $as_echo "$ac_file" >&6; }
3351 ac_exeext=$ac_cv_exeext
3352
3353 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3356 $as_echo_n "checking for suffix of executables... " >&6; }
3357 if { { ac_try="$ac_link"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370 # work properly (i.e., refer to `conftest.exe'), while it won't with
3371 # `rm'.
3372 for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 break;;
3378 * ) break;;
3379 esac
3380 done
3381 else
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details" "$LINENO" 5; }
3386 fi
3387 rm -f conftest conftest$ac_cv_exeext
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3389 $as_echo "$ac_cv_exeext" >&6; }
3390
3391 rm -f conftest.$ac_ext
3392 EXEEXT=$ac_cv_exeext
3393 ac_exeext=$EXEEXT
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdio.h>
3397 int
3398 main ()
3399 {
3400 FILE *f = fopen ("conftest.out", "w");
3401 return ferror (f) || fclose (f) != 0;
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files="$ac_clean_files conftest.out"
3408 # Check that the compiler produces executables we can run. If not, either
3409 # the compiler is broken, or we cross compile.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411 $as_echo_n "checking whether we are cross compiling... " >&6; }
3412 if test "$cross_compiling" != yes; then
3413 { { ac_try="$ac_link"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }
3424 if { ac_try='./conftest$ac_cv_exeext'
3425 { { case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_try") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
3435 cross_compiling=no
3436 else
3437 if test "$cross_compiling" = maybe; then
3438 cross_compiling=yes
3439 else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details" "$LINENO" 5; }
3445 fi
3446 fi
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3449 $as_echo "$cross_compiling" >&6; }
3450
3451 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3452 ac_clean_files=$ac_clean_files_save
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3454 $as_echo_n "checking for suffix of object files... " >&6; }
3455 if ${ac_cv_objext+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.o conftest.obj
3470 if { { ac_try="$ac_compile"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compile") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 for ac_file in conftest.o conftest.obj conftest.*; do
3482 test -f "$ac_file" || continue;
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3486 break;;
3487 esac
3488 done
3489 else
3490 $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "cannot compute suffix of object files: cannot compile
3496 See \`config.log' for more details" "$LINENO" 5; }
3497 fi
3498 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3501 $as_echo "$ac_cv_objext" >&6; }
3502 OBJEXT=$ac_cv_objext
3503 ac_objext=$OBJEXT
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3505 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3506 if ${ac_cv_c_compiler_gnu+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515 #ifndef __GNUC__
3516 choke me
3517 #endif
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_compiler_gnu=yes
3525 else
3526 ac_compiler_gnu=no
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3533 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3534 if test $ac_compiler_gnu = yes; then
3535 GCC=yes
3536 else
3537 GCC=
3538 fi
3539 ac_test_CFLAGS=${CFLAGS+set}
3540 ac_save_CFLAGS=$CFLAGS
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3542 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3543 if ${ac_cv_prog_cc_g+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 ac_save_c_werror_flag=$ac_c_werror_flag
3547 ac_c_werror_flag=yes
3548 ac_cv_prog_cc_g=no
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552
3553 int
3554 main ()
3555 {
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3563 else
3564 CFLAGS=""
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577
3578 else
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3580 CFLAGS="-g"
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583
3584 int
3585 main ()
3586 {
3587
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_cv_prog_cc_g=yes
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3603 $as_echo "$ac_cv_prog_cc_g" >&6; }
3604 if test "$ac_test_CFLAGS" = set; then
3605 CFLAGS=$ac_save_CFLAGS
3606 elif test $ac_cv_prog_cc_g = yes; then
3607 if test "$GCC" = yes; then
3608 CFLAGS="-g -O2"
3609 else
3610 CFLAGS="-g"
3611 fi
3612 else
3613 if test "$GCC" = yes; then
3614 CFLAGS="-O2"
3615 else
3616 CFLAGS=
3617 fi
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3620 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3621 if ${ac_cv_prog_cc_c89+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 ac_cv_prog_cc_c89=no
3625 ac_save_CC=$CC
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <stdarg.h>
3629 #include <stdio.h>
3630 struct stat;
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3635 char **p;
3636 int i;
3637 {
3638 return p[i];
3639 }
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3641 {
3642 char *s;
3643 va_list v;
3644 va_start (v,p);
3645 s = g (p, va_arg (v,int));
3646 va_end (v);
3647 return s;
3648 }
3649
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3661 #define FOO(x) 'x'
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668 int argc;
3669 char **argv;
3670 int
3671 main ()
3672 {
3673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 do
3681 CC="$ac_save_CC $ac_arg"
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_c89=$ac_arg
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 done
3688 rm -f conftest.$ac_ext
3689 CC=$ac_save_CC
3690
3691 fi
3692 # AC_CACHE_VAL
3693 case "x$ac_cv_prog_cc_c89" in
3694 x)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3696 $as_echo "none needed" >&6; } ;;
3697 xno)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699 $as_echo "unsupported" >&6; } ;;
3700 *)
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704 esac
3705 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706
3707 fi
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714
3715 depcc="$CC" am_compiler_list=
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3718 $as_echo_n "checking dependency style of $depcc... " >&6; }
3719 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3723 # We make a subdir and do the tests there. Otherwise we can end up
3724 # making bogus files that we don't know about and never remove. For
3725 # instance it was reported that on HP-UX the gcc test will end up
3726 # making a dummy file named 'D' -- because '-MD' means "put the output
3727 # in D".
3728 rm -rf conftest.dir
3729 mkdir conftest.dir
3730 # Copy depcomp to subdir because otherwise we won't find it if we're
3731 # using a relative directory.
3732 cp "$am_depcomp" conftest.dir
3733 cd conftest.dir
3734 # We will build objects and dependencies in a subdirectory because
3735 # it helps to detect inapplicable dependency modes. For instance
3736 # both Tru64's cc and ICC support -MD to output dependencies as a
3737 # side effect of compilation, but ICC will put the dependencies in
3738 # the current directory while Tru64 will put them in the object
3739 # directory.
3740 mkdir sub
3741
3742 am_cv_CC_dependencies_compiler_type=none
3743 if test "$am_compiler_list" = ""; then
3744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3745 fi
3746 am__universal=false
3747 case " $depcc " in #(
3748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3749 esac
3750
3751 for depmode in $am_compiler_list; do
3752 # Setup a source with many dependencies, because some compilers
3753 # like to wrap large dependency lists on column 80 (with \), and
3754 # we should not choose a depcomp mode which is confused by this.
3755 #
3756 # We need to recreate these files for each test, as the compiler may
3757 # overwrite some of them when testing with obscure command lines.
3758 # This happens at least with the AIX C compiler.
3759 : > sub/conftest.c
3760 for i in 1 2 3 4 5 6; do
3761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3762 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3763 # Solaris 10 /bin/sh.
3764 echo '/* dummy */' > sub/conftst$i.h
3765 done
3766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3767
3768 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3769 # mode. It turns out that the SunPro C++ compiler does not properly
3770 # handle '-M -o', and we need to detect this. Also, some Intel
3771 # versions had trouble with output in subdirs.
3772 am__obj=sub/conftest.${OBJEXT-o}
3773 am__minus_obj="-o $am__obj"
3774 case $depmode in
3775 gcc)
3776 # This depmode causes a compiler race in universal mode.
3777 test "$am__universal" = false || continue
3778 ;;
3779 nosideeffect)
3780 # After this tag, mechanisms are not by side-effect, so they'll
3781 # only be used when explicitly requested.
3782 if test "x$enable_dependency_tracking" = xyes; then
3783 continue
3784 else
3785 break
3786 fi
3787 ;;
3788 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3789 # This compiler won't grok '-c -o', but also, the minuso test has
3790 # not run yet. These depmodes are late enough in the game, and
3791 # so weak that their functioning should not be impacted.
3792 am__obj=conftest.${OBJEXT-o}
3793 am__minus_obj=
3794 ;;
3795 none) break ;;
3796 esac
3797 if depmode=$depmode \
3798 source=sub/conftest.c object=$am__obj \
3799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3801 >/dev/null 2>conftest.err &&
3802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3806 # icc doesn't choke on unknown options, it will just issue warnings
3807 # or remarks (even with -Werror). So we grep stderr for any message
3808 # that says an option was ignored or not supported.
3809 # When given -MP, icc 7.0 and 7.1 complain thusly:
3810 # icc: Command line warning: ignoring option '-M'; no argument required
3811 # The diagnosis changed in icc 8.0:
3812 # icc: Command line remark: option '-MP' not supported
3813 if (grep 'ignoring option' conftest.err ||
3814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3815 am_cv_CC_dependencies_compiler_type=$depmode
3816 break
3817 fi
3818 fi
3819 done
3820
3821 cd ..
3822 rm -rf conftest.dir
3823 else
3824 am_cv_CC_dependencies_compiler_type=none
3825 fi
3826
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3829 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3831
3832 if
3833 test "x$enable_dependency_tracking" != xno \
3834 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835 am__fastdepCC_TRUE=
3836 am__fastdepCC_FALSE='#'
3837 else
3838 am__fastdepCC_TRUE='#'
3839 am__fastdepCC_FALSE=
3840 fi
3841
3842
3843
3844 if test -n "$ac_tool_prefix"; then
3845 for ac_prog in ar lib "link -lib"
3846 do
3847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_AR+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$AR"; then
3855 ac_cv_prog_AR="$AR" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 AR=$ac_cv_prog_AR
3875 if test -n "$AR"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3877 $as_echo "$AR" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 test -n "$AR" && break
3885 done
3886 fi
3887 if test -z "$AR"; then
3888 ac_ct_AR=$AR
3889 for ac_prog in ar lib "link -lib"
3890 do
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$ac_ct_AR"; then
3899 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_ac_ct_AR="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3919 if test -n "$ac_ct_AR"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3921 $as_echo "$ac_ct_AR" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928 test -n "$ac_ct_AR" && break
3929 done
3930
3931 if test "x$ac_ct_AR" = x; then
3932 AR="false"
3933 else
3934 case $cross_compiling:$ac_tool_warned in
3935 yes:)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938 ac_tool_warned=yes ;;
3939 esac
3940 AR=$ac_ct_AR
3941 fi
3942 fi
3943
3944 : ${AR=ar}
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3947 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3948 if ${am_cv_ar_interface+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 am_cv_ar_interface=ar
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954 int some_variable = 0;
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3959 (eval $am_ar_try) 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }
3963 if test "$ac_status" -eq 0; then
3964 am_cv_ar_interface=ar
3965 else
3966 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3968 (eval $am_ar_try) 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }
3972 if test "$ac_status" -eq 0; then
3973 am_cv_ar_interface=lib
3974 else
3975 am_cv_ar_interface=unknown
3976 fi
3977 fi
3978 rm -f conftest.lib libconftest.a
3979
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3985 $as_echo "$am_cv_ar_interface" >&6; }
3986
3987 case $am_cv_ar_interface in
3988 ar)
3989 ;;
3990 lib)
3991 # Microsoft lib, so override with the ar-lib wrapper script.
3992 # FIXME: It is wrong to rewrite AR.
3993 # But if we don't then we get into trouble of one sort or another.
3994 # A longer-term fix would be to have automake use am__AR in this case,
3995 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3996 # similar.
3997 AR="$am_aux_dir/ar-lib $AR"
3998 ;;
3999 unknown)
4000 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4001 ;;
4002 esac
4003 # Required by automake 1.12.
4004
4005 case `pwd` in
4006 *\ * | *\ *)
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4008 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4009 esac
4010
4011
4012
4013 macro_version='2.4.2'
4014 macro_revision='1.3337'
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028 ltmain="$ac_aux_dir/ltmain.sh"
4029
4030 # Make sure we can run config.sub.
4031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4033
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4035 $as_echo_n "checking build system type... " >&6; }
4036 if ${ac_cv_build+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 ac_build_alias=$build_alias
4040 test "x$ac_build_alias" = x &&
4041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4042 test "x$ac_build_alias" = x &&
4043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4046
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4049 $as_echo "$ac_cv_build" >&6; }
4050 case $ac_cv_build in
4051 *-*-*) ;;
4052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4053 esac
4054 build=$ac_cv_build
4055 ac_save_IFS=$IFS; IFS='-'
4056 set x $ac_cv_build
4057 shift
4058 build_cpu=$1
4059 build_vendor=$2
4060 shift; shift
4061 # Remember, the first character of IFS is used to create $*,
4062 # except with old shells:
4063 build_os=$*
4064 IFS=$ac_save_IFS
4065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4066
4067
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4069 $as_echo_n "checking host system type... " >&6; }
4070 if ${ac_cv_host+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test "x$host_alias" = x; then
4074 ac_cv_host=$ac_cv_build
4075 else
4076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4078 fi
4079
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4082 $as_echo "$ac_cv_host" >&6; }
4083 case $ac_cv_host in
4084 *-*-*) ;;
4085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4086 esac
4087 host=$ac_cv_host
4088 ac_save_IFS=$IFS; IFS='-'
4089 set x $ac_cv_host
4090 shift
4091 host_cpu=$1
4092 host_vendor=$2
4093 shift; shift
4094 # Remember, the first character of IFS is used to create $*,
4095 # except with old shells:
4096 host_os=$*
4097 IFS=$ac_save_IFS
4098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4099
4100
4101 # Backslashify metacharacters that are still active within
4102 # double-quoted strings.
4103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4104
4105 # Same as above, but do not quote variable references.
4106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4107
4108 # Sed substitution to delay expansion of an escaped shell variable in a
4109 # double_quote_subst'ed string.
4110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4111
4112 # Sed substitution to delay expansion of an escaped single quote.
4113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4114
4115 # Sed substitution to avoid accidental globbing in evaled expressions
4116 no_glob_subst='s/\*/\\\*/g'
4117
4118 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4123 $as_echo_n "checking how to print strings... " >&6; }
4124 # Test print first, because it will be a builtin if present.
4125 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4126 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4127 ECHO='print -r --'
4128 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4129 ECHO='printf %s\n'
4130 else
4131 # Use this function as a fallback that always works.
4132 func_fallback_echo ()
4133 {
4134 eval 'cat <<_LTECHO_EOF
4135 $1
4136 _LTECHO_EOF'
4137 }
4138 ECHO='func_fallback_echo'
4139 fi
4140
4141 # func_echo_all arg...
4142 # Invoke $ECHO with all args, space-separated.
4143 func_echo_all ()
4144 {
4145 $ECHO ""
4146 }
4147
4148 case "$ECHO" in
4149 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4150 $as_echo "printf" >&6; } ;;
4151 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4152 $as_echo "print -r" >&6; } ;;
4153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4154 $as_echo "cat" >&6; } ;;
4155 esac
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4172 if ${ac_cv_path_SED+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4176 for ac_i in 1 2 3 4 5 6 7; do
4177 ac_script="$ac_script$as_nl$ac_script"
4178 done
4179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4180 { ac_script=; unset ac_script;}
4181 if test -z "$SED"; then
4182 ac_path_SED_found=false
4183 # Loop through the user's path and test for each of PROGNAME-LIST
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_prog in sed gsed; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4192 as_fn_executable_p "$ac_path_SED" || continue
4193 # Check for GNU ac_path_SED and select it if it is found.
4194 # Check for GNU $ac_path_SED
4195 case `"$ac_path_SED" --version 2>&1` in
4196 *GNU*)
4197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4198 *)
4199 ac_count=0
4200 $as_echo_n 0123456789 >"conftest.in"
4201 while :
4202 do
4203 cat "conftest.in" "conftest.in" >"conftest.tmp"
4204 mv "conftest.tmp" "conftest.in"
4205 cp "conftest.in" "conftest.nl"
4206 $as_echo '' >> "conftest.nl"
4207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209 as_fn_arith $ac_count + 1 && ac_count=$as_val
4210 if test $ac_count -gt ${ac_path_SED_max-0}; then
4211 # Best one so far, save it but keep looking for a better one
4212 ac_cv_path_SED="$ac_path_SED"
4213 ac_path_SED_max=$ac_count
4214 fi
4215 # 10*(2^10) chars as input seems more than enough
4216 test $ac_count -gt 10 && break
4217 done
4218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 esac
4220
4221 $ac_path_SED_found && break 3
4222 done
4223 done
4224 done
4225 IFS=$as_save_IFS
4226 if test -z "$ac_cv_path_SED"; then
4227 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4228 fi
4229 else
4230 ac_cv_path_SED=$SED
4231 fi
4232
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4235 $as_echo "$ac_cv_path_SED" >&6; }
4236 SED="$ac_cv_path_SED"
4237 rm -f conftest.sed
4238
4239 test -z "$SED" && SED=sed
4240 Xsed="$SED -e 1s/^X//"
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4254 if ${ac_cv_path_GREP+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -z "$GREP"; then
4258 ac_path_GREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in grep ggrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4268 as_fn_executable_p "$ac_path_GREP" || continue
4269 # Check for GNU ac_path_GREP and select it if it is found.
4270 # Check for GNU $ac_path_GREP
4271 case `"$ac_path_GREP" --version 2>&1` in
4272 *GNU*)
4273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4274 *)
4275 ac_count=0
4276 $as_echo_n 0123456789 >"conftest.in"
4277 while :
4278 do
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 $as_echo 'GREP' >> "conftest.nl"
4283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 as_fn_arith $ac_count + 1 && ac_count=$as_val
4286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_GREP="$ac_path_GREP"
4289 ac_path_GREP_max=$ac_count
4290 fi
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4296
4297 $ac_path_GREP_found && break 3
4298 done
4299 done
4300 done
4301 IFS=$as_save_IFS
4302 if test -z "$ac_cv_path_GREP"; then
4303 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4304 fi
4305 else
4306 ac_cv_path_GREP=$GREP
4307 fi
4308
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4311 $as_echo "$ac_cv_path_GREP" >&6; }
4312 GREP="$ac_cv_path_GREP"
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4316 $as_echo_n "checking for egrep... " >&6; }
4317 if ${ac_cv_path_EGREP+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321 then ac_cv_path_EGREP="$GREP -E"
4322 else
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in egrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4334 as_fn_executable_p "$ac_path_EGREP" || continue
4335 # Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337 case `"$ac_path_EGREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4340 *)
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4344 do
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 as_fn_arith $ac_count + 1 && ac_count=$as_val
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP="$ac_path_EGREP"
4355 ac_path_EGREP_max=$ac_count
4356 fi
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4362
4363 $ac_path_EGREP_found && break 3
4364 done
4365 done
4366 done
4367 IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_EGREP"; then
4369 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4370 fi
4371 else
4372 ac_cv_path_EGREP=$EGREP
4373 fi
4374
4375 fi
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4378 $as_echo "$ac_cv_path_EGREP" >&6; }
4379 EGREP="$ac_cv_path_EGREP"
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4383 $as_echo_n "checking for fgrep... " >&6; }
4384 if ${ac_cv_path_FGREP+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4388 then ac_cv_path_FGREP="$GREP -F"
4389 else
4390 if test -z "$FGREP"; then
4391 ac_path_FGREP_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in fgrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 as_fn_executable_p "$ac_path_FGREP" || continue
4402 # Check for GNU ac_path_FGREP and select it if it is found.
4403 # Check for GNU $ac_path_FGREP
4404 case `"$ac_path_FGREP" --version 2>&1` in
4405 *GNU*)
4406 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4407 *)
4408 ac_count=0
4409 $as_echo_n 0123456789 >"conftest.in"
4410 while :
4411 do
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'FGREP' >> "conftest.nl"
4416 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_FGREP="$ac_path_FGREP"
4422 ac_path_FGREP_max=$ac_count
4423 fi
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4426 done
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4429
4430 $ac_path_FGREP_found && break 3
4431 done
4432 done
4433 done
4434 IFS=$as_save_IFS
4435 if test -z "$ac_cv_path_FGREP"; then
4436 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 fi
4438 else
4439 ac_cv_path_FGREP=$FGREP
4440 fi
4441
4442 fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4445 $as_echo "$ac_cv_path_FGREP" >&6; }
4446 FGREP="$ac_cv_path_FGREP"
4447
4448
4449 test -z "$GREP" && GREP=grep
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469 # Check whether --with-gnu-ld was given.
4470 if test "${with_gnu_ld+set}" = set; then :
4471 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4472 else
4473 with_gnu_ld=no
4474 fi
4475
4476 ac_prog=ld
4477 if test "$GCC" = yes; then
4478 # Check if gcc -print-prog-name=ld gives a path.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4480 $as_echo_n "checking for ld used by $CC... " >&6; }
4481 case $host in
4482 *-*-mingw*)
4483 # gcc leaves a trailing carriage return which upsets mingw
4484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4485 *)
4486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4487 esac
4488 case $ac_prog in
4489 # Accept absolute paths.
4490 [\\/]* | ?:[\\/]*)
4491 re_direlt='/[^/][^/]*/\.\./'
4492 # Canonicalize the pathname of ld
4493 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4494 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4495 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4496 done
4497 test -z "$LD" && LD="$ac_prog"
4498 ;;
4499 "")
4500 # If it fails, then pretend we aren't using GCC.
4501 ac_prog=ld
4502 ;;
4503 *)
4504 # If it is relative, then search for the first ld in PATH.
4505 with_gnu_ld=unknown
4506 ;;
4507 esac
4508 elif test "$with_gnu_ld" = yes; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4510 $as_echo_n "checking for GNU ld... " >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4513 $as_echo_n "checking for non-GNU ld... " >&6; }
4514 fi
4515 if ${lt_cv_path_LD+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -z "$LD"; then
4519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4520 for ac_dir in $PATH; do
4521 IFS="$lt_save_ifs"
4522 test -z "$ac_dir" && ac_dir=.
4523 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4524 lt_cv_path_LD="$ac_dir/$ac_prog"
4525 # Check to see if the program is GNU ld. I'd rather use --version,
4526 # but apparently some variants of GNU ld only accept -v.
4527 # Break only if it was the GNU/non-GNU ld that we prefer.
4528 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4529 *GNU* | *'with BFD'*)
4530 test "$with_gnu_ld" != no && break
4531 ;;
4532 *)
4533 test "$with_gnu_ld" != yes && break
4534 ;;
4535 esac
4536 fi
4537 done
4538 IFS="$lt_save_ifs"
4539 else
4540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4541 fi
4542 fi
4543
4544 LD="$lt_cv_path_LD"
4545 if test -n "$LD"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4547 $as_echo "$LD" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4554 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4555 if ${lt_cv_prog_gnu_ld+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4559 case `$LD -v 2>&1 </dev/null` in
4560 *GNU* | *'with BFD'*)
4561 lt_cv_prog_gnu_ld=yes
4562 ;;
4563 *)
4564 lt_cv_prog_gnu_ld=no
4565 ;;
4566 esac
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4569 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4570 with_gnu_ld=$lt_cv_prog_gnu_ld
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4581 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4582 if ${lt_cv_path_NM+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$NM"; then
4586 # Let the user override the test.
4587 lt_cv_path_NM="$NM"
4588 else
4589 lt_nm_to_check="${ac_tool_prefix}nm"
4590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4591 lt_nm_to_check="$lt_nm_to_check nm"
4592 fi
4593 for lt_tmp_nm in $lt_nm_to_check; do
4594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4596 IFS="$lt_save_ifs"
4597 test -z "$ac_dir" && ac_dir=.
4598 tmp_nm="$ac_dir/$lt_tmp_nm"
4599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4600 # Check to see if the nm accepts a BSD-compat flag.
4601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4602 # nm: unknown option "B" ignored
4603 # Tru64's nm complains that /dev/null is an invalid object file
4604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4605 */dev/null* | *'Invalid file or object type'*)
4606 lt_cv_path_NM="$tmp_nm -B"
4607 break
4608 ;;
4609 *)
4610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4611 */dev/null*)
4612 lt_cv_path_NM="$tmp_nm -p"
4613 break
4614 ;;
4615 *)
4616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4617 continue # so that we can try to find one that supports BSD flags
4618 ;;
4619 esac
4620 ;;
4621 esac
4622 fi
4623 done
4624 IFS="$lt_save_ifs"
4625 done
4626 : ${lt_cv_path_NM=no}
4627 fi
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4630 $as_echo "$lt_cv_path_NM" >&6; }
4631 if test "$lt_cv_path_NM" != "no"; then
4632 NM="$lt_cv_path_NM"
4633 else
4634 # Didn't find any BSD compatible name lister, look for dumpbin.
4635 if test -n "$DUMPBIN"; then :
4636 # Let the user override the test.
4637 else
4638 if test -n "$ac_tool_prefix"; then
4639 for ac_prog in dumpbin "link -dump"
4640 do
4641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_prog_DUMPBIN+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$DUMPBIN"; then
4649 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
4668 DUMPBIN=$ac_cv_prog_DUMPBIN
4669 if test -n "$DUMPBIN"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4671 $as_echo "$DUMPBIN" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4675 fi
4676
4677
4678 test -n "$DUMPBIN" && break
4679 done
4680 fi
4681 if test -z "$DUMPBIN"; then
4682 ac_ct_DUMPBIN=$DUMPBIN
4683 for ac_prog in dumpbin "link -dump"
4684 do
4685 # Extract the first word of "$ac_prog", so it can be a program name with args.
4686 set dummy $ac_prog; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$ac_ct_DUMPBIN"; then
4693 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4713 if test -n "$ac_ct_DUMPBIN"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4715 $as_echo "$ac_ct_DUMPBIN" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720
4721
4722 test -n "$ac_ct_DUMPBIN" && break
4723 done
4724
4725 if test "x$ac_ct_DUMPBIN" = x; then
4726 DUMPBIN=":"
4727 else
4728 case $cross_compiling:$ac_tool_warned in
4729 yes:)
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732 ac_tool_warned=yes ;;
4733 esac
4734 DUMPBIN=$ac_ct_DUMPBIN
4735 fi
4736 fi
4737
4738 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4739 *COFF*)
4740 DUMPBIN="$DUMPBIN -symbols"
4741 ;;
4742 *)
4743 DUMPBIN=:
4744 ;;
4745 esac
4746 fi
4747
4748 if test "$DUMPBIN" != ":"; then
4749 NM="$DUMPBIN"
4750 fi
4751 fi
4752 test -z "$NM" && NM=nm
4753
4754
4755
4756
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4760 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4761 if ${lt_cv_nm_interface+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 lt_cv_nm_interface="BSD nm"
4765 echo "int some_variable = 0;" > conftest.$ac_ext
4766 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4767 (eval "$ac_compile" 2>conftest.err)
4768 cat conftest.err >&5
4769 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4770 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4771 cat conftest.err >&5
4772 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4773 cat conftest.out >&5
4774 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4775 lt_cv_nm_interface="MS dumpbin"
4776 fi
4777 rm -f conftest*
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4780 $as_echo "$lt_cv_nm_interface" >&6; }
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4783 $as_echo_n "checking whether ln -s works... " >&6; }
4784 LN_S=$as_ln_s
4785 if test "$LN_S" = "ln -s"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787 $as_echo "yes" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4790 $as_echo "no, using $LN_S" >&6; }
4791 fi
4792
4793 # find the maximum length of command line arguments
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4795 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4796 if ${lt_cv_sys_max_cmd_len+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 i=0
4800 teststring="ABCD"
4801
4802 case $build_os in
4803 msdosdjgpp*)
4804 # On DJGPP, this test can blow up pretty badly due to problems in libc
4805 # (any single argument exceeding 2000 bytes causes a buffer overrun
4806 # during glob expansion). Even if it were fixed, the result of this
4807 # check would be larger than it should be.
4808 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4809 ;;
4810
4811 gnu*)
4812 # Under GNU Hurd, this test is not required because there is
4813 # no limit to the length of command line arguments.
4814 # Libtool will interpret -1 as no limit whatsoever
4815 lt_cv_sys_max_cmd_len=-1;
4816 ;;
4817
4818 cygwin* | mingw* | cegcc*)
4819 # On Win9x/ME, this test blows up -- it succeeds, but takes
4820 # about 5 minutes as the teststring grows exponentially.
4821 # Worse, since 9x/ME are not pre-emptively multitasking,
4822 # you end up with a "frozen" computer, even though with patience
4823 # the test eventually succeeds (with a max line length of 256k).
4824 # Instead, let's just punt: use the minimum linelength reported by
4825 # all of the supported platforms: 8192 (on NT/2K/XP).
4826 lt_cv_sys_max_cmd_len=8192;
4827 ;;
4828
4829 mint*)
4830 # On MiNT this can take a long time and run out of memory.
4831 lt_cv_sys_max_cmd_len=8192;
4832 ;;
4833
4834 amigaos*)
4835 # On AmigaOS with pdksh, this test takes hours, literally.
4836 # So we just punt and use a minimum line length of 8192.
4837 lt_cv_sys_max_cmd_len=8192;
4838 ;;
4839
4840 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4841 # This has been around since 386BSD, at least. Likely further.
4842 if test -x /sbin/sysctl; then
4843 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4844 elif test -x /usr/sbin/sysctl; then
4845 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4846 else
4847 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4848 fi
4849 # And add a safety zone
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4852 ;;
4853
4854 interix*)
4855 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4856 lt_cv_sys_max_cmd_len=196608
4857 ;;
4858
4859 os2*)
4860 # The test takes a long time on OS/2.
4861 lt_cv_sys_max_cmd_len=8192
4862 ;;
4863
4864 osf*)
4865 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4866 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4867 # nice to cause kernel panics so lets avoid the loop below.
4868 # First set a reasonable default.
4869 lt_cv_sys_max_cmd_len=16384
4870 #
4871 if test -x /sbin/sysconfig; then
4872 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4873 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4874 esac
4875 fi
4876 ;;
4877 sco3.2v5*)
4878 lt_cv_sys_max_cmd_len=102400
4879 ;;
4880 sysv5* | sco5v6* | sysv4.2uw2*)
4881 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4882 if test -n "$kargmax"; then
4883 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4884 else
4885 lt_cv_sys_max_cmd_len=32768
4886 fi
4887 ;;
4888 *)
4889 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4890 if test -n "$lt_cv_sys_max_cmd_len" && \
4891 test undefined != "$lt_cv_sys_max_cmd_len"; then
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894 else
4895 # Make teststring a little bigger before we do anything with it.
4896 # a 1K string should be a reasonable start.
4897 for i in 1 2 3 4 5 6 7 8 ; do
4898 teststring=$teststring$teststring
4899 done
4900 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901 # If test is not a shell built-in, we'll probably end up computing a
4902 # maximum length that is only half of the actual maximum length, but
4903 # we can't tell.
4904 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4905 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4906 test $i != 17 # 1/2 MB should be enough
4907 do
4908 i=`expr $i + 1`
4909 teststring=$teststring$teststring
4910 done
4911 # Only check the string length outside the loop.
4912 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4913 teststring=
4914 # Add a significant safety factor because C++ compilers can tack on
4915 # massive amounts of additional arguments before passing them to the
4916 # linker. It appears as though 1/2 is a usable value.
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4918 fi
4919 ;;
4920 esac
4921
4922 fi
4923
4924 if test -n $lt_cv_sys_max_cmd_len ; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4926 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4929 $as_echo "none" >&6; }
4930 fi
4931 max_cmd_len=$lt_cv_sys_max_cmd_len
4932
4933
4934
4935
4936
4937
4938 : ${CP="cp -f"}
4939 : ${MV="mv -f"}
4940 : ${RM="rm -f"}
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4943 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4944 # Try some XSI features
4945 xsi_shell=no
4946 ( _lt_dummy="a/b/c"
4947 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4948 = c,a/b,b/c, \
4949 && eval 'test $(( 1 + 1 )) -eq 2 \
4950 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4951 && xsi_shell=yes
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4953 $as_echo "$xsi_shell" >&6; }
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4957 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4958 lt_shell_append=no
4959 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4960 >/dev/null 2>&1 \
4961 && lt_shell_append=yes
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4963 $as_echo "$lt_shell_append" >&6; }
4964
4965
4966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4967 lt_unset=unset
4968 else
4969 lt_unset=false
4970 fi
4971
4972
4973
4974
4975
4976 # test EBCDIC or ASCII
4977 case `echo X|tr X '\101'` in
4978 A) # ASCII based system
4979 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4980 lt_SP2NL='tr \040 \012'
4981 lt_NL2SP='tr \015\012 \040\040'
4982 ;;
4983 *) # EBCDIC based system
4984 lt_SP2NL='tr \100 \n'
4985 lt_NL2SP='tr \r\n \100\100'
4986 ;;
4987 esac
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4998 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4999 if ${lt_cv_to_host_file_cmd+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 case $host in
5003 *-*-mingw* )
5004 case $build in
5005 *-*-mingw* ) # actually msys
5006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5007 ;;
5008 *-*-cygwin* )
5009 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5010 ;;
5011 * ) # otherwise, assume *nix
5012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5013 ;;
5014 esac
5015 ;;
5016 *-*-cygwin* )
5017 case $build in
5018 *-*-mingw* ) # actually msys
5019 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5020 ;;
5021 *-*-cygwin* )
5022 lt_cv_to_host_file_cmd=func_convert_file_noop
5023 ;;
5024 * ) # otherwise, assume *nix
5025 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5026 ;;
5027 esac
5028 ;;
5029 * ) # unhandled hosts (and "normal" native builds)
5030 lt_cv_to_host_file_cmd=func_convert_file_noop
5031 ;;
5032 esac
5033
5034 fi
5035
5036 to_host_file_cmd=$lt_cv_to_host_file_cmd
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5038 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5039
5040
5041
5042
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5045 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5046 if ${lt_cv_to_tool_file_cmd+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 #assume ordinary cross tools, or native build.
5050 lt_cv_to_tool_file_cmd=func_convert_file_noop
5051 case $host in
5052 *-*-mingw* )
5053 case $build in
5054 *-*-mingw* ) # actually msys
5055 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5056 ;;
5057 esac
5058 ;;
5059 esac
5060
5061 fi
5062
5063 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5065 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5066
5067
5068
5069
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5072 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5073 if ${lt_cv_ld_reload_flag+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 lt_cv_ld_reload_flag='-r'
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5079 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5080 reload_flag=$lt_cv_ld_reload_flag
5081 case $reload_flag in
5082 "" | " "*) ;;
5083 *) reload_flag=" $reload_flag" ;;
5084 esac
5085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086 case $host_os in
5087 cygwin* | mingw* | pw32* | cegcc*)
5088 if test "$GCC" != yes; then
5089 reload_cmds=false
5090 fi
5091 ;;
5092 darwin*)
5093 if test "$GCC" = yes; then
5094 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5095 else
5096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097 fi
5098 ;;
5099 esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5111 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_OBJDUMP+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$OBJDUMP"; then
5118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 OBJDUMP=$ac_cv_prog_OBJDUMP
5138 if test -n "$OBJDUMP"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5140 $as_echo "$OBJDUMP" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 fi
5148 if test -z "$ac_cv_prog_OBJDUMP"; then
5149 ac_ct_OBJDUMP=$OBJDUMP
5150 # Extract the first word of "objdump", so it can be a program name with args.
5151 set dummy objdump; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_OBJDUMP"; then
5158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5178 if test -n "$ac_ct_OBJDUMP"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5180 $as_echo "$ac_ct_OBJDUMP" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186 if test "x$ac_ct_OBJDUMP" = x; then
5187 OBJDUMP="false"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 OBJDUMP=$ac_ct_OBJDUMP
5196 fi
5197 else
5198 OBJDUMP="$ac_cv_prog_OBJDUMP"
5199 fi
5200
5201 test -z "$OBJDUMP" && OBJDUMP=objdump
5202
5203
5204
5205
5206
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5209 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5210 if ${lt_cv_deplibs_check_method+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 lt_cv_file_magic_cmd='$MAGIC_CMD'
5214 lt_cv_file_magic_test_file=
5215 lt_cv_deplibs_check_method='unknown'
5216 # Need to set the preceding variable on all platforms that support
5217 # interlibrary dependencies.
5218 # 'none' -- dependencies not supported.
5219 # `unknown' -- same as none, but documents that we really don't know.
5220 # 'pass_all' -- all dependencies passed with no checks.
5221 # 'test_compile' -- check by making test program.
5222 # 'file_magic [[regex]]' -- check by looking for files in library path
5223 # which responds to the $file_magic_cmd with a given extended regex.
5224 # If you have `file' or equivalent on your system and you're not sure
5225 # whether `pass_all' will *always* work, you probably want this one.
5226
5227 case $host_os in
5228 aix[4-9]*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 beos*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 bsdi[45]*)
5237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5238 lt_cv_file_magic_cmd='/usr/bin/file -L'
5239 lt_cv_file_magic_test_file=/shlib/libc.so
5240 ;;
5241
5242 cygwin*)
5243 # func_win32_libid is a shell function defined in ltmain.sh
5244 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5245 lt_cv_file_magic_cmd='func_win32_libid'
5246 ;;
5247
5248 mingw* | pw32*)
5249 # Base MSYS/MinGW do not provide the 'file' command needed by
5250 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5251 # unless we find 'file', for example because we are cross-compiling.
5252 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5253 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5255 lt_cv_file_magic_cmd='func_win32_libid'
5256 else
5257 # Keep this pattern in sync with the one in func_win32_libid.
5258 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5259 lt_cv_file_magic_cmd='$OBJDUMP -f'
5260 fi
5261 ;;
5262
5263 cegcc*)
5264 # use the weaker test based on 'objdump'. See mingw*.
5265 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5266 lt_cv_file_magic_cmd='$OBJDUMP -f'
5267 ;;
5268
5269 darwin* | rhapsody*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 freebsd* | dragonfly*)
5274 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5275 case $host_cpu in
5276 i*86 )
5277 # Not sure whether the presence of OpenBSD here was a mistake.
5278 # Let's accept both of them until this is cleared up.
5279 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5280 lt_cv_file_magic_cmd=/usr/bin/file
5281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5282 ;;
5283 esac
5284 else
5285 lt_cv_deplibs_check_method=pass_all
5286 fi
5287 ;;
5288
5289 haiku*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293 hpux10.20* | hpux11*)
5294 lt_cv_file_magic_cmd=/usr/bin/file
5295 case $host_cpu in
5296 ia64*)
5297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5298 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5299 ;;
5300 hppa*64*)
5301 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]'
5302 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5303 ;;
5304 *)
5305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5306 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5307 ;;
5308 esac
5309 ;;
5310
5311 interix[3-9]*)
5312 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5314 ;;
5315
5316 irix5* | irix6* | nonstopux*)
5317 case $LD in
5318 *-32|*"-32 ") libmagic=32-bit;;
5319 *-n32|*"-n32 ") libmagic=N32;;
5320 *-64|*"-64 ") libmagic=64-bit;;
5321 *) libmagic=never-match;;
5322 esac
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 # This must be glibc/ELF.
5327 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331 netbsd* | netbsdelf*-gnu)
5332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5334 else
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5336 fi
5337 ;;
5338
5339 newos6*)
5340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5341 lt_cv_file_magic_cmd=/usr/bin/file
5342 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5343 ;;
5344
5345 *nto* | *qnx*)
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349 openbsd*)
5350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5352 else
5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5354 fi
5355 ;;
5356
5357 osf3* | osf4* | osf5*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361 rdos*)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365 solaris*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373 sysv4 | sysv4.3*)
5374 case $host_vendor in
5375 motorola)
5376 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]'
5377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5378 ;;
5379 ncr)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382 sequent)
5383 lt_cv_file_magic_cmd='/bin/file'
5384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5385 ;;
5386 sni)
5387 lt_cv_file_magic_cmd='/bin/file'
5388 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5389 lt_cv_file_magic_test_file=/lib/libc.so
5390 ;;
5391 siemens)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394 pc)
5395 lt_cv_deplibs_check_method=pass_all
5396 ;;
5397 esac
5398 ;;
5399
5400 tpf*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403 esac
5404
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5407 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5408
5409 file_magic_glob=
5410 want_nocaseglob=no
5411 if test "$build" = "$host"; then
5412 case $host_os in
5413 mingw* | pw32*)
5414 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5415 want_nocaseglob=yes
5416 else
5417 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5418 fi
5419 ;;
5420 esac
5421 fi
5422
5423 file_magic_cmd=$lt_cv_file_magic_cmd
5424 deplibs_check_method=$lt_cv_deplibs_check_method
5425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448 if test -n "$ac_tool_prefix"; then
5449 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5450 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_DLLTOOL+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$DLLTOOL"; then
5457 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470 done
5471 done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 DLLTOOL=$ac_cv_prog_DLLTOOL
5477 if test -n "$DLLTOOL"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5479 $as_echo "$DLLTOOL" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 fi
5487 if test -z "$ac_cv_prog_DLLTOOL"; then
5488 ac_ct_DLLTOOL=$DLLTOOL
5489 # Extract the first word of "dlltool", so it can be a program name with args.
5490 set dummy dlltool; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$ac_ct_DLLTOOL"; then
5497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5517 if test -n "$ac_ct_DLLTOOL"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5519 $as_echo "$ac_ct_DLLTOOL" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525 if test "x$ac_ct_DLLTOOL" = x; then
5526 DLLTOOL="false"
5527 else
5528 case $cross_compiling:$ac_tool_warned in
5529 yes:)
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5532 ac_tool_warned=yes ;;
5533 esac
5534 DLLTOOL=$ac_ct_DLLTOOL
5535 fi
5536 else
5537 DLLTOOL="$ac_cv_prog_DLLTOOL"
5538 fi
5539
5540 test -z "$DLLTOOL" && DLLTOOL=dlltool
5541
5542
5543
5544
5545
5546
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5549 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5550 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 lt_cv_sharedlib_from_linklib_cmd='unknown'
5554
5555 case $host_os in
5556 cygwin* | mingw* | pw32* | cegcc*)
5557 # two different shell functions defined in ltmain.sh
5558 # decide which to use based on capabilities of $DLLTOOL
5559 case `$DLLTOOL --help 2>&1` in
5560 *--identify-strict*)
5561 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5562 ;;
5563 *)
5564 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5565 ;;
5566 esac
5567 ;;
5568 *)
5569 # fallback: assume linklib IS sharedlib
5570 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5571 ;;
5572 esac
5573
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5576 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5577 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5578 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5579
5580
5581
5582
5583
5584
5585
5586 if test -n "$ac_tool_prefix"; then
5587 for ac_prog in ar
5588 do
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_AR+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$AR"; then
5597 ac_cv_prog_AR="$AR" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 AR=$ac_cv_prog_AR
5617 if test -n "$AR"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5619 $as_echo "$AR" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 test -n "$AR" && break
5627 done
5628 fi
5629 if test -z "$AR"; then
5630 ac_ct_AR=$AR
5631 for ac_prog in ar
5632 do
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$ac_ct_AR"; then
5641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_ac_ct_AR="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5661 if test -n "$ac_ct_AR"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5663 $as_echo "$ac_ct_AR" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 test -n "$ac_ct_AR" && break
5671 done
5672
5673 if test "x$ac_ct_AR" = x; then
5674 AR="false"
5675 else
5676 case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682 AR=$ac_ct_AR
5683 fi
5684 fi
5685
5686 : ${AR=ar}
5687 : ${AR_FLAGS=cru}
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5700 $as_echo_n "checking for archiver @FILE support... " >&6; }
5701 if ${lt_cv_ar_at_file+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 lt_cv_ar_at_file=no
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707
5708 int
5709 main ()
5710 {
5711
5712 ;
5713 return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 echo conftest.$ac_objext > conftest.lst
5718 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5720 (eval $lt_ar_try) 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; }
5724 if test "$ac_status" -eq 0; then
5725 # Ensure the archiver fails upon bogus file names.
5726 rm -f conftest.$ac_objext libconftest.a
5727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5728 (eval $lt_ar_try) 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }
5732 if test "$ac_status" -ne 0; then
5733 lt_cv_ar_at_file=@
5734 fi
5735 fi
5736 rm -f conftest.* libconftest.a
5737
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5743 $as_echo "$lt_cv_ar_at_file" >&6; }
5744
5745 if test "x$lt_cv_ar_at_file" = xno; then
5746 archiver_list_spec=
5747 else
5748 archiver_list_spec=$lt_cv_ar_at_file
5749 fi
5750
5751
5752
5753
5754
5755
5756
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}strip; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_STRIP+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test -n "$STRIP"; then
5766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 STRIP=$ac_cv_prog_STRIP
5786 if test -n "$STRIP"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5788 $as_echo "$STRIP" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794
5795 fi
5796 if test -z "$ac_cv_prog_STRIP"; then
5797 ac_ct_STRIP=$STRIP
5798 # Extract the first word of "strip", so it can be a program name with args.
5799 set dummy strip; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$ac_ct_STRIP"; then
5806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_ac_ct_STRIP="strip"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5826 if test -n "$ac_ct_STRIP"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5828 $as_echo "$ac_ct_STRIP" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834 if test "x$ac_ct_STRIP" = x; then
5835 STRIP=":"
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843 STRIP=$ac_ct_STRIP
5844 fi
5845 else
5846 STRIP="$ac_cv_prog_STRIP"
5847 fi
5848
5849 test -z "$STRIP" && STRIP=:
5850
5851
5852
5853
5854
5855
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_RANLIB+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -n "$RANLIB"; then
5865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878 done
5879 done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 RANLIB=$ac_cv_prog_RANLIB
5885 if test -n "$RANLIB"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5887 $as_echo "$RANLIB" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894 fi
5895 if test -z "$ac_cv_prog_RANLIB"; then
5896 ac_ct_RANLIB=$RANLIB
5897 # Extract the first word of "ranlib", so it can be a program name with args.
5898 set dummy ranlib; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$ac_ct_RANLIB"; then
5905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_ac_ct_RANLIB="ranlib"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5925 if test -n "$ac_ct_RANLIB"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5927 $as_echo "$ac_ct_RANLIB" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933 if test "x$ac_ct_RANLIB" = x; then
5934 RANLIB=":"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942 RANLIB=$ac_ct_RANLIB
5943 fi
5944 else
5945 RANLIB="$ac_cv_prog_RANLIB"
5946 fi
5947
5948 test -z "$RANLIB" && RANLIB=:
5949
5950
5951
5952
5953
5954
5955 # Determine commands to create old-style static archives.
5956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5957 old_postinstall_cmds='chmod 644 $oldlib'
5958 old_postuninstall_cmds=
5959
5960 if test -n "$RANLIB"; then
5961 case $host_os in
5962 openbsd*)
5963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5964 ;;
5965 *)
5966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5967 ;;
5968 esac
5969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5970 fi
5971
5972 case $host_os in
5973 darwin*)
5974 lock_old_archive_extraction=yes ;;
5975 *)
5976 lock_old_archive_extraction=no ;;
5977 esac
5978
5979
5980
5981
5982
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 # If no C compiler was specified, use CC.
6018 LTCC=${LTCC-"$CC"}
6019
6020 # If no C compiler flags were specified, use CFLAGS.
6021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6022
6023 # Allow CC to be a program name with arguments.
6024 compiler=$CC
6025
6026
6027 # Check for command to grab the raw symbol name followed by C symbol from nm.
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6029 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6030 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033
6034 # These are sane defaults that work on at least a few old systems.
6035 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6036
6037 # Character class describing NM global symbol codes.
6038 symcode='[BCDEGRST]'
6039
6040 # Regexp to match symbols that can be accessed directly from C.
6041 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6042
6043 # Define system-specific variables.
6044 case $host_os in
6045 aix*)
6046 symcode='[BCDT]'
6047 ;;
6048 cygwin* | mingw* | pw32* | cegcc*)
6049 symcode='[ABCDGISTW]'
6050 ;;
6051 hpux*)
6052 if test "$host_cpu" = ia64; then
6053 symcode='[ABCDEGRST]'
6054 fi
6055 ;;
6056 irix* | nonstopux*)
6057 symcode='[BCDEGRST]'
6058 ;;
6059 osf*)
6060 symcode='[BCDEGQRST]'
6061 ;;
6062 solaris*)
6063 symcode='[BDRT]'
6064 ;;
6065 sco3.2v5*)
6066 symcode='[DT]'
6067 ;;
6068 sysv4.2uw2*)
6069 symcode='[DT]'
6070 ;;
6071 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6072 symcode='[ABDT]'
6073 ;;
6074 sysv4)
6075 symcode='[DFNSTU]'
6076 ;;
6077 esac
6078
6079 # If we're using GNU nm, then use its standard symbol codes.
6080 case `$NM -V 2>&1` in
6081 *GNU* | *'with BFD'*)
6082 symcode='[ABCDGIRSTW]' ;;
6083 esac
6084
6085 # Transform an extracted symbol line into a proper C declaration.
6086 # Some systems (esp. on ia64) link data and code symbols differently,
6087 # so use this general approach.
6088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6089
6090 # Transform an extracted symbol line into symbol name and symbol address
6091 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6092 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'"
6093
6094 # Handle CRLF in mingw tool chain
6095 opt_cr=
6096 case $build_os in
6097 mingw*)
6098 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6099 ;;
6100 esac
6101
6102 # Try without a prefix underscore, then with it.
6103 for ac_symprfx in "" "_"; do
6104
6105 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6106 symxfrm="\\1 $ac_symprfx\\2 \\2"
6107
6108 # Write the raw and C identifiers.
6109 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6110 # Fake it for dumpbin and say T for any non-static function
6111 # and D for any global variable.
6112 # Also find C++ and __fastcall symbols from MSVC++,
6113 # which start with @ or ?.
6114 lt_cv_sys_global_symbol_pipe="$AWK '"\
6115 " {last_section=section; section=\$ 3};"\
6116 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6117 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6118 " \$ 0!~/External *\|/{next};"\
6119 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6120 " {if(hide[section]) next};"\
6121 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6122 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6123 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6124 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6125 " ' prfx=^$ac_symprfx"
6126 else
6127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6128 fi
6129 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6130
6131 # Check to see that the pipe works correctly.
6132 pipe_works=no
6133
6134 rm -f conftest*
6135 cat > conftest.$ac_ext <<_LT_EOF
6136 #ifdef __cplusplus
6137 extern "C" {
6138 #endif
6139 char nm_test_var;
6140 void nm_test_func(void);
6141 void nm_test_func(void){}
6142 #ifdef __cplusplus
6143 }
6144 #endif
6145 int main(){nm_test_var='a';nm_test_func();return(0);}
6146 _LT_EOF
6147
6148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6149 (eval $ac_compile) 2>&5
6150 ac_status=$?
6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152 test $ac_status = 0; }; then
6153 # Now try to grab the symbols.
6154 nlist=conftest.nm
6155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6156 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6157 ac_status=$?
6158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159 test $ac_status = 0; } && test -s "$nlist"; then
6160 # Try sorting and uniquifying the output.
6161 if sort "$nlist" | uniq > "$nlist"T; then
6162 mv -f "$nlist"T "$nlist"
6163 else
6164 rm -f "$nlist"T
6165 fi
6166
6167 # Make sure that we snagged all the symbols we need.
6168 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6169 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6170 cat <<_LT_EOF > conftest.$ac_ext
6171 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6172 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6173 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6174 relocations are performed -- see ld's documentation on pseudo-relocs. */
6175 # define LT_DLSYM_CONST
6176 #elif defined(__osf__)
6177 /* This system does not cope well with relocations in const data. */
6178 # define LT_DLSYM_CONST
6179 #else
6180 # define LT_DLSYM_CONST const
6181 #endif
6182
6183 #ifdef __cplusplus
6184 extern "C" {
6185 #endif
6186
6187 _LT_EOF
6188 # Now generate the symbol file.
6189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6190
6191 cat <<_LT_EOF >> conftest.$ac_ext
6192
6193 /* The mapping between symbol names and symbols. */
6194 LT_DLSYM_CONST struct {
6195 const char *name;
6196 void *address;
6197 }
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6199 {
6200 { "@PROGRAM@", (void *) 0 },
6201 _LT_EOF
6202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203 cat <<\_LT_EOF >> conftest.$ac_ext
6204 {0, (void *) 0}
6205 };
6206
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210 return lt__PROGRAM__LTX_preloaded_symbols;
6211 }
6212 #endif
6213
6214 #ifdef __cplusplus
6215 }
6216 #endif
6217 _LT_EOF
6218 # Now try linking the two files.
6219 mv conftest.$ac_objext conftstm.$ac_objext
6220 lt_globsym_save_LIBS=$LIBS
6221 lt_globsym_save_CFLAGS=$CFLAGS
6222 LIBS="conftstm.$ac_objext"
6223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6225 (eval $ac_link) 2>&5
6226 ac_status=$?
6227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6229 pipe_works=yes
6230 fi
6231 LIBS=$lt_globsym_save_LIBS
6232 CFLAGS=$lt_globsym_save_CFLAGS
6233 else
6234 echo "cannot find nm_test_func in $nlist" >&5
6235 fi
6236 else
6237 echo "cannot find nm_test_var in $nlist" >&5
6238 fi
6239 else
6240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241 fi
6242 else
6243 echo "$progname: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 fi
6246 rm -rf conftest* conftst*
6247
6248 # Do not use the global_symbol_pipe unless it works.
6249 if test "$pipe_works" = yes; then
6250 break
6251 else
6252 lt_cv_sys_global_symbol_pipe=
6253 fi
6254 done
6255
6256 fi
6257
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259 lt_cv_sys_global_symbol_to_cdecl=
6260 fi
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6263 $as_echo "failed" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6266 $as_echo "ok" >&6; }
6267 fi
6268
6269 # Response file support.
6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271 nm_file_list_spec='@'
6272 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6273 nm_file_list_spec='@'
6274 fi
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6303 $as_echo_n "checking for sysroot... " >&6; }
6304
6305 # Check whether --with-sysroot was given.
6306 if test "${with_sysroot+set}" = set; then :
6307 withval=$with_sysroot;
6308 else
6309 with_sysroot=no
6310 fi
6311
6312
6313 lt_sysroot=
6314 case ${with_sysroot} in #(
6315 yes)
6316 if test "$GCC" = yes; then
6317 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6318 fi
6319 ;; #(
6320 /*)
6321 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6322 ;; #(
6323 no|'')
6324 ;; #(
6325 *)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6327 $as_echo "${with_sysroot}" >&6; }
6328 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6329 ;;
6330 esac
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6333 $as_echo "${lt_sysroot:-no}" >&6; }
6334
6335
6336
6337
6338
6339 # Check whether --enable-libtool-lock was given.
6340 if test "${enable_libtool_lock+set}" = set; then :
6341 enableval=$enable_libtool_lock;
6342 fi
6343
6344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6345
6346 # Some flags need to be propagated to the compiler or linker for good
6347 # libtool support.
6348 case $host in
6349 ia64-*-hpux*)
6350 # Find out which ABI we are using.
6351 echo 'int i;' > conftest.$ac_ext
6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353 (eval $ac_compile) 2>&5
6354 ac_status=$?
6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356 test $ac_status = 0; }; then
6357 case `/usr/bin/file conftest.$ac_objext` in
6358 *ELF-32*)
6359 HPUX_IA64_MODE="32"
6360 ;;
6361 *ELF-64*)
6362 HPUX_IA64_MODE="64"
6363 ;;
6364 esac
6365 fi
6366 rm -rf conftest*
6367 ;;
6368 *-*-irix6*)
6369 # Find out which ABI we are using.
6370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372 (eval $ac_compile) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; then
6376 if test "$lt_cv_prog_gnu_ld" = yes; then
6377 case `/usr/bin/file conftest.$ac_objext` in
6378 *32-bit*)
6379 LD="${LD-ld} -melf32bsmip"
6380 ;;
6381 *N32*)
6382 LD="${LD-ld} -melf32bmipn32"
6383 ;;
6384 *64-bit*)
6385 LD="${LD-ld} -melf64bmip"
6386 ;;
6387 esac
6388 else
6389 case `/usr/bin/file conftest.$ac_objext` in
6390 *32-bit*)
6391 LD="${LD-ld} -32"
6392 ;;
6393 *N32*)
6394 LD="${LD-ld} -n32"
6395 ;;
6396 *64-bit*)
6397 LD="${LD-ld} -64"
6398 ;;
6399 esac
6400 fi
6401 fi
6402 rm -rf conftest*
6403 ;;
6404
6405 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6406 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6407 # Find out which ABI we are using.
6408 echo 'int i;' > conftest.$ac_ext
6409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6410 (eval $ac_compile) 2>&5
6411 ac_status=$?
6412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413 test $ac_status = 0; }; then
6414 case `/usr/bin/file conftest.o` in
6415 *32-bit*)
6416 case $host in
6417 x86_64-*kfreebsd*-gnu)
6418 LD="${LD-ld} -m elf_i386_fbsd"
6419 ;;
6420 x86_64-*linux*)
6421 case `/usr/bin/file conftest.o` in
6422 *x86-64*)
6423 LD="${LD-ld} -m elf32_x86_64"
6424 ;;
6425 *)
6426 LD="${LD-ld} -m elf_i386"
6427 ;;
6428 esac
6429 ;;
6430 ppc64-*linux*|powerpc64-*linux*)
6431 LD="${LD-ld} -m elf32ppclinux"
6432 ;;
6433 s390x-*linux*)
6434 LD="${LD-ld} -m elf_s390"
6435 ;;
6436 sparc64-*linux*)
6437 LD="${LD-ld} -m elf32_sparc"
6438 ;;
6439 esac
6440 ;;
6441 *64-bit*)
6442 case $host in
6443 x86_64-*kfreebsd*-gnu)
6444 LD="${LD-ld} -m elf_x86_64_fbsd"
6445 ;;
6446 x86_64-*linux*)
6447 LD="${LD-ld} -m elf_x86_64"
6448 ;;
6449 ppc*-*linux*|powerpc*-*linux*)
6450 LD="${LD-ld} -m elf64ppc"
6451 ;;
6452 s390*-*linux*|s390*-*tpf*)
6453 LD="${LD-ld} -m elf64_s390"
6454 ;;
6455 sparc*-*linux*)
6456 LD="${LD-ld} -m elf64_sparc"
6457 ;;
6458 esac
6459 ;;
6460 esac
6461 fi
6462 rm -rf conftest*
6463 ;;
6464
6465 *-*-sco3.2v5*)
6466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6467 SAVE_CFLAGS="$CFLAGS"
6468 CFLAGS="$CFLAGS -belf"
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6470 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6471 if ${lt_cv_cc_needs_belf+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 ac_ext=c
6475 ac_cpp='$CPP $CPPFLAGS'
6476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482
6483 int
6484 main ()
6485 {
6486
6487 ;
6488 return 0;
6489 }
6490 _ACEOF
6491 if ac_fn_c_try_link "$LINENO"; then :
6492 lt_cv_cc_needs_belf=yes
6493 else
6494 lt_cv_cc_needs_belf=no
6495 fi
6496 rm -f core conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6498 ac_ext=c
6499 ac_cpp='$CPP $CPPFLAGS'
6500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6503
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6506 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6507 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6508 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6509 CFLAGS="$SAVE_CFLAGS"
6510 fi
6511 ;;
6512 *-*solaris*)
6513 # Find out which ABI we are using.
6514 echo 'int i;' > conftest.$ac_ext
6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516 (eval $ac_compile) 2>&5
6517 ac_status=$?
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }; then
6520 case `/usr/bin/file conftest.o` in
6521 *64-bit*)
6522 case $lt_cv_prog_gnu_ld in
6523 yes*)
6524 case $host in
6525 i?86-*-solaris*)
6526 LD="${LD-ld} -m elf_x86_64"
6527 ;;
6528 sparc*-*-solaris*)
6529 LD="${LD-ld} -m elf64_sparc"
6530 ;;
6531 esac
6532 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6533 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6534 LD="${LD-ld}_sol2"
6535 fi
6536 ;;
6537 *)
6538 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6539 LD="${LD-ld} -64"
6540 fi
6541 ;;
6542 esac
6543 ;;
6544 esac
6545 fi
6546 rm -rf conftest*
6547 ;;
6548 esac
6549
6550 need_locks="$enable_libtool_lock"
6551
6552 if test -n "$ac_tool_prefix"; then
6553 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6554 set dummy ${ac_tool_prefix}mt; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$MANIFEST_TOOL"; then
6561 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6581 if test -n "$MANIFEST_TOOL"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6583 $as_echo "$MANIFEST_TOOL" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590 fi
6591 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6592 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6593 # Extract the first word of "mt", so it can be a program name with args.
6594 set dummy mt; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 if test -n "$ac_ct_MANIFEST_TOOL"; then
6601 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6621 if test -n "$ac_ct_MANIFEST_TOOL"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6623 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6630 MANIFEST_TOOL=":"
6631 else
6632 case $cross_compiling:$ac_tool_warned in
6633 yes:)
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6637 esac
6638 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6639 fi
6640 else
6641 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6642 fi
6643
6644 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6646 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6647 if ${lt_cv_path_mainfest_tool+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 lt_cv_path_mainfest_tool=no
6651 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6652 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6653 cat conftest.err >&5
6654 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6655 lt_cv_path_mainfest_tool=yes
6656 fi
6657 rm -f conftest*
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6660 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6661 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6662 MANIFEST_TOOL=:
6663 fi
6664
6665
6666
6667
6668
6669
6670 case $host_os in
6671 rhapsody* | darwin*)
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$DSYMUTIL"; then
6681 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6701 if test -n "$DSYMUTIL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6703 $as_echo "$DSYMUTIL" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_DSYMUTIL"; then
6712 ac_ct_DSYMUTIL=$DSYMUTIL
6713 # Extract the first word of "dsymutil", so it can be a program name with args.
6714 set dummy dsymutil; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$ac_ct_DSYMUTIL"; then
6721 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6741 if test -n "$ac_ct_DSYMUTIL"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6743 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749 if test "x$ac_ct_DSYMUTIL" = x; then
6750 DSYMUTIL=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758 DSYMUTIL=$ac_ct_DSYMUTIL
6759 fi
6760 else
6761 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6762 fi
6763
6764 if test -n "$ac_tool_prefix"; then
6765 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_NMEDIT+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$NMEDIT"; then
6773 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 NMEDIT=$ac_cv_prog_NMEDIT
6793 if test -n "$NMEDIT"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6795 $as_echo "$NMEDIT" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801
6802 fi
6803 if test -z "$ac_cv_prog_NMEDIT"; then
6804 ac_ct_NMEDIT=$NMEDIT
6805 # Extract the first word of "nmedit", so it can be a program name with args.
6806 set dummy nmedit; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 if test -n "$ac_ct_NMEDIT"; then
6813 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6833 if test -n "$ac_ct_NMEDIT"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6835 $as_echo "$ac_ct_NMEDIT" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841 if test "x$ac_ct_NMEDIT" = x; then
6842 NMEDIT=":"
6843 else
6844 case $cross_compiling:$ac_tool_warned in
6845 yes:)
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848 ac_tool_warned=yes ;;
6849 esac
6850 NMEDIT=$ac_ct_NMEDIT
6851 fi
6852 else
6853 NMEDIT="$ac_cv_prog_NMEDIT"
6854 fi
6855
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_LIPO+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$LIPO"; then
6865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 LIPO=$ac_cv_prog_LIPO
6885 if test -n "$LIPO"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6887 $as_echo "$LIPO" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893
6894 fi
6895 if test -z "$ac_cv_prog_LIPO"; then
6896 ac_ct_LIPO=$LIPO
6897 # Extract the first word of "lipo", so it can be a program name with args.
6898 set dummy lipo; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$ac_ct_LIPO"; then
6905 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_ac_ct_LIPO="lipo"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6925 if test -n "$ac_ct_LIPO"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6927 $as_echo "$ac_ct_LIPO" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933 if test "x$ac_ct_LIPO" = x; then
6934 LIPO=":"
6935 else
6936 case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942 LIPO=$ac_ct_LIPO
6943 fi
6944 else
6945 LIPO="$ac_cv_prog_LIPO"
6946 fi
6947
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}otool; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_OTOOL+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$OTOOL"; then
6957 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 OTOOL=$ac_cv_prog_OTOOL
6977 if test -n "$OTOOL"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6979 $as_echo "$OTOOL" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_OTOOL"; then
6988 ac_ct_OTOOL=$OTOOL
6989 # Extract the first word of "otool", so it can be a program name with args.
6990 set dummy otool; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$ac_ct_OTOOL"; then
6997 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_ac_ct_OTOOL="otool"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7017 if test -n "$ac_ct_OTOOL"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7019 $as_echo "$ac_ct_OTOOL" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025 if test "x$ac_ct_OTOOL" = x; then
7026 OTOOL=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 OTOOL=$ac_ct_OTOOL
7035 fi
7036 else
7037 OTOOL="$ac_cv_prog_OTOOL"
7038 fi
7039
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_OTOOL64+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$OTOOL64"; then
7049 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 OTOOL64=$ac_cv_prog_OTOOL64
7069 if test -n "$OTOOL64"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7071 $as_echo "$OTOOL64" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_OTOOL64"; then
7080 ac_ct_OTOOL64=$OTOOL64
7081 # Extract the first word of "otool64", so it can be a program name with args.
7082 set dummy otool64; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$ac_ct_OTOOL64"; then
7089 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_ac_ct_OTOOL64="otool64"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7109 if test -n "$ac_ct_OTOOL64"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7111 $as_echo "$ac_ct_OTOOL64" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117 if test "x$ac_ct_OTOOL64" = x; then
7118 OTOOL64=":"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124 ac_tool_warned=yes ;;
7125 esac
7126 OTOOL64=$ac_ct_OTOOL64
7127 fi
7128 else
7129 OTOOL64="$ac_cv_prog_OTOOL64"
7130 fi
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7159 $as_echo_n "checking for -single_module linker flag... " >&6; }
7160 if ${lt_cv_apple_cc_single_mod+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 lt_cv_apple_cc_single_mod=no
7164 if test -z "${LT_MULTI_MODULE}"; then
7165 # By default we will add the -single_module flag. You can override
7166 # by either setting the environment variable LT_MULTI_MODULE
7167 # non-empty at configure time, or by adding -multi_module to the
7168 # link flags.
7169 rm -rf libconftest.dylib*
7170 echo "int foo(void){return 1;}" > conftest.c
7171 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7172 -dynamiclib -Wl,-single_module conftest.c" >&5
7173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7175 _lt_result=$?
7176 # If there is a non-empty error log, and "single_module"
7177 # appears in it, assume the flag caused a linker warning
7178 if test -s conftest.err && $GREP single_module conftest.err; then
7179 cat conftest.err >&5
7180 # Otherwise, if the output was created with a 0 exit code from
7181 # the compiler, it worked.
7182 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7183 lt_cv_apple_cc_single_mod=yes
7184 else
7185 cat conftest.err >&5
7186 fi
7187 rm -rf libconftest.dylib*
7188 rm -f conftest.*
7189 fi
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7192 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7195 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7196 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 lt_cv_ld_exported_symbols_list=no
7200 save_LDFLAGS=$LDFLAGS
7201 echo "_main" > conftest.sym
7202 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205
7206 int
7207 main ()
7208 {
7209
7210 ;
7211 return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_link "$LINENO"; then :
7215 lt_cv_ld_exported_symbols_list=yes
7216 else
7217 lt_cv_ld_exported_symbols_list=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221 LDFLAGS="$save_LDFLAGS"
7222
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7225 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7228 $as_echo_n "checking for -force_load linker flag... " >&6; }
7229 if ${lt_cv_ld_force_load+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 lt_cv_ld_force_load=no
7233 cat > conftest.c << _LT_EOF
7234 int forced_loaded() { return 2;}
7235 _LT_EOF
7236 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7237 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7238 echo "$AR cru libconftest.a conftest.o" >&5
7239 $AR cru libconftest.a conftest.o 2>&5
7240 echo "$RANLIB libconftest.a" >&5
7241 $RANLIB libconftest.a 2>&5
7242 cat > conftest.c << _LT_EOF
7243 int main() { return 0;}
7244 _LT_EOF
7245 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7246 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7247 _lt_result=$?
7248 if test -s conftest.err && $GREP force_load conftest.err; then
7249 cat conftest.err >&5
7250 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7251 lt_cv_ld_force_load=yes
7252 else
7253 cat conftest.err >&5
7254 fi
7255 rm -f conftest.err libconftest.a conftest conftest.c
7256 rm -rf conftest.dSYM
7257
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7260 $as_echo "$lt_cv_ld_force_load" >&6; }
7261 case $host_os in
7262 rhapsody* | darwin1.[012])
7263 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7264 darwin1.*)
7265 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7266 darwin*) # darwin 5.x on
7267 # if running on 10.5 or later, the deployment target defaults
7268 # to the OS version, if on x86, and 10.4, the deployment
7269 # target defaults to 10.4. Don't you love it?
7270 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7271 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7273 10.[012]*)
7274 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7275 10.*)
7276 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7277 esac
7278 ;;
7279 esac
7280 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7281 _lt_dar_single_mod='$single_module'
7282 fi
7283 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7284 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7285 else
7286 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7287 fi
7288 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7289 _lt_dsymutil='~$DSYMUTIL $lib || :'
7290 else
7291 _lt_dsymutil=
7292 fi
7293 ;;
7294 esac
7295
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7303 # On Suns, sometimes $CPP names a directory.
7304 if test -n "$CPP" && test -d "$CPP"; then
7305 CPP=
7306 fi
7307 if test -z "$CPP"; then
7308 if ${ac_cv_prog_CPP+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 # Double quotes because CPP needs to be expanded
7312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7313 do
7314 ac_preproc_ok=false
7315 for ac_c_preproc_warn_flag in '' yes
7316 do
7317 # Use a header file that comes with gcc, so configuring glibc
7318 # with a fresh cross-compiler works.
7319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7320 # <limits.h> exists even on freestanding compilers.
7321 # On the NeXT, cc -E runs the code through the compiler's parser,
7322 # not just through cpp. "Syntax error" is here to catch this case.
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 #ifdef __STDC__
7326 # include <limits.h>
7327 #else
7328 # include <assert.h>
7329 #endif
7330 Syntax error
7331 _ACEOF
7332 if ac_fn_c_try_cpp "$LINENO"; then :
7333
7334 else
7335 # Broken: fails on valid input.
7336 continue
7337 fi
7338 rm -f conftest.err conftest.i conftest.$ac_ext
7339
7340 # OK, works on sane cases. Now check whether nonexistent headers
7341 # can be detected and how.
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <ac_nonexistent.h>
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7347 # Broken: success on invalid input.
7348 continue
7349 else
7350 # Passes both tests.
7351 ac_preproc_ok=:
7352 break
7353 fi
7354 rm -f conftest.err conftest.i conftest.$ac_ext
7355
7356 done
7357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7358 rm -f conftest.i conftest.err conftest.$ac_ext
7359 if $ac_preproc_ok; then :
7360 break
7361 fi
7362
7363 done
7364 ac_cv_prog_CPP=$CPP
7365
7366 fi
7367 CPP=$ac_cv_prog_CPP
7368 else
7369 ac_cv_prog_CPP=$CPP
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7372 $as_echo "$CPP" >&6; }
7373 ac_preproc_ok=false
7374 for ac_c_preproc_warn_flag in '' yes
7375 do
7376 # Use a header file that comes with gcc, so configuring glibc
7377 # with a fresh cross-compiler works.
7378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379 # <limits.h> exists even on freestanding compilers.
7380 # On the NeXT, cc -E runs the code through the compiler's parser,
7381 # not just through cpp. "Syntax error" is here to catch this case.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 #ifdef __STDC__
7385 # include <limits.h>
7386 #else
7387 # include <assert.h>
7388 #endif
7389 Syntax error
7390 _ACEOF
7391 if ac_fn_c_try_cpp "$LINENO"; then :
7392
7393 else
7394 # Broken: fails on valid input.
7395 continue
7396 fi
7397 rm -f conftest.err conftest.i conftest.$ac_ext
7398
7399 # OK, works on sane cases. Now check whether nonexistent headers
7400 # can be detected and how.
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <ac_nonexistent.h>
7404 _ACEOF
7405 if ac_fn_c_try_cpp "$LINENO"; then :
7406 # Broken: success on invalid input.
7407 continue
7408 else
7409 # Passes both tests.
7410 ac_preproc_ok=:
7411 break
7412 fi
7413 rm -f conftest.err conftest.i conftest.$ac_ext
7414
7415 done
7416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7417 rm -f conftest.i conftest.err conftest.$ac_ext
7418 if $ac_preproc_ok; then :
7419
7420 else
7421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7423 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7424 See \`config.log' for more details" "$LINENO" 5; }
7425 fi
7426
7427 ac_ext=c
7428 ac_cpp='$CPP $CPPFLAGS'
7429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7435 $as_echo_n "checking for ANSI C header files... " >&6; }
7436 if ${ac_cv_header_stdc+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #include <stdlib.h>
7442 #include <stdarg.h>
7443 #include <string.h>
7444 #include <float.h>
7445
7446 int
7447 main ()
7448 {
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 ac_cv_header_stdc=yes
7456 else
7457 ac_cv_header_stdc=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460
7461 if test $ac_cv_header_stdc = yes; then
7462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <string.h>
7466
7467 _ACEOF
7468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7469 $EGREP "memchr" >/dev/null 2>&1; then :
7470
7471 else
7472 ac_cv_header_stdc=no
7473 fi
7474 rm -f conftest*
7475
7476 fi
7477
7478 if test $ac_cv_header_stdc = yes; then
7479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <stdlib.h>
7483
7484 _ACEOF
7485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7486 $EGREP "free" >/dev/null 2>&1; then :
7487
7488 else
7489 ac_cv_header_stdc=no
7490 fi
7491 rm -f conftest*
7492
7493 fi
7494
7495 if test $ac_cv_header_stdc = yes; then
7496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7497 if test "$cross_compiling" = yes; then :
7498 :
7499 else
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <ctype.h>
7503 #include <stdlib.h>
7504 #if ((' ' & 0x0FF) == 0x020)
7505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7507 #else
7508 # define ISLOWER(c) \
7509 (('a' <= (c) && (c) <= 'i') \
7510 || ('j' <= (c) && (c) <= 'r') \
7511 || ('s' <= (c) && (c) <= 'z'))
7512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7513 #endif
7514
7515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7516 int
7517 main ()
7518 {
7519 int i;
7520 for (i = 0; i < 256; i++)
7521 if (XOR (islower (i), ISLOWER (i))
7522 || toupper (i) != TOUPPER (i))
7523 return 2;
7524 return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_run "$LINENO"; then :
7528
7529 else
7530 ac_cv_header_stdc=no
7531 fi
7532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7533 conftest.$ac_objext conftest.beam conftest.$ac_ext
7534 fi
7535
7536 fi
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7539 $as_echo "$ac_cv_header_stdc" >&6; }
7540 if test $ac_cv_header_stdc = yes; then
7541
7542 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7543
7544 fi
7545
7546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7548 inttypes.h stdint.h unistd.h
7549 do :
7550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7552 "
7553 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7554 cat >>confdefs.h <<_ACEOF
7555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7557
7558 fi
7559
7560 done
7561
7562
7563 for ac_header in dlfcn.h
7564 do :
7565 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7566 "
7567 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7568 cat >>confdefs.h <<_ACEOF
7569 #define HAVE_DLFCN_H 1
7570 _ACEOF
7571
7572 fi
7573
7574 done
7575
7576
7577
7578
7579
7580 # Set options
7581 enable_win32_dll=yes
7582
7583 case $host in
7584 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}as; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_AS+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$AS"; then
7594 ac_cv_prog_AS="$AS" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_AS="${ac_tool_prefix}as"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 AS=$ac_cv_prog_AS
7614 if test -n "$AS"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7616 $as_echo "$AS" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_AS"; then
7625 ac_ct_AS=$AS
7626 # Extract the first word of "as", so it can be a program name with args.
7627 set dummy as; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$ac_ct_AS"; then
7634 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_ac_ct_AS="as"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7654 if test -n "$ac_ct_AS"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7656 $as_echo "$ac_ct_AS" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662 if test "x$ac_ct_AS" = x; then
7663 AS="false"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671 AS=$ac_ct_AS
7672 fi
7673 else
7674 AS="$ac_cv_prog_AS"
7675 fi
7676
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_prog_DLLTOOL+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$DLLTOOL"; then
7686 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 DLLTOOL=$ac_cv_prog_DLLTOOL
7706 if test -n "$DLLTOOL"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7708 $as_echo "$DLLTOOL" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715 fi
7716 if test -z "$ac_cv_prog_DLLTOOL"; then
7717 ac_ct_DLLTOOL=$DLLTOOL
7718 # Extract the first word of "dlltool", so it can be a program name with args.
7719 set dummy dlltool; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$ac_ct_DLLTOOL"; then
7726 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7746 if test -n "$ac_ct_DLLTOOL"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7748 $as_echo "$ac_ct_DLLTOOL" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754 if test "x$ac_ct_DLLTOOL" = x; then
7755 DLLTOOL="false"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758 yes:)
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761 ac_tool_warned=yes ;;
7762 esac
7763 DLLTOOL=$ac_ct_DLLTOOL
7764 fi
7765 else
7766 DLLTOOL="$ac_cv_prog_DLLTOOL"
7767 fi
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_OBJDUMP+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$OBJDUMP"; then
7778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 OBJDUMP=$ac_cv_prog_OBJDUMP
7798 if test -n "$OBJDUMP"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7800 $as_echo "$OBJDUMP" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_OBJDUMP"; then
7809 ac_ct_OBJDUMP=$OBJDUMP
7810 # Extract the first word of "objdump", so it can be a program name with args.
7811 set dummy objdump; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$ac_ct_OBJDUMP"; then
7818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7838 if test -n "$ac_ct_OBJDUMP"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7840 $as_echo "$ac_ct_OBJDUMP" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846 if test "x$ac_ct_OBJDUMP" = x; then
7847 OBJDUMP="false"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850 yes:)
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 OBJDUMP=$ac_ct_OBJDUMP
7856 fi
7857 else
7858 OBJDUMP="$ac_cv_prog_OBJDUMP"
7859 fi
7860
7861 ;;
7862 esac
7863
7864 test -z "$AS" && AS=as
7865
7866
7867
7868
7869
7870 test -z "$DLLTOOL" && DLLTOOL=dlltool
7871
7872
7873
7874
7875
7876 test -z "$OBJDUMP" && OBJDUMP=objdump
7877
7878
7879
7880
7881
7882
7883
7884 enable_dlopen=no
7885
7886
7887
7888 # Check whether --enable-shared was given.
7889 if test "${enable_shared+set}" = set; then :
7890 enableval=$enable_shared; p=${PACKAGE-default}
7891 case $enableval in
7892 yes) enable_shared=yes ;;
7893 no) enable_shared=no ;;
7894 *)
7895 enable_shared=no
7896 # Look at the argument we got. We use all the common list separators.
7897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7898 for pkg in $enableval; do
7899 IFS="$lt_save_ifs"
7900 if test "X$pkg" = "X$p"; then
7901 enable_shared=yes
7902 fi
7903 done
7904 IFS="$lt_save_ifs"
7905 ;;
7906 esac
7907 else
7908 enable_shared=yes
7909 fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 # Check whether --enable-static was given.
7920 if test "${enable_static+set}" = set; then :
7921 enableval=$enable_static; p=${PACKAGE-default}
7922 case $enableval in
7923 yes) enable_static=yes ;;
7924 no) enable_static=no ;;
7925 *)
7926 enable_static=no
7927 # Look at the argument we got. We use all the common list separators.
7928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7929 for pkg in $enableval; do
7930 IFS="$lt_save_ifs"
7931 if test "X$pkg" = "X$p"; then
7932 enable_static=yes
7933 fi
7934 done
7935 IFS="$lt_save_ifs"
7936 ;;
7937 esac
7938 else
7939 enable_static=yes
7940 fi
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 # Check whether --with-pic was given.
7952 if test "${with_pic+set}" = set; then :
7953 withval=$with_pic; lt_p=${PACKAGE-default}
7954 case $withval in
7955 yes|no) pic_mode=$withval ;;
7956 *)
7957 pic_mode=default
7958 # Look at the argument we got. We use all the common list separators.
7959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7960 for lt_pkg in $withval; do
7961 IFS="$lt_save_ifs"
7962 if test "X$lt_pkg" = "X$lt_p"; then
7963 pic_mode=yes
7964 fi
7965 done
7966 IFS="$lt_save_ifs"
7967 ;;
7968 esac
7969 else
7970 pic_mode=default
7971 fi
7972
7973
7974 test -z "$pic_mode" && pic_mode=default
7975
7976
7977
7978
7979
7980
7981
7982 # Check whether --enable-fast-install was given.
7983 if test "${enable_fast_install+set}" = set; then :
7984 enableval=$enable_fast_install; p=${PACKAGE-default}
7985 case $enableval in
7986 yes) enable_fast_install=yes ;;
7987 no) enable_fast_install=no ;;
7988 *)
7989 enable_fast_install=no
7990 # Look at the argument we got. We use all the common list separators.
7991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992 for pkg in $enableval; do
7993 IFS="$lt_save_ifs"
7994 if test "X$pkg" = "X$p"; then
7995 enable_fast_install=yes
7996 fi
7997 done
7998 IFS="$lt_save_ifs"
7999 ;;
8000 esac
8001 else
8002 enable_fast_install=yes
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 # This can be used to rebuild libtool when needed
8016 LIBTOOL_DEPS="$ltmain"
8017
8018 # Always use our own libtool.
8019 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 test -z "$LN_S" && LN_S="ln -s"
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065 if test -n "${ZSH_VERSION+set}" ; then
8066 setopt NO_GLOB_SUBST
8067 fi
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8070 $as_echo_n "checking for objdir... " >&6; }
8071 if ${lt_cv_objdir+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 rm -f .libs 2>/dev/null
8075 mkdir .libs 2>/dev/null
8076 if test -d .libs; then
8077 lt_cv_objdir=.libs
8078 else
8079 # MS-DOS does not allow filenames that begin with a dot.
8080 lt_cv_objdir=_libs
8081 fi
8082 rmdir .libs 2>/dev/null
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8085 $as_echo "$lt_cv_objdir" >&6; }
8086 objdir=$lt_cv_objdir
8087
8088
8089
8090
8091
8092 cat >>confdefs.h <<_ACEOF
8093 #define LT_OBJDIR "$lt_cv_objdir/"
8094 _ACEOF
8095
8096
8097
8098
8099 case $host_os in
8100 aix3*)
8101 # AIX sometimes has problems with the GCC collect2 program. For some
8102 # reason, if we set the COLLECT_NAMES environment variable, the problems
8103 # vanish in a puff of smoke.
8104 if test "X${COLLECT_NAMES+set}" != Xset; then
8105 COLLECT_NAMES=
8106 export COLLECT_NAMES
8107 fi
8108 ;;
8109 esac
8110
8111 # Global variables:
8112 ofile=libtool
8113 can_build_shared=yes
8114
8115 # All known linkers require a `.a' archive for static linking (except MSVC,
8116 # which needs '.lib').
8117 libext=a
8118
8119 with_gnu_ld="$lt_cv_prog_gnu_ld"
8120
8121 old_CC="$CC"
8122 old_CFLAGS="$CFLAGS"
8123
8124 # Set sane defaults for various variables
8125 test -z "$CC" && CC=cc
8126 test -z "$LTCC" && LTCC=$CC
8127 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8128 test -z "$LD" && LD=ld
8129 test -z "$ac_objext" && ac_objext=o
8130
8131 for cc_temp in $compiler""; do
8132 case $cc_temp in
8133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8135 \-*) ;;
8136 *) break;;
8137 esac
8138 done
8139 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8140
8141
8142 # Only perform the check for file, if the check method requires it
8143 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8144 case $deplibs_check_method in
8145 file_magic*)
8146 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8148 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8149 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 case $MAGIC_CMD in
8153 [\\/*] | ?:[\\/]*)
8154 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8155 ;;
8156 *)
8157 lt_save_MAGIC_CMD="$MAGIC_CMD"
8158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8159 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8160 for ac_dir in $ac_dummy; do
8161 IFS="$lt_save_ifs"
8162 test -z "$ac_dir" && ac_dir=.
8163 if test -f $ac_dir/${ac_tool_prefix}file; then
8164 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8165 if test -n "$file_magic_test_file"; then
8166 case $deplibs_check_method in
8167 "file_magic "*)
8168 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8171 $EGREP "$file_magic_regex" > /dev/null; then
8172 :
8173 else
8174 cat <<_LT_EOF 1>&2
8175
8176 *** Warning: the command libtool uses to detect shared libraries,
8177 *** $file_magic_cmd, produces output that libtool cannot recognize.
8178 *** The result is that libtool may fail to recognize shared libraries
8179 *** as such. This will affect the creation of libtool libraries that
8180 *** depend on shared libraries, but programs linked with such libtool
8181 *** libraries will work regardless of this problem. Nevertheless, you
8182 *** may want to report the problem to your system manager and/or to
8183 *** [email protected]
8184
8185 _LT_EOF
8186 fi ;;
8187 esac
8188 fi
8189 break
8190 fi
8191 done
8192 IFS="$lt_save_ifs"
8193 MAGIC_CMD="$lt_save_MAGIC_CMD"
8194 ;;
8195 esac
8196 fi
8197
8198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8199 if test -n "$MAGIC_CMD"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8201 $as_echo "$MAGIC_CMD" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207
8208
8209
8210
8211 if test -z "$lt_cv_path_MAGIC_CMD"; then
8212 if test -n "$ac_tool_prefix"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8214 $as_echo_n "checking for file... " >&6; }
8215 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 case $MAGIC_CMD in
8219 [\\/*] | ?:[\\/]*)
8220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8221 ;;
8222 *)
8223 lt_save_MAGIC_CMD="$MAGIC_CMD"
8224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8226 for ac_dir in $ac_dummy; do
8227 IFS="$lt_save_ifs"
8228 test -z "$ac_dir" && ac_dir=.
8229 if test -f $ac_dir/file; then
8230 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8231 if test -n "$file_magic_test_file"; then
8232 case $deplibs_check_method in
8233 "file_magic "*)
8234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8237 $EGREP "$file_magic_regex" > /dev/null; then
8238 :
8239 else
8240 cat <<_LT_EOF 1>&2
8241
8242 *** Warning: the command libtool uses to detect shared libraries,
8243 *** $file_magic_cmd, produces output that libtool cannot recognize.
8244 *** The result is that libtool may fail to recognize shared libraries
8245 *** as such. This will affect the creation of libtool libraries that
8246 *** depend on shared libraries, but programs linked with such libtool
8247 *** libraries will work regardless of this problem. Nevertheless, you
8248 *** may want to report the problem to your system manager and/or to
8249 *** [email protected]
8250
8251 _LT_EOF
8252 fi ;;
8253 esac
8254 fi
8255 break
8256 fi
8257 done
8258 IFS="$lt_save_ifs"
8259 MAGIC_CMD="$lt_save_MAGIC_CMD"
8260 ;;
8261 esac
8262 fi
8263
8264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8265 if test -n "$MAGIC_CMD"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8267 $as_echo "$MAGIC_CMD" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274 else
8275 MAGIC_CMD=:
8276 fi
8277 fi
8278
8279 fi
8280 ;;
8281 esac
8282
8283 # Use C for the default configuration in the libtool script
8284
8285 lt_save_CC="$CC"
8286 ac_ext=c
8287 ac_cpp='$CPP $CPPFLAGS'
8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291
8292
8293 # Source file extension for C test sources.
8294 ac_ext=c
8295
8296 # Object file extension for compiled C test sources.
8297 objext=o
8298 objext=$objext
8299
8300 # Code to be used in simple compile tests
8301 lt_simple_compile_test_code="int some_variable = 0;"
8302
8303 # Code to be used in simple link tests
8304 lt_simple_link_test_code='int main(){return(0);}'
8305
8306
8307
8308
8309
8310
8311
8312 # If no C compiler was specified, use CC.
8313 LTCC=${LTCC-"$CC"}
8314
8315 # If no C compiler flags were specified, use CFLAGS.
8316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8317
8318 # Allow CC to be a program name with arguments.
8319 compiler=$CC
8320
8321 # Save the default compiler, since it gets overwritten when the other
8322 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8323 compiler_DEFAULT=$CC
8324
8325 # save warnings/boilerplate of simple test code
8326 ac_outfile=conftest.$ac_objext
8327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8329 _lt_compiler_boilerplate=`cat conftest.err`
8330 $RM conftest*
8331
8332 ac_outfile=conftest.$ac_objext
8333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8335 _lt_linker_boilerplate=`cat conftest.err`
8336 $RM -r conftest*
8337
8338
8339 ## CAVEAT EMPTOR:
8340 ## There is no encapsulation within the following macros, do not change
8341 ## the running order or otherwise move them around unless you know exactly
8342 ## what you are doing...
8343 if test -n "$compiler"; then
8344
8345 lt_prog_compiler_no_builtin_flag=
8346
8347 if test "$GCC" = yes; then
8348 case $cc_basename in
8349 nvcc*)
8350 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8351 *)
8352 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8353 esac
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8356 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8357 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 lt_cv_prog_compiler_rtti_exceptions=no
8361 ac_outfile=conftest.$ac_objext
8362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8363 lt_compiler_flag="-fno-rtti -fno-exceptions"
8364 # Insert the option either (1) after the last *FLAGS variable, or
8365 # (2) before a word containing "conftest.", or (3) at the end.
8366 # Note that $ac_compile itself does not contain backslashes and begins
8367 # with a dollar sign (not a hyphen), so the echo should work correctly.
8368 # The option is referenced via a variable to avoid confusing sed.
8369 lt_compile=`echo "$ac_compile" | $SED \
8370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8372 -e 's:$: $lt_compiler_flag:'`
8373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8374 (eval "$lt_compile" 2>conftest.err)
8375 ac_status=$?
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 if (exit $ac_status) && test -s "$ac_outfile"; then
8379 # The compiler can only warn and ignore the option if not recognized
8380 # So say no if there are warnings other than the usual output.
8381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8384 lt_cv_prog_compiler_rtti_exceptions=yes
8385 fi
8386 fi
8387 $RM conftest*
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8391 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8392
8393 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8394 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8395 else
8396 :
8397 fi
8398
8399 fi
8400
8401
8402
8403
8404
8405
8406 lt_prog_compiler_wl=
8407 lt_prog_compiler_pic=
8408 lt_prog_compiler_static=
8409
8410
8411 if test "$GCC" = yes; then
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_static='-static'
8414
8415 case $host_os in
8416 aix*)
8417 # All AIX code is PIC.
8418 if test "$host_cpu" = ia64; then
8419 # AIX 5 now supports IA64 processor
8420 lt_prog_compiler_static='-Bstatic'
8421 fi
8422 ;;
8423
8424 amigaos*)
8425 case $host_cpu in
8426 powerpc)
8427 # see comment about AmigaOS4 .so support
8428 lt_prog_compiler_pic='-fPIC'
8429 ;;
8430 m68k)
8431 # FIXME: we need at least 68020 code to build shared libraries, but
8432 # adding the `-m68020' flag to GCC prevents building anything better,
8433 # like `-m68040'.
8434 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8435 ;;
8436 esac
8437 ;;
8438
8439 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8440 # PIC is the default for these OSes.
8441 ;;
8442
8443 mingw* | cygwin* | pw32* | os2* | cegcc*)
8444 # This hack is so that the source file can tell whether it is being
8445 # built for inclusion in a dll (and should export symbols for example).
8446 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8447 # (--disable-auto-import) libraries
8448 lt_prog_compiler_pic='-DDLL_EXPORT'
8449 ;;
8450
8451 darwin* | rhapsody*)
8452 # PIC is the default on this platform
8453 # Common symbols not allowed in MH_DYLIB files
8454 lt_prog_compiler_pic='-fno-common'
8455 ;;
8456
8457 haiku*)
8458 # PIC is the default for Haiku.
8459 # The "-static" flag exists, but is broken.
8460 lt_prog_compiler_static=
8461 ;;
8462
8463 hpux*)
8464 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8465 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8466 # sets the default TLS model and affects inlining.
8467 case $host_cpu in
8468 hppa*64*)
8469 # +Z the default
8470 ;;
8471 *)
8472 lt_prog_compiler_pic='-fPIC'
8473 ;;
8474 esac
8475 ;;
8476
8477 interix[3-9]*)
8478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8479 # Instead, we relocate shared libraries at runtime.
8480 ;;
8481
8482 msdosdjgpp*)
8483 # Just because we use GCC doesn't mean we suddenly get shared libraries
8484 # on systems that don't support them.
8485 lt_prog_compiler_can_build_shared=no
8486 enable_shared=no
8487 ;;
8488
8489 *nto* | *qnx*)
8490 # QNX uses GNU C++, but need to define -shared option too, otherwise
8491 # it will coredump.
8492 lt_prog_compiler_pic='-fPIC -shared'
8493 ;;
8494
8495 sysv4*MP*)
8496 if test -d /usr/nec; then
8497 lt_prog_compiler_pic=-Kconform_pic
8498 fi
8499 ;;
8500
8501 *)
8502 lt_prog_compiler_pic='-fPIC'
8503 ;;
8504 esac
8505
8506 case $cc_basename in
8507 nvcc*) # Cuda Compiler Driver 2.2
8508 lt_prog_compiler_wl='-Xlinker '
8509 if test -n "$lt_prog_compiler_pic"; then
8510 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8511 fi
8512 ;;
8513 esac
8514 else
8515 # PORTME Check for flag to pass linker flags through the system compiler.
8516 case $host_os in
8517 aix*)
8518 lt_prog_compiler_wl='-Wl,'
8519 if test "$host_cpu" = ia64; then
8520 # AIX 5 now supports IA64 processor
8521 lt_prog_compiler_static='-Bstatic'
8522 else
8523 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8524 fi
8525 ;;
8526
8527 mingw* | cygwin* | pw32* | os2* | cegcc*)
8528 # This hack is so that the source file can tell whether it is being
8529 # built for inclusion in a dll (and should export symbols for example).
8530 lt_prog_compiler_pic='-DDLL_EXPORT'
8531 ;;
8532
8533 hpux9* | hpux10* | hpux11*)
8534 lt_prog_compiler_wl='-Wl,'
8535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8536 # not for PA HP-UX.
8537 case $host_cpu in
8538 hppa*64*|ia64*)
8539 # +Z the default
8540 ;;
8541 *)
8542 lt_prog_compiler_pic='+Z'
8543 ;;
8544 esac
8545 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8546 lt_prog_compiler_static='${wl}-a ${wl}archive'
8547 ;;
8548
8549 irix5* | irix6* | nonstopux*)
8550 lt_prog_compiler_wl='-Wl,'
8551 # PIC (with -KPIC) is the default.
8552 lt_prog_compiler_static='-non_shared'
8553 ;;
8554
8555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8556 case $cc_basename in
8557 # old Intel for x86_64 which still supported -KPIC.
8558 ecc*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-static'
8562 ;;
8563 # icc used to be incompatible with GCC.
8564 # ICC 10 doesn't accept -KPIC any more.
8565 icc* | ifort*)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-fPIC'
8568 lt_prog_compiler_static='-static'
8569 ;;
8570 # Lahey Fortran 8.1.
8571 lf95*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='--shared'
8574 lt_prog_compiler_static='--static'
8575 ;;
8576 nagfor*)
8577 # NAG Fortran compiler
8578 lt_prog_compiler_wl='-Wl,-Wl,,'
8579 lt_prog_compiler_pic='-PIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8582 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8583 # Portland Group compilers (*not* the Pentium gcc compiler,
8584 # which looks to be a dead project)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-fpic'
8587 lt_prog_compiler_static='-Bstatic'
8588 ;;
8589 ccc*)
8590 lt_prog_compiler_wl='-Wl,'
8591 # All Alpha code is PIC.
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594 xl* | bgxl* | bgf* | mpixl*)
8595 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-qpic'
8598 lt_prog_compiler_static='-qstaticlink'
8599 ;;
8600 *)
8601 case `$CC -V 2>&1 | sed 5q` in
8602 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8603 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8604 lt_prog_compiler_pic='-KPIC'
8605 lt_prog_compiler_static='-Bstatic'
8606 lt_prog_compiler_wl=''
8607 ;;
8608 *Sun\ F* | *Sun*Fortran*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 lt_prog_compiler_wl='-Qoption ld '
8612 ;;
8613 *Sun\ C*)
8614 # Sun C 5.9
8615 lt_prog_compiler_pic='-KPIC'
8616 lt_prog_compiler_static='-Bstatic'
8617 lt_prog_compiler_wl='-Wl,'
8618 ;;
8619 *Intel*\ [CF]*Compiler*)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-fPIC'
8622 lt_prog_compiler_static='-static'
8623 ;;
8624 *Portland\ Group*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-fpic'
8627 lt_prog_compiler_static='-Bstatic'
8628 ;;
8629 esac
8630 ;;
8631 esac
8632 ;;
8633
8634 newsos6)
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 ;;
8638
8639 *nto* | *qnx*)
8640 # QNX uses GNU C++, but need to define -shared option too, otherwise
8641 # it will coredump.
8642 lt_prog_compiler_pic='-fPIC -shared'
8643 ;;
8644
8645 osf3* | osf4* | osf5*)
8646 lt_prog_compiler_wl='-Wl,'
8647 # All OSF/1 code is PIC.
8648 lt_prog_compiler_static='-non_shared'
8649 ;;
8650
8651 rdos*)
8652 lt_prog_compiler_static='-non_shared'
8653 ;;
8654
8655 solaris*)
8656 lt_prog_compiler_pic='-KPIC'
8657 lt_prog_compiler_static='-Bstatic'
8658 case $cc_basename in
8659 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8660 lt_prog_compiler_wl='-Qoption ld ';;
8661 *)
8662 lt_prog_compiler_wl='-Wl,';;
8663 esac
8664 ;;
8665
8666 sunos4*)
8667 lt_prog_compiler_wl='-Qoption ld '
8668 lt_prog_compiler_pic='-PIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 ;;
8671
8672 sysv4 | sysv4.2uw2* | sysv4.3*)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 sysv4*MP*)
8679 if test -d /usr/nec ;then
8680 lt_prog_compiler_pic='-Kconform_pic'
8681 lt_prog_compiler_static='-Bstatic'
8682 fi
8683 ;;
8684
8685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8689 ;;
8690
8691 unicos*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_can_build_shared=no
8694 ;;
8695
8696 uts4*)
8697 lt_prog_compiler_pic='-pic'
8698 lt_prog_compiler_static='-Bstatic'
8699 ;;
8700
8701 *)
8702 lt_prog_compiler_can_build_shared=no
8703 ;;
8704 esac
8705 fi
8706
8707 case $host_os in
8708 # For platforms which do not support PIC, -DPIC is meaningless:
8709 *djgpp*)
8710 lt_prog_compiler_pic=
8711 ;;
8712 *)
8713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8714 ;;
8715 esac
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8719 if ${lt_cv_prog_compiler_pic+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8725 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8726 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8727
8728 #
8729 # Check to make sure the PIC flag actually works.
8730 #
8731 if test -n "$lt_prog_compiler_pic"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8733 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8734 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 lt_cv_prog_compiler_pic_works=no
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>conftest.err)
8752 ac_status=$?
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_pic_works=yes
8762 fi
8763 fi
8764 $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8771 case $lt_prog_compiler_pic in
8772 "" | " "*) ;;
8773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8774 esac
8775 else
8776 lt_prog_compiler_pic=
8777 lt_prog_compiler_can_build_shared=no
8778 fi
8779
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792 #
8793 # Check to make sure the static flag actually works.
8794 #
8795 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8798 if ${lt_cv_prog_compiler_static_works+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 lt_cv_prog_compiler_static_works=no
8802 save_LDFLAGS="$LDFLAGS"
8803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8806 # The linker can only warn and ignore the option if not recognized
8807 # So say no if there are warnings
8808 if test -s conftest.err; then
8809 # Append any errors to the config.log.
8810 cat conftest.err 1>&5
8811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8813 if diff conftest.exp conftest.er2 >/dev/null; then
8814 lt_cv_prog_compiler_static_works=yes
8815 fi
8816 else
8817 lt_cv_prog_compiler_static_works=yes
8818 fi
8819 fi
8820 $RM -r conftest*
8821 LDFLAGS="$save_LDFLAGS"
8822
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8825 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8826
8827 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8828 :
8829 else
8830 lt_prog_compiler_static=
8831 fi
8832
8833
8834
8835
8836
8837
8838
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 lt_cv_prog_compiler_c_o=no
8845 $RM -r conftest 2>/dev/null
8846 mkdir conftest
8847 cd conftest
8848 mkdir out
8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>out/conftest.err)
8862 ac_status=$?
8863 cat out/conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866 then
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8873 fi
8874 fi
8875 chmod u+w . 2>&5
8876 $RM conftest*
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880 $RM out/* && rmdir out
8881 cd ..
8882 $RM -r conftest
8883 $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890
8891
8892
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896 if ${lt_cv_prog_compiler_c_o+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_c_o=no
8900 $RM -r conftest 2>/dev/null
8901 mkdir conftest
8902 cd conftest
8903 mkdir out
8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906 lt_compiler_flag="-o out/conftest2.$ac_objext"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 lt_compile=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916 (eval "$lt_compile" 2>out/conftest.err)
8917 ac_status=$?
8918 cat out/conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921 then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_c_o=yes
8928 fi
8929 fi
8930 chmod u+w . 2>&5
8931 $RM conftest*
8932 # SGI C++ compiler will create directory out/ii_files/ for
8933 # template instantiation
8934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935 $RM out/* && rmdir out
8936 cd ..
8937 $RM -r conftest
8938 $RM conftest*
8939
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943
8944
8945
8946
8947 hard_links="nottested"
8948 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8949 # do not overwrite the value of need_locks provided by the user
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8951 $as_echo_n "checking if we can lock with hard links... " >&6; }
8952 hard_links=yes
8953 $RM conftest*
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 touch conftest.a
8956 ln conftest.a conftest.b 2>&5 || hard_links=no
8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8959 $as_echo "$hard_links" >&6; }
8960 if test "$hard_links" = no; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8962 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8963 need_locks=warn
8964 fi
8965 else
8966 need_locks=no
8967 fi
8968
8969
8970
8971
8972
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8976
8977 runpath_var=
8978 allow_undefined_flag=
8979 always_export_symbols=no
8980 archive_cmds=
8981 archive_expsym_cmds=
8982 compiler_needs_object=no
8983 enable_shared_with_static_runtimes=no
8984 export_dynamic_flag_spec=
8985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8986 hardcode_automatic=no
8987 hardcode_direct=no
8988 hardcode_direct_absolute=no
8989 hardcode_libdir_flag_spec=
8990 hardcode_libdir_separator=
8991 hardcode_minus_L=no
8992 hardcode_shlibpath_var=unsupported
8993 inherit_rpath=no
8994 link_all_deplibs=unknown
8995 module_cmds=
8996 module_expsym_cmds=
8997 old_archive_from_new_cmds=
8998 old_archive_from_expsyms_cmds=
8999 thread_safe_flag_spec=
9000 whole_archive_flag_spec=
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9003 include_expsyms=
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007 # as well as any symbol that contains `d'.
9008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 # Exclude shared library initialization/finalization symbols.
9015 extract_expsyms_cmds=
9016
9017 case $host_os in
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9020 # When not using gcc, we currently assume that we are using
9021 # Microsoft Visual C++.
9022 if test "$GCC" != yes; then
9023 with_gnu_ld=no
9024 fi
9025 ;;
9026 interix*)
9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
9028 with_gnu_ld=yes
9029 ;;
9030 openbsd*)
9031 with_gnu_ld=no
9032 ;;
9033 linux* | k*bsd*-gnu | gnu*)
9034 link_all_deplibs=no
9035 ;;
9036 esac
9037
9038 ld_shlibs=yes
9039
9040 # On some targets, GNU ld is compatible enough with the native linker
9041 # that we're better off using the native interface for both.
9042 lt_use_gnu_ld_interface=no
9043 if test "$with_gnu_ld" = yes; then
9044 case $host_os in
9045 aix*)
9046 # The AIX port of GNU ld has always aspired to compatibility
9047 # with the native linker. However, as the warning in the GNU ld
9048 # block says, versions before 2.19.5* couldn't really create working
9049 # shared libraries, regardless of the interface used.
9050 case `$LD -v 2>&1` in
9051 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9052 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9053 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9054 *)
9055 lt_use_gnu_ld_interface=yes
9056 ;;
9057 esac
9058 ;;
9059 *)
9060 lt_use_gnu_ld_interface=yes
9061 ;;
9062 esac
9063 fi
9064
9065 if test "$lt_use_gnu_ld_interface" = yes; then
9066 # If archive_cmds runs LD, not CC, wlarc should be empty
9067 wlarc='${wl}'
9068
9069 # Set some defaults for GNU ld with shared library support. These
9070 # are reset later if shared libraries are not supported. Putting them
9071 # here allows them to be overridden if necessary.
9072 runpath_var=LD_RUN_PATH
9073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074 export_dynamic_flag_spec='${wl}--export-dynamic'
9075 # ancient GNU ld didn't support --whole-archive et. al.
9076 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9077 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9078 else
9079 whole_archive_flag_spec=
9080 fi
9081 supports_anon_versioning=no
9082 case `$LD -v 2>&1` in
9083 *GNU\ gold*) supports_anon_versioning=yes ;;
9084 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9085 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9086 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9087 *\ 2.11.*) ;; # other 2.11 versions
9088 *) supports_anon_versioning=yes ;;
9089 esac
9090
9091 # See if GNU ld supports shared libraries.
9092 case $host_os in
9093 aix[3-9]*)
9094 # On AIX/PPC, the GNU linker is very broken
9095 if test "$host_cpu" != ia64; then
9096 ld_shlibs=no
9097 cat <<_LT_EOF 1>&2
9098
9099 *** Warning: the GNU linker, at least up to release 2.19, is reported
9100 *** to be unable to reliably create shared libraries on AIX.
9101 *** Therefore, libtool is disabling shared libraries support. If you
9102 *** really care for shared libraries, you may want to install binutils
9103 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9104 *** You will then need to restart the configuration process.
9105
9106 _LT_EOF
9107 fi
9108 ;;
9109
9110 amigaos*)
9111 case $host_cpu in
9112 powerpc)
9113 # see comment about AmigaOS4 .so support
9114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 archive_expsym_cmds=''
9116 ;;
9117 m68k)
9118 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)'
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_minus_L=yes
9121 ;;
9122 esac
9123 ;;
9124
9125 beos*)
9126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9127 allow_undefined_flag=unsupported
9128 # Joseph Beckenbach <[email protected]> says some releases of gcc
9129 # support --undefined. This deserves some investigation. FIXME
9130 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131 else
9132 ld_shlibs=no
9133 fi
9134 ;;
9135
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9138 # as there is no search path for DLLs.
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 export_dynamic_flag_spec='${wl}--export-all-symbols'
9141 allow_undefined_flag=unsupported
9142 always_export_symbols=no
9143 enable_shared_with_static_runtimes=yes
9144 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'
9145 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9146
9147 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9149 # If the export-symbols file already is a .def file (1st line
9150 # is EXPORTS), use it as is; otherwise, prepend...
9151 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9152 cp $export_symbols $output_objdir/$soname.def;
9153 else
9154 echo EXPORTS > $output_objdir/$soname.def;
9155 cat $export_symbols >> $output_objdir/$soname.def;
9156 fi~
9157 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9158 else
9159 ld_shlibs=no
9160 fi
9161 ;;
9162
9163 haiku*)
9164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165 link_all_deplibs=yes
9166 ;;
9167
9168 interix[3-9]*)
9169 hardcode_direct=no
9170 hardcode_shlibpath_var=no
9171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9172 export_dynamic_flag_spec='${wl}-E'
9173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9174 # Instead, shared libraries are loaded at an image base (0x10000000 by
9175 # default) and relocated if they conflict, which is a slow very memory
9176 # consuming and fragmenting process. To avoid this, we pick a random,
9177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9180 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'
9181 ;;
9182
9183 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9184 tmp_diet=no
9185 if test "$host_os" = linux-dietlibc; then
9186 case $cc_basename in
9187 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9188 esac
9189 fi
9190 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9191 && test "$tmp_diet" = no
9192 then
9193 tmp_addflag=' $pic_flag'
9194 tmp_sharedflag='-shared'
9195 case $cc_basename,$host_cpu in
9196 pgcc*) # Portland Group C compiler
9197 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'
9198 tmp_addflag=' $pic_flag'
9199 ;;
9200 pgf77* | pgf90* | pgf95* | pgfortran*)
9201 # Portland Group f77 and f90 compilers
9202 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'
9203 tmp_addflag=' $pic_flag -Mnomain' ;;
9204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9205 tmp_addflag=' -i_dynamic' ;;
9206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9207 tmp_addflag=' -i_dynamic -nofor_main' ;;
9208 ifc* | ifort*) # Intel Fortran compiler
9209 tmp_addflag=' -nofor_main' ;;
9210 lf95*) # Lahey Fortran 8.1
9211 whole_archive_flag_spec=
9212 tmp_sharedflag='--shared' ;;
9213 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9214 tmp_sharedflag='-qmkshrobj'
9215 tmp_addflag= ;;
9216 nvcc*) # Cuda Compiler Driver 2.2
9217 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'
9218 compiler_needs_object=yes
9219 ;;
9220 esac
9221 case `$CC -V 2>&1 | sed 5q` in
9222 *Sun\ C*) # Sun C 5.9
9223 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'
9224 compiler_needs_object=yes
9225 tmp_sharedflag='-G' ;;
9226 *Sun\ F*) # Sun Fortran 8.3
9227 tmp_sharedflag='-G' ;;
9228 esac
9229 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230
9231 if test "x$supports_anon_versioning" = xyes; then
9232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9236 fi
9237
9238 case $cc_basename in
9239 xlf* | bgf* | bgxlf* | mpixlf*)
9240 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9241 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9244 if test "x$supports_anon_versioning" = xyes; then
9245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247 echo "local: *; };" >> $output_objdir/$libname.ver~
9248 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9249 fi
9250 ;;
9251 esac
9252 else
9253 ld_shlibs=no
9254 fi
9255 ;;
9256
9257 netbsd* | netbsdelf*-gnu)
9258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9259 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9260 wlarc=
9261 else
9262 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9264 fi
9265 ;;
9266
9267 solaris*)
9268 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9269 ld_shlibs=no
9270 cat <<_LT_EOF 1>&2
9271
9272 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9273 *** create shared libraries on Solaris systems. Therefore, libtool
9274 *** is disabling shared libraries support. We urge you to upgrade GNU
9275 *** binutils to release 2.9.1 or newer. Another option is to modify
9276 *** your PATH or compiler configuration so that the native linker is
9277 *** used, and then restart.
9278
9279 _LT_EOF
9280 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9281 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9283 else
9284 ld_shlibs=no
9285 fi
9286 ;;
9287
9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9289 case `$LD -v 2>&1` in
9290 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9291 ld_shlibs=no
9292 cat <<_LT_EOF 1>&2
9293
9294 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9295 *** reliably create shared libraries on SCO systems. Therefore, libtool
9296 *** is disabling shared libraries support. We urge you to upgrade GNU
9297 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9298 *** your PATH or compiler configuration so that the native linker is
9299 *** used, and then restart.
9300
9301 _LT_EOF
9302 ;;
9303 *)
9304 # For security reasons, it is highly recommended that you always
9305 # use absolute paths for naming shared libraries, and exclude the
9306 # DT_RUNPATH tag from executables and libraries. But doing so
9307 # requires that you compile everything twice, which is a pain.
9308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9312 else
9313 ld_shlibs=no
9314 fi
9315 ;;
9316 esac
9317 ;;
9318
9319 sunos4*)
9320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9321 wlarc=
9322 hardcode_direct=yes
9323 hardcode_shlibpath_var=no
9324 ;;
9325
9326 *)
9327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9330 else
9331 ld_shlibs=no
9332 fi
9333 ;;
9334 esac
9335
9336 if test "$ld_shlibs" = no; then
9337 runpath_var=
9338 hardcode_libdir_flag_spec=
9339 export_dynamic_flag_spec=
9340 whole_archive_flag_spec=
9341 fi
9342 else
9343 # PORTME fill in a description of your system's linker (not GNU ld)
9344 case $host_os in
9345 aix3*)
9346 allow_undefined_flag=unsupported
9347 always_export_symbols=yes
9348 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'
9349 # Note: this linker hardcodes the directories in LIBPATH if there
9350 # are no directories specified by -L.
9351 hardcode_minus_L=yes
9352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9353 # Neither direct hardcoding nor static linking is supported with a
9354 # broken collect2.
9355 hardcode_direct=unsupported
9356 fi
9357 ;;
9358
9359 aix[4-9]*)
9360 if test "$host_cpu" = ia64; then
9361 # On IA64, the linker does run time linking by default, so we don't
9362 # have to do anything special.
9363 aix_use_runtimelinking=no
9364 exp_sym_flag='-Bexport'
9365 no_entry_flag=""
9366 else
9367 # If we're using GNU nm, then we don't want the "-C" option.
9368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9369 # Also, AIX nm treats weak defined symbols like other global
9370 # defined symbols, whereas GNU nm marks them as "W".
9371 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9372 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'
9373 else
9374 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'
9375 fi
9376 aix_use_runtimelinking=no
9377
9378 # Test if we are trying to use run time linking or normal
9379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9380 # need to do runtime linking.
9381 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9382 for ld_flag in $LDFLAGS; do
9383 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9384 aix_use_runtimelinking=yes
9385 break
9386 fi
9387 done
9388 ;;
9389 esac
9390
9391 exp_sym_flag='-bexport'
9392 no_entry_flag='-bnoentry'
9393 fi
9394
9395 # When large executables or shared objects are built, AIX ld can
9396 # have problems creating the table of contents. If linking a library
9397 # or program results in "error TOC overflow" add -mminimal-toc to
9398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9400
9401 archive_cmds=''
9402 hardcode_direct=yes
9403 hardcode_direct_absolute=yes
9404 hardcode_libdir_separator=':'
9405 link_all_deplibs=yes
9406 file_list_spec='${wl}-f,'
9407
9408 if test "$GCC" = yes; then
9409 case $host_os in aix4.[012]|aix4.[012].*)
9410 # We only want to do this on AIX 4.2 and lower, the check
9411 # below for broken collect2 doesn't work under 4.3+
9412 collect2name=`${CC} -print-prog-name=collect2`
9413 if test -f "$collect2name" &&
9414 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9415 then
9416 # We have reworked collect2
9417 :
9418 else
9419 # We have old collect2
9420 hardcode_direct=unsupported
9421 # It fails to find uninstalled libraries when the uninstalled
9422 # path is not listed in the libpath. Setting hardcode_minus_L
9423 # to unsupported forces relinking
9424 hardcode_minus_L=yes
9425 hardcode_libdir_flag_spec='-L$libdir'
9426 hardcode_libdir_separator=
9427 fi
9428 ;;
9429 esac
9430 shared_flag='-shared'
9431 if test "$aix_use_runtimelinking" = yes; then
9432 shared_flag="$shared_flag "'${wl}-G'
9433 fi
9434 link_all_deplibs=no
9435 else
9436 # not using gcc
9437 if test "$host_cpu" = ia64; then
9438 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9439 # chokes on -Wl,-G. The following line is correct:
9440 shared_flag='-G'
9441 else
9442 if test "$aix_use_runtimelinking" = yes; then
9443 shared_flag='${wl}-G'
9444 else
9445 shared_flag='${wl}-bM:SRE'
9446 fi
9447 fi
9448 fi
9449
9450 export_dynamic_flag_spec='${wl}-bexpall'
9451 # It seems that -bexpall does not export symbols beginning with
9452 # underscore (_), so it is better to generate a list of symbols to export.
9453 always_export_symbols=yes
9454 if test "$aix_use_runtimelinking" = yes; then
9455 # Warning - without using the other runtime loading flags (-brtl),
9456 # -berok will link without error, but may produce a broken library.
9457 allow_undefined_flag='-berok'
9458 # Determine the default libpath from the value encoded in an
9459 # empty executable.
9460 if test "${lt_cv_aix_libpath+set}" = set; then
9461 aix_libpath=$lt_cv_aix_libpath
9462 else
9463 if ${lt_cv_aix_libpath_+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468
9469 int
9470 main ()
9471 {
9472
9473 ;
9474 return 0;
9475 }
9476 _ACEOF
9477 if ac_fn_c_try_link "$LINENO"; then :
9478
9479 lt_aix_libpath_sed='
9480 /Import File Strings/,/^$/ {
9481 /^0/ {
9482 s/^0 *\([^ ]*\) *$/\1/
9483 p
9484 }
9485 }'
9486 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9487 # Check for a 64-bit object if we didn't find anything.
9488 if test -z "$lt_cv_aix_libpath_"; then
9489 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 fi
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 if test -z "$lt_cv_aix_libpath_"; then
9495 lt_cv_aix_libpath_="/usr/lib:/lib"
9496 fi
9497
9498 fi
9499
9500 aix_libpath=$lt_cv_aix_libpath_
9501 fi
9502
9503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9504 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"
9505 else
9506 if test "$host_cpu" = ia64; then
9507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9508 allow_undefined_flag="-z nodefs"
9509 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"
9510 else
9511 # Determine the default libpath from the value encoded in an
9512 # empty executable.
9513 if test "${lt_cv_aix_libpath+set}" = set; then
9514 aix_libpath=$lt_cv_aix_libpath
9515 else
9516 if ${lt_cv_aix_libpath_+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521
9522 int
9523 main ()
9524 {
9525
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531
9532 lt_aix_libpath_sed='
9533 /Import File Strings/,/^$/ {
9534 /^0/ {
9535 s/^0 *\([^ ]*\) *$/\1/
9536 p
9537 }
9538 }'
9539 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540 # Check for a 64-bit object if we didn't find anything.
9541 if test -z "$lt_cv_aix_libpath_"; then
9542 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543 fi
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 if test -z "$lt_cv_aix_libpath_"; then
9548 lt_cv_aix_libpath_="/usr/lib:/lib"
9549 fi
9550
9551 fi
9552
9553 aix_libpath=$lt_cv_aix_libpath_
9554 fi
9555
9556 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9557 # Warning - without using the other run time loading flags,
9558 # -berok will link without error, but may produce a broken library.
9559 no_undefined_flag=' ${wl}-bernotok'
9560 allow_undefined_flag=' ${wl}-berok'
9561 if test "$with_gnu_ld" = yes; then
9562 # We only use this code for GNU lds that support --whole-archive.
9563 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9564 else
9565 # Exported symbols can be pulled into shared objects from archives
9566 whole_archive_flag_spec='$convenience'
9567 fi
9568 archive_cmds_need_lc=yes
9569 # This is similar to how AIX traditionally builds its shared libraries.
9570 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'
9571 fi
9572 fi
9573 ;;
9574
9575 amigaos*)
9576 case $host_cpu in
9577 powerpc)
9578 # see comment about AmigaOS4 .so support
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds=''
9581 ;;
9582 m68k)
9583 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)'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_minus_L=yes
9586 ;;
9587 esac
9588 ;;
9589
9590 bsdi[45]*)
9591 export_dynamic_flag_spec=-rdynamic
9592 ;;
9593
9594 cygwin* | mingw* | pw32* | cegcc*)
9595 # When not using gcc, we currently assume that we are using
9596 # Microsoft Visual C++.
9597 # hardcode_libdir_flag_spec is actually meaningless, as there is
9598 # no search path for DLLs.
9599 case $cc_basename in
9600 cl*)
9601 # Native MSVC
9602 hardcode_libdir_flag_spec=' '
9603 allow_undefined_flag=unsupported
9604 always_export_symbols=yes
9605 file_list_spec='@'
9606 # Tell ltmain to make .lib files, not .a files.
9607 libext=lib
9608 # Tell ltmain to make .dll files, not .so files.
9609 shrext_cmds=".dll"
9610 # FIXME: Setting linknames here is a bad hack.
9611 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9612 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9613 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9614 else
9615 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9616 fi~
9617 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9618 linknames='
9619 # The linker will not automatically build a static lib if we build a DLL.
9620 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9621 enable_shared_with_static_runtimes=yes
9622 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9624 # Don't use ranlib
9625 old_postinstall_cmds='chmod 644 $oldlib'
9626 postlink_cmds='lt_outputfile="@OUTPUT@"~
9627 lt_tool_outputfile="@TOOL_OUTPUT@"~
9628 case $lt_outputfile in
9629 *.exe|*.EXE) ;;
9630 *)
9631 lt_outputfile="$lt_outputfile.exe"
9632 lt_tool_outputfile="$lt_tool_outputfile.exe"
9633 ;;
9634 esac~
9635 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9636 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9637 $RM "$lt_outputfile.manifest";
9638 fi'
9639 ;;
9640 *)
9641 # Assume MSVC wrapper
9642 hardcode_libdir_flag_spec=' '
9643 allow_undefined_flag=unsupported
9644 # Tell ltmain to make .lib files, not .a files.
9645 libext=lib
9646 # Tell ltmain to make .dll files, not .so files.
9647 shrext_cmds=".dll"
9648 # FIXME: Setting linknames here is a bad hack.
9649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9650 # The linker will automatically build a .lib file if we build a DLL.
9651 old_archive_from_new_cmds='true'
9652 # FIXME: Should let the user specify the lib program.
9653 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9654 enable_shared_with_static_runtimes=yes
9655 ;;
9656 esac
9657 ;;
9658
9659 darwin* | rhapsody*)
9660
9661
9662 archive_cmds_need_lc=no
9663 hardcode_direct=no
9664 hardcode_automatic=yes
9665 hardcode_shlibpath_var=unsupported
9666 if test "$lt_cv_ld_force_load" = "yes"; then
9667 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\"`'
9668
9669 else
9670 whole_archive_flag_spec=''
9671 fi
9672 link_all_deplibs=yes
9673 allow_undefined_flag="$_lt_dar_allow_undefined"
9674 case $cc_basename in
9675 ifort*) _lt_dar_can_shared=yes ;;
9676 *) _lt_dar_can_shared=$GCC ;;
9677 esac
9678 if test "$_lt_dar_can_shared" = "yes"; then
9679 output_verbose_link_cmd=func_echo_all
9680 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9681 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9682 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}"
9683 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}"
9684
9685 else
9686 ld_shlibs=no
9687 fi
9688
9689 ;;
9690
9691 dgux*)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_shlibpath_var=no
9695 ;;
9696
9697 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9698 # support. Future versions do this automatically, but an explicit c++rt0.o
9699 # does not break anything, and helps significantly (at the cost of a little
9700 # extra space).
9701 freebsd2.2*)
9702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9703 hardcode_libdir_flag_spec='-R$libdir'
9704 hardcode_direct=yes
9705 hardcode_shlibpath_var=no
9706 ;;
9707
9708 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9709 freebsd2.*)
9710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9711 hardcode_direct=yes
9712 hardcode_minus_L=yes
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9717 freebsd* | dragonfly*)
9718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9719 hardcode_libdir_flag_spec='-R$libdir'
9720 hardcode_direct=yes
9721 hardcode_shlibpath_var=no
9722 ;;
9723
9724 hpux9*)
9725 if test "$GCC" = yes; then
9726 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'
9727 else
9728 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'
9729 fi
9730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9731 hardcode_libdir_separator=:
9732 hardcode_direct=yes
9733
9734 # hardcode_minus_L: Not really in the search PATH,
9735 # but as the default location of the library.
9736 hardcode_minus_L=yes
9737 export_dynamic_flag_spec='${wl}-E'
9738 ;;
9739
9740 hpux10*)
9741 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9742 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9743 else
9744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9745 fi
9746 if test "$with_gnu_ld" = no; then
9747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9748 hardcode_libdir_separator=:
9749 hardcode_direct=yes
9750 hardcode_direct_absolute=yes
9751 export_dynamic_flag_spec='${wl}-E'
9752 # hardcode_minus_L: Not really in the search PATH,
9753 # but as the default location of the library.
9754 hardcode_minus_L=yes
9755 fi
9756 ;;
9757
9758 hpux11*)
9759 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9760 case $host_cpu in
9761 hppa*64*)
9762 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 ;;
9764 ia64*)
9765 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9766 ;;
9767 *)
9768 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9769 ;;
9770 esac
9771 else
9772 case $host_cpu in
9773 hppa*64*)
9774 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 ;;
9776 ia64*)
9777 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9778 ;;
9779 *)
9780
9781 # Older versions of the 11.00 compiler do not understand -b yet
9782 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9784 $as_echo_n "checking if $CC understands -b... " >&6; }
9785 if ${lt_cv_prog_compiler__b+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 lt_cv_prog_compiler__b=no
9789 save_LDFLAGS="$LDFLAGS"
9790 LDFLAGS="$LDFLAGS -b"
9791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9793 # The linker can only warn and ignore the option if not recognized
9794 # So say no if there are warnings
9795 if test -s conftest.err; then
9796 # Append any errors to the config.log.
9797 cat conftest.err 1>&5
9798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9800 if diff conftest.exp conftest.er2 >/dev/null; then
9801 lt_cv_prog_compiler__b=yes
9802 fi
9803 else
9804 lt_cv_prog_compiler__b=yes
9805 fi
9806 fi
9807 $RM -r conftest*
9808 LDFLAGS="$save_LDFLAGS"
9809
9810 fi
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9812 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9813
9814 if test x"$lt_cv_prog_compiler__b" = xyes; then
9815 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816 else
9817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818 fi
9819
9820 ;;
9821 esac
9822 fi
9823 if test "$with_gnu_ld" = no; then
9824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9825 hardcode_libdir_separator=:
9826
9827 case $host_cpu in
9828 hppa*64*|ia64*)
9829 hardcode_direct=no
9830 hardcode_shlibpath_var=no
9831 ;;
9832 *)
9833 hardcode_direct=yes
9834 hardcode_direct_absolute=yes
9835 export_dynamic_flag_spec='${wl}-E'
9836
9837 # hardcode_minus_L: Not really in the search PATH,
9838 # but as the default location of the library.
9839 hardcode_minus_L=yes
9840 ;;
9841 esac
9842 fi
9843 ;;
9844
9845 irix5* | irix6* | nonstopux*)
9846 if test "$GCC" = yes; then
9847 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'
9848 # Try to use the -exported_symbol ld option, if it does not
9849 # work, assume that -exports_file does not work either and
9850 # implicitly export all symbols.
9851 # This should be the same for all languages, so no per-tag cache variable.
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9853 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9854 if ${lt_cv_irix_exported_symbol+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 save_LDFLAGS="$LDFLAGS"
9858 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int foo (void) { return 0; }
9862 _ACEOF
9863 if ac_fn_c_try_link "$LINENO"; then :
9864 lt_cv_irix_exported_symbol=yes
9865 else
9866 lt_cv_irix_exported_symbol=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LDFLAGS="$save_LDFLAGS"
9871 fi
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9873 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9874 if test "$lt_cv_irix_exported_symbol" = yes; then
9875 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'
9876 fi
9877 else
9878 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'
9879 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'
9880 fi
9881 archive_cmds_need_lc='no'
9882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 hardcode_libdir_separator=:
9884 inherit_rpath=yes
9885 link_all_deplibs=yes
9886 ;;
9887
9888 netbsd* | netbsdelf*-gnu)
9889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9891 else
9892 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9893 fi
9894 hardcode_libdir_flag_spec='-R$libdir'
9895 hardcode_direct=yes
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 newsos6)
9900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_direct=yes
9902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903 hardcode_libdir_separator=:
9904 hardcode_shlibpath_var=no
9905 ;;
9906
9907 *nto* | *qnx*)
9908 ;;
9909
9910 openbsd*)
9911 if test -f /usr/libexec/ld.so; then
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 hardcode_direct_absolute=yes
9915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9919 export_dynamic_flag_spec='${wl}-E'
9920 else
9921 case $host_os in
9922 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924 hardcode_libdir_flag_spec='-R$libdir'
9925 ;;
9926 *)
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 ;;
9930 esac
9931 fi
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936
9937 os2*)
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_minus_L=yes
9940 allow_undefined_flag=unsupported
9941 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'
9942 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9943 ;;
9944
9945 osf3*)
9946 if test "$GCC" = yes; then
9947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9948 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'
9949 else
9950 allow_undefined_flag=' -expect_unresolved \*'
9951 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'
9952 fi
9953 archive_cmds_need_lc='no'
9954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955 hardcode_libdir_separator=:
9956 ;;
9957
9958 osf4* | osf5*) # as osf3* with the addition of -msym flag
9959 if test "$GCC" = yes; then
9960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9961 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'
9962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963 else
9964 allow_undefined_flag=' -expect_unresolved \*'
9965 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'
9966 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~
9967 $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'
9968
9969 # Both c and cxx compiler support -rpath directly
9970 hardcode_libdir_flag_spec='-rpath $libdir'
9971 fi
9972 archive_cmds_need_lc='no'
9973 hardcode_libdir_separator=:
9974 ;;
9975
9976 solaris*)
9977 no_undefined_flag=' -z defs'
9978 if test "$GCC" = yes; then
9979 wlarc='${wl}'
9980 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9982 $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'
9983 else
9984 case `$CC -V 2>&1` in
9985 *"Compilers 5.0"*)
9986 wlarc=''
9987 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9989 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9990 ;;
9991 *)
9992 wlarc='${wl}'
9993 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9995 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996 ;;
9997 esac
9998 fi
9999 hardcode_libdir_flag_spec='-R$libdir'
10000 hardcode_shlibpath_var=no
10001 case $host_os in
10002 solaris2.[0-5] | solaris2.[0-5].*) ;;
10003 *)
10004 # The compiler driver will combine and reorder linker options,
10005 # but understands `-z linker_flag'. GCC discards it without `$wl',
10006 # but is careful enough not to reorder.
10007 # Supported since Solaris 2.6 (maybe 2.5.1?)
10008 if test "$GCC" = yes; then
10009 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10010 else
10011 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10012 fi
10013 ;;
10014 esac
10015 link_all_deplibs=yes
10016 ;;
10017
10018 sunos4*)
10019 if test "x$host_vendor" = xsequent; then
10020 # Use $CC to link under sequent, because it throws in some extra .o
10021 # files that make .init and .fini sections work.
10022 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10025 fi
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_direct=yes
10028 hardcode_minus_L=yes
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 sysv4)
10033 case $host_vendor in
10034 sni)
10035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes # is this really true???
10037 ;;
10038 siemens)
10039 ## LD is ld it makes a PLAMLIB
10040 ## CC just makes a GrossModule.
10041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10042 reload_cmds='$CC -r -o $output$reload_objs'
10043 hardcode_direct=no
10044 ;;
10045 motorola)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10048 ;;
10049 esac
10050 runpath_var='LD_RUN_PATH'
10051 hardcode_shlibpath_var=no
10052 ;;
10053
10054 sysv4.3*)
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_shlibpath_var=no
10057 export_dynamic_flag_spec='-Bexport'
10058 ;;
10059
10060 sysv4*MP*)
10061 if test -d /usr/nec; then
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_shlibpath_var=no
10064 runpath_var=LD_RUN_PATH
10065 hardcode_runpath_var=yes
10066 ld_shlibs=yes
10067 fi
10068 ;;
10069
10070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10071 no_undefined_flag='${wl}-z,text'
10072 archive_cmds_need_lc=no
10073 hardcode_shlibpath_var=no
10074 runpath_var='LD_RUN_PATH'
10075
10076 if test "$GCC" = yes; then
10077 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 else
10080 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 fi
10083 ;;
10084
10085 sysv5* | sco3.2v5* | sco5v6*)
10086 # Note: We can NOT use -z defs as we might desire, because we do not
10087 # link with -lc, and that would cause any symbols used from libc to
10088 # always be unresolved, which means just about no library would
10089 # ever link correctly. If we're not using GNU ld we use -z text
10090 # though, which does catch some bad symbols but isn't as heavy-handed
10091 # as -z defs.
10092 no_undefined_flag='${wl}-z,text'
10093 allow_undefined_flag='${wl}-z,nodefs'
10094 archive_cmds_need_lc=no
10095 hardcode_shlibpath_var=no
10096 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10097 hardcode_libdir_separator=':'
10098 link_all_deplibs=yes
10099 export_dynamic_flag_spec='${wl}-Bexport'
10100 runpath_var='LD_RUN_PATH'
10101
10102 if test "$GCC" = yes; then
10103 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 else
10106 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 fi
10109 ;;
10110
10111 uts4*)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 *)
10118 ld_shlibs=no
10119 ;;
10120 esac
10121
10122 if test x$host_vendor = xsni; then
10123 case $host in
10124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10125 export_dynamic_flag_spec='${wl}-Blargedynsym'
10126 ;;
10127 esac
10128 fi
10129 fi
10130
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10132 $as_echo "$ld_shlibs" >&6; }
10133 test "$ld_shlibs" = no && can_build_shared=no
10134
10135 with_gnu_ld=$with_gnu_ld
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151 #
10152 # Do we need to explicitly link libc?
10153 #
10154 case "x$archive_cmds_need_lc" in
10155 x|xyes)
10156 # Assume -lc should be added
10157 archive_cmds_need_lc=yes
10158
10159 if test "$enable_shared" = yes && test "$GCC" = yes; then
10160 case $archive_cmds in
10161 *'~'*)
10162 # FIXME: we may have to deal with multi-command sequences.
10163 ;;
10164 '$CC '*)
10165 # Test whether the compiler implicitly links with -lc since on some
10166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10167 # to ld, don't add -lc before -lgcc.
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10170 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 $RM conftest*
10174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10175
10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10177 (eval $ac_compile) 2>&5
10178 ac_status=$?
10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10180 test $ac_status = 0; } 2>conftest.err; then
10181 soname=conftest
10182 lib=conftest
10183 libobjs=conftest.$ac_objext
10184 deplibs=
10185 wl=$lt_prog_compiler_wl
10186 pic_flag=$lt_prog_compiler_pic
10187 compiler_flags=-v
10188 linker_flags=-v
10189 verstring=
10190 output_objdir=.
10191 libname=conftest
10192 lt_save_allow_undefined_flag=$allow_undefined_flag
10193 allow_undefined_flag=
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10195 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10196 ac_status=$?
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; }
10199 then
10200 lt_cv_archive_cmds_need_lc=no
10201 else
10202 lt_cv_archive_cmds_need_lc=yes
10203 fi
10204 allow_undefined_flag=$lt_save_allow_undefined_flag
10205 else
10206 cat conftest.err 1>&5
10207 fi
10208 $RM conftest*
10209
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10212 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10213 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10214 ;;
10215 esac
10216 fi
10217 ;;
10218 esac
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10372 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10373
10374 if test "$GCC" = yes; then
10375 case $host_os in
10376 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10377 *) lt_awk_arg="/^libraries:/" ;;
10378 esac
10379 case $host_os in
10380 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10381 *) lt_sed_strip_eq="s,=/,/,g" ;;
10382 esac
10383 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10384 case $lt_search_path_spec in
10385 *\;*)
10386 # if the path contains ";" then we assume it to be the separator
10387 # otherwise default to the standard path separator (i.e. ":") - it is
10388 # assumed that no part of a normal pathname contains ";" but that should
10389 # okay in the real world where ";" in dirpaths is itself problematic.
10390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10391 ;;
10392 *)
10393 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10394 ;;
10395 esac
10396 # Ok, now we have the path, separated by spaces, we can step through it
10397 # and add multilib dir if necessary.
10398 lt_tmp_lt_search_path_spec=
10399 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10400 for lt_sys_path in $lt_search_path_spec; do
10401 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10403 else
10404 test -d "$lt_sys_path" && \
10405 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10406 fi
10407 done
10408 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10409 BEGIN {RS=" "; FS="/|\n";} {
10410 lt_foo="";
10411 lt_count=0;
10412 for (lt_i = NF; lt_i > 0; lt_i--) {
10413 if ($lt_i != "" && $lt_i != ".") {
10414 if ($lt_i == "..") {
10415 lt_count++;
10416 } else {
10417 if (lt_count == 0) {
10418 lt_foo="/" $lt_i lt_foo;
10419 } else {
10420 lt_count--;
10421 }
10422 }
10423 }
10424 }
10425 if (lt_foo != "") { lt_freq[lt_foo]++; }
10426 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10427 }'`
10428 # AWK program above erroneously prepends '/' to C:/dos/paths
10429 # for these hosts.
10430 case $host_os in
10431 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10432 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10433 esac
10434 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10435 else
10436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10437 fi
10438 library_names_spec=
10439 libname_spec='lib$name'
10440 soname_spec=
10441 shrext_cmds=".so"
10442 postinstall_cmds=
10443 postuninstall_cmds=
10444 finish_cmds=
10445 finish_eval=
10446 shlibpath_var=
10447 shlibpath_overrides_runpath=unknown
10448 version_type=none
10449 dynamic_linker="$host_os ld.so"
10450 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10451 need_lib_prefix=unknown
10452 hardcode_into_libs=no
10453
10454 # when you set need_version to no, make sure it does not cause -set_version
10455 # flags to be left without arguments
10456 need_version=unknown
10457
10458 case $host_os in
10459 aix3*)
10460 version_type=linux # correct to gnu/linux during the next big refactor
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10462 shlibpath_var=LIBPATH
10463
10464 # AIX 3 has no versioning support, so we append a major version to the name.
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 ;;
10467
10468 aix[4-9]*)
10469 version_type=linux # correct to gnu/linux during the next big refactor
10470 need_lib_prefix=no
10471 need_version=no
10472 hardcode_into_libs=yes
10473 if test "$host_cpu" = ia64; then
10474 # AIX 5 supports IA64
10475 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 else
10478 # With GCC up to 2.95.x, collect2 would create an import file
10479 # for dependence libraries. The import file would start with
10480 # the line `#! .'. This would cause the generated library to
10481 # depend on `.', always an invalid library. This was fixed in
10482 # development snapshots of GCC prior to 3.0.
10483 case $host_os in
10484 aix4 | aix4.[01] | aix4.[01].*)
10485 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10486 echo ' yes '
10487 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10488 :
10489 else
10490 can_build_shared=no
10491 fi
10492 ;;
10493 esac
10494 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10495 # soname into executable. Probably we can add versioning support to
10496 # collect2, so additional links can be useful in future.
10497 if test "$aix_use_runtimelinking" = yes; then
10498 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10499 # instead of lib<name>.a to let people know that these are not
10500 # typical AIX shared libraries.
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 else
10503 # We preserve .a as extension for shared libraries through AIX4.2
10504 # and later when we are not doing run time linking.
10505 library_names_spec='${libname}${release}.a $libname.a'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 fi
10508 shlibpath_var=LIBPATH
10509 fi
10510 ;;
10511
10512 amigaos*)
10513 case $host_cpu in
10514 powerpc)
10515 # Since July 2007 AmigaOS4 officially supports .so libraries.
10516 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 ;;
10519 m68k)
10520 library_names_spec='$libname.ixlibrary $libname.a'
10521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10522 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'
10523 ;;
10524 esac
10525 ;;
10526
10527 beos*)
10528 library_names_spec='${libname}${shared_ext}'
10529 dynamic_linker="$host_os ld.so"
10530 shlibpath_var=LIBRARY_PATH
10531 ;;
10532
10533 bsdi[45]*)
10534 version_type=linux # correct to gnu/linux during the next big refactor
10535 need_version=no
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10541 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10542 # the default ld.so.conf also contains /usr/contrib/lib and
10543 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10544 # libtool to hard-code these into programs
10545 ;;
10546
10547 cygwin* | mingw* | pw32* | cegcc*)
10548 version_type=windows
10549 shrext_cmds=".dll"
10550 need_version=no
10551 need_lib_prefix=no
10552
10553 case $GCC,$cc_basename in
10554 yes,*)
10555 # gcc
10556 library_names_spec='$libname.dll.a'
10557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10558 postinstall_cmds='base_file=`basename \${file}`~
10559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10560 dldir=$destdir/`dirname \$dlpath`~
10561 test -d \$dldir || mkdir -p \$dldir~
10562 $install_prog $dir/$dlname \$dldir/$dlname~
10563 chmod a+x \$dldir/$dlname~
10564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10566 fi'
10567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10568 dlpath=$dir/\$dldll~
10569 $RM \$dlpath'
10570 shlibpath_overrides_runpath=yes
10571
10572 case $host_os in
10573 cygwin*)
10574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10576
10577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10578 ;;
10579 mingw* | cegcc*)
10580 # MinGW DLLs use traditional 'lib' prefix
10581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582 ;;
10583 pw32*)
10584 # pw32 DLLs use 'pw' prefix rather than 'lib'
10585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586 ;;
10587 esac
10588 dynamic_linker='Win32 ld.exe'
10589 ;;
10590
10591 *,cl*)
10592 # Native MSVC
10593 libname_spec='$name'
10594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10595 library_names_spec='${libname}.dll.lib'
10596
10597 case $build_os in
10598 mingw*)
10599 sys_lib_search_path_spec=
10600 lt_save_ifs=$IFS
10601 IFS=';'
10602 for lt_path in $LIB
10603 do
10604 IFS=$lt_save_ifs
10605 # Let DOS variable expansion print the short 8.3 style file name.
10606 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10607 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10608 done
10609 IFS=$lt_save_ifs
10610 # Convert to MSYS style.
10611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10612 ;;
10613 cygwin*)
10614 # Convert to unix form, then to dos form, then back to unix form
10615 # but this time dos style (no spaces!) so that the unix form looks
10616 # like /cygdrive/c/PROGRA~1:/cygdr...
10617 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10618 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10619 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10620 ;;
10621 *)
10622 sys_lib_search_path_spec="$LIB"
10623 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10624 # It is most probably a Windows format PATH.
10625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10626 else
10627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10628 fi
10629 # FIXME: find the short name or the path components, as spaces are
10630 # common. (e.g. "Program Files" -> "PROGRA~1")
10631 ;;
10632 esac
10633
10634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10635 postinstall_cmds='base_file=`basename \${file}`~
10636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10637 dldir=$destdir/`dirname \$dlpath`~
10638 test -d \$dldir || mkdir -p \$dldir~
10639 $install_prog $dir/$dlname \$dldir/$dlname'
10640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10641 dlpath=$dir/\$dldll~
10642 $RM \$dlpath'
10643 shlibpath_overrides_runpath=yes
10644 dynamic_linker='Win32 link.exe'
10645 ;;
10646
10647 *)
10648 # Assume MSVC wrapper
10649 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10650 dynamic_linker='Win32 ld.exe'
10651 ;;
10652 esac
10653 # FIXME: first we should search . and the directory the executable is in
10654 shlibpath_var=PATH
10655 ;;
10656
10657 darwin* | rhapsody*)
10658 dynamic_linker="$host_os dyld"
10659 version_type=darwin
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10663 soname_spec='${libname}${release}${major}$shared_ext'
10664 shlibpath_overrides_runpath=yes
10665 shlibpath_var=DYLD_LIBRARY_PATH
10666 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10667
10668 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10670 ;;
10671
10672 dgux*)
10673 version_type=linux # correct to gnu/linux during the next big refactor
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 ;;
10680
10681 freebsd* | dragonfly*)
10682 # DragonFly does not have aout. When/if they implement a new
10683 # versioning mechanism, adjust this.
10684 if test -x /usr/bin/objformat; then
10685 objformat=`/usr/bin/objformat`
10686 else
10687 case $host_os in
10688 freebsd[23].*) objformat=aout ;;
10689 *) objformat=elf ;;
10690 esac
10691 fi
10692 version_type=freebsd-$objformat
10693 case $version_type in
10694 freebsd-elf*)
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10696 need_version=no
10697 need_lib_prefix=no
10698 ;;
10699 freebsd-*)
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10701 need_version=yes
10702 ;;
10703 esac
10704 shlibpath_var=LD_LIBRARY_PATH
10705 case $host_os in
10706 freebsd2.*)
10707 shlibpath_overrides_runpath=yes
10708 ;;
10709 freebsd3.[01]* | freebsdelf3.[01]*)
10710 shlibpath_overrides_runpath=yes
10711 hardcode_into_libs=yes
10712 ;;
10713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10715 shlibpath_overrides_runpath=no
10716 hardcode_into_libs=yes
10717 ;;
10718 *) # from 4.6 on, and DragonFly
10719 shlibpath_overrides_runpath=yes
10720 hardcode_into_libs=yes
10721 ;;
10722 esac
10723 ;;
10724
10725 haiku*)
10726 version_type=linux # correct to gnu/linux during the next big refactor
10727 need_lib_prefix=no
10728 need_version=no
10729 dynamic_linker="$host_os runtime_loader"
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 shlibpath_var=LIBRARY_PATH
10733 shlibpath_overrides_runpath=yes
10734 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10735 hardcode_into_libs=yes
10736 ;;
10737
10738 hpux9* | hpux10* | hpux11*)
10739 # Give a soname corresponding to the major version so that dld.sl refuses to
10740 # link against other versions.
10741 version_type=sunos
10742 need_lib_prefix=no
10743 need_version=no
10744 case $host_cpu in
10745 ia64*)
10746 shrext_cmds='.so'
10747 hardcode_into_libs=yes
10748 dynamic_linker="$host_os dld.so"
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 if test "X$HPUX_IA64_MODE" = X32; then
10754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10755 else
10756 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10757 fi
10758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10759 ;;
10760 hppa*64*)
10761 shrext_cmds='.sl'
10762 hardcode_into_libs=yes
10763 dynamic_linker="$host_os dld.sl"
10764 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10770 ;;
10771 *)
10772 shrext_cmds='.sl'
10773 dynamic_linker="$host_os dld.sl"
10774 shlibpath_var=SHLIB_PATH
10775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 ;;
10779 esac
10780 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10781 postinstall_cmds='chmod 555 $lib'
10782 # or fails outright, so override atomically:
10783 install_override_mode=555
10784 ;;
10785
10786 interix[3-9]*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=no
10795 hardcode_into_libs=yes
10796 ;;
10797
10798 irix5* | irix6* | nonstopux*)
10799 case $host_os in
10800 nonstopux*) version_type=nonstopux ;;
10801 *)
10802 if test "$lt_cv_prog_gnu_ld" = yes; then
10803 version_type=linux # correct to gnu/linux during the next big refactor
10804 else
10805 version_type=irix
10806 fi ;;
10807 esac
10808 need_lib_prefix=no
10809 need_version=no
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10812 case $host_os in
10813 irix5* | nonstopux*)
10814 libsuff= shlibsuff=
10815 ;;
10816 *)
10817 case $LD in # libtool.m4 will add one of these switches to LD
10818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10819 libsuff= shlibsuff= libmagic=32-bit;;
10820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10821 libsuff=32 shlibsuff=N32 libmagic=N32;;
10822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10823 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10824 *) libsuff= shlibsuff= libmagic=never-match;;
10825 esac
10826 ;;
10827 esac
10828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10829 shlibpath_overrides_runpath=no
10830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10832 hardcode_into_libs=yes
10833 ;;
10834
10835 # No shared lib support for Linux oldld, aout, or coff.
10836 linux*oldld* | linux*aout* | linux*coff*)
10837 dynamic_linker=no
10838 ;;
10839
10840 # This must be glibc/ELF.
10841 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10842 version_type=linux # correct to gnu/linux during the next big refactor
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=no
10850
10851 # Some binutils ld are patched to set DT_RUNPATH
10852 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 lt_cv_shlibpath_overrides_runpath=no
10856 save_LDFLAGS=$LDFLAGS
10857 save_libdir=$libdir
10858 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10859 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862
10863 int
10864 main ()
10865 {
10866
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10873 lt_cv_shlibpath_overrides_runpath=yes
10874 fi
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LDFLAGS=$save_LDFLAGS
10879 libdir=$save_libdir
10880
10881 fi
10882
10883 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10884
10885 # This implies no fast_install, which is unacceptable.
10886 # Some rework will be needed to allow for fast_install
10887 # before this can be enabled.
10888 hardcode_into_libs=yes
10889
10890 # Append ld.so.conf contents to the search path
10891 if test -f /etc/ld.so.conf; then
10892 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' ' '`
10893 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10894 fi
10895
10896 # We used to test for /lib/ld.so.1 and disable shared libraries on
10897 # powerpc, because MkLinux only supported shared libraries with the
10898 # GNU dynamic linker. Since this was broken with cross compilers,
10899 # most powerpc-linux boxes support dynamic linking these days and
10900 # people can always --disable-shared, the test was removed, and we
10901 # assume the GNU/Linux dynamic linker is in use.
10902 dynamic_linker='GNU/Linux ld.so'
10903 ;;
10904
10905 netbsdelf*-gnu)
10906 version_type=linux
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10914 dynamic_linker='NetBSD ld.elf_so'
10915 ;;
10916
10917 netbsd*)
10918 version_type=sunos
10919 need_lib_prefix=no
10920 need_version=no
10921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10924 dynamic_linker='NetBSD (a.out) ld.so'
10925 else
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 dynamic_linker='NetBSD ld.elf_so'
10929 fi
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10932 hardcode_into_libs=yes
10933 ;;
10934
10935 newsos6)
10936 version_type=linux # correct to gnu/linux during the next big refactor
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10940 ;;
10941
10942 *nto* | *qnx*)
10943 version_type=qnx
10944 need_lib_prefix=no
10945 need_version=no
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10951 dynamic_linker='ldqnx.so'
10952 ;;
10953
10954 openbsd*)
10955 version_type=sunos
10956 sys_lib_dlsearch_path_spec="/usr/lib"
10957 need_lib_prefix=no
10958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10959 case $host_os in
10960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10961 *) need_version=no ;;
10962 esac
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10967 case $host_os in
10968 openbsd2.[89] | openbsd2.[89].*)
10969 shlibpath_overrides_runpath=no
10970 ;;
10971 *)
10972 shlibpath_overrides_runpath=yes
10973 ;;
10974 esac
10975 else
10976 shlibpath_overrides_runpath=yes
10977 fi
10978 ;;
10979
10980 os2*)
10981 libname_spec='$name'
10982 shrext_cmds=".dll"
10983 need_lib_prefix=no
10984 library_names_spec='$libname${shared_ext} $libname.a'
10985 dynamic_linker='OS/2 ld.exe'
10986 shlibpath_var=LIBPATH
10987 ;;
10988
10989 osf3* | osf4* | osf5*)
10990 version_type=osf
10991 need_lib_prefix=no
10992 need_version=no
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10998 ;;
10999
11000 rdos*)
11001 dynamic_linker=no
11002 ;;
11003
11004 solaris*)
11005 version_type=linux # correct to gnu/linux during the next big refactor
11006 need_lib_prefix=no
11007 need_version=no
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 hardcode_into_libs=yes
11013 # ldd complains unless libraries are executable
11014 postinstall_cmds='chmod +x $lib'
11015 ;;
11016
11017 sunos4*)
11018 version_type=sunos
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes
11023 if test "$with_gnu_ld" = yes; then
11024 need_lib_prefix=no
11025 fi
11026 need_version=yes
11027 ;;
11028
11029 sysv4 | sysv4.3*)
11030 version_type=linux # correct to gnu/linux during the next big refactor
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 case $host_vendor in
11035 sni)
11036 shlibpath_overrides_runpath=no
11037 need_lib_prefix=no
11038 runpath_var=LD_RUN_PATH
11039 ;;
11040 siemens)
11041 need_lib_prefix=no
11042 ;;
11043 motorola)
11044 need_lib_prefix=no
11045 need_version=no
11046 shlibpath_overrides_runpath=no
11047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11048 ;;
11049 esac
11050 ;;
11051
11052 sysv4*MP*)
11053 if test -d /usr/nec ;then
11054 version_type=linux # correct to gnu/linux during the next big refactor
11055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11056 soname_spec='$libname${shared_ext}.$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 fi
11059 ;;
11060
11061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11062 version_type=freebsd-elf
11063 need_lib_prefix=no
11064 need_version=no
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11066 soname_spec='${libname}${release}${shared_ext}$major'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes
11069 hardcode_into_libs=yes
11070 if test "$with_gnu_ld" = yes; then
11071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11072 else
11073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11074 case $host_os in
11075 sco3.2v5*)
11076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11077 ;;
11078 esac
11079 fi
11080 sys_lib_dlsearch_path_spec='/usr/lib'
11081 ;;
11082
11083 tpf*)
11084 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11085 version_type=linux # correct to gnu/linux during the next big refactor
11086 need_lib_prefix=no
11087 need_version=no
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=no
11091 hardcode_into_libs=yes
11092 ;;
11093
11094 uts4*)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 ;;
11100
11101 *)
11102 dynamic_linker=no
11103 ;;
11104 esac
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11106 $as_echo "$dynamic_linker" >&6; }
11107 test "$dynamic_linker" = no && can_build_shared=no
11108
11109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11110 if test "$GCC" = yes; then
11111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11112 fi
11113
11114 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11116 fi
11117 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11118 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11119 fi
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11213 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11214 hardcode_action=
11215 if test -n "$hardcode_libdir_flag_spec" ||
11216 test -n "$runpath_var" ||
11217 test "X$hardcode_automatic" = "Xyes" ; then
11218
11219 # We can hardcode non-existent directories.
11220 if test "$hardcode_direct" != no &&
11221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11222 # have to relink, otherwise we might link with an installed library
11223 # when we should be linking with a yet-to-be-installed one
11224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11225 test "$hardcode_minus_L" != no; then
11226 # Linking always hardcodes the temporary library directory.
11227 hardcode_action=relink
11228 else
11229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11230 hardcode_action=immediate
11231 fi
11232 else
11233 # We cannot hardcode anything, or else we can only hardcode existing
11234 # directories.
11235 hardcode_action=unsupported
11236 fi
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11238 $as_echo "$hardcode_action" >&6; }
11239
11240 if test "$hardcode_action" = relink ||
11241 test "$inherit_rpath" = yes; then
11242 # Fast installation is not supported
11243 enable_fast_install=no
11244 elif test "$shlibpath_overrides_runpath" = yes ||
11245 test "$enable_shared" = no; then
11246 # Fast installation is not necessary
11247 enable_fast_install=needless
11248 fi
11249
11250
11251
11252
11253
11254
11255 if test "x$enable_dlopen" != xyes; then
11256 enable_dlopen=unknown
11257 enable_dlopen_self=unknown
11258 enable_dlopen_self_static=unknown
11259 else
11260 lt_cv_dlopen=no
11261 lt_cv_dlopen_libs=
11262
11263 case $host_os in
11264 beos*)
11265 lt_cv_dlopen="load_add_on"
11266 lt_cv_dlopen_libs=
11267 lt_cv_dlopen_self=yes
11268 ;;
11269
11270 mingw* | pw32* | cegcc*)
11271 lt_cv_dlopen="LoadLibrary"
11272 lt_cv_dlopen_libs=
11273 ;;
11274
11275 cygwin*)
11276 lt_cv_dlopen="dlopen"
11277 lt_cv_dlopen_libs=
11278 ;;
11279
11280 darwin*)
11281 # if libdl is installed we need to link against it
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11284 if ${ac_cv_lib_dl_dlopen+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_lib_save_LIBS=$LIBS
11288 LIBS="-ldl $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char dlopen ();
11299 int
11300 main ()
11301 {
11302 return dlopen ();
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 ac_cv_lib_dl_dlopen=yes
11309 else
11310 ac_cv_lib_dl_dlopen=no
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11318 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11320 else
11321
11322 lt_cv_dlopen="dyld"
11323 lt_cv_dlopen_libs=
11324 lt_cv_dlopen_self=yes
11325
11326 fi
11327
11328 ;;
11329
11330 *)
11331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11332 if test "x$ac_cv_func_shl_load" = xyes; then :
11333 lt_cv_dlopen="shl_load"
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11336 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11337 if ${ac_cv_lib_dld_shl_load+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-ldld $LIBS"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char shl_load ();
11352 int
11353 main ()
11354 {
11355 return shl_load ();
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 ac_cv_lib_dld_shl_load=yes
11362 else
11363 ac_cv_lib_dld_shl_load=no
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11370 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11371 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11373 else
11374 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11375 if test "x$ac_cv_func_dlopen" = xyes; then :
11376 lt_cv_dlopen="dlopen"
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11380 if ${ac_cv_lib_dl_dlopen+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-ldl $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char dlopen ();
11395 int
11396 main ()
11397 {
11398 return dlopen ();
11399 ;
11400 return 0;
11401 }
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_dl_dlopen=yes
11405 else
11406 ac_cv_lib_dl_dlopen=no
11407 fi
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11418 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11419 if ${ac_cv_lib_svld_dlopen+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 ac_check_lib_save_LIBS=$LIBS
11423 LIBS="-lsvld $LIBS"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 char dlopen ();
11434 int
11435 main ()
11436 {
11437 return dlopen ();
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443 ac_cv_lib_svld_dlopen=yes
11444 else
11445 ac_cv_lib_svld_dlopen=no
11446 fi
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 LIBS=$ac_check_lib_save_LIBS
11450 fi
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11452 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11453 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11457 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11458 if ${ac_cv_lib_dld_dld_link+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-ldld $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char dld_link ();
11473 int
11474 main ()
11475 {
11476 return dld_link ();
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_dld_dld_link=yes
11483 else
11484 ac_cv_lib_dld_dld_link=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11491 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11492 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11493 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11494 fi
11495
11496
11497 fi
11498
11499
11500 fi
11501
11502
11503 fi
11504
11505
11506 fi
11507
11508
11509 fi
11510
11511 ;;
11512 esac
11513
11514 if test "x$lt_cv_dlopen" != xno; then
11515 enable_dlopen=yes
11516 else
11517 enable_dlopen=no
11518 fi
11519
11520 case $lt_cv_dlopen in
11521 dlopen)
11522 save_CPPFLAGS="$CPPFLAGS"
11523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11524
11525 save_LDFLAGS="$LDFLAGS"
11526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11527
11528 save_LIBS="$LIBS"
11529 LIBS="$lt_cv_dlopen_libs $LIBS"
11530
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11532 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11533 if ${lt_cv_dlopen_self+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 if test "$cross_compiling" = yes; then :
11537 lt_cv_dlopen_self=cross
11538 else
11539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11540 lt_status=$lt_dlunknown
11541 cat > conftest.$ac_ext <<_LT_EOF
11542 #line $LINENO "configure"
11543 #include "confdefs.h"
11544
11545 #if HAVE_DLFCN_H
11546 #include <dlfcn.h>
11547 #endif
11548
11549 #include <stdio.h>
11550
11551 #ifdef RTLD_GLOBAL
11552 # define LT_DLGLOBAL RTLD_GLOBAL
11553 #else
11554 # ifdef DL_GLOBAL
11555 # define LT_DLGLOBAL DL_GLOBAL
11556 # else
11557 # define LT_DLGLOBAL 0
11558 # endif
11559 #endif
11560
11561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11562 find out it does not work in some platform. */
11563 #ifndef LT_DLLAZY_OR_NOW
11564 # ifdef RTLD_LAZY
11565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11566 # else
11567 # ifdef DL_LAZY
11568 # define LT_DLLAZY_OR_NOW DL_LAZY
11569 # else
11570 # ifdef RTLD_NOW
11571 # define LT_DLLAZY_OR_NOW RTLD_NOW
11572 # else
11573 # ifdef DL_NOW
11574 # define LT_DLLAZY_OR_NOW DL_NOW
11575 # else
11576 # define LT_DLLAZY_OR_NOW 0
11577 # endif
11578 # endif
11579 # endif
11580 # endif
11581 #endif
11582
11583 /* When -fvisbility=hidden is used, assume the code has been annotated
11584 correspondingly for the symbols needed. */
11585 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11586 int fnord () __attribute__((visibility("default")));
11587 #endif
11588
11589 int fnord () { return 42; }
11590 int main ()
11591 {
11592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11593 int status = $lt_dlunknown;
11594
11595 if (self)
11596 {
11597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11598 else
11599 {
11600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11601 else puts (dlerror ());
11602 }
11603 /* dlclose (self); */
11604 }
11605 else
11606 puts (dlerror ());
11607
11608 return status;
11609 }
11610 _LT_EOF
11611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11616 (./conftest; exit; ) >&5 2>/dev/null
11617 lt_status=$?
11618 case x$lt_status in
11619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11621 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11622 esac
11623 else :
11624 # compilation failed
11625 lt_cv_dlopen_self=no
11626 fi
11627 fi
11628 rm -fr conftest*
11629
11630
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11633 $as_echo "$lt_cv_dlopen_self" >&6; }
11634
11635 if test "x$lt_cv_dlopen_self" = xyes; then
11636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11638 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11639 if ${lt_cv_dlopen_self_static+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 if test "$cross_compiling" = yes; then :
11643 lt_cv_dlopen_self_static=cross
11644 else
11645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11646 lt_status=$lt_dlunknown
11647 cat > conftest.$ac_ext <<_LT_EOF
11648 #line $LINENO "configure"
11649 #include "confdefs.h"
11650
11651 #if HAVE_DLFCN_H
11652 #include <dlfcn.h>
11653 #endif
11654
11655 #include <stdio.h>
11656
11657 #ifdef RTLD_GLOBAL
11658 # define LT_DLGLOBAL RTLD_GLOBAL
11659 #else
11660 # ifdef DL_GLOBAL
11661 # define LT_DLGLOBAL DL_GLOBAL
11662 # else
11663 # define LT_DLGLOBAL 0
11664 # endif
11665 #endif
11666
11667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11668 find out it does not work in some platform. */
11669 #ifndef LT_DLLAZY_OR_NOW
11670 # ifdef RTLD_LAZY
11671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11672 # else
11673 # ifdef DL_LAZY
11674 # define LT_DLLAZY_OR_NOW DL_LAZY
11675 # else
11676 # ifdef RTLD_NOW
11677 # define LT_DLLAZY_OR_NOW RTLD_NOW
11678 # else
11679 # ifdef DL_NOW
11680 # define LT_DLLAZY_OR_NOW DL_NOW
11681 # else
11682 # define LT_DLLAZY_OR_NOW 0
11683 # endif
11684 # endif
11685 # endif
11686 # endif
11687 #endif
11688
11689 /* When -fvisbility=hidden is used, assume the code has been annotated
11690 correspondingly for the symbols needed. */
11691 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11692 int fnord () __attribute__((visibility("default")));
11693 #endif
11694
11695 int fnord () { return 42; }
11696 int main ()
11697 {
11698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11699 int status = $lt_dlunknown;
11700
11701 if (self)
11702 {
11703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11704 else
11705 {
11706 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11707 else puts (dlerror ());
11708 }
11709 /* dlclose (self); */
11710 }
11711 else
11712 puts (dlerror ());
11713
11714 return status;
11715 }
11716 _LT_EOF
11717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11718 (eval $ac_link) 2>&5
11719 ac_status=$?
11720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11722 (./conftest; exit; ) >&5 2>/dev/null
11723 lt_status=$?
11724 case x$lt_status in
11725 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11726 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11727 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11728 esac
11729 else :
11730 # compilation failed
11731 lt_cv_dlopen_self_static=no
11732 fi
11733 fi
11734 rm -fr conftest*
11735
11736
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11739 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11740 fi
11741
11742 CPPFLAGS="$save_CPPFLAGS"
11743 LDFLAGS="$save_LDFLAGS"
11744 LIBS="$save_LIBS"
11745 ;;
11746 esac
11747
11748 case $lt_cv_dlopen_self in
11749 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11750 *) enable_dlopen_self=unknown ;;
11751 esac
11752
11753 case $lt_cv_dlopen_self_static in
11754 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11755 *) enable_dlopen_self_static=unknown ;;
11756 esac
11757 fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 striplib=
11776 old_striplib=
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11778 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11779 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11780 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11781 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11783 $as_echo "yes" >&6; }
11784 else
11785 # FIXME - insert some real tests, host_os isn't really good enough
11786 case $host_os in
11787 darwin*)
11788 if test -n "$STRIP" ; then
11789 striplib="$STRIP -x"
11790 old_striplib="$STRIP -S"
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 $as_echo "yes" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11796 fi
11797 ;;
11798 *)
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 ;;
11802 esac
11803 fi
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 # Report which library types will actually be built
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11818 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11820 $as_echo "$can_build_shared" >&6; }
11821
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11823 $as_echo_n "checking whether to build shared libraries... " >&6; }
11824 test "$can_build_shared" = "no" && enable_shared=no
11825
11826 # On AIX, shared libraries and static libraries use the same namespace, and
11827 # are all built from PIC.
11828 case $host_os in
11829 aix3*)
11830 test "$enable_shared" = yes && enable_static=no
11831 if test -n "$RANLIB"; then
11832 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11833 postinstall_cmds='$RANLIB $lib'
11834 fi
11835 ;;
11836
11837 aix[4-9]*)
11838 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11839 test "$enable_shared" = yes && enable_static=no
11840 fi
11841 ;;
11842 esac
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11844 $as_echo "$enable_shared" >&6; }
11845
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11847 $as_echo_n "checking whether to build static libraries... " >&6; }
11848 # Make sure either enable_shared or enable_static is yes.
11849 test "$enable_shared" = yes || enable_static=yes
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11851 $as_echo "$enable_static" >&6; }
11852
11853
11854
11855
11856 fi
11857 ac_ext=c
11858 ac_cpp='$CPP $CPPFLAGS'
11859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11862
11863 CC="$lt_save_CC"
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879 ac_config_commands="$ac_config_commands libtool"
11880
11881
11882
11883
11884 # Only expand once:
11885
11886
11887
11888
11889
11890 # Check for C++ compiler and use it to compile the tests.
11891 #
11892 ac_ext=cpp
11893 ac_cpp='$CXXCPP $CPPFLAGS'
11894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11897 if test -z "$CXX"; then
11898 if test -n "$CCC"; then
11899 CXX=$CCC
11900 else
11901 if test -n "$ac_tool_prefix"; then
11902 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11903 do
11904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if ${ac_cv_prog_CXX+:} false; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 if test -n "$CXX"; then
11912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11913 else
11914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH
11916 do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925 done
11926 done
11927 IFS=$as_save_IFS
11928
11929 fi
11930 fi
11931 CXX=$ac_cv_prog_CXX
11932 if test -n "$CXX"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11934 $as_echo "$CXX" >&6; }
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938 fi
11939
11940
11941 test -n "$CXX" && break
11942 done
11943 fi
11944 if test -z "$CXX"; then
11945 ac_ct_CXX=$CXX
11946 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11947 do
11948 # Extract the first word of "$ac_prog", so it can be a program name with args.
11949 set dummy $ac_prog; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if test -n "$ac_ct_CXX"; then
11956 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_prog_ac_ct_CXX="$ac_prog"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11968 fi
11969 done
11970 done
11971 IFS=$as_save_IFS
11972
11973 fi
11974 fi
11975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11976 if test -n "$ac_ct_CXX"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11978 $as_echo "$ac_ct_CXX" >&6; }
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 fi
11983
11984
11985 test -n "$ac_ct_CXX" && break
11986 done
11987
11988 if test "x$ac_ct_CXX" = x; then
11989 CXX="g++"
11990 else
11991 case $cross_compiling:$ac_tool_warned in
11992 yes:)
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11995 ac_tool_warned=yes ;;
11996 esac
11997 CXX=$ac_ct_CXX
11998 fi
11999 fi
12000
12001 fi
12002 fi
12003 # Provide some information about the compiler.
12004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12005 set X $ac_compile
12006 ac_compiler=$2
12007 for ac_option in --version -v -V -qversion; do
12008 { { ac_try="$ac_compiler $ac_option >&5"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012 esac
12013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12014 $as_echo "$ac_try_echo"; } >&5
12015 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12016 ac_status=$?
12017 if test -s conftest.err; then
12018 sed '10a\
12019 ... rest of stderr output deleted ...
12020 10q' conftest.err >conftest.er1
12021 cat conftest.er1 >&5
12022 fi
12023 rm -f conftest.er1 conftest.err
12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12025 test $ac_status = 0; }
12026 done
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12029 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12030 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035
12036 int
12037 main ()
12038 {
12039 #ifndef __GNUC__
12040 choke me
12041 #endif
12042
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_cxx_try_compile "$LINENO"; then :
12048 ac_compiler_gnu=yes
12049 else
12050 ac_compiler_gnu=no
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12054
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12057 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12058 if test $ac_compiler_gnu = yes; then
12059 GXX=yes
12060 else
12061 GXX=
12062 fi
12063 ac_test_CXXFLAGS=${CXXFLAGS+set}
12064 ac_save_CXXFLAGS=$CXXFLAGS
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12066 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12067 if ${ac_cv_prog_cxx_g+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12071 ac_cxx_werror_flag=yes
12072 ac_cv_prog_cxx_g=no
12073 CXXFLAGS="-g"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076
12077 int
12078 main ()
12079 {
12080
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_cxx_try_compile "$LINENO"; then :
12086 ac_cv_prog_cxx_g=yes
12087 else
12088 CXXFLAGS=""
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091
12092 int
12093 main ()
12094 {
12095
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_cxx_try_compile "$LINENO"; then :
12101
12102 else
12103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12104 CXXFLAGS="-g"
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107
12108 int
12109 main ()
12110 {
12111
12112 ;
12113 return 0;
12114 }
12115 _ACEOF
12116 if ac_fn_cxx_try_compile "$LINENO"; then :
12117 ac_cv_prog_cxx_g=yes
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120 fi
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12125 fi
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12127 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12128 if test "$ac_test_CXXFLAGS" = set; then
12129 CXXFLAGS=$ac_save_CXXFLAGS
12130 elif test $ac_cv_prog_cxx_g = yes; then
12131 if test "$GXX" = yes; then
12132 CXXFLAGS="-g -O2"
12133 else
12134 CXXFLAGS="-g"
12135 fi
12136 else
12137 if test "$GXX" = yes; then
12138 CXXFLAGS="-O2"
12139 else
12140 CXXFLAGS=
12141 fi
12142 fi
12143 ac_ext=c
12144 ac_cpp='$CPP $CPPFLAGS'
12145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12148
12149 depcc="$CXX" am_compiler_list=
12150
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12152 $as_echo_n "checking dependency style of $depcc... " >&6; }
12153 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12157 # We make a subdir and do the tests there. Otherwise we can end up
12158 # making bogus files that we don't know about and never remove. For
12159 # instance it was reported that on HP-UX the gcc test will end up
12160 # making a dummy file named 'D' -- because '-MD' means "put the output
12161 # in D".
12162 rm -rf conftest.dir
12163 mkdir conftest.dir
12164 # Copy depcomp to subdir because otherwise we won't find it if we're
12165 # using a relative directory.
12166 cp "$am_depcomp" conftest.dir
12167 cd conftest.dir
12168 # We will build objects and dependencies in a subdirectory because
12169 # it helps to detect inapplicable dependency modes. For instance
12170 # both Tru64's cc and ICC support -MD to output dependencies as a
12171 # side effect of compilation, but ICC will put the dependencies in
12172 # the current directory while Tru64 will put them in the object
12173 # directory.
12174 mkdir sub
12175
12176 am_cv_CXX_dependencies_compiler_type=none
12177 if test "$am_compiler_list" = ""; then
12178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12179 fi
12180 am__universal=false
12181 case " $depcc " in #(
12182 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12183 esac
12184
12185 for depmode in $am_compiler_list; do
12186 # Setup a source with many dependencies, because some compilers
12187 # like to wrap large dependency lists on column 80 (with \), and
12188 # we should not choose a depcomp mode which is confused by this.
12189 #
12190 # We need to recreate these files for each test, as the compiler may
12191 # overwrite some of them when testing with obscure command lines.
12192 # This happens at least with the AIX C compiler.
12193 : > sub/conftest.c
12194 for i in 1 2 3 4 5 6; do
12195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12196 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12197 # Solaris 10 /bin/sh.
12198 echo '/* dummy */' > sub/conftst$i.h
12199 done
12200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12201
12202 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12203 # mode. It turns out that the SunPro C++ compiler does not properly
12204 # handle '-M -o', and we need to detect this. Also, some Intel
12205 # versions had trouble with output in subdirs.
12206 am__obj=sub/conftest.${OBJEXT-o}
12207 am__minus_obj="-o $am__obj"
12208 case $depmode in
12209 gcc)
12210 # This depmode causes a compiler race in universal mode.
12211 test "$am__universal" = false || continue
12212 ;;
12213 nosideeffect)
12214 # After this tag, mechanisms are not by side-effect, so they'll
12215 # only be used when explicitly requested.
12216 if test "x$enable_dependency_tracking" = xyes; then
12217 continue
12218 else
12219 break
12220 fi
12221 ;;
12222 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12223 # This compiler won't grok '-c -o', but also, the minuso test has
12224 # not run yet. These depmodes are late enough in the game, and
12225 # so weak that their functioning should not be impacted.
12226 am__obj=conftest.${OBJEXT-o}
12227 am__minus_obj=
12228 ;;
12229 none) break ;;
12230 esac
12231 if depmode=$depmode \
12232 source=sub/conftest.c object=$am__obj \
12233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12235 >/dev/null 2>conftest.err &&
12236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12240 # icc doesn't choke on unknown options, it will just issue warnings
12241 # or remarks (even with -Werror). So we grep stderr for any message
12242 # that says an option was ignored or not supported.
12243 # When given -MP, icc 7.0 and 7.1 complain thusly:
12244 # icc: Command line warning: ignoring option '-M'; no argument required
12245 # The diagnosis changed in icc 8.0:
12246 # icc: Command line remark: option '-MP' not supported
12247 if (grep 'ignoring option' conftest.err ||
12248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12249 am_cv_CXX_dependencies_compiler_type=$depmode
12250 break
12251 fi
12252 fi
12253 done
12254
12255 cd ..
12256 rm -rf conftest.dir
12257 else
12258 am_cv_CXX_dependencies_compiler_type=none
12259 fi
12260
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12263 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12264 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12265
12266 if
12267 test "x$enable_dependency_tracking" != xno \
12268 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12269 am__fastdepCXX_TRUE=
12270 am__fastdepCXX_FALSE='#'
12271 else
12272 am__fastdepCXX_TRUE='#'
12273 am__fastdepCXX_FALSE=
12274 fi
12275
12276
12277
12278
12279 func_stripname_cnf ()
12280 {
12281 case ${2} in
12282 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12283 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12284 esac
12285 } # func_stripname_cnf
12286
12287 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12288 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12289 (test "X$CXX" != "Xg++"))) ; then
12290 ac_ext=cpp
12291 ac_cpp='$CXXCPP $CPPFLAGS'
12292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12296 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12297 if test -z "$CXXCPP"; then
12298 if ${ac_cv_prog_CXXCPP+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 # Double quotes because CXXCPP needs to be expanded
12302 for CXXCPP in "$CXX -E" "/lib/cpp"
12303 do
12304 ac_preproc_ok=false
12305 for ac_cxx_preproc_warn_flag in '' yes
12306 do
12307 # Use a header file that comes with gcc, so configuring glibc
12308 # with a fresh cross-compiler works.
12309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12310 # <limits.h> exists even on freestanding compilers.
12311 # On the NeXT, cc -E runs the code through the compiler's parser,
12312 # not just through cpp. "Syntax error" is here to catch this case.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 #ifdef __STDC__
12316 # include <limits.h>
12317 #else
12318 # include <assert.h>
12319 #endif
12320 Syntax error
12321 _ACEOF
12322 if ac_fn_cxx_try_cpp "$LINENO"; then :
12323
12324 else
12325 # Broken: fails on valid input.
12326 continue
12327 fi
12328 rm -f conftest.err conftest.i conftest.$ac_ext
12329
12330 # OK, works on sane cases. Now check whether nonexistent headers
12331 # can be detected and how.
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 #include <ac_nonexistent.h>
12335 _ACEOF
12336 if ac_fn_cxx_try_cpp "$LINENO"; then :
12337 # Broken: success on invalid input.
12338 continue
12339 else
12340 # Passes both tests.
12341 ac_preproc_ok=:
12342 break
12343 fi
12344 rm -f conftest.err conftest.i conftest.$ac_ext
12345
12346 done
12347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12348 rm -f conftest.i conftest.err conftest.$ac_ext
12349 if $ac_preproc_ok; then :
12350 break
12351 fi
12352
12353 done
12354 ac_cv_prog_CXXCPP=$CXXCPP
12355
12356 fi
12357 CXXCPP=$ac_cv_prog_CXXCPP
12358 else
12359 ac_cv_prog_CXXCPP=$CXXCPP
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12362 $as_echo "$CXXCPP" >&6; }
12363 ac_preproc_ok=false
12364 for ac_cxx_preproc_warn_flag in '' yes
12365 do
12366 # Use a header file that comes with gcc, so configuring glibc
12367 # with a fresh cross-compiler works.
12368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 # <limits.h> exists even on freestanding compilers.
12370 # On the NeXT, cc -E runs the code through the compiler's parser,
12371 # not just through cpp. "Syntax error" is here to catch this case.
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 #ifdef __STDC__
12375 # include <limits.h>
12376 #else
12377 # include <assert.h>
12378 #endif
12379 Syntax error
12380 _ACEOF
12381 if ac_fn_cxx_try_cpp "$LINENO"; then :
12382
12383 else
12384 # Broken: fails on valid input.
12385 continue
12386 fi
12387 rm -f conftest.err conftest.i conftest.$ac_ext
12388
12389 # OK, works on sane cases. Now check whether nonexistent headers
12390 # can be detected and how.
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 #include <ac_nonexistent.h>
12394 _ACEOF
12395 if ac_fn_cxx_try_cpp "$LINENO"; then :
12396 # Broken: success on invalid input.
12397 continue
12398 else
12399 # Passes both tests.
12400 ac_preproc_ok=:
12401 break
12402 fi
12403 rm -f conftest.err conftest.i conftest.$ac_ext
12404
12405 done
12406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12407 rm -f conftest.i conftest.err conftest.$ac_ext
12408 if $ac_preproc_ok; then :
12409
12410 else
12411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12413 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12414 See \`config.log' for more details" "$LINENO" 5; }
12415 fi
12416
12417 ac_ext=c
12418 ac_cpp='$CPP $CPPFLAGS'
12419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12422
12423 else
12424 _lt_caught_CXX_error=yes
12425 fi
12426
12427 ac_ext=cpp
12428 ac_cpp='$CXXCPP $CPPFLAGS'
12429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12432
12433 archive_cmds_need_lc_CXX=no
12434 allow_undefined_flag_CXX=
12435 always_export_symbols_CXX=no
12436 archive_expsym_cmds_CXX=
12437 compiler_needs_object_CXX=no
12438 export_dynamic_flag_spec_CXX=
12439 hardcode_direct_CXX=no
12440 hardcode_direct_absolute_CXX=no
12441 hardcode_libdir_flag_spec_CXX=
12442 hardcode_libdir_separator_CXX=
12443 hardcode_minus_L_CXX=no
12444 hardcode_shlibpath_var_CXX=unsupported
12445 hardcode_automatic_CXX=no
12446 inherit_rpath_CXX=no
12447 module_cmds_CXX=
12448 module_expsym_cmds_CXX=
12449 link_all_deplibs_CXX=unknown
12450 old_archive_cmds_CXX=$old_archive_cmds
12451 reload_flag_CXX=$reload_flag
12452 reload_cmds_CXX=$reload_cmds
12453 no_undefined_flag_CXX=
12454 whole_archive_flag_spec_CXX=
12455 enable_shared_with_static_runtimes_CXX=no
12456
12457 # Source file extension for C++ test sources.
12458 ac_ext=cpp
12459
12460 # Object file extension for compiled C++ test sources.
12461 objext=o
12462 objext_CXX=$objext
12463
12464 # No sense in running all these tests if we already determined that
12465 # the CXX compiler isn't working. Some variables (like enable_shared)
12466 # are currently assumed to apply to all compilers on this platform,
12467 # and will be corrupted by setting them based on a non-working compiler.
12468 if test "$_lt_caught_CXX_error" != yes; then
12469 # Code to be used in simple compile tests
12470 lt_simple_compile_test_code="int some_variable = 0;"
12471
12472 # Code to be used in simple link tests
12473 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12474
12475 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12476
12477
12478
12479
12480
12481
12482 # If no C compiler was specified, use CC.
12483 LTCC=${LTCC-"$CC"}
12484
12485 # If no C compiler flags were specified, use CFLAGS.
12486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12487
12488 # Allow CC to be a program name with arguments.
12489 compiler=$CC
12490
12491
12492 # save warnings/boilerplate of simple test code
12493 ac_outfile=conftest.$ac_objext
12494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12496 _lt_compiler_boilerplate=`cat conftest.err`
12497 $RM conftest*
12498
12499 ac_outfile=conftest.$ac_objext
12500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12502 _lt_linker_boilerplate=`cat conftest.err`
12503 $RM -r conftest*
12504
12505
12506 # Allow CC to be a program name with arguments.
12507 lt_save_CC=$CC
12508 lt_save_CFLAGS=$CFLAGS
12509 lt_save_LD=$LD
12510 lt_save_GCC=$GCC
12511 GCC=$GXX
12512 lt_save_with_gnu_ld=$with_gnu_ld
12513 lt_save_path_LD=$lt_cv_path_LD
12514 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12515 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12516 else
12517 $as_unset lt_cv_prog_gnu_ld
12518 fi
12519 if test -n "${lt_cv_path_LDCXX+set}"; then
12520 lt_cv_path_LD=$lt_cv_path_LDCXX
12521 else
12522 $as_unset lt_cv_path_LD
12523 fi
12524 test -z "${LDCXX+set}" || LD=$LDCXX
12525 CC=${CXX-"c++"}
12526 CFLAGS=$CXXFLAGS
12527 compiler=$CC
12528 compiler_CXX=$CC
12529 for cc_temp in $compiler""; do
12530 case $cc_temp in
12531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12533 \-*) ;;
12534 *) break;;
12535 esac
12536 done
12537 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12538
12539
12540 if test -n "$compiler"; then
12541 # We don't want -fno-exception when compiling C++ code, so set the
12542 # no_builtin_flag separately
12543 if test "$GXX" = yes; then
12544 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12545 else
12546 lt_prog_compiler_no_builtin_flag_CXX=
12547 fi
12548
12549 if test "$GXX" = yes; then
12550 # Set up default GNU C++ configuration
12551
12552
12553
12554 # Check whether --with-gnu-ld was given.
12555 if test "${with_gnu_ld+set}" = set; then :
12556 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12557 else
12558 with_gnu_ld=no
12559 fi
12560
12561 ac_prog=ld
12562 if test "$GCC" = yes; then
12563 # Check if gcc -print-prog-name=ld gives a path.
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12565 $as_echo_n "checking for ld used by $CC... " >&6; }
12566 case $host in
12567 *-*-mingw*)
12568 # gcc leaves a trailing carriage return which upsets mingw
12569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12570 *)
12571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12572 esac
12573 case $ac_prog in
12574 # Accept absolute paths.
12575 [\\/]* | ?:[\\/]*)
12576 re_direlt='/[^/][^/]*/\.\./'
12577 # Canonicalize the pathname of ld
12578 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12579 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12580 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12581 done
12582 test -z "$LD" && LD="$ac_prog"
12583 ;;
12584 "")
12585 # If it fails, then pretend we aren't using GCC.
12586 ac_prog=ld
12587 ;;
12588 *)
12589 # If it is relative, then search for the first ld in PATH.
12590 with_gnu_ld=unknown
12591 ;;
12592 esac
12593 elif test "$with_gnu_ld" = yes; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12595 $as_echo_n "checking for GNU ld... " >&6; }
12596 else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12598 $as_echo_n "checking for non-GNU ld... " >&6; }
12599 fi
12600 if ${lt_cv_path_LD+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 if test -z "$LD"; then
12604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12605 for ac_dir in $PATH; do
12606 IFS="$lt_save_ifs"
12607 test -z "$ac_dir" && ac_dir=.
12608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12609 lt_cv_path_LD="$ac_dir/$ac_prog"
12610 # Check to see if the program is GNU ld. I'd rather use --version,
12611 # but apparently some variants of GNU ld only accept -v.
12612 # Break only if it was the GNU/non-GNU ld that we prefer.
12613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12614 *GNU* | *'with BFD'*)
12615 test "$with_gnu_ld" != no && break
12616 ;;
12617 *)
12618 test "$with_gnu_ld" != yes && break
12619 ;;
12620 esac
12621 fi
12622 done
12623 IFS="$lt_save_ifs"
12624 else
12625 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12626 fi
12627 fi
12628
12629 LD="$lt_cv_path_LD"
12630 if test -n "$LD"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12632 $as_echo "$LD" >&6; }
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12639 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12640 if ${lt_cv_prog_gnu_ld+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12644 case `$LD -v 2>&1 </dev/null` in
12645 *GNU* | *'with BFD'*)
12646 lt_cv_prog_gnu_ld=yes
12647 ;;
12648 *)
12649 lt_cv_prog_gnu_ld=no
12650 ;;
12651 esac
12652 fi
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12654 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12655 with_gnu_ld=$lt_cv_prog_gnu_ld
12656
12657
12658
12659
12660
12661
12662
12663 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12664 # archiving commands below assume that GNU ld is being used.
12665 if test "$with_gnu_ld" = yes; then
12666 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 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'
12668
12669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12671
12672 # If archive_cmds runs LD, not CC, wlarc should be empty
12673 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12674 # investigate it a little bit more. (MM)
12675 wlarc='${wl}'
12676
12677 # ancient GNU ld didn't support --whole-archive et. al.
12678 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12679 $GREP 'no-whole-archive' > /dev/null; then
12680 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12681 else
12682 whole_archive_flag_spec_CXX=
12683 fi
12684 else
12685 with_gnu_ld=no
12686 wlarc=
12687
12688 # A generic and very simple default shared library creation
12689 # command for GNU C++ for the case where it uses the native
12690 # linker, instead of GNU ld. If possible, this setting should
12691 # overridden to take advantage of the native linker features on
12692 # the platform it is being used on.
12693 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12694 fi
12695
12696 # Commands to make compiler produce verbose output that lists
12697 # what "hidden" libraries, object files and flags are used when
12698 # linking a shared library.
12699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12700
12701 else
12702 GXX=no
12703 with_gnu_ld=no
12704 wlarc=
12705 fi
12706
12707 # PORTME: fill in a description of your system's C++ link characteristics
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12709 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12710 ld_shlibs_CXX=yes
12711 case $host_os in
12712 aix3*)
12713 # FIXME: insert proper C++ library support
12714 ld_shlibs_CXX=no
12715 ;;
12716 aix[4-9]*)
12717 if test "$host_cpu" = ia64; then
12718 # On IA64, the linker does run time linking by default, so we don't
12719 # have to do anything special.
12720 aix_use_runtimelinking=no
12721 exp_sym_flag='-Bexport'
12722 no_entry_flag=""
12723 else
12724 aix_use_runtimelinking=no
12725
12726 # Test if we are trying to use run time linking or normal
12727 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12728 # need to do runtime linking.
12729 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12730 for ld_flag in $LDFLAGS; do
12731 case $ld_flag in
12732 *-brtl*)
12733 aix_use_runtimelinking=yes
12734 break
12735 ;;
12736 esac
12737 done
12738 ;;
12739 esac
12740
12741 exp_sym_flag='-bexport'
12742 no_entry_flag='-bnoentry'
12743 fi
12744
12745 # When large executables or shared objects are built, AIX ld can
12746 # have problems creating the table of contents. If linking a library
12747 # or program results in "error TOC overflow" add -mminimal-toc to
12748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12750
12751 archive_cmds_CXX=''
12752 hardcode_direct_CXX=yes
12753 hardcode_direct_absolute_CXX=yes
12754 hardcode_libdir_separator_CXX=':'
12755 link_all_deplibs_CXX=yes
12756 file_list_spec_CXX='${wl}-f,'
12757
12758 if test "$GXX" = yes; then
12759 case $host_os in aix4.[012]|aix4.[012].*)
12760 # We only want to do this on AIX 4.2 and lower, the check
12761 # below for broken collect2 doesn't work under 4.3+
12762 collect2name=`${CC} -print-prog-name=collect2`
12763 if test -f "$collect2name" &&
12764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12765 then
12766 # We have reworked collect2
12767 :
12768 else
12769 # We have old collect2
12770 hardcode_direct_CXX=unsupported
12771 # It fails to find uninstalled libraries when the uninstalled
12772 # path is not listed in the libpath. Setting hardcode_minus_L
12773 # to unsupported forces relinking
12774 hardcode_minus_L_CXX=yes
12775 hardcode_libdir_flag_spec_CXX='-L$libdir'
12776 hardcode_libdir_separator_CXX=
12777 fi
12778 esac
12779 shared_flag='-shared'
12780 if test "$aix_use_runtimelinking" = yes; then
12781 shared_flag="$shared_flag "'${wl}-G'
12782 fi
12783 else
12784 # not using gcc
12785 if test "$host_cpu" = ia64; then
12786 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12787 # chokes on -Wl,-G. The following line is correct:
12788 shared_flag='-G'
12789 else
12790 if test "$aix_use_runtimelinking" = yes; then
12791 shared_flag='${wl}-G'
12792 else
12793 shared_flag='${wl}-bM:SRE'
12794 fi
12795 fi
12796 fi
12797
12798 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12799 # It seems that -bexpall does not export symbols beginning with
12800 # underscore (_), so it is better to generate a list of symbols to
12801 # export.
12802 always_export_symbols_CXX=yes
12803 if test "$aix_use_runtimelinking" = yes; then
12804 # Warning - without using the other runtime loading flags (-brtl),
12805 # -berok will link without error, but may produce a broken library.
12806 allow_undefined_flag_CXX='-berok'
12807 # Determine the default libpath from the value encoded in an empty
12808 # executable.
12809 if test "${lt_cv_aix_libpath+set}" = set; then
12810 aix_libpath=$lt_cv_aix_libpath
12811 else
12812 if ${lt_cv_aix_libpath__CXX+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817
12818 int
12819 main ()
12820 {
12821
12822 ;
12823 return 0;
12824 }
12825 _ACEOF
12826 if ac_fn_cxx_try_link "$LINENO"; then :
12827
12828 lt_aix_libpath_sed='
12829 /Import File Strings/,/^$/ {
12830 /^0/ {
12831 s/^0 *\([^ ]*\) *$/\1/
12832 p
12833 }
12834 }'
12835 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12836 # Check for a 64-bit object if we didn't find anything.
12837 if test -z "$lt_cv_aix_libpath__CXX"; then
12838 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12839 fi
12840 fi
12841 rm -f core conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 if test -z "$lt_cv_aix_libpath__CXX"; then
12844 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12845 fi
12846
12847 fi
12848
12849 aix_libpath=$lt_cv_aix_libpath__CXX
12850 fi
12851
12852 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12853
12854 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"
12855 else
12856 if test "$host_cpu" = ia64; then
12857 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12858 allow_undefined_flag_CXX="-z nodefs"
12859 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"
12860 else
12861 # Determine the default libpath from the value encoded in an
12862 # empty executable.
12863 if test "${lt_cv_aix_libpath+set}" = set; then
12864 aix_libpath=$lt_cv_aix_libpath
12865 else
12866 if ${lt_cv_aix_libpath__CXX+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871
12872 int
12873 main ()
12874 {
12875
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_cxx_try_link "$LINENO"; then :
12881
12882 lt_aix_libpath_sed='
12883 /Import File Strings/,/^$/ {
12884 /^0/ {
12885 s/^0 *\([^ ]*\) *$/\1/
12886 p
12887 }
12888 }'
12889 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12890 # Check for a 64-bit object if we didn't find anything.
12891 if test -z "$lt_cv_aix_libpath__CXX"; then
12892 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12893 fi
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 if test -z "$lt_cv_aix_libpath__CXX"; then
12898 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12899 fi
12900
12901 fi
12902
12903 aix_libpath=$lt_cv_aix_libpath__CXX
12904 fi
12905
12906 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12907 # Warning - without using the other run time loading flags,
12908 # -berok will link without error, but may produce a broken library.
12909 no_undefined_flag_CXX=' ${wl}-bernotok'
12910 allow_undefined_flag_CXX=' ${wl}-berok'
12911 if test "$with_gnu_ld" = yes; then
12912 # We only use this code for GNU lds that support --whole-archive.
12913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12914 else
12915 # Exported symbols can be pulled into shared objects from archives
12916 whole_archive_flag_spec_CXX='$convenience'
12917 fi
12918 archive_cmds_need_lc_CXX=yes
12919 # This is similar to how AIX traditionally builds its shared
12920 # libraries.
12921 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'
12922 fi
12923 fi
12924 ;;
12925
12926 beos*)
12927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12928 allow_undefined_flag_CXX=unsupported
12929 # Joseph Beckenbach <[email protected]> says some releases of gcc
12930 # support --undefined. This deserves some investigation. FIXME
12931 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 else
12933 ld_shlibs_CXX=no
12934 fi
12935 ;;
12936
12937 chorus*)
12938 case $cc_basename in
12939 *)
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12942 ;;
12943 esac
12944 ;;
12945
12946 cygwin* | mingw* | pw32* | cegcc*)
12947 case $GXX,$cc_basename in
12948 ,cl* | no,cl*)
12949 # Native MSVC
12950 # hardcode_libdir_flag_spec is actually meaningless, as there is
12951 # no search path for DLLs.
12952 hardcode_libdir_flag_spec_CXX=' '
12953 allow_undefined_flag_CXX=unsupported
12954 always_export_symbols_CXX=yes
12955 file_list_spec_CXX='@'
12956 # Tell ltmain to make .lib files, not .a files.
12957 libext=lib
12958 # Tell ltmain to make .dll files, not .so files.
12959 shrext_cmds=".dll"
12960 # FIXME: Setting linknames here is a bad hack.
12961 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12962 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12963 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12964 else
12965 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12966 fi~
12967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12968 linknames='
12969 # The linker will not automatically build a static lib if we build a DLL.
12970 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12971 enable_shared_with_static_runtimes_CXX=yes
12972 # Don't use ranlib
12973 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12974 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12975 lt_tool_outputfile="@TOOL_OUTPUT@"~
12976 case $lt_outputfile in
12977 *.exe|*.EXE) ;;
12978 *)
12979 lt_outputfile="$lt_outputfile.exe"
12980 lt_tool_outputfile="$lt_tool_outputfile.exe"
12981 ;;
12982 esac~
12983 func_to_tool_file "$lt_outputfile"~
12984 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12985 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12986 $RM "$lt_outputfile.manifest";
12987 fi'
12988 ;;
12989 *)
12990 # g++
12991 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12992 # as there is no search path for DLLs.
12993 hardcode_libdir_flag_spec_CXX='-L$libdir'
12994 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12995 allow_undefined_flag_CXX=unsupported
12996 always_export_symbols_CXX=no
12997 enable_shared_with_static_runtimes_CXX=yes
12998
12999 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13000 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'
13001 # If the export-symbols file already is a .def file (1st line
13002 # is EXPORTS), use it as is; otherwise, prepend...
13003 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13004 cp $export_symbols $output_objdir/$soname.def;
13005 else
13006 echo EXPORTS > $output_objdir/$soname.def;
13007 cat $export_symbols >> $output_objdir/$soname.def;
13008 fi~
13009 $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'
13010 else
13011 ld_shlibs_CXX=no
13012 fi
13013 ;;
13014 esac
13015 ;;
13016 darwin* | rhapsody*)
13017
13018
13019 archive_cmds_need_lc_CXX=no
13020 hardcode_direct_CXX=no
13021 hardcode_automatic_CXX=yes
13022 hardcode_shlibpath_var_CXX=unsupported
13023 if test "$lt_cv_ld_force_load" = "yes"; then
13024 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\"`'
13025
13026 else
13027 whole_archive_flag_spec_CXX=''
13028 fi
13029 link_all_deplibs_CXX=yes
13030 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13031 case $cc_basename in
13032 ifort*) _lt_dar_can_shared=yes ;;
13033 *) _lt_dar_can_shared=$GCC ;;
13034 esac
13035 if test "$_lt_dar_can_shared" = "yes"; then
13036 output_verbose_link_cmd=func_echo_all
13037 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}"
13038 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13039 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}"
13040 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}"
13041 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13042 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}"
13043 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}"
13044 fi
13045
13046 else
13047 ld_shlibs_CXX=no
13048 fi
13049
13050 ;;
13051
13052 dgux*)
13053 case $cc_basename in
13054 ec++*)
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13057 ;;
13058 ghcx*)
13059 # Green Hills C++ Compiler
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13062 ;;
13063 *)
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13066 ;;
13067 esac
13068 ;;
13069
13070 freebsd2.*)
13071 # C++ shared libraries reported to be fairly broken before
13072 # switch to ELF
13073 ld_shlibs_CXX=no
13074 ;;
13075
13076 freebsd-elf*)
13077 archive_cmds_need_lc_CXX=no
13078 ;;
13079
13080 freebsd* | dragonfly*)
13081 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13082 # conventions
13083 ld_shlibs_CXX=yes
13084 ;;
13085
13086 haiku*)
13087 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 link_all_deplibs_CXX=yes
13089 ;;
13090
13091 hpux9*)
13092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13093 hardcode_libdir_separator_CXX=:
13094 export_dynamic_flag_spec_CXX='${wl}-E'
13095 hardcode_direct_CXX=yes
13096 hardcode_minus_L_CXX=yes # Not in the search PATH,
13097 # but as the default
13098 # location of the library.
13099
13100 case $cc_basename in
13101 CC*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13104 ;;
13105 aCC*)
13106 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'
13107 # Commands to make compiler produce verbose output that lists
13108 # what "hidden" libraries, object files and flags are used when
13109 # linking a shared library.
13110 #
13111 # There doesn't appear to be a way to prevent this compiler from
13112 # explicitly linking system object files so we need to strip them
13113 # from the output so that they don't get included in the library
13114 # dependencies.
13115 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"'
13116 ;;
13117 *)
13118 if test "$GXX" = yes; then
13119 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'
13120 else
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13123 fi
13124 ;;
13125 esac
13126 ;;
13127
13128 hpux10*|hpux11*)
13129 if test $with_gnu_ld = no; then
13130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13131 hardcode_libdir_separator_CXX=:
13132
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13135 ;;
13136 *)
13137 export_dynamic_flag_spec_CXX='${wl}-E'
13138 ;;
13139 esac
13140 fi
13141 case $host_cpu in
13142 hppa*64*|ia64*)
13143 hardcode_direct_CXX=no
13144 hardcode_shlibpath_var_CXX=no
13145 ;;
13146 *)
13147 hardcode_direct_CXX=yes
13148 hardcode_direct_absolute_CXX=yes
13149 hardcode_minus_L_CXX=yes # Not in the search PATH,
13150 # but as the default
13151 # location of the library.
13152 ;;
13153 esac
13154
13155 case $cc_basename in
13156 CC*)
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 ;;
13160 aCC*)
13161 case $host_cpu in
13162 hppa*64*)
13163 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164 ;;
13165 ia64*)
13166 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 ;;
13168 *)
13169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13170 ;;
13171 esac
13172 # Commands to make compiler produce verbose output that lists
13173 # what "hidden" libraries, object files and flags are used when
13174 # linking a shared library.
13175 #
13176 # There doesn't appear to be a way to prevent this compiler from
13177 # explicitly linking system object files so we need to strip them
13178 # from the output so that they don't get included in the library
13179 # dependencies.
13180 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"'
13181 ;;
13182 *)
13183 if test "$GXX" = yes; then
13184 if test $with_gnu_ld = no; then
13185 case $host_cpu in
13186 hppa*64*)
13187 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188 ;;
13189 ia64*)
13190 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191 ;;
13192 *)
13193 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'
13194 ;;
13195 esac
13196 fi
13197 else
13198 # FIXME: insert proper C++ library support
13199 ld_shlibs_CXX=no
13200 fi
13201 ;;
13202 esac
13203 ;;
13204
13205 interix[3-9]*)
13206 hardcode_direct_CXX=no
13207 hardcode_shlibpath_var_CXX=no
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209 export_dynamic_flag_spec_CXX='${wl}-E'
13210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13211 # Instead, shared libraries are loaded at an image base (0x10000000 by
13212 # default) and relocated if they conflict, which is a slow very memory
13213 # consuming and fragmenting process. To avoid this, we pick a random,
13214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13216 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'
13217 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'
13218 ;;
13219 irix5* | irix6*)
13220 case $cc_basename in
13221 CC*)
13222 # SGI C++
13223 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'
13224
13225 # Archives containing C++ object files must be created using
13226 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13227 # necessary to make sure instantiated templates are included
13228 # in the archive.
13229 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13230 ;;
13231 *)
13232 if test "$GXX" = yes; then
13233 if test "$with_gnu_ld" = no; then
13234 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'
13235 else
13236 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'
13237 fi
13238 fi
13239 link_all_deplibs_CXX=yes
13240 ;;
13241 esac
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243 hardcode_libdir_separator_CXX=:
13244 inherit_rpath_CXX=yes
13245 ;;
13246
13247 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13248 case $cc_basename in
13249 KCC*)
13250 # Kuck and Associates, Inc. (KAI) C++ Compiler
13251
13252 # KCC will only create a shared library if the output file
13253 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13254 # to its proper name (with version) after linking.
13255 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'
13256 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'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13260 #
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13264 # dependencies.
13265 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"'
13266
13267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13269
13270 # Archives containing C++ object files must be created using
13271 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13272 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13273 ;;
13274 icpc* | ecpc* )
13275 # Intel C++
13276 with_gnu_ld=yes
13277 # version 8.0 and above of icpc choke on multiply defined symbols
13278 # if we add $predep_objects and $postdep_objects, however 7.1 and
13279 # earlier do not add the objects themselves.
13280 case `$CC -V 2>&1` in
13281 *"Version 7."*)
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283 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'
13284 ;;
13285 *) # Version 8.0 or newer
13286 tmp_idyn=
13287 case $host_cpu in
13288 ia64*) tmp_idyn=' -i_dynamic';;
13289 esac
13290 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 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'
13292 ;;
13293 esac
13294 archive_cmds_need_lc_CXX=no
13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13297 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13298 ;;
13299 pgCC* | pgcpp*)
13300 # Portland Group C++ compiler
13301 case `$CC -V` in
13302 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13303 prelink_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13306 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13307 old_archive_cmds_CXX='tpldir=Template.dir~
13308 rm -rf $tpldir~
13309 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13310 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13311 $RANLIB $oldlib'
13312 archive_cmds_CXX='tpldir=Template.dir~
13313 rm -rf $tpldir~
13314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13316 archive_expsym_cmds_CXX='tpldir=Template.dir~
13317 rm -rf $tpldir~
13318 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13319 $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'
13320 ;;
13321 *) # Version 6 and above use weak symbols
13322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323 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'
13324 ;;
13325 esac
13326
13327 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329 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'
13330 ;;
13331 cxx*)
13332 # Compaq C++
13333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 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'
13335
13336 runpath_var=LD_RUN_PATH
13337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13338 hardcode_libdir_separator_CXX=:
13339
13340 # Commands to make compiler produce verbose output that lists
13341 # what "hidden" libraries, object files and flags are used when
13342 # linking a shared library.
13343 #
13344 # There doesn't appear to be a way to prevent this compiler from
13345 # explicitly linking system object files so we need to strip them
13346 # from the output so that they don't get included in the library
13347 # dependencies.
13348 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'
13349 ;;
13350 xl* | mpixl* | bgxl*)
13351 # IBM XL 8.0 on PPC, with GNU ld
13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13354 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 if test "x$supports_anon_versioning" = xyes; then
13356 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13358 echo "local: *; };" >> $output_objdir/$libname.ver~
13359 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13360 fi
13361 ;;
13362 *)
13363 case `$CC -V 2>&1 | sed 5q` in
13364 *Sun\ C*)
13365 # Sun C++ 5.9
13366 no_undefined_flag_CXX=' -zdefs'
13367 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368 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'
13369 hardcode_libdir_flag_spec_CXX='-R$libdir'
13370 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'
13371 compiler_needs_object_CXX=yes
13372
13373 # Not sure whether something based on
13374 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13375 # would be better.
13376 output_verbose_link_cmd='func_echo_all'
13377
13378 # Archives containing C++ object files must be created using
13379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13381 # in the archive.
13382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13383 ;;
13384 esac
13385 ;;
13386 esac
13387 ;;
13388
13389 lynxos*)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13392 ;;
13393
13394 m88k*)
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13397 ;;
13398
13399 mvs*)
13400 case $cc_basename in
13401 cxx*)
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13404 ;;
13405 *)
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13408 ;;
13409 esac
13410 ;;
13411
13412 netbsd*)
13413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13414 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13415 wlarc=
13416 hardcode_libdir_flag_spec_CXX='-R$libdir'
13417 hardcode_direct_CXX=yes
13418 hardcode_shlibpath_var_CXX=no
13419 fi
13420 # Workaround some broken pre-1.5 toolchains
13421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13422 ;;
13423
13424 *nto* | *qnx*)
13425 ld_shlibs_CXX=yes
13426 ;;
13427
13428 openbsd2*)
13429 # C++ shared libraries are fairly broken
13430 ld_shlibs_CXX=no
13431 ;;
13432
13433 openbsd*)
13434 if test -f /usr/libexec/ld.so; then
13435 hardcode_direct_CXX=yes
13436 hardcode_shlibpath_var_CXX=no
13437 hardcode_direct_absolute_CXX=yes
13438 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13441 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13442 export_dynamic_flag_spec_CXX='${wl}-E'
13443 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13444 fi
13445 output_verbose_link_cmd=func_echo_all
13446 else
13447 ld_shlibs_CXX=no
13448 fi
13449 ;;
13450
13451 osf3* | osf4* | osf5*)
13452 case $cc_basename in
13453 KCC*)
13454 # Kuck and Associates, Inc. (KAI) C++ Compiler
13455
13456 # KCC will only create a shared library if the output file
13457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13458 # to its proper name (with version) after linking.
13459 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'
13460
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462 hardcode_libdir_separator_CXX=:
13463
13464 # Archives containing C++ object files must be created using
13465 # the KAI C++ compiler.
13466 case $host in
13467 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13468 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13469 esac
13470 ;;
13471 RCC*)
13472 # Rational C++ 2.4.1
13473 # FIXME: insert proper C++ library support
13474 ld_shlibs_CXX=no
13475 ;;
13476 cxx*)
13477 case $host in
13478 osf3*)
13479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480 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'
13481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13482 ;;
13483 *)
13484 allow_undefined_flag_CXX=' -expect_unresolved \*'
13485 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'
13486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13487 echo "-hidden">> $lib.exp~
13488 $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~
13489 $RM $lib.exp'
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491 ;;
13492 esac
13493
13494 hardcode_libdir_separator_CXX=:
13495
13496 # Commands to make compiler produce verbose output that lists
13497 # what "hidden" libraries, object files and flags are used when
13498 # linking a shared library.
13499 #
13500 # There doesn't appear to be a way to prevent this compiler from
13501 # explicitly linking system object files so we need to strip them
13502 # from the output so that they don't get included in the library
13503 # dependencies.
13504 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"'
13505 ;;
13506 *)
13507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509 case $host in
13510 osf3*)
13511 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'
13512 ;;
13513 *)
13514 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'
13515 ;;
13516 esac
13517
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_CXX=:
13520
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13525
13526 else
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13529 fi
13530 ;;
13531 esac
13532 ;;
13533
13534 psos*)
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13537 ;;
13538
13539 sunos4*)
13540 case $cc_basename in
13541 CC*)
13542 # Sun C++ 4.x
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13545 ;;
13546 lcc*)
13547 # Lucid
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551 *)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555 esac
13556 ;;
13557
13558 solaris*)
13559 case $cc_basename in
13560 CC* | sunCC*)
13561 # Sun C++ 4.2, 5.x and Centerline C++
13562 archive_cmds_need_lc_CXX=yes
13563 no_undefined_flag_CXX=' -zdefs'
13564 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13565 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566 $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'
13567
13568 hardcode_libdir_flag_spec_CXX='-R$libdir'
13569 hardcode_shlibpath_var_CXX=no
13570 case $host_os in
13571 solaris2.[0-5] | solaris2.[0-5].*) ;;
13572 *)
13573 # The compiler driver will combine and reorder linker options,
13574 # but understands `-z linker_flag'.
13575 # Supported since Solaris 2.6 (maybe 2.5.1?)
13576 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13577 ;;
13578 esac
13579 link_all_deplibs_CXX=yes
13580
13581 output_verbose_link_cmd='func_echo_all'
13582
13583 # Archives containing C++ object files must be created using
13584 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13585 # necessary to make sure instantiated templates are included
13586 # in the archive.
13587 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13588 ;;
13589 gcx*)
13590 # Green Hills C++ Compiler
13591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592
13593 # The C++ compiler must be used to create the archive.
13594 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13595 ;;
13596 *)
13597 # GNU C++ compiler with Solaris linker
13598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13599 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13600 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13601 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13604
13605 # Commands to make compiler produce verbose output that lists
13606 # what "hidden" libraries, object files and flags are used when
13607 # linking a shared library.
13608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13609 else
13610 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13611 # platform.
13612 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13613 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13615
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13620 fi
13621
13622 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623 case $host_os in
13624 solaris2.[0-5] | solaris2.[0-5].*) ;;
13625 *)
13626 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13627 ;;
13628 esac
13629 fi
13630 ;;
13631 esac
13632 ;;
13633
13634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635 no_undefined_flag_CXX='${wl}-z,text'
13636 archive_cmds_need_lc_CXX=no
13637 hardcode_shlibpath_var_CXX=no
13638 runpath_var='LD_RUN_PATH'
13639
13640 case $cc_basename in
13641 CC*)
13642 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 ;;
13645 *)
13646 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 ;;
13649 esac
13650 ;;
13651
13652 sysv5* | sco3.2v5* | sco5v6*)
13653 # Note: We can NOT use -z defs as we might desire, because we do not
13654 # link with -lc, and that would cause any symbols used from libc to
13655 # always be unresolved, which means just about no library would
13656 # ever link correctly. If we're not using GNU ld we use -z text
13657 # though, which does catch some bad symbols but isn't as heavy-handed
13658 # as -z defs.
13659 no_undefined_flag_CXX='${wl}-z,text'
13660 allow_undefined_flag_CXX='${wl}-z,nodefs'
13661 archive_cmds_need_lc_CXX=no
13662 hardcode_shlibpath_var_CXX=no
13663 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13664 hardcode_libdir_separator_CXX=':'
13665 link_all_deplibs_CXX=yes
13666 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13667 runpath_var='LD_RUN_PATH'
13668
13669 case $cc_basename in
13670 CC*)
13671 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13674 '"$old_archive_cmds_CXX"
13675 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13676 '"$reload_cmds_CXX"
13677 ;;
13678 *)
13679 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 ;;
13682 esac
13683 ;;
13684
13685 tandem*)
13686 case $cc_basename in
13687 NCC*)
13688 # NonStop-UX NCC 3.20
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13691 ;;
13692 *)
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13695 ;;
13696 esac
13697 ;;
13698
13699 vxworks*)
13700 # FIXME: insert proper C++ library support
13701 ld_shlibs_CXX=no
13702 ;;
13703
13704 *)
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 esac
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13711 $as_echo "$ld_shlibs_CXX" >&6; }
13712 test "$ld_shlibs_CXX" = no && can_build_shared=no
13713
13714 GCC_CXX="$GXX"
13715 LD_CXX="$LD"
13716
13717 ## CAVEAT EMPTOR:
13718 ## There is no encapsulation within the following macros, do not change
13719 ## the running order or otherwise move them around unless you know exactly
13720 ## what you are doing...
13721 # Dependencies to place before and after the object being linked:
13722 predep_objects_CXX=
13723 postdep_objects_CXX=
13724 predeps_CXX=
13725 postdeps_CXX=
13726 compiler_lib_search_path_CXX=
13727
13728 cat > conftest.$ac_ext <<_LT_EOF
13729 class Foo
13730 {
13731 public:
13732 Foo (void) { a = 0; }
13733 private:
13734 int a;
13735 };
13736 _LT_EOF
13737
13738
13739 _lt_libdeps_save_CFLAGS=$CFLAGS
13740 case "$CC $CFLAGS " in #(
13741 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13742 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13743 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13744 esac
13745
13746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13747 (eval $ac_compile) 2>&5
13748 ac_status=$?
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 # Parse the compiler output and extract the necessary
13752 # objects, libraries and library flags.
13753
13754 # Sentinel used to keep track of whether or not we are before
13755 # the conftest object file.
13756 pre_test_object_deps_done=no
13757
13758 for p in `eval "$output_verbose_link_cmd"`; do
13759 case ${prev}${p} in
13760
13761 -L* | -R* | -l*)
13762 # Some compilers place space between "-{L,R}" and the path.
13763 # Remove the space.
13764 if test $p = "-L" ||
13765 test $p = "-R"; then
13766 prev=$p
13767 continue
13768 fi
13769
13770 # Expand the sysroot to ease extracting the directories later.
13771 if test -z "$prev"; then
13772 case $p in
13773 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13774 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13775 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13776 esac
13777 fi
13778 case $p in
13779 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13780 esac
13781 if test "$pre_test_object_deps_done" = no; then
13782 case ${prev} in
13783 -L | -R)
13784 # Internal compiler library paths should come after those
13785 # provided the user. The postdeps already come after the
13786 # user supplied libs so there is no need to process them.
13787 if test -z "$compiler_lib_search_path_CXX"; then
13788 compiler_lib_search_path_CXX="${prev}${p}"
13789 else
13790 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13791 fi
13792 ;;
13793 # The "-l" case would never come before the object being
13794 # linked, so don't bother handling this case.
13795 esac
13796 else
13797 if test -z "$postdeps_CXX"; then
13798 postdeps_CXX="${prev}${p}"
13799 else
13800 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13801 fi
13802 fi
13803 prev=
13804 ;;
13805
13806 *.lto.$objext) ;; # Ignore GCC LTO objects
13807 *.$objext)
13808 # This assumes that the test object file only shows up
13809 # once in the compiler output.
13810 if test "$p" = "conftest.$objext"; then
13811 pre_test_object_deps_done=yes
13812 continue
13813 fi
13814
13815 if test "$pre_test_object_deps_done" = no; then
13816 if test -z "$predep_objects_CXX"; then
13817 predep_objects_CXX="$p"
13818 else
13819 predep_objects_CXX="$predep_objects_CXX $p"
13820 fi
13821 else
13822 if test -z "$postdep_objects_CXX"; then
13823 postdep_objects_CXX="$p"
13824 else
13825 postdep_objects_CXX="$postdep_objects_CXX $p"
13826 fi
13827 fi
13828 ;;
13829
13830 *) ;; # Ignore the rest.
13831
13832 esac
13833 done
13834
13835 # Clean up.
13836 rm -f a.out a.exe
13837 else
13838 echo "libtool.m4: error: problem compiling CXX test program"
13839 fi
13840
13841 $RM -f confest.$objext
13842 CFLAGS=$_lt_libdeps_save_CFLAGS
13843
13844 # PORTME: override above test on systems where it is broken
13845 case $host_os in
13846 interix[3-9]*)
13847 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13848 # hack all around it, let's just trust "g++" to DTRT.
13849 predep_objects_CXX=
13850 postdep_objects_CXX=
13851 postdeps_CXX=
13852 ;;
13853
13854 linux*)
13855 case `$CC -V 2>&1 | sed 5q` in
13856 *Sun\ C*)
13857 # Sun C++ 5.9
13858
13859 # The more standards-conforming stlport4 library is
13860 # incompatible with the Cstd library. Avoid specifying
13861 # it if it's in CXXFLAGS. Ignore libCrun as
13862 # -library=stlport4 depends on it.
13863 case " $CXX $CXXFLAGS " in
13864 *" -library=stlport4 "*)
13865 solaris_use_stlport4=yes
13866 ;;
13867 esac
13868
13869 if test "$solaris_use_stlport4" != yes; then
13870 postdeps_CXX='-library=Cstd -library=Crun'
13871 fi
13872 ;;
13873 esac
13874 ;;
13875
13876 solaris*)
13877 case $cc_basename in
13878 CC* | sunCC*)
13879 # The more standards-conforming stlport4 library is
13880 # incompatible with the Cstd library. Avoid specifying
13881 # it if it's in CXXFLAGS. Ignore libCrun as
13882 # -library=stlport4 depends on it.
13883 case " $CXX $CXXFLAGS " in
13884 *" -library=stlport4 "*)
13885 solaris_use_stlport4=yes
13886 ;;
13887 esac
13888
13889 # Adding this requires a known-good setup of shared libraries for
13890 # Sun compiler versions before 5.6, else PIC objects from an old
13891 # archive will be linked into the output, leading to subtle bugs.
13892 if test "$solaris_use_stlport4" != yes; then
13893 postdeps_CXX='-library=Cstd -library=Crun'
13894 fi
13895 ;;
13896 esac
13897 ;;
13898 esac
13899
13900
13901 case " $postdeps_CXX " in
13902 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13903 esac
13904 compiler_lib_search_dirs_CXX=
13905 if test -n "${compiler_lib_search_path_CXX}"; then
13906 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13907 fi
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939 lt_prog_compiler_wl_CXX=
13940 lt_prog_compiler_pic_CXX=
13941 lt_prog_compiler_static_CXX=
13942
13943
13944 # C++ specific cases for pic, static, wl, etc.
13945 if test "$GXX" = yes; then
13946 lt_prog_compiler_wl_CXX='-Wl,'
13947 lt_prog_compiler_static_CXX='-static'
13948
13949 case $host_os in
13950 aix*)
13951 # All AIX code is PIC.
13952 if test "$host_cpu" = ia64; then
13953 # AIX 5 now supports IA64 processor
13954 lt_prog_compiler_static_CXX='-Bstatic'
13955 fi
13956 ;;
13957
13958 amigaos*)
13959 case $host_cpu in
13960 powerpc)
13961 # see comment about AmigaOS4 .so support
13962 lt_prog_compiler_pic_CXX='-fPIC'
13963 ;;
13964 m68k)
13965 # FIXME: we need at least 68020 code to build shared libraries, but
13966 # adding the `-m68020' flag to GCC prevents building anything better,
13967 # like `-m68040'.
13968 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13969 ;;
13970 esac
13971 ;;
13972
13973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13974 # PIC is the default for these OSes.
13975 ;;
13976 mingw* | cygwin* | os2* | pw32* | cegcc*)
13977 # This hack is so that the source file can tell whether it is being
13978 # built for inclusion in a dll (and should export symbols for example).
13979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13980 # (--disable-auto-import) libraries
13981 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13982 ;;
13983 darwin* | rhapsody*)
13984 # PIC is the default on this platform
13985 # Common symbols not allowed in MH_DYLIB files
13986 lt_prog_compiler_pic_CXX='-fno-common'
13987 ;;
13988 *djgpp*)
13989 # DJGPP does not support shared libraries at all
13990 lt_prog_compiler_pic_CXX=
13991 ;;
13992 haiku*)
13993 # PIC is the default for Haiku.
13994 # The "-static" flag exists, but is broken.
13995 lt_prog_compiler_static_CXX=
13996 ;;
13997 interix[3-9]*)
13998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13999 # Instead, we relocate shared libraries at runtime.
14000 ;;
14001 sysv4*MP*)
14002 if test -d /usr/nec; then
14003 lt_prog_compiler_pic_CXX=-Kconform_pic
14004 fi
14005 ;;
14006 hpux*)
14007 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14008 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14009 # sets the default TLS model and affects inlining.
14010 case $host_cpu in
14011 hppa*64*)
14012 ;;
14013 *)
14014 lt_prog_compiler_pic_CXX='-fPIC'
14015 ;;
14016 esac
14017 ;;
14018 *qnx* | *nto*)
14019 # QNX uses GNU C++, but need to define -shared option too, otherwise
14020 # it will coredump.
14021 lt_prog_compiler_pic_CXX='-fPIC -shared'
14022 ;;
14023 *)
14024 lt_prog_compiler_pic_CXX='-fPIC'
14025 ;;
14026 esac
14027 else
14028 case $host_os in
14029 aix[4-9]*)
14030 # All AIX code is PIC.
14031 if test "$host_cpu" = ia64; then
14032 # AIX 5 now supports IA64 processor
14033 lt_prog_compiler_static_CXX='-Bstatic'
14034 else
14035 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14036 fi
14037 ;;
14038 chorus*)
14039 case $cc_basename in
14040 cxch68*)
14041 # Green Hills C++ Compiler
14042 # _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"
14043 ;;
14044 esac
14045 ;;
14046 mingw* | cygwin* | os2* | pw32* | cegcc*)
14047 # This hack is so that the source file can tell whether it is being
14048 # built for inclusion in a dll (and should export symbols for example).
14049 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14050 ;;
14051 dgux*)
14052 case $cc_basename in
14053 ec++*)
14054 lt_prog_compiler_pic_CXX='-KPIC'
14055 ;;
14056 ghcx*)
14057 # Green Hills C++ Compiler
14058 lt_prog_compiler_pic_CXX='-pic'
14059 ;;
14060 *)
14061 ;;
14062 esac
14063 ;;
14064 freebsd* | dragonfly*)
14065 # FreeBSD uses GNU C++
14066 ;;
14067 hpux9* | hpux10* | hpux11*)
14068 case $cc_basename in
14069 CC*)
14070 lt_prog_compiler_wl_CXX='-Wl,'
14071 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14072 if test "$host_cpu" != ia64; then
14073 lt_prog_compiler_pic_CXX='+Z'
14074 fi
14075 ;;
14076 aCC*)
14077 lt_prog_compiler_wl_CXX='-Wl,'
14078 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14079 case $host_cpu in
14080 hppa*64*|ia64*)
14081 # +Z the default
14082 ;;
14083 *)
14084 lt_prog_compiler_pic_CXX='+Z'
14085 ;;
14086 esac
14087 ;;
14088 *)
14089 ;;
14090 esac
14091 ;;
14092 interix*)
14093 # This is c89, which is MS Visual C++ (no shared libs)
14094 # Anyone wants to do a port?
14095 ;;
14096 irix5* | irix6* | nonstopux*)
14097 case $cc_basename in
14098 CC*)
14099 lt_prog_compiler_wl_CXX='-Wl,'
14100 lt_prog_compiler_static_CXX='-non_shared'
14101 # CC pic flag -KPIC is the default.
14102 ;;
14103 *)
14104 ;;
14105 esac
14106 ;;
14107 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14108 case $cc_basename in
14109 KCC*)
14110 # KAI C++ Compiler
14111 lt_prog_compiler_wl_CXX='--backend -Wl,'
14112 lt_prog_compiler_pic_CXX='-fPIC'
14113 ;;
14114 ecpc* )
14115 # old Intel C++ for x86_64 which still supported -KPIC.
14116 lt_prog_compiler_wl_CXX='-Wl,'
14117 lt_prog_compiler_pic_CXX='-KPIC'
14118 lt_prog_compiler_static_CXX='-static'
14119 ;;
14120 icpc* )
14121 # Intel C++, used to be incompatible with GCC.
14122 # ICC 10 doesn't accept -KPIC any more.
14123 lt_prog_compiler_wl_CXX='-Wl,'
14124 lt_prog_compiler_pic_CXX='-fPIC'
14125 lt_prog_compiler_static_CXX='-static'
14126 ;;
14127 pgCC* | pgcpp*)
14128 # Portland Group C++ compiler
14129 lt_prog_compiler_wl_CXX='-Wl,'
14130 lt_prog_compiler_pic_CXX='-fpic'
14131 lt_prog_compiler_static_CXX='-Bstatic'
14132 ;;
14133 cxx*)
14134 # Compaq C++
14135 # Make sure the PIC flag is empty. It appears that all Alpha
14136 # Linux and Compaq Tru64 Unix objects are PIC.
14137 lt_prog_compiler_pic_CXX=
14138 lt_prog_compiler_static_CXX='-non_shared'
14139 ;;
14140 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14141 # IBM XL 8.0, 9.0 on PPC and BlueGene
14142 lt_prog_compiler_wl_CXX='-Wl,'
14143 lt_prog_compiler_pic_CXX='-qpic'
14144 lt_prog_compiler_static_CXX='-qstaticlink'
14145 ;;
14146 *)
14147 case `$CC -V 2>&1 | sed 5q` in
14148 *Sun\ C*)
14149 # Sun C++ 5.9
14150 lt_prog_compiler_pic_CXX='-KPIC'
14151 lt_prog_compiler_static_CXX='-Bstatic'
14152 lt_prog_compiler_wl_CXX='-Qoption ld '
14153 ;;
14154 esac
14155 ;;
14156 esac
14157 ;;
14158 lynxos*)
14159 ;;
14160 m88k*)
14161 ;;
14162 mvs*)
14163 case $cc_basename in
14164 cxx*)
14165 lt_prog_compiler_pic_CXX='-W c,exportall'
14166 ;;
14167 *)
14168 ;;
14169 esac
14170 ;;
14171 netbsd* | netbsdelf*-gnu)
14172 ;;
14173 *qnx* | *nto*)
14174 # QNX uses GNU C++, but need to define -shared option too, otherwise
14175 # it will coredump.
14176 lt_prog_compiler_pic_CXX='-fPIC -shared'
14177 ;;
14178 osf3* | osf4* | osf5*)
14179 case $cc_basename in
14180 KCC*)
14181 lt_prog_compiler_wl_CXX='--backend -Wl,'
14182 ;;
14183 RCC*)
14184 # Rational C++ 2.4.1
14185 lt_prog_compiler_pic_CXX='-pic'
14186 ;;
14187 cxx*)
14188 # Digital/Compaq C++
14189 lt_prog_compiler_wl_CXX='-Wl,'
14190 # Make sure the PIC flag is empty. It appears that all Alpha
14191 # Linux and Compaq Tru64 Unix objects are PIC.
14192 lt_prog_compiler_pic_CXX=
14193 lt_prog_compiler_static_CXX='-non_shared'
14194 ;;
14195 *)
14196 ;;
14197 esac
14198 ;;
14199 psos*)
14200 ;;
14201 solaris*)
14202 case $cc_basename in
14203 CC* | sunCC*)
14204 # Sun C++ 4.2, 5.x and Centerline C++
14205 lt_prog_compiler_pic_CXX='-KPIC'
14206 lt_prog_compiler_static_CXX='-Bstatic'
14207 lt_prog_compiler_wl_CXX='-Qoption ld '
14208 ;;
14209 gcx*)
14210 # Green Hills C++ Compiler
14211 lt_prog_compiler_pic_CXX='-PIC'
14212 ;;
14213 *)
14214 ;;
14215 esac
14216 ;;
14217 sunos4*)
14218 case $cc_basename in
14219 CC*)
14220 # Sun C++ 4.x
14221 lt_prog_compiler_pic_CXX='-pic'
14222 lt_prog_compiler_static_CXX='-Bstatic'
14223 ;;
14224 lcc*)
14225 # Lucid
14226 lt_prog_compiler_pic_CXX='-pic'
14227 ;;
14228 *)
14229 ;;
14230 esac
14231 ;;
14232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14233 case $cc_basename in
14234 CC*)
14235 lt_prog_compiler_wl_CXX='-Wl,'
14236 lt_prog_compiler_pic_CXX='-KPIC'
14237 lt_prog_compiler_static_CXX='-Bstatic'
14238 ;;
14239 esac
14240 ;;
14241 tandem*)
14242 case $cc_basename in
14243 NCC*)
14244 # NonStop-UX NCC 3.20
14245 lt_prog_compiler_pic_CXX='-KPIC'
14246 ;;
14247 *)
14248 ;;
14249 esac
14250 ;;
14251 vxworks*)
14252 ;;
14253 *)
14254 lt_prog_compiler_can_build_shared_CXX=no
14255 ;;
14256 esac
14257 fi
14258
14259 case $host_os in
14260 # For platforms which do not support PIC, -DPIC is meaningless:
14261 *djgpp*)
14262 lt_prog_compiler_pic_CXX=
14263 ;;
14264 *)
14265 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14266 ;;
14267 esac
14268
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14270 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14271 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14275 fi
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14277 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14278 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14279
14280 #
14281 # Check to make sure the PIC flag actually works.
14282 #
14283 if test -n "$lt_prog_compiler_pic_CXX"; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14286 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 lt_cv_prog_compiler_pic_works_CXX=no
14290 ac_outfile=conftest.$ac_objext
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14293 # Insert the option either (1) after the last *FLAGS variable, or
14294 # (2) before a word containing "conftest.", or (3) at the end.
14295 # Note that $ac_compile itself does not contain backslashes and begins
14296 # with a dollar sign (not a hyphen), so the echo should work correctly.
14297 # The option is referenced via a variable to avoid confusing sed.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>conftest.err)
14304 ac_status=$?
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s "$ac_outfile"; then
14308 # The compiler can only warn and ignore the option if not recognized
14309 # So say no if there are warnings other than the usual output.
14310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14313 lt_cv_prog_compiler_pic_works_CXX=yes
14314 fi
14315 fi
14316 $RM conftest*
14317
14318 fi
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14320 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14321
14322 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14323 case $lt_prog_compiler_pic_CXX in
14324 "" | " "*) ;;
14325 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14326 esac
14327 else
14328 lt_prog_compiler_pic_CXX=
14329 lt_prog_compiler_can_build_shared_CXX=no
14330 fi
14331
14332 fi
14333
14334
14335
14336
14337
14338 #
14339 # Check to make sure the static flag actually works.
14340 #
14341 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14343 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14344 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 lt_cv_prog_compiler_static_works_CXX=no
14348 save_LDFLAGS="$LDFLAGS"
14349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14352 # The linker can only warn and ignore the option if not recognized
14353 # So say no if there are warnings
14354 if test -s conftest.err; then
14355 # Append any errors to the config.log.
14356 cat conftest.err 1>&5
14357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14359 if diff conftest.exp conftest.er2 >/dev/null; then
14360 lt_cv_prog_compiler_static_works_CXX=yes
14361 fi
14362 else
14363 lt_cv_prog_compiler_static_works_CXX=yes
14364 fi
14365 fi
14366 $RM -r conftest*
14367 LDFLAGS="$save_LDFLAGS"
14368
14369 fi
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14371 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14372
14373 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14374 :
14375 else
14376 lt_prog_compiler_static_CXX=
14377 fi
14378
14379
14380
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14384 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 lt_cv_prog_compiler_c_o_CXX=no
14388 $RM -r conftest 2>/dev/null
14389 mkdir conftest
14390 cd conftest
14391 mkdir out
14392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14393
14394 lt_compiler_flag="-o out/conftest2.$ac_objext"
14395 # Insert the option either (1) after the last *FLAGS variable, or
14396 # (2) before a word containing "conftest.", or (3) at the end.
14397 # Note that $ac_compile itself does not contain backslashes and begins
14398 # with a dollar sign (not a hyphen), so the echo should work correctly.
14399 lt_compile=`echo "$ac_compile" | $SED \
14400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14402 -e 's:$: $lt_compiler_flag:'`
14403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14404 (eval "$lt_compile" 2>out/conftest.err)
14405 ac_status=$?
14406 cat out/conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14409 then
14410 # The compiler can only warn and ignore the option if not recognized
14411 # So say no if there are warnings
14412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14415 lt_cv_prog_compiler_c_o_CXX=yes
14416 fi
14417 fi
14418 chmod u+w . 2>&5
14419 $RM conftest*
14420 # SGI C++ compiler will create directory out/ii_files/ for
14421 # template instantiation
14422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14423 $RM out/* && rmdir out
14424 cd ..
14425 $RM -r conftest
14426 $RM conftest*
14427
14428 fi
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14430 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14431
14432
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14436 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 lt_cv_prog_compiler_c_o_CXX=no
14440 $RM -r conftest 2>/dev/null
14441 mkdir conftest
14442 cd conftest
14443 mkdir out
14444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14445
14446 lt_compiler_flag="-o out/conftest2.$ac_objext"
14447 # Insert the option either (1) after the last *FLAGS variable, or
14448 # (2) before a word containing "conftest.", or (3) at the end.
14449 # Note that $ac_compile itself does not contain backslashes and begins
14450 # with a dollar sign (not a hyphen), so the echo should work correctly.
14451 lt_compile=`echo "$ac_compile" | $SED \
14452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454 -e 's:$: $lt_compiler_flag:'`
14455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14456 (eval "$lt_compile" 2>out/conftest.err)
14457 ac_status=$?
14458 cat out/conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14461 then
14462 # The compiler can only warn and ignore the option if not recognized
14463 # So say no if there are warnings
14464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14467 lt_cv_prog_compiler_c_o_CXX=yes
14468 fi
14469 fi
14470 chmod u+w . 2>&5
14471 $RM conftest*
14472 # SGI C++ compiler will create directory out/ii_files/ for
14473 # template instantiation
14474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14475 $RM out/* && rmdir out
14476 cd ..
14477 $RM -r conftest
14478 $RM conftest*
14479
14480 fi
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14482 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14483
14484
14485
14486
14487 hard_links="nottested"
14488 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14489 # do not overwrite the value of need_locks provided by the user
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14491 $as_echo_n "checking if we can lock with hard links... " >&6; }
14492 hard_links=yes
14493 $RM conftest*
14494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14495 touch conftest.a
14496 ln conftest.a conftest.b 2>&5 || hard_links=no
14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14499 $as_echo "$hard_links" >&6; }
14500 if test "$hard_links" = no; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14502 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14503 need_locks=warn
14504 fi
14505 else
14506 need_locks=no
14507 fi
14508
14509
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14513
14514 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14515 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14516 case $host_os in
14517 aix[4-9]*)
14518 # If we're using GNU nm, then we don't want the "-C" option.
14519 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14520 # Also, AIX nm treats weak defined symbols like other global defined
14521 # symbols, whereas GNU nm marks them as "W".
14522 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14523 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'
14524 else
14525 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'
14526 fi
14527 ;;
14528 pw32*)
14529 export_symbols_cmds_CXX="$ltdll_cmds"
14530 ;;
14531 cygwin* | mingw* | cegcc*)
14532 case $cc_basename in
14533 cl*)
14534 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14535 ;;
14536 *)
14537 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'
14538 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14539 ;;
14540 esac
14541 ;;
14542 linux* | k*bsd*-gnu | gnu*)
14543 link_all_deplibs_CXX=no
14544 ;;
14545 *)
14546 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14547 ;;
14548 esac
14549
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14551 $as_echo "$ld_shlibs_CXX" >&6; }
14552 test "$ld_shlibs_CXX" = no && can_build_shared=no
14553
14554 with_gnu_ld_CXX=$with_gnu_ld
14555
14556
14557
14558
14559
14560
14561 #
14562 # Do we need to explicitly link libc?
14563 #
14564 case "x$archive_cmds_need_lc_CXX" in
14565 x|xyes)
14566 # Assume -lc should be added
14567 archive_cmds_need_lc_CXX=yes
14568
14569 if test "$enable_shared" = yes && test "$GCC" = yes; then
14570 case $archive_cmds_CXX in
14571 *'~'*)
14572 # FIXME: we may have to deal with multi-command sequences.
14573 ;;
14574 '$CC '*)
14575 # Test whether the compiler implicitly links with -lc since on some
14576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14577 # to ld, don't add -lc before -lgcc.
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14580 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14581 $as_echo_n "(cached) " >&6
14582 else
14583 $RM conftest*
14584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14585
14586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14587 (eval $ac_compile) 2>&5
14588 ac_status=$?
14589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; } 2>conftest.err; then
14591 soname=conftest
14592 lib=conftest
14593 libobjs=conftest.$ac_objext
14594 deplibs=
14595 wl=$lt_prog_compiler_wl_CXX
14596 pic_flag=$lt_prog_compiler_pic_CXX
14597 compiler_flags=-v
14598 linker_flags=-v
14599 verstring=
14600 output_objdir=.
14601 libname=conftest
14602 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14603 allow_undefined_flag_CXX=
14604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14605 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14606 ac_status=$?
14607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14608 test $ac_status = 0; }
14609 then
14610 lt_cv_archive_cmds_need_lc_CXX=no
14611 else
14612 lt_cv_archive_cmds_need_lc_CXX=yes
14613 fi
14614 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14615 else
14616 cat conftest.err 1>&5
14617 fi
14618 $RM conftest*
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14622 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14623 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14624 ;;
14625 esac
14626 fi
14627 ;;
14628 esac
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14693
14694 library_names_spec=
14695 libname_spec='lib$name'
14696 soname_spec=
14697 shrext_cmds=".so"
14698 postinstall_cmds=
14699 postuninstall_cmds=
14700 finish_cmds=
14701 finish_eval=
14702 shlibpath_var=
14703 shlibpath_overrides_runpath=unknown
14704 version_type=none
14705 dynamic_linker="$host_os ld.so"
14706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14707 need_lib_prefix=unknown
14708 hardcode_into_libs=no
14709
14710 # when you set need_version to no, make sure it does not cause -set_version
14711 # flags to be left without arguments
14712 need_version=unknown
14713
14714 case $host_os in
14715 aix3*)
14716 version_type=linux # correct to gnu/linux during the next big refactor
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14718 shlibpath_var=LIBPATH
14719
14720 # AIX 3 has no versioning support, so we append a major version to the name.
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 ;;
14723
14724 aix[4-9]*)
14725 version_type=linux # correct to gnu/linux during the next big refactor
14726 need_lib_prefix=no
14727 need_version=no
14728 hardcode_into_libs=yes
14729 if test "$host_cpu" = ia64; then
14730 # AIX 5 supports IA64
14731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 else
14734 # With GCC up to 2.95.x, collect2 would create an import file
14735 # for dependence libraries. The import file would start with
14736 # the line `#! .'. This would cause the generated library to
14737 # depend on `.', always an invalid library. This was fixed in
14738 # development snapshots of GCC prior to 3.0.
14739 case $host_os in
14740 aix4 | aix4.[01] | aix4.[01].*)
14741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14742 echo ' yes '
14743 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14744 :
14745 else
14746 can_build_shared=no
14747 fi
14748 ;;
14749 esac
14750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14751 # soname into executable. Probably we can add versioning support to
14752 # collect2, so additional links can be useful in future.
14753 if test "$aix_use_runtimelinking" = yes; then
14754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14755 # instead of lib<name>.a to let people know that these are not
14756 # typical AIX shared libraries.
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 else
14759 # We preserve .a as extension for shared libraries through AIX4.2
14760 # and later when we are not doing run time linking.
14761 library_names_spec='${libname}${release}.a $libname.a'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 fi
14764 shlibpath_var=LIBPATH
14765 fi
14766 ;;
14767
14768 amigaos*)
14769 case $host_cpu in
14770 powerpc)
14771 # Since July 2007 AmigaOS4 officially supports .so libraries.
14772 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 ;;
14775 m68k)
14776 library_names_spec='$libname.ixlibrary $libname.a'
14777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14778 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'
14779 ;;
14780 esac
14781 ;;
14782
14783 beos*)
14784 library_names_spec='${libname}${shared_ext}'
14785 dynamic_linker="$host_os ld.so"
14786 shlibpath_var=LIBRARY_PATH
14787 ;;
14788
14789 bsdi[45]*)
14790 version_type=linux # correct to gnu/linux during the next big refactor
14791 need_version=no
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14798 # the default ld.so.conf also contains /usr/contrib/lib and
14799 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14800 # libtool to hard-code these into programs
14801 ;;
14802
14803 cygwin* | mingw* | pw32* | cegcc*)
14804 version_type=windows
14805 shrext_cmds=".dll"
14806 need_version=no
14807 need_lib_prefix=no
14808
14809 case $GCC,$cc_basename in
14810 yes,*)
14811 # gcc
14812 library_names_spec='$libname.dll.a'
14813 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14814 postinstall_cmds='base_file=`basename \${file}`~
14815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14816 dldir=$destdir/`dirname \$dlpath`~
14817 test -d \$dldir || mkdir -p \$dldir~
14818 $install_prog $dir/$dlname \$dldir/$dlname~
14819 chmod a+x \$dldir/$dlname~
14820 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14821 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14822 fi'
14823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14824 dlpath=$dir/\$dldll~
14825 $RM \$dlpath'
14826 shlibpath_overrides_runpath=yes
14827
14828 case $host_os in
14829 cygwin*)
14830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14832
14833 ;;
14834 mingw* | cegcc*)
14835 # MinGW DLLs use traditional 'lib' prefix
14836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14837 ;;
14838 pw32*)
14839 # pw32 DLLs use 'pw' prefix rather than 'lib'
14840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14841 ;;
14842 esac
14843 dynamic_linker='Win32 ld.exe'
14844 ;;
14845
14846 *,cl*)
14847 # Native MSVC
14848 libname_spec='$name'
14849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14850 library_names_spec='${libname}.dll.lib'
14851
14852 case $build_os in
14853 mingw*)
14854 sys_lib_search_path_spec=
14855 lt_save_ifs=$IFS
14856 IFS=';'
14857 for lt_path in $LIB
14858 do
14859 IFS=$lt_save_ifs
14860 # Let DOS variable expansion print the short 8.3 style file name.
14861 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14862 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14863 done
14864 IFS=$lt_save_ifs
14865 # Convert to MSYS style.
14866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14867 ;;
14868 cygwin*)
14869 # Convert to unix form, then to dos form, then back to unix form
14870 # but this time dos style (no spaces!) so that the unix form looks
14871 # like /cygdrive/c/PROGRA~1:/cygdr...
14872 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14873 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14874 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14875 ;;
14876 *)
14877 sys_lib_search_path_spec="$LIB"
14878 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14879 # It is most probably a Windows format PATH.
14880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14881 else
14882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14883 fi
14884 # FIXME: find the short name or the path components, as spaces are
14885 # common. (e.g. "Program Files" -> "PROGRA~1")
14886 ;;
14887 esac
14888
14889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14890 postinstall_cmds='base_file=`basename \${file}`~
14891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14892 dldir=$destdir/`dirname \$dlpath`~
14893 test -d \$dldir || mkdir -p \$dldir~
14894 $install_prog $dir/$dlname \$dldir/$dlname'
14895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14896 dlpath=$dir/\$dldll~
14897 $RM \$dlpath'
14898 shlibpath_overrides_runpath=yes
14899 dynamic_linker='Win32 link.exe'
14900 ;;
14901
14902 *)
14903 # Assume MSVC wrapper
14904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14905 dynamic_linker='Win32 ld.exe'
14906 ;;
14907 esac
14908 # FIXME: first we should search . and the directory the executable is in
14909 shlibpath_var=PATH
14910 ;;
14911
14912 darwin* | rhapsody*)
14913 dynamic_linker="$host_os dyld"
14914 version_type=darwin
14915 need_lib_prefix=no
14916 need_version=no
14917 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14918 soname_spec='${libname}${release}${major}$shared_ext'
14919 shlibpath_overrides_runpath=yes
14920 shlibpath_var=DYLD_LIBRARY_PATH
14921 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14922
14923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14924 ;;
14925
14926 dgux*)
14927 version_type=linux # correct to gnu/linux during the next big refactor
14928 need_lib_prefix=no
14929 need_version=no
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 ;;
14934
14935 freebsd* | dragonfly*)
14936 # DragonFly does not have aout. When/if they implement a new
14937 # versioning mechanism, adjust this.
14938 if test -x /usr/bin/objformat; then
14939 objformat=`/usr/bin/objformat`
14940 else
14941 case $host_os in
14942 freebsd[23].*) objformat=aout ;;
14943 *) objformat=elf ;;
14944 esac
14945 fi
14946 version_type=freebsd-$objformat
14947 case $version_type in
14948 freebsd-elf*)
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14950 need_version=no
14951 need_lib_prefix=no
14952 ;;
14953 freebsd-*)
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14955 need_version=yes
14956 ;;
14957 esac
14958 shlibpath_var=LD_LIBRARY_PATH
14959 case $host_os in
14960 freebsd2.*)
14961 shlibpath_overrides_runpath=yes
14962 ;;
14963 freebsd3.[01]* | freebsdelf3.[01]*)
14964 shlibpath_overrides_runpath=yes
14965 hardcode_into_libs=yes
14966 ;;
14967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14969 shlibpath_overrides_runpath=no
14970 hardcode_into_libs=yes
14971 ;;
14972 *) # from 4.6 on, and DragonFly
14973 shlibpath_overrides_runpath=yes
14974 hardcode_into_libs=yes
14975 ;;
14976 esac
14977 ;;
14978
14979 haiku*)
14980 version_type=linux # correct to gnu/linux during the next big refactor
14981 need_lib_prefix=no
14982 need_version=no
14983 dynamic_linker="$host_os runtime_loader"
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LIBRARY_PATH
14987 shlibpath_overrides_runpath=yes
14988 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14989 hardcode_into_libs=yes
14990 ;;
14991
14992 hpux9* | hpux10* | hpux11*)
14993 # Give a soname corresponding to the major version so that dld.sl refuses to
14994 # link against other versions.
14995 version_type=sunos
14996 need_lib_prefix=no
14997 need_version=no
14998 case $host_cpu in
14999 ia64*)
15000 shrext_cmds='.so'
15001 hardcode_into_libs=yes
15002 dynamic_linker="$host_os dld.so"
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 if test "X$HPUX_IA64_MODE" = X32; then
15008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15009 else
15010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15011 fi
15012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15013 ;;
15014 hppa*64*)
15015 shrext_cmds='.sl'
15016 hardcode_into_libs=yes
15017 dynamic_linker="$host_os dld.sl"
15018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15024 ;;
15025 *)
15026 shrext_cmds='.sl'
15027 dynamic_linker="$host_os dld.sl"
15028 shlibpath_var=SHLIB_PATH
15029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec='${libname}${release}${shared_ext}$major'
15032 ;;
15033 esac
15034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15035 postinstall_cmds='chmod 555 $lib'
15036 # or fails outright, so override atomically:
15037 install_override_mode=555
15038 ;;
15039
15040 interix[3-9]*)
15041 version_type=linux # correct to gnu/linux during the next big refactor
15042 need_lib_prefix=no
15043 need_version=no
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=no
15049 hardcode_into_libs=yes
15050 ;;
15051
15052 irix5* | irix6* | nonstopux*)
15053 case $host_os in
15054 nonstopux*) version_type=nonstopux ;;
15055 *)
15056 if test "$lt_cv_prog_gnu_ld" = yes; then
15057 version_type=linux # correct to gnu/linux during the next big refactor
15058 else
15059 version_type=irix
15060 fi ;;
15061 esac
15062 need_lib_prefix=no
15063 need_version=no
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15066 case $host_os in
15067 irix5* | nonstopux*)
15068 libsuff= shlibsuff=
15069 ;;
15070 *)
15071 case $LD in # libtool.m4 will add one of these switches to LD
15072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15073 libsuff= shlibsuff= libmagic=32-bit;;
15074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15075 libsuff=32 shlibsuff=N32 libmagic=N32;;
15076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15078 *) libsuff= shlibsuff= libmagic=never-match;;
15079 esac
15080 ;;
15081 esac
15082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15083 shlibpath_overrides_runpath=no
15084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15086 hardcode_into_libs=yes
15087 ;;
15088
15089 # No shared lib support for Linux oldld, aout, or coff.
15090 linux*oldld* | linux*aout* | linux*coff*)
15091 dynamic_linker=no
15092 ;;
15093
15094 # This must be glibc/ELF.
15095 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15096 version_type=linux # correct to gnu/linux during the next big refactor
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 shlibpath_overrides_runpath=no
15104
15105 # Some binutils ld are patched to set DT_RUNPATH
15106 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 lt_cv_shlibpath_overrides_runpath=no
15110 save_LDFLAGS=$LDFLAGS
15111 save_libdir=$libdir
15112 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15113 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116
15117 int
15118 main ()
15119 {
15120
15121 ;
15122 return 0;
15123 }
15124 _ACEOF
15125 if ac_fn_cxx_try_link "$LINENO"; then :
15126 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15127 lt_cv_shlibpath_overrides_runpath=yes
15128 fi
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132 LDFLAGS=$save_LDFLAGS
15133 libdir=$save_libdir
15134
15135 fi
15136
15137 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15138
15139 # This implies no fast_install, which is unacceptable.
15140 # Some rework will be needed to allow for fast_install
15141 # before this can be enabled.
15142 hardcode_into_libs=yes
15143
15144 # Append ld.so.conf contents to the search path
15145 if test -f /etc/ld.so.conf; then
15146 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' ' '`
15147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15148 fi
15149
15150 # We used to test for /lib/ld.so.1 and disable shared libraries on
15151 # powerpc, because MkLinux only supported shared libraries with the
15152 # GNU dynamic linker. Since this was broken with cross compilers,
15153 # most powerpc-linux boxes support dynamic linking these days and
15154 # people can always --disable-shared, the test was removed, and we
15155 # assume the GNU/Linux dynamic linker is in use.
15156 dynamic_linker='GNU/Linux ld.so'
15157 ;;
15158
15159 netbsdelf*-gnu)
15160 version_type=linux
15161 need_lib_prefix=no
15162 need_version=no
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=no
15167 hardcode_into_libs=yes
15168 dynamic_linker='NetBSD ld.elf_so'
15169 ;;
15170
15171 netbsd*)
15172 version_type=sunos
15173 need_lib_prefix=no
15174 need_version=no
15175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15178 dynamic_linker='NetBSD (a.out) ld.so'
15179 else
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 dynamic_linker='NetBSD ld.elf_so'
15183 fi
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=yes
15186 hardcode_into_libs=yes
15187 ;;
15188
15189 newsos6)
15190 version_type=linux # correct to gnu/linux during the next big refactor
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 shlibpath_var=LD_LIBRARY_PATH
15193 shlibpath_overrides_runpath=yes
15194 ;;
15195
15196 *nto* | *qnx*)
15197 version_type=qnx
15198 need_lib_prefix=no
15199 need_version=no
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 shlibpath_overrides_runpath=no
15204 hardcode_into_libs=yes
15205 dynamic_linker='ldqnx.so'
15206 ;;
15207
15208 openbsd*)
15209 version_type=sunos
15210 sys_lib_dlsearch_path_spec="/usr/lib"
15211 need_lib_prefix=no
15212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15213 case $host_os in
15214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15215 *) need_version=no ;;
15216 esac
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15219 shlibpath_var=LD_LIBRARY_PATH
15220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15221 case $host_os in
15222 openbsd2.[89] | openbsd2.[89].*)
15223 shlibpath_overrides_runpath=no
15224 ;;
15225 *)
15226 shlibpath_overrides_runpath=yes
15227 ;;
15228 esac
15229 else
15230 shlibpath_overrides_runpath=yes
15231 fi
15232 ;;
15233
15234 os2*)
15235 libname_spec='$name'
15236 shrext_cmds=".dll"
15237 need_lib_prefix=no
15238 library_names_spec='$libname${shared_ext} $libname.a'
15239 dynamic_linker='OS/2 ld.exe'
15240 shlibpath_var=LIBPATH
15241 ;;
15242
15243 osf3* | osf4* | osf5*)
15244 version_type=osf
15245 need_lib_prefix=no
15246 need_version=no
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15252 ;;
15253
15254 rdos*)
15255 dynamic_linker=no
15256 ;;
15257
15258 solaris*)
15259 version_type=linux # correct to gnu/linux during the next big refactor
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 shlibpath_overrides_runpath=yes
15266 hardcode_into_libs=yes
15267 # ldd complains unless libraries are executable
15268 postinstall_cmds='chmod +x $lib'
15269 ;;
15270
15271 sunos4*)
15272 version_type=sunos
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=yes
15277 if test "$with_gnu_ld" = yes; then
15278 need_lib_prefix=no
15279 fi
15280 need_version=yes
15281 ;;
15282
15283 sysv4 | sysv4.3*)
15284 version_type=linux # correct to gnu/linux during the next big refactor
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 soname_spec='${libname}${release}${shared_ext}$major'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 case $host_vendor in
15289 sni)
15290 shlibpath_overrides_runpath=no
15291 need_lib_prefix=no
15292 runpath_var=LD_RUN_PATH
15293 ;;
15294 siemens)
15295 need_lib_prefix=no
15296 ;;
15297 motorola)
15298 need_lib_prefix=no
15299 need_version=no
15300 shlibpath_overrides_runpath=no
15301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15302 ;;
15303 esac
15304 ;;
15305
15306 sysv4*MP*)
15307 if test -d /usr/nec ;then
15308 version_type=linux # correct to gnu/linux during the next big refactor
15309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15310 soname_spec='$libname${shared_ext}.$major'
15311 shlibpath_var=LD_LIBRARY_PATH
15312 fi
15313 ;;
15314
15315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15316 version_type=freebsd-elf
15317 need_lib_prefix=no
15318 need_version=no
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=yes
15323 hardcode_into_libs=yes
15324 if test "$with_gnu_ld" = yes; then
15325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15326 else
15327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15328 case $host_os in
15329 sco3.2v5*)
15330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15331 ;;
15332 esac
15333 fi
15334 sys_lib_dlsearch_path_spec='/usr/lib'
15335 ;;
15336
15337 tpf*)
15338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15339 version_type=linux # correct to gnu/linux during the next big refactor
15340 need_lib_prefix=no
15341 need_version=no
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 shlibpath_overrides_runpath=no
15345 hardcode_into_libs=yes
15346 ;;
15347
15348 uts4*)
15349 version_type=linux # correct to gnu/linux during the next big refactor
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 ;;
15354
15355 *)
15356 dynamic_linker=no
15357 ;;
15358 esac
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15360 $as_echo "$dynamic_linker" >&6; }
15361 test "$dynamic_linker" = no && can_build_shared=no
15362
15363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15364 if test "$GCC" = yes; then
15365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15366 fi
15367
15368 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15369 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15370 fi
15371 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15372 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15373 fi
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15413 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15414 hardcode_action_CXX=
15415 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15416 test -n "$runpath_var_CXX" ||
15417 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15418
15419 # We can hardcode non-existent directories.
15420 if test "$hardcode_direct_CXX" != no &&
15421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15422 # have to relink, otherwise we might link with an installed library
15423 # when we should be linking with a yet-to-be-installed one
15424 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15425 test "$hardcode_minus_L_CXX" != no; then
15426 # Linking always hardcodes the temporary library directory.
15427 hardcode_action_CXX=relink
15428 else
15429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15430 hardcode_action_CXX=immediate
15431 fi
15432 else
15433 # We cannot hardcode anything, or else we can only hardcode existing
15434 # directories.
15435 hardcode_action_CXX=unsupported
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15438 $as_echo "$hardcode_action_CXX" >&6; }
15439
15440 if test "$hardcode_action_CXX" = relink ||
15441 test "$inherit_rpath_CXX" = yes; then
15442 # Fast installation is not supported
15443 enable_fast_install=no
15444 elif test "$shlibpath_overrides_runpath" = yes ||
15445 test "$enable_shared" = no; then
15446 # Fast installation is not necessary
15447 enable_fast_install=needless
15448 fi
15449
15450
15451
15452
15453
15454
15455
15456 fi # test -n "$compiler"
15457
15458 CC=$lt_save_CC
15459 CFLAGS=$lt_save_CFLAGS
15460 LDCXX=$LD
15461 LD=$lt_save_LD
15462 GCC=$lt_save_GCC
15463 with_gnu_ld=$lt_save_with_gnu_ld
15464 lt_cv_path_LDCXX=$lt_cv_path_LD
15465 lt_cv_path_LD=$lt_save_path_LD
15466 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15467 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15468 fi # test "$_lt_caught_CXX_error" != yes
15469
15470 ac_ext=c
15471 ac_cpp='$CPP $CPPFLAGS'
15472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15475
15476
15477 ac_ext=cpp
15478 ac_cpp='$CXXCPP $CPPFLAGS'
15479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15482
15483
15484 # Create the libtool executable so that we can use it in further tests.
15485 #
15486 : ${CONFIG_LT=./config.lt}
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15488 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
15489 as_write_fail=0
15490 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15491 #! $SHELL
15492 # Generated by $as_me.
15493 # Run this file to recreate a libtool stub with the current configuration.
15494 SHELL=\${CONFIG_SHELL-$SHELL}
15495 export SHELL
15496 _ASEOF
15497 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15498 ## -------------------- ##
15499 ## M4sh Initialization. ##
15500 ## -------------------- ##
15501
15502 # Be more Bourne compatible
15503 DUALCASE=1; export DUALCASE # for MKS sh
15504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15505 emulate sh
15506 NULLCMD=:
15507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15508 # is contrary to our usage. Disable this feature.
15509 alias -g '${1+"$@"}'='"$@"'
15510 setopt NO_GLOB_SUBST
15511 else
15512 case `(set -o) 2>/dev/null` in #(
15513 *posix*) :
15514 set -o posix ;; #(
15515 *) :
15516 ;;
15517 esac
15518 fi
15519
15520
15521 as_nl='
15522 '
15523 export as_nl
15524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15528 # Prefer a ksh shell builtin over an external printf program on Solaris,
15529 # but without wasting forks for bash or zsh.
15530 if test -z "$BASH_VERSION$ZSH_VERSION" \
15531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15532 as_echo='print -r --'
15533 as_echo_n='print -rn --'
15534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15535 as_echo='printf %s\n'
15536 as_echo_n='printf %s'
15537 else
15538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15540 as_echo_n='/usr/ucb/echo -n'
15541 else
15542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15543 as_echo_n_body='eval
15544 arg=$1;
15545 case $arg in #(
15546 *"$as_nl"*)
15547 expr "X$arg" : "X\\(.*\\)$as_nl";
15548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15549 esac;
15550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15551 '
15552 export as_echo_n_body
15553 as_echo_n='sh -c $as_echo_n_body as_echo'
15554 fi
15555 export as_echo_body
15556 as_echo='sh -c $as_echo_body as_echo'
15557 fi
15558
15559 # The user is always right.
15560 if test "${PATH_SEPARATOR+set}" != set; then
15561 PATH_SEPARATOR=:
15562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15564 PATH_SEPARATOR=';'
15565 }
15566 fi
15567
15568
15569 # IFS
15570 # We need space, tab and new line, in precisely that order. Quoting is
15571 # there to prevent editors from complaining about space-tab.
15572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15573 # splitting by setting IFS to empty value.)
15574 IFS=" "" $as_nl"
15575
15576 # Find who we are. Look in the path if we contain no directory separator.
15577 as_myself=
15578 case $0 in #((
15579 *[\\/]* ) as_myself=$0 ;;
15580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581 for as_dir in $PATH
15582 do
15583 IFS=$as_save_IFS
15584 test -z "$as_dir" && as_dir=.
15585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15586 done
15587 IFS=$as_save_IFS
15588
15589 ;;
15590 esac
15591 # We did not find ourselves, most probably we were run as `sh COMMAND'
15592 # in which case we are not to be found in the path.
15593 if test "x$as_myself" = x; then
15594 as_myself=$0
15595 fi
15596 if test ! -f "$as_myself"; then
15597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15598 exit 1
15599 fi
15600
15601 # Unset variables that we do not need and which cause bugs (e.g. in
15602 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15603 # suppresses any "Segmentation fault" message there. '((' could
15604 # trigger a bug in pdksh 5.2.14.
15605 for as_var in BASH_ENV ENV MAIL MAILPATH
15606 do eval test x\${$as_var+set} = xset \
15607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15608 done
15609 PS1='$ '
15610 PS2='> '
15611 PS4='+ '
15612
15613 # NLS nuisances.
15614 LC_ALL=C
15615 export LC_ALL
15616 LANGUAGE=C
15617 export LANGUAGE
15618
15619 # CDPATH.
15620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15621
15622
15623 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15624 # ----------------------------------------
15625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15627 # script with STATUS, using 1 if that was 0.
15628 as_fn_error ()
15629 {
15630 as_status=$1; test $as_status -eq 0 && as_status=1
15631 if test "$4"; then
15632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15634 fi
15635 $as_echo "$as_me: error: $2" >&2
15636 as_fn_exit $as_status
15637 } # as_fn_error
15638
15639
15640 # as_fn_set_status STATUS
15641 # -----------------------
15642 # Set $? to STATUS, without forking.
15643 as_fn_set_status ()
15644 {
15645 return $1
15646 } # as_fn_set_status
15647
15648 # as_fn_exit STATUS
15649 # -----------------
15650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15651 as_fn_exit ()
15652 {
15653 set +e
15654 as_fn_set_status $1
15655 exit $1
15656 } # as_fn_exit
15657
15658 # as_fn_unset VAR
15659 # ---------------
15660 # Portably unset VAR.
15661 as_fn_unset ()
15662 {
15663 { eval $1=; unset $1;}
15664 }
15665 as_unset=as_fn_unset
15666 # as_fn_append VAR VALUE
15667 # ----------------------
15668 # Append the text in VALUE to the end of the definition contained in VAR. Take
15669 # advantage of any shell optimizations that allow amortized linear growth over
15670 # repeated appends, instead of the typical quadratic growth present in naive
15671 # implementations.
15672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15673 eval 'as_fn_append ()
15674 {
15675 eval $1+=\$2
15676 }'
15677 else
15678 as_fn_append ()
15679 {
15680 eval $1=\$$1\$2
15681 }
15682 fi # as_fn_append
15683
15684 # as_fn_arith ARG...
15685 # ------------------
15686 # Perform arithmetic evaluation on the ARGs, and store the result in the
15687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15688 # must be portable across $(()) and expr.
15689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15690 eval 'as_fn_arith ()
15691 {
15692 as_val=$(( $* ))
15693 }'
15694 else
15695 as_fn_arith ()
15696 {
15697 as_val=`expr "$@" || test $? -eq 1`
15698 }
15699 fi # as_fn_arith
15700
15701
15702 if expr a : '\(a\)' >/dev/null 2>&1 &&
15703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15704 as_expr=expr
15705 else
15706 as_expr=false
15707 fi
15708
15709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15710 as_basename=basename
15711 else
15712 as_basename=false
15713 fi
15714
15715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15716 as_dirname=dirname
15717 else
15718 as_dirname=false
15719 fi
15720
15721 as_me=`$as_basename -- "$0" ||
15722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15723 X"$0" : 'X\(//\)$' \| \
15724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15725 $as_echo X/"$0" |
15726 sed '/^.*\/\([^/][^/]*\)\/*$/{
15727 s//\1/
15728 q
15729 }
15730 /^X\/\(\/\/\)$/{
15731 s//\1/
15732 q
15733 }
15734 /^X\/\(\/\).*/{
15735 s//\1/
15736 q
15737 }
15738 s/.*/./; q'`
15739
15740 # Avoid depending upon Character Ranges.
15741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15744 as_cr_digits='0123456789'
15745 as_cr_alnum=$as_cr_Letters$as_cr_digits
15746
15747 ECHO_C= ECHO_N= ECHO_T=
15748 case `echo -n x` in #(((((
15749 -n*)
15750 case `echo 'xy\c'` in
15751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15752 xy) ECHO_C='\c';;
15753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15754 ECHO_T=' ';;
15755 esac;;
15756 *)
15757 ECHO_N='-n';;
15758 esac
15759
15760 rm -f conf$$ conf$$.exe conf$$.file
15761 if test -d conf$$.dir; then
15762 rm -f conf$$.dir/conf$$.file
15763 else
15764 rm -f conf$$.dir
15765 mkdir conf$$.dir 2>/dev/null
15766 fi
15767 if (echo >conf$$.file) 2>/dev/null; then
15768 if ln -s conf$$.file conf$$ 2>/dev/null; then
15769 as_ln_s='ln -s'
15770 # ... but there are two gotchas:
15771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15773 # In both cases, we have to default to `cp -pR'.
15774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15775 as_ln_s='cp -pR'
15776 elif ln conf$$.file conf$$ 2>/dev/null; then
15777 as_ln_s=ln
15778 else
15779 as_ln_s='cp -pR'
15780 fi
15781 else
15782 as_ln_s='cp -pR'
15783 fi
15784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15785 rmdir conf$$.dir 2>/dev/null
15786
15787
15788 # as_fn_mkdir_p
15789 # -------------
15790 # Create "$as_dir" as a directory, including parents if necessary.
15791 as_fn_mkdir_p ()
15792 {
15793
15794 case $as_dir in #(
15795 -*) as_dir=./$as_dir;;
15796 esac
15797 test -d "$as_dir" || eval $as_mkdir_p || {
15798 as_dirs=
15799 while :; do
15800 case $as_dir in #(
15801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15802 *) as_qdir=$as_dir;;
15803 esac
15804 as_dirs="'$as_qdir' $as_dirs"
15805 as_dir=`$as_dirname -- "$as_dir" ||
15806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15807 X"$as_dir" : 'X\(//\)[^/]' \| \
15808 X"$as_dir" : 'X\(//\)$' \| \
15809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15810 $as_echo X"$as_dir" |
15811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15812 s//\1/
15813 q
15814 }
15815 /^X\(\/\/\)[^/].*/{
15816 s//\1/
15817 q
15818 }
15819 /^X\(\/\/\)$/{
15820 s//\1/
15821 q
15822 }
15823 /^X\(\/\).*/{
15824 s//\1/
15825 q
15826 }
15827 s/.*/./; q'`
15828 test -d "$as_dir" && break
15829 done
15830 test -z "$as_dirs" || eval "mkdir $as_dirs"
15831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15832
15833
15834 } # as_fn_mkdir_p
15835 if mkdir -p . 2>/dev/null; then
15836 as_mkdir_p='mkdir -p "$as_dir"'
15837 else
15838 test -d ./-p && rmdir ./-p
15839 as_mkdir_p=false
15840 fi
15841
15842
15843 # as_fn_executable_p FILE
15844 # -----------------------
15845 # Test if FILE is an executable regular file.
15846 as_fn_executable_p ()
15847 {
15848 test -f "$1" && test -x "$1"
15849 } # as_fn_executable_p
15850 as_test_x='test -x'
15851 as_executable_p=as_fn_executable_p
15852
15853 # Sed expression to map a string onto a valid CPP name.
15854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15855
15856 # Sed expression to map a string onto a valid variable name.
15857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15858
15859
15860 exec 6>&1
15861 ## --------------------------------- ##
15862 ## Main body of "$CONFIG_LT" script. ##
15863 ## --------------------------------- ##
15864 _ASEOF
15865 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15866
15867 cat >>"$CONFIG_LT" <<\_LTEOF
15868 lt_cl_silent=false
15869 exec 5>>config.log
15870 {
15871 echo
15872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15873 ## Running $as_me. ##
15874 _ASBOX
15875 } >&5
15876
15877 lt_cl_help="\
15878 \`$as_me' creates a local libtool stub from the current configuration,
15879 for use in further configure time tests before the real libtool is
15880 generated.
15881
15882 Usage: $0 [OPTIONS]
15883
15884 -h, --help print this help, then exit
15885 -V, --version print version number, then exit
15886 -q, --quiet do not print progress messages
15887 -d, --debug don't remove temporary files
15888
15889 Report bugs to <[email protected]>."
15890
15891 lt_cl_version="\
15892 libodb-mysql config.lt 2.4.0
15893 configured by $0, generated by GNU Autoconf 2.69.
15894
15895 Copyright (C) 2011 Free Software Foundation, Inc.
15896 This config.lt script is free software; the Free Software Foundation
15897 gives unlimited permision to copy, distribute and modify it."
15898
15899 while test $# != 0
15900 do
15901 case $1 in
15902 --version | --v* | -V )
15903 echo "$lt_cl_version"; exit 0 ;;
15904 --help | --h* | -h )
15905 echo "$lt_cl_help"; exit 0 ;;
15906 --debug | --d* | -d )
15907 debug=: ;;
15908 --quiet | --q* | --silent | --s* | -q )
15909 lt_cl_silent=: ;;
15910
15911 -*) as_fn_error $? "unrecognized option: $1
15912 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15913
15914 *) as_fn_error $? "unrecognized argument: $1
15915 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15916 esac
15917 shift
15918 done
15919
15920 if $lt_cl_silent; then
15921 exec 6>/dev/null
15922 fi
15923 _LTEOF
15924
15925 cat >>"$CONFIG_LT" <<_LTEOF
15926
15927
15928 # The HP-UX ksh and POSIX shell print the target directory to stdout
15929 # if CDPATH is set.
15930 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15931
15932 sed_quote_subst='$sed_quote_subst'
15933 double_quote_subst='$double_quote_subst'
15934 delay_variable_subst='$delay_variable_subst'
15935 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15936 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15937 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15938 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15939 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15940 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15941 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15942 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15943 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15944 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15945 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15946 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15947 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15948 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15949 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15950 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15951 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15952 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15953 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15954 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15955 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15956 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15957 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15958 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15959 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15960 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15961 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15962 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15963 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15964 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15965 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15966 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15967 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15968 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15969 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15970 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15971 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15972 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15973 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15974 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15975 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15976 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15977 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15978 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15979 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15980 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15981 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15982 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15983 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15984 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15985 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15986 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15987 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15988 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15989 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15990 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15991 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15992 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"`'
15993 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15994 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15995 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15996 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15997 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15998 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15999 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16000 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16001 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16002 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16003 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16004 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16005 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16006 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16007 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16008 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16009 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16010 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16011 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16012 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16013 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16014 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16015 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16016 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16017 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16018 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16019 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16020 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16021 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16022 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16023 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16024 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16025 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16026 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16027 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16028 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16029 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16030 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16031 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16032 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16033 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16034 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16035 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16036 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16037 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16038 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16039 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16040 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16041 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16042 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16043 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16044 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16045 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16046 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16047 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16048 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16049 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16050 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16051 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16052 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16053 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16054 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16055 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16056 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16057 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16058 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16059 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16060 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16061 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16062 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16063 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16064 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16065 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16066 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16067 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16068 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16069 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16070 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16071 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16072 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16073 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16074 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16075 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16076 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16077 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16078 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16079 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16080 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16082 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16083 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16084 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16085 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16086 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16087 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16088 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16089 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16090 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16092 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16093 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16094 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16095 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16096 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16098 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16099 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16100 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16101 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16102 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16103 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16104 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16105 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16106 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16107 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16108 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16109 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16110 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16111 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16112 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16113 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16114 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16115 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16116 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16117 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16118 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16119 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16120
16121 LTCC='$LTCC'
16122 LTCFLAGS='$LTCFLAGS'
16123 compiler='$compiler_DEFAULT'
16124
16125 # A function that is used when there is no print builtin or printf.
16126 func_fallback_echo ()
16127 {
16128 eval 'cat <<_LTECHO_EOF
16129 \$1
16130 _LTECHO_EOF'
16131 }
16132
16133 # Quote evaled strings.
16134 for var in AS \
16135 DLLTOOL \
16136 OBJDUMP \
16137 SHELL \
16138 ECHO \
16139 PATH_SEPARATOR \
16140 SED \
16141 GREP \
16142 EGREP \
16143 FGREP \
16144 LD \
16145 NM \
16146 LN_S \
16147 lt_SP2NL \
16148 lt_NL2SP \
16149 reload_flag \
16150 deplibs_check_method \
16151 file_magic_cmd \
16152 file_magic_glob \
16153 want_nocaseglob \
16154 sharedlib_from_linklib_cmd \
16155 AR \
16156 AR_FLAGS \
16157 archiver_list_spec \
16158 STRIP \
16159 RANLIB \
16160 CC \
16161 CFLAGS \
16162 compiler \
16163 lt_cv_sys_global_symbol_pipe \
16164 lt_cv_sys_global_symbol_to_cdecl \
16165 lt_cv_sys_global_symbol_to_c_name_address \
16166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16167 nm_file_list_spec \
16168 lt_prog_compiler_no_builtin_flag \
16169 lt_prog_compiler_pic \
16170 lt_prog_compiler_wl \
16171 lt_prog_compiler_static \
16172 lt_cv_prog_compiler_c_o \
16173 need_locks \
16174 MANIFEST_TOOL \
16175 DSYMUTIL \
16176 NMEDIT \
16177 LIPO \
16178 OTOOL \
16179 OTOOL64 \
16180 shrext_cmds \
16181 export_dynamic_flag_spec \
16182 whole_archive_flag_spec \
16183 compiler_needs_object \
16184 with_gnu_ld \
16185 allow_undefined_flag \
16186 no_undefined_flag \
16187 hardcode_libdir_flag_spec \
16188 hardcode_libdir_separator \
16189 exclude_expsyms \
16190 include_expsyms \
16191 file_list_spec \
16192 variables_saved_for_relink \
16193 libname_spec \
16194 library_names_spec \
16195 soname_spec \
16196 install_override_mode \
16197 finish_eval \
16198 old_striplib \
16199 striplib \
16200 compiler_lib_search_dirs \
16201 predep_objects \
16202 postdep_objects \
16203 predeps \
16204 postdeps \
16205 compiler_lib_search_path \
16206 LD_CXX \
16207 reload_flag_CXX \
16208 compiler_CXX \
16209 lt_prog_compiler_no_builtin_flag_CXX \
16210 lt_prog_compiler_pic_CXX \
16211 lt_prog_compiler_wl_CXX \
16212 lt_prog_compiler_static_CXX \
16213 lt_cv_prog_compiler_c_o_CXX \
16214 export_dynamic_flag_spec_CXX \
16215 whole_archive_flag_spec_CXX \
16216 compiler_needs_object_CXX \
16217 with_gnu_ld_CXX \
16218 allow_undefined_flag_CXX \
16219 no_undefined_flag_CXX \
16220 hardcode_libdir_flag_spec_CXX \
16221 hardcode_libdir_separator_CXX \
16222 exclude_expsyms_CXX \
16223 include_expsyms_CXX \
16224 file_list_spec_CXX \
16225 compiler_lib_search_dirs_CXX \
16226 predep_objects_CXX \
16227 postdep_objects_CXX \
16228 predeps_CXX \
16229 postdeps_CXX \
16230 compiler_lib_search_path_CXX; do
16231 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16232 *[\\\\\\\`\\"\\\$]*)
16233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16234 ;;
16235 *)
16236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16237 ;;
16238 esac
16239 done
16240
16241 # Double-quote double-evaled strings.
16242 for var in reload_cmds \
16243 old_postinstall_cmds \
16244 old_postuninstall_cmds \
16245 old_archive_cmds \
16246 extract_expsyms_cmds \
16247 old_archive_from_new_cmds \
16248 old_archive_from_expsyms_cmds \
16249 archive_cmds \
16250 archive_expsym_cmds \
16251 module_cmds \
16252 module_expsym_cmds \
16253 export_symbols_cmds \
16254 prelink_cmds \
16255 postlink_cmds \
16256 postinstall_cmds \
16257 postuninstall_cmds \
16258 finish_cmds \
16259 sys_lib_search_path_spec \
16260 sys_lib_dlsearch_path_spec \
16261 reload_cmds_CXX \
16262 old_archive_cmds_CXX \
16263 old_archive_from_new_cmds_CXX \
16264 old_archive_from_expsyms_cmds_CXX \
16265 archive_cmds_CXX \
16266 archive_expsym_cmds_CXX \
16267 module_cmds_CXX \
16268 module_expsym_cmds_CXX \
16269 export_symbols_cmds_CXX \
16270 prelink_cmds_CXX \
16271 postlink_cmds_CXX; do
16272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16273 *[\\\\\\\`\\"\\\$]*)
16274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16275 ;;
16276 *)
16277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16278 ;;
16279 esac
16280 done
16281
16282 ac_aux_dir='$ac_aux_dir'
16283 xsi_shell='$xsi_shell'
16284 lt_shell_append='$lt_shell_append'
16285
16286 # See if we are running on zsh, and set the options which allow our
16287 # commands through without removal of \ escapes INIT.
16288 if test -n "\${ZSH_VERSION+set}" ; then
16289 setopt NO_GLOB_SUBST
16290 fi
16291
16292
16293 PACKAGE='$PACKAGE'
16294 VERSION='$VERSION'
16295 TIMESTAMP='$TIMESTAMP'
16296 RM='$RM'
16297 ofile='$ofile'
16298
16299
16300
16301
16302
16303 _LTEOF
16304
16305 cat >>"$CONFIG_LT" <<\_LTEOF
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16307 $as_echo "$as_me: creating $ofile" >&6;}
16308
16309
16310 # See if we are running on zsh, and set the options which allow our
16311 # commands through without removal of \ escapes.
16312 if test -n "${ZSH_VERSION+set}" ; then
16313 setopt NO_GLOB_SUBST
16314 fi
16315
16316 cfgfile="${ofile}T"
16317 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16318 $RM "$cfgfile"
16319
16320 cat <<_LT_EOF >> "$cfgfile"
16321 #! $SHELL
16322
16323 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16324 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16327 #
16328 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16329 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16330 # Foundation, Inc.
16331 # Written by Gordon Matzigkeit, 1996
16332 #
16333 # This file is part of GNU Libtool.
16334 #
16335 # GNU Libtool is free software; you can redistribute it and/or
16336 # modify it under the terms of the GNU General Public License as
16337 # published by the Free Software Foundation; either version 2 of
16338 # the License, or (at your option) any later version.
16339 #
16340 # As a special exception to the GNU General Public License,
16341 # if you distribute this file as part of a program or library that
16342 # is built using GNU Libtool, you may include this file under the
16343 # same distribution terms that you use for the rest of that program.
16344 #
16345 # GNU Libtool is distributed in the hope that it will be useful,
16346 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16348 # GNU General Public License for more details.
16349 #
16350 # You should have received a copy of the GNU General Public License
16351 # along with GNU Libtool; see the file COPYING. If not, a copy
16352 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16353 # obtained by writing to the Free Software Foundation, Inc.,
16354 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16355
16356
16357 # The names of the tagged configurations supported by this script.
16358 available_tags="CXX "
16359
16360 # ### BEGIN LIBTOOL CONFIG
16361
16362 # Which release of libtool.m4 was used?
16363 macro_version=$macro_version
16364 macro_revision=$macro_revision
16365
16366 # Assembler program.
16367 AS=$lt_AS
16368
16369 # DLL creation program.
16370 DLLTOOL=$lt_DLLTOOL
16371
16372 # Object dumper program.
16373 OBJDUMP=$lt_OBJDUMP
16374
16375 # Whether or not to build shared libraries.
16376 build_libtool_libs=$enable_shared
16377
16378 # Whether or not to build static libraries.
16379 build_old_libs=$enable_static
16380
16381 # What type of objects to build.
16382 pic_mode=$pic_mode
16383
16384 # Whether or not to optimize for fast installation.
16385 fast_install=$enable_fast_install
16386
16387 # Shell to use when invoking shell scripts.
16388 SHELL=$lt_SHELL
16389
16390 # An echo program that protects backslashes.
16391 ECHO=$lt_ECHO
16392
16393 # The PATH separator for the build system.
16394 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16395
16396 # The host system.
16397 host_alias=$host_alias
16398 host=$host
16399 host_os=$host_os
16400
16401 # The build system.
16402 build_alias=$build_alias
16403 build=$build
16404 build_os=$build_os
16405
16406 # A sed program that does not truncate output.
16407 SED=$lt_SED
16408
16409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16410 Xsed="\$SED -e 1s/^X//"
16411
16412 # A grep program that handles long lines.
16413 GREP=$lt_GREP
16414
16415 # An ERE matcher.
16416 EGREP=$lt_EGREP
16417
16418 # A literal string matcher.
16419 FGREP=$lt_FGREP
16420
16421 # A BSD- or MS-compatible name lister.
16422 NM=$lt_NM
16423
16424 # Whether we need soft or hard links.
16425 LN_S=$lt_LN_S
16426
16427 # What is the maximum length of a command?
16428 max_cmd_len=$max_cmd_len
16429
16430 # Object file suffix (normally "o").
16431 objext=$ac_objext
16432
16433 # Executable file suffix (normally "").
16434 exeext=$exeext
16435
16436 # whether the shell understands "unset".
16437 lt_unset=$lt_unset
16438
16439 # turn spaces into newlines.
16440 SP2NL=$lt_lt_SP2NL
16441
16442 # turn newlines into spaces.
16443 NL2SP=$lt_lt_NL2SP
16444
16445 # convert \$build file names to \$host format.
16446 to_host_file_cmd=$lt_cv_to_host_file_cmd
16447
16448 # convert \$build files to toolchain format.
16449 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16450
16451 # Method to check whether dependent libraries are shared objects.
16452 deplibs_check_method=$lt_deplibs_check_method
16453
16454 # Command to use when deplibs_check_method = "file_magic".
16455 file_magic_cmd=$lt_file_magic_cmd
16456
16457 # How to find potential files when deplibs_check_method = "file_magic".
16458 file_magic_glob=$lt_file_magic_glob
16459
16460 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16461 want_nocaseglob=$lt_want_nocaseglob
16462
16463 # Command to associate shared and link libraries.
16464 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16465
16466 # The archiver.
16467 AR=$lt_AR
16468
16469 # Flags to create an archive.
16470 AR_FLAGS=$lt_AR_FLAGS
16471
16472 # How to feed a file listing to the archiver.
16473 archiver_list_spec=$lt_archiver_list_spec
16474
16475 # A symbol stripping program.
16476 STRIP=$lt_STRIP
16477
16478 # Commands used to install an old-style archive.
16479 RANLIB=$lt_RANLIB
16480 old_postinstall_cmds=$lt_old_postinstall_cmds
16481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16482
16483 # Whether to use a lock for old archive extraction.
16484 lock_old_archive_extraction=$lock_old_archive_extraction
16485
16486 # A C compiler.
16487 LTCC=$lt_CC
16488
16489 # LTCC compiler flags.
16490 LTCFLAGS=$lt_CFLAGS
16491
16492 # Take the output of nm and produce a listing of raw symbols and C names.
16493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16494
16495 # Transform the output of nm in a proper C declaration.
16496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16497
16498 # Transform the output of nm in a C name address pair.
16499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16500
16501 # Transform the output of nm in a C name address pair when lib prefix is needed.
16502 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16503
16504 # Specify filename containing input files for \$NM.
16505 nm_file_list_spec=$lt_nm_file_list_spec
16506
16507 # The root where to search for dependent libraries,and in which our libraries should be installed.
16508 lt_sysroot=$lt_sysroot
16509
16510 # The name of the directory that contains temporary libtool files.
16511 objdir=$objdir
16512
16513 # Used to examine libraries when file_magic_cmd begins with "file".
16514 MAGIC_CMD=$MAGIC_CMD
16515
16516 # Must we lock files when doing compilation?
16517 need_locks=$lt_need_locks
16518
16519 # Manifest tool.
16520 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16521
16522 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16523 DSYMUTIL=$lt_DSYMUTIL
16524
16525 # Tool to change global to local symbols on Mac OS X.
16526 NMEDIT=$lt_NMEDIT
16527
16528 # Tool to manipulate fat objects and archives on Mac OS X.
16529 LIPO=$lt_LIPO
16530
16531 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16532 OTOOL=$lt_OTOOL
16533
16534 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16535 OTOOL64=$lt_OTOOL64
16536
16537 # Old archive suffix (normally "a").
16538 libext=$libext
16539
16540 # Shared library suffix (normally ".so").
16541 shrext_cmds=$lt_shrext_cmds
16542
16543 # The commands to extract the exported symbol list from a shared archive.
16544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16545
16546 # Variables whose values should be saved in libtool wrapper scripts and
16547 # restored at link time.
16548 variables_saved_for_relink=$lt_variables_saved_for_relink
16549
16550 # Do we need the "lib" prefix for modules?
16551 need_lib_prefix=$need_lib_prefix
16552
16553 # Do we need a version for libraries?
16554 need_version=$need_version
16555
16556 # Library versioning type.
16557 version_type=$version_type
16558
16559 # Shared library runtime path variable.
16560 runpath_var=$runpath_var
16561
16562 # Shared library path variable.
16563 shlibpath_var=$shlibpath_var
16564
16565 # Is shlibpath searched before the hard-coded library search path?
16566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16567
16568 # Format of library name prefix.
16569 libname_spec=$lt_libname_spec
16570
16571 # List of archive names. First name is the real one, the rest are links.
16572 # The last name is the one that the linker finds with -lNAME
16573 library_names_spec=$lt_library_names_spec
16574
16575 # The coded name of the library, if different from the real name.
16576 soname_spec=$lt_soname_spec
16577
16578 # Permission mode override for installation of shared libraries.
16579 install_override_mode=$lt_install_override_mode
16580
16581 # Command to use after installation of a shared archive.
16582 postinstall_cmds=$lt_postinstall_cmds
16583
16584 # Command to use after uninstallation of a shared archive.
16585 postuninstall_cmds=$lt_postuninstall_cmds
16586
16587 # Commands used to finish a libtool library installation in a directory.
16588 finish_cmds=$lt_finish_cmds
16589
16590 # As "finish_cmds", except a single script fragment to be evaled but
16591 # not shown.
16592 finish_eval=$lt_finish_eval
16593
16594 # Whether we should hardcode library paths into libraries.
16595 hardcode_into_libs=$hardcode_into_libs
16596
16597 # Compile-time system search path for libraries.
16598 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16599
16600 # Run-time system search path for libraries.
16601 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16602
16603 # Whether dlopen is supported.
16604 dlopen_support=$enable_dlopen
16605
16606 # Whether dlopen of programs is supported.
16607 dlopen_self=$enable_dlopen_self
16608
16609 # Whether dlopen of statically linked programs is supported.
16610 dlopen_self_static=$enable_dlopen_self_static
16611
16612 # Commands to strip libraries.
16613 old_striplib=$lt_old_striplib
16614 striplib=$lt_striplib
16615
16616
16617 # The linker used to build libraries.
16618 LD=$lt_LD
16619
16620 # How to create reloadable object files.
16621 reload_flag=$lt_reload_flag
16622 reload_cmds=$lt_reload_cmds
16623
16624 # Commands used to build an old-style archive.
16625 old_archive_cmds=$lt_old_archive_cmds
16626
16627 # A language specific compiler.
16628 CC=$lt_compiler
16629
16630 # Is the compiler the GNU compiler?
16631 with_gcc=$GCC
16632
16633 # Compiler flag to turn off builtin functions.
16634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16635
16636 # Additional compiler flags for building library objects.
16637 pic_flag=$lt_lt_prog_compiler_pic
16638
16639 # How to pass a linker flag through the compiler.
16640 wl=$lt_lt_prog_compiler_wl
16641
16642 # Compiler flag to prevent dynamic linking.
16643 link_static_flag=$lt_lt_prog_compiler_static
16644
16645 # Does compiler simultaneously support -c and -o options?
16646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16647
16648 # Whether or not to add -lc for building shared libraries.
16649 build_libtool_need_lc=$archive_cmds_need_lc
16650
16651 # Whether or not to disallow shared libs when runtime libs are static.
16652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16653
16654 # Compiler flag to allow reflexive dlopens.
16655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16656
16657 # Compiler flag to generate shared objects directly from archives.
16658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16659
16660 # Whether the compiler copes with passing no objects directly.
16661 compiler_needs_object=$lt_compiler_needs_object
16662
16663 # Create an old-style archive from a shared archive.
16664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16665
16666 # Create a temporary old-style archive to link instead of a shared archive.
16667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16668
16669 # Commands used to build a shared archive.
16670 archive_cmds=$lt_archive_cmds
16671 archive_expsym_cmds=$lt_archive_expsym_cmds
16672
16673 # Commands used to build a loadable module if different from building
16674 # a shared archive.
16675 module_cmds=$lt_module_cmds
16676 module_expsym_cmds=$lt_module_expsym_cmds
16677
16678 # Whether we are building with GNU ld or not.
16679 with_gnu_ld=$lt_with_gnu_ld
16680
16681 # Flag that allows shared libraries with undefined symbols to be built.
16682 allow_undefined_flag=$lt_allow_undefined_flag
16683
16684 # Flag that enforces no undefined symbols.
16685 no_undefined_flag=$lt_no_undefined_flag
16686
16687 # Flag to hardcode \$libdir into a binary during linking.
16688 # This must work even if \$libdir does not exist
16689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16690
16691 # Whether we need a single "-rpath" flag with a separated argument.
16692 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16693
16694 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16695 # DIR into the resulting binary.
16696 hardcode_direct=$hardcode_direct
16697
16698 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16699 # DIR into the resulting binary and the resulting library dependency is
16700 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16701 # library is relocated.
16702 hardcode_direct_absolute=$hardcode_direct_absolute
16703
16704 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16705 # into the resulting binary.
16706 hardcode_minus_L=$hardcode_minus_L
16707
16708 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16709 # into the resulting binary.
16710 hardcode_shlibpath_var=$hardcode_shlibpath_var
16711
16712 # Set to "yes" if building a shared library automatically hardcodes DIR
16713 # into the library and all subsequent libraries and executables linked
16714 # against it.
16715 hardcode_automatic=$hardcode_automatic
16716
16717 # Set to yes if linker adds runtime paths of dependent libraries
16718 # to runtime path list.
16719 inherit_rpath=$inherit_rpath
16720
16721 # Whether libtool must link a program against all its dependency libraries.
16722 link_all_deplibs=$link_all_deplibs
16723
16724 # Set to "yes" if exported symbols are required.
16725 always_export_symbols=$always_export_symbols
16726
16727 # The commands to list exported symbols.
16728 export_symbols_cmds=$lt_export_symbols_cmds
16729
16730 # Symbols that should not be listed in the preloaded symbols.
16731 exclude_expsyms=$lt_exclude_expsyms
16732
16733 # Symbols that must always be exported.
16734 include_expsyms=$lt_include_expsyms
16735
16736 # Commands necessary for linking programs (against libraries) with templates.
16737 prelink_cmds=$lt_prelink_cmds
16738
16739 # Commands necessary for finishing linking programs.
16740 postlink_cmds=$lt_postlink_cmds
16741
16742 # Specify filename containing input files.
16743 file_list_spec=$lt_file_list_spec
16744
16745 # How to hardcode a shared library path into an executable.
16746 hardcode_action=$hardcode_action
16747
16748 # The directories searched by this compiler when creating a shared library.
16749 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16750
16751 # Dependencies to place before and after the objects being linked to
16752 # create a shared library.
16753 predep_objects=$lt_predep_objects
16754 postdep_objects=$lt_postdep_objects
16755 predeps=$lt_predeps
16756 postdeps=$lt_postdeps
16757
16758 # The library search path used internally by the compiler when linking
16759 # a shared library.
16760 compiler_lib_search_path=$lt_compiler_lib_search_path
16761
16762 # ### END LIBTOOL CONFIG
16763
16764 _LT_EOF
16765
16766 case $host_os in
16767 aix3*)
16768 cat <<\_LT_EOF >> "$cfgfile"
16769 # AIX sometimes has problems with the GCC collect2 program. For some
16770 # reason, if we set the COLLECT_NAMES environment variable, the problems
16771 # vanish in a puff of smoke.
16772 if test "X${COLLECT_NAMES+set}" != Xset; then
16773 COLLECT_NAMES=
16774 export COLLECT_NAMES
16775 fi
16776 _LT_EOF
16777 ;;
16778 esac
16779
16780
16781 ltmain="$ac_aux_dir/ltmain.sh"
16782
16783
16784 # We use sed instead of cat because bash on DJGPP gets confused if
16785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16786 # text mode, it properly converts lines to CR/LF. This bash problem
16787 # is reportedly fixed, but why not run on old versions too?
16788 sed '$q' "$ltmain" >> "$cfgfile" \
16789 || (rm -f "$cfgfile"; exit 1)
16790
16791 if test x"$xsi_shell" = xyes; then
16792 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16793 func_dirname ()\
16794 {\
16795 \ case ${1} in\
16796 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16797 \ * ) func_dirname_result="${3}" ;;\
16798 \ esac\
16799 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16800 && mv -f "$cfgfile.tmp" "$cfgfile" \
16801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16802 test 0 -eq $? || _lt_function_replace_fail=:
16803
16804
16805 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16806 func_basename ()\
16807 {\
16808 \ func_basename_result="${1##*/}"\
16809 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16810 && mv -f "$cfgfile.tmp" "$cfgfile" \
16811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16812 test 0 -eq $? || _lt_function_replace_fail=:
16813
16814
16815 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16816 func_dirname_and_basename ()\
16817 {\
16818 \ case ${1} in\
16819 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16820 \ * ) func_dirname_result="${3}" ;;\
16821 \ esac\
16822 \ func_basename_result="${1##*/}"\
16823 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16824 && mv -f "$cfgfile.tmp" "$cfgfile" \
16825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16826 test 0 -eq $? || _lt_function_replace_fail=:
16827
16828
16829 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16830 func_stripname ()\
16831 {\
16832 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16833 \ # positional parameters, so assign one to ordinary parameter first.\
16834 \ func_stripname_result=${3}\
16835 \ func_stripname_result=${func_stripname_result#"${1}"}\
16836 \ func_stripname_result=${func_stripname_result%"${2}"}\
16837 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16838 && mv -f "$cfgfile.tmp" "$cfgfile" \
16839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16840 test 0 -eq $? || _lt_function_replace_fail=:
16841
16842
16843 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16844 func_split_long_opt ()\
16845 {\
16846 \ func_split_long_opt_name=${1%%=*}\
16847 \ func_split_long_opt_arg=${1#*=}\
16848 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16849 && mv -f "$cfgfile.tmp" "$cfgfile" \
16850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16851 test 0 -eq $? || _lt_function_replace_fail=:
16852
16853
16854 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16855 func_split_short_opt ()\
16856 {\
16857 \ func_split_short_opt_arg=${1#??}\
16858 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16859 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16860 && mv -f "$cfgfile.tmp" "$cfgfile" \
16861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16862 test 0 -eq $? || _lt_function_replace_fail=:
16863
16864
16865 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16866 func_lo2o ()\
16867 {\
16868 \ case ${1} in\
16869 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16870 \ *) func_lo2o_result=${1} ;;\
16871 \ esac\
16872 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16873 && mv -f "$cfgfile.tmp" "$cfgfile" \
16874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16875 test 0 -eq $? || _lt_function_replace_fail=:
16876
16877
16878 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16879 func_xform ()\
16880 {\
16881 func_xform_result=${1%.*}.lo\
16882 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16883 && mv -f "$cfgfile.tmp" "$cfgfile" \
16884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16885 test 0 -eq $? || _lt_function_replace_fail=:
16886
16887
16888 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16889 func_arith ()\
16890 {\
16891 func_arith_result=$(( $* ))\
16892 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16893 && mv -f "$cfgfile.tmp" "$cfgfile" \
16894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16895 test 0 -eq $? || _lt_function_replace_fail=:
16896
16897
16898 sed -e '/^func_len ()$/,/^} # func_len /c\
16899 func_len ()\
16900 {\
16901 func_len_result=${#1}\
16902 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16903 && mv -f "$cfgfile.tmp" "$cfgfile" \
16904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16905 test 0 -eq $? || _lt_function_replace_fail=:
16906
16907 fi
16908
16909 if test x"$lt_shell_append" = xyes; then
16910 sed -e '/^func_append ()$/,/^} # func_append /c\
16911 func_append ()\
16912 {\
16913 eval "${1}+=\\${2}"\
16914 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16915 && mv -f "$cfgfile.tmp" "$cfgfile" \
16916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16917 test 0 -eq $? || _lt_function_replace_fail=:
16918
16919
16920 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16921 func_append_quoted ()\
16922 {\
16923 \ func_quote_for_eval "${2}"\
16924 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16925 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16926 && mv -f "$cfgfile.tmp" "$cfgfile" \
16927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16928 test 0 -eq $? || _lt_function_replace_fail=:
16929
16930
16931 # Save a `func_append' function call where possible by direct use of '+='
16932 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16933 && mv -f "$cfgfile.tmp" "$cfgfile" \
16934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16935 test 0 -eq $? || _lt_function_replace_fail=:
16936 else
16937 # Save a `func_append' function call even when '+=' is not available
16938 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16939 && mv -f "$cfgfile.tmp" "$cfgfile" \
16940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16941 test 0 -eq $? || _lt_function_replace_fail=:
16942 fi
16943
16944 if test x"$_lt_function_replace_fail" = x":"; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16946 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16947 fi
16948
16949
16950 mv -f "$cfgfile" "$ofile" ||
16951 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16952 chmod +x "$ofile"
16953
16954
16955 cat <<_LT_EOF >> "$ofile"
16956
16957 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16958
16959 # The linker used to build libraries.
16960 LD=$lt_LD_CXX
16961
16962 # How to create reloadable object files.
16963 reload_flag=$lt_reload_flag_CXX
16964 reload_cmds=$lt_reload_cmds_CXX
16965
16966 # Commands used to build an old-style archive.
16967 old_archive_cmds=$lt_old_archive_cmds_CXX
16968
16969 # A language specific compiler.
16970 CC=$lt_compiler_CXX
16971
16972 # Is the compiler the GNU compiler?
16973 with_gcc=$GCC_CXX
16974
16975 # Compiler flag to turn off builtin functions.
16976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16977
16978 # Additional compiler flags for building library objects.
16979 pic_flag=$lt_lt_prog_compiler_pic_CXX
16980
16981 # How to pass a linker flag through the compiler.
16982 wl=$lt_lt_prog_compiler_wl_CXX
16983
16984 # Compiler flag to prevent dynamic linking.
16985 link_static_flag=$lt_lt_prog_compiler_static_CXX
16986
16987 # Does compiler simultaneously support -c and -o options?
16988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16989
16990 # Whether or not to add -lc for building shared libraries.
16991 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16992
16993 # Whether or not to disallow shared libs when runtime libs are static.
16994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16995
16996 # Compiler flag to allow reflexive dlopens.
16997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16998
16999 # Compiler flag to generate shared objects directly from archives.
17000 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17001
17002 # Whether the compiler copes with passing no objects directly.
17003 compiler_needs_object=$lt_compiler_needs_object_CXX
17004
17005 # Create an old-style archive from a shared archive.
17006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17007
17008 # Create a temporary old-style archive to link instead of a shared archive.
17009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17010
17011 # Commands used to build a shared archive.
17012 archive_cmds=$lt_archive_cmds_CXX
17013 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17014
17015 # Commands used to build a loadable module if different from building
17016 # a shared archive.
17017 module_cmds=$lt_module_cmds_CXX
17018 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17019
17020 # Whether we are building with GNU ld or not.
17021 with_gnu_ld=$lt_with_gnu_ld_CXX
17022
17023 # Flag that allows shared libraries with undefined symbols to be built.
17024 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17025
17026 # Flag that enforces no undefined symbols.
17027 no_undefined_flag=$lt_no_undefined_flag_CXX
17028
17029 # Flag to hardcode \$libdir into a binary during linking.
17030 # This must work even if \$libdir does not exist
17031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17032
17033 # Whether we need a single "-rpath" flag with a separated argument.
17034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17035
17036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17037 # DIR into the resulting binary.
17038 hardcode_direct=$hardcode_direct_CXX
17039
17040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17041 # DIR into the resulting binary and the resulting library dependency is
17042 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17043 # library is relocated.
17044 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17045
17046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17047 # into the resulting binary.
17048 hardcode_minus_L=$hardcode_minus_L_CXX
17049
17050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17051 # into the resulting binary.
17052 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17053
17054 # Set to "yes" if building a shared library automatically hardcodes DIR
17055 # into the library and all subsequent libraries and executables linked
17056 # against it.
17057 hardcode_automatic=$hardcode_automatic_CXX
17058
17059 # Set to yes if linker adds runtime paths of dependent libraries
17060 # to runtime path list.
17061 inherit_rpath=$inherit_rpath_CXX
17062
17063 # Whether libtool must link a program against all its dependency libraries.
17064 link_all_deplibs=$link_all_deplibs_CXX
17065
17066 # Set to "yes" if exported symbols are required.
17067 always_export_symbols=$always_export_symbols_CXX
17068
17069 # The commands to list exported symbols.
17070 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17071
17072 # Symbols that should not be listed in the preloaded symbols.
17073 exclude_expsyms=$lt_exclude_expsyms_CXX
17074
17075 # Symbols that must always be exported.
17076 include_expsyms=$lt_include_expsyms_CXX
17077
17078 # Commands necessary for linking programs (against libraries) with templates.
17079 prelink_cmds=$lt_prelink_cmds_CXX
17080
17081 # Commands necessary for finishing linking programs.
17082 postlink_cmds=$lt_postlink_cmds_CXX
17083
17084 # Specify filename containing input files.
17085 file_list_spec=$lt_file_list_spec_CXX
17086
17087 # How to hardcode a shared library path into an executable.
17088 hardcode_action=$hardcode_action_CXX
17089
17090 # The directories searched by this compiler when creating a shared library.
17091 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17092
17093 # Dependencies to place before and after the objects being linked to
17094 # create a shared library.
17095 predep_objects=$lt_predep_objects_CXX
17096 postdep_objects=$lt_postdep_objects_CXX
17097 predeps=$lt_predeps_CXX
17098 postdeps=$lt_postdeps_CXX
17099
17100 # The library search path used internally by the compiler when linking
17101 # a shared library.
17102 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17103
17104 # ### END LIBTOOL TAG CONFIG: CXX
17105 _LT_EOF
17106
17107
17108 as_fn_exit 0
17109 _LTEOF
17110 chmod +x "$CONFIG_LT"
17111
17112 # configure is writing to config.log, but config.lt does its own redirection,
17113 # appending to config.log, which fails on DOS, as config.log is still kept
17114 # open by configure. Here we exec the FD to /dev/null, effectively closing
17115 # config.log, so it can be properly (re)opened and appended to by config.lt.
17116 lt_cl_success=:
17117 test "$silent" = yes &&
17118 lt_config_lt_args="$lt_config_lt_args --quiet"
17119 exec 5>/dev/null
17120 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17121 exec 5>>config.log
17122 $lt_cl_success || as_fn_exit 1
17123
17124
17125 # Check for threads.
17126 #
17127
17128
17129 threads_thread_keyword=no
17130
17131 # Check whether --enable-threads was given.
17132 if test "${enable_threads+set}" = set; then :
17133 enableval=$enable_threads; if test x"$enableval" = xno; then :
17134 threads=none
17135 else
17136 threads=check
17137 fi
17138 else
17139 threads=check
17140 fi
17141
17142
17143 # If thread support is not disabled by the user, figure out what we can use.
17144 #
17145 if test x$threads = xcheck; then
17146 case $host_os in
17147 windows* | mingw*)
17148 case $host_os in
17149 mingw*)
17150 CXXFLAGS="$CXXFLAGS -mthreads"
17151 ;;
17152 esac
17153
17154 # Newer versions of GCC can be configured to use either Win32 or POSIX
17155 # threads. It appears that -mthreads should be used in both cases but
17156 # if the model is POSIX then GCC will also link -lpthread by default.
17157 # Use that fact to test which model we have.
17158 #
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17161 #include <pthread.h>
17162 int
17163 main ()
17164 {
17165 pthread_create(0,0,0,0);
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_cxx_try_link "$LINENO"; then :
17171 threads=posix
17172 else
17173 threads=win32
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17177 ;;
17178 *)
17179
17180
17181
17182 ac_ext=cpp
17183 ac_cpp='$CXXCPP $CPPFLAGS'
17184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17187
17188 acx_pthread_ok=no
17189
17190 # We used to check for pthread.h first, but this fails if pthread.h
17191 # requires special compiler flags (e.g. on True64 or Sequent).
17192 # It gets checked for in the link test anyway.
17193
17194 # First of all, check if the user has set any of the PTHREAD_LIBS,
17195 # etcetera environment variables, and if threads linking works using
17196 # them:
17197 if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
17198 save_CXXFLAGS="$CXXFLAGS"
17199 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17200 save_LIBS="$LIBS"
17201 LIBS="$PTHREAD_LIBS $LIBS"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS" >&5
17203 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS... " >&6; }
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char pthread_join ();
17214 int
17215 main ()
17216 {
17217 return pthread_join ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_cxx_try_link "$LINENO"; then :
17223 acx_pthread_ok=yes
17224 fi
17225 rm -f core conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17228 $as_echo "$acx_pthread_ok" >&6; }
17229 if test x"$acx_pthread_ok" = xno; then
17230 PTHREAD_LIBS=""
17231 PTHREAD_CXXFLAGS=""
17232 fi
17233 LIBS="$save_LIBS"
17234 CXXFLAGS="$save_CXXFLAGS"
17235 fi
17236
17237 # We must check for the threads library under a number of different
17238 # names; the ordering is very important because some systems
17239 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17240 # libraries is broken (non-POSIX).
17241
17242 # Create a list of thread flags to try. Items starting with a "-" are
17243 # C compiler flags, and other items are library names, except for "none"
17244 # which indicates that we try without any flags at all, and "pthread-config"
17245 # which is a program returning the flags for the Pth emulation library.
17246
17247 # CS: On GNU/Linux with gcc both -pthread and -lpthread are valid.
17248 # However, libtool links libraries with -nostdlib which results in
17249 # -pthread being stripped from the linker command line. To resolve
17250 # this we move pthread from after -mthreads to after pthreads.
17251 #
17252 acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
17253
17254 # The ordering *is* (sometimes) important. Some notes on the
17255 # individual items follow:
17256
17257 # pthreads: AIX (must check this before -lpthread)
17258 # none: in case threads are in libc; should be tried before -Kthread and
17259 # other compiler flags to prevent continual compiler warnings
17260 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17261 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17262 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17263 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17264 # -pthreads: Solaris/gcc
17265 # -mthreads: Mingw32/gcc, Lynx/gcc
17266 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17267 # doesn't hurt to check since this sometimes defines pthreads too;
17268 # also defines -D_REENTRANT)
17269 # ... -mt is also the pthreads flag for HP/aCC
17270 # pthread: Linux, etcetera
17271 # --thread-safe: KAI C++
17272 # pthread-config: use pthread-config program (for GNU Pth library)
17273
17274 case "${host_cpu}-${host_os}" in
17275 *solaris*)
17276
17277 # On Solaris (at least, for some versions), libc contains stubbed
17278 # (non-functional) versions of the pthreads routines, so link-based
17279 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17280 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17281 # a function called by this macro, so we could check for that, but
17282 # who knows whether they'll stub that too in a future libc.) So,
17283 # we'll just look for -pthreads and -lpthread first:
17284
17285 # CS: Move -mt to the front of the list; Sun CC will use -mt,
17286 # gcc will use -pthreads.
17287 #
17288 acx_pthread_flags="-mt -pthreads pthread -pthread $acx_pthread_flags"
17289 ;;
17290 esac
17291
17292 if test x"$acx_pthread_ok" = xno; then
17293 for flag in $acx_pthread_flags; do
17294
17295 case $flag in
17296 none)
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17298 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17299 ;;
17300
17301 -*)
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17303 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17304 PTHREAD_CXXFLAGS="$flag"
17305 ;;
17306
17307 pthread-config)
17308 # Extract the first word of "pthread-config", so it can be a program name with args.
17309 set dummy pthread-config; ac_word=$2
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17311 $as_echo_n "checking for $ac_word... " >&6; }
17312 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 if test -n "$acx_pthread_config"; then
17316 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17317 else
17318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17319 for as_dir in $PATH
17320 do
17321 IFS=$as_save_IFS
17322 test -z "$as_dir" && as_dir=.
17323 for ac_exec_ext in '' $ac_executable_extensions; do
17324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17325 ac_cv_prog_acx_pthread_config="yes"
17326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17327 break 2
17328 fi
17329 done
17330 done
17331 IFS=$as_save_IFS
17332
17333 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17334 fi
17335 fi
17336 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17337 if test -n "$acx_pthread_config"; then
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17339 $as_echo "$acx_pthread_config" >&6; }
17340 else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342 $as_echo "no" >&6; }
17343 fi
17344
17345
17346 if test x"$acx_pthread_config" = xno; then continue; fi
17347 PTHREAD_CXXFLAGS="`pthread-config --cflags`"
17348 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17349 ;;
17350
17351 *)
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17353 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17354 PTHREAD_LIBS="-l$flag"
17355 ;;
17356 esac
17357
17358 save_LIBS="$LIBS"
17359 save_CXXFLAGS="$CXXFLAGS"
17360 LIBS="$PTHREAD_LIBS $LIBS"
17361 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17362
17363 # Check for various functions. We must include pthread.h,
17364 # since some functions may be macros. (On the Sequent, we
17365 # need a special flag -Kthread to make this header compile.)
17366 # We check for pthread_join because it is in -lpthread on IRIX
17367 # while pthread_create is in libc. We check for pthread_attr_init
17368 # due to DEC craziness with -lpthreads. We check for
17369 # pthread_cleanup_push because it is one of the few pthread
17370 # functions on Solaris that doesn't have a non-functional libc stub.
17371 # We try pthread_create on general principles.
17372 #
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17375 #include <pthread.h>
17376 int
17377 main ()
17378 {
17379 pthread_t th; pthread_join(th, 0);
17380 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17381 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17382 ;
17383 return 0;
17384 }
17385 _ACEOF
17386 if ac_fn_cxx_try_link "$LINENO"; then :
17387 acx_pthread_ok=yes
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391
17392 LIBS="$save_LIBS"
17393 CXXFLAGS="$save_CXXFLAGS"
17394
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17396 $as_echo "$acx_pthread_ok" >&6; }
17397 if test "x$acx_pthread_ok" = xyes; then
17398 break;
17399 fi
17400
17401 PTHREAD_LIBS=""
17402 PTHREAD_CXXFLAGS=""
17403 done
17404 fi
17405
17406 # Various other checks:
17407 if test "x$acx_pthread_ok" = xyes; then
17408 save_LIBS="$LIBS"
17409 LIBS="$PTHREAD_LIBS $LIBS"
17410 save_CXXFLAGS="$CXXFLAGS"
17411 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17412
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17415 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17416 flag=no
17417 case "${host_cpu}-${host_os}" in
17418 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17419 # CS: Add _REENTRANT in Linux to emulate -pthread.
17420 #
17421 *-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17422 esac
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17424 $as_echo "${flag}" >&6; }
17425 if test "x$flag" != xno; then
17426 PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
17427 fi
17428
17429 LIBS="$save_LIBS"
17430 CXXFLAGS="$save_CXXFLAGS"
17431
17432
17433 else
17434 PTHREAD_CXX="$CXX"
17435 fi
17436
17437
17438
17439
17440
17441 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17442 if test x"$acx_pthread_ok" = xyes; then
17443
17444 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17445
17446 :
17447 else
17448 acx_pthread_ok=no
17449
17450 fi
17451 ac_ext=cpp
17452 ac_cpp='$CXXCPP $CPPFLAGS'
17453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17456
17457
17458
17459 if test x$acx_pthread_ok = xyes; then
17460 threads=posix
17461 LIBS="$LIBS $PTHREAD_LIBS"
17462 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17463
17464 # Check if we can use the __thread keyword.
17465 #
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread keyword" >&5
17467 $as_echo_n "checking for __thread keyword... " >&6; }
17468
17469
17470
17471 ac_ext=cpp
17472 ac_cpp='$CXXCPP $CPPFLAGS'
17473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17476
17477
17478 if test -d .libs; then
17479 delete_libs_dir=no
17480 else
17481 delete_libs_dir=yes
17482 fi
17483
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486
17487
17488 __thread int tls_var;
17489
17490 int
17491 main ()
17492 {
17493 tls_var = 0;
17494 }
17495
17496 _ACEOF
17497 if ac_fn_cxx_try_compile "$LINENO"; then :
17498
17499 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17500 if { { case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503 esac
17504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17505 $as_echo "$ac_try_echo"; } >&5
17506 (eval "$ac_try") 2>&5
17507 ac_status=$?
17508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17509 test $ac_status = 0; }; then
17510 libtool_link_ok=yes
17511 else
17512 libtool_link_ok=no
17513 fi
17514
17515 else
17516
17517 libtool_link_ok=no
17518
17519 fi
17520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521
17522 if test x"$delete_libs_dir" = xyes; then
17523 rm -rf .libs
17524 fi
17525
17526 if test x"$libtool_link_ok" = xyes; then
17527 threads_thread_keyword=yes
17528 :
17529 else
17530
17531 :
17532 fi
17533
17534 ac_ext=cpp
17535 ac_cpp='$CXXCPP $CPPFLAGS'
17536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17539
17540
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $threads_thread_keyword" >&5
17542 $as_echo "$threads_thread_keyword" >&6; }
17543 fi
17544 ;;
17545 esac
17546 fi
17547
17548 if test x$threads = xcheck; then
17549 as_fn_error $? "thread support not available; use --disable-threads to force single-threaded mode" "$LINENO" 5
17550 fi
17551
17552
17553 # Check for libmysqlclient.
17554 #
17555
17556 libmysqlclient_found=no
17557
17558 if test x"$threads" != xnone; then
17559 libmysqlclient_name=mysqlclient_r
17560 else
17561 libmysqlclient_name=mysqlclient
17562 fi
17563
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lib$libmysqlclient_name" >&5
17565 $as_echo_n "checking for lib$libmysqlclient_name... " >&6; }
17566
17567 save_LIBS="$LIBS"
17568 LIBS="-l$libmysqlclient_name $LIBS"
17569
17570 # Some distributions (e.g., Fedora) hide the library in the mysql/
17571 # subdirectory.
17572 #
17573 libmysqlclient_paths="none /usr/lib/mysql /usr/lib64/mysql"
17574
17575 for path in $libmysqlclient_paths; do
17576
17577 if test x"path" != xnone; then
17578 save_LDFLAGS="$LDFLAGS"
17579 LDFLAGS="$LDFLAGS -L$path"
17580 fi
17581
17582
17583
17584 ac_ext=cpp
17585 ac_cpp='$CXXCPP $CPPFLAGS'
17586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17589
17590
17591 if test -d .libs; then
17592 delete_libs_dir=no
17593 else
17594 delete_libs_dir=yes
17595 fi
17596
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17599
17600
17601 #ifdef _WIN32
17602 # include <winsock2.h>
17603 #endif
17604 #include <mysql/mysql.h>
17605
17606 int
17607 main ()
17608 {
17609 MYSQL handle;
17610 mysql_init (&handle);
17611 mysql_real_connect (&handle, 0, 0, 0, 0, 0, 0, 0);
17612 MYSQL_STMT* stmt = mysql_stmt_init (&handle);
17613 mysql_stmt_close (stmt);
17614 mysql_close (&handle);
17615 }
17616
17617 _ACEOF
17618 if ac_fn_cxx_try_compile "$LINENO"; then :
17619
17620 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17621 if { { case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17626 $as_echo "$ac_try_echo"; } >&5
17627 (eval "$ac_try") 2>&5
17628 ac_status=$?
17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; }; then
17631 libtool_link_ok=yes
17632 else
17633 libtool_link_ok=no
17634 fi
17635
17636 else
17637
17638 libtool_link_ok=no
17639
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642
17643 if test x"$delete_libs_dir" = xyes; then
17644 rm -rf .libs
17645 fi
17646
17647 if test x"$libtool_link_ok" = xyes; then
17648
17649 libmysqlclient_found=yes
17650 libmysqlclient_include=long
17651
17652 :
17653 else
17654
17655 :
17656 fi
17657
17658 ac_ext=cpp
17659 ac_cpp='$CXXCPP $CPPFLAGS'
17660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17663
17664
17665 if test x"$libmysqlclient_found" = xyes; then
17666 break;
17667 fi
17668
17669
17670
17671 ac_ext=cpp
17672 ac_cpp='$CXXCPP $CPPFLAGS'
17673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17676
17677
17678 if test -d .libs; then
17679 delete_libs_dir=no
17680 else
17681 delete_libs_dir=yes
17682 fi
17683
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686
17687
17688 #ifdef _WIN32
17689 # include <winsock2.h>
17690 #endif
17691 #include <mysql.h>
17692
17693 int
17694 main ()
17695 {
17696 MYSQL handle;
17697 mysql_init (&handle);
17698 mysql_real_connect (&handle, 0, 0, 0, 0, 0, 0, 0);
17699 MYSQL_STMT* stmt = mysql_stmt_init (&handle);
17700 mysql_stmt_close (stmt);
17701 mysql_close (&handle);
17702 }
17703
17704 _ACEOF
17705 if ac_fn_cxx_try_compile "$LINENO"; then :
17706
17707 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17708 if { { case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711 esac
17712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17713 $as_echo "$ac_try_echo"; } >&5
17714 (eval "$ac_try") 2>&5
17715 ac_status=$?
17716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17717 test $ac_status = 0; }; then
17718 libtool_link_ok=yes
17719 else
17720 libtool_link_ok=no
17721 fi
17722
17723 else
17724
17725 libtool_link_ok=no
17726
17727 fi
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729
17730 if test x"$delete_libs_dir" = xyes; then
17731 rm -rf .libs
17732 fi
17733
17734 if test x"$libtool_link_ok" = xyes; then
17735
17736 libmysqlclient_found=yes
17737 libmysqlclient_include=short
17738
17739 :
17740 else
17741
17742 :
17743 fi
17744
17745 ac_ext=cpp
17746 ac_cpp='$CXXCPP $CPPFLAGS'
17747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17750
17751
17752 if test x"$libmysqlclient_found" = xyes; then
17753 break;
17754 fi
17755
17756 if test x"path" != xnone; then
17757 LDFLAGS="$save_LDFLAGS"
17758 fi
17759
17760 done
17761
17762 if test x"$libmysqlclient_found" = xno; then
17763 LIBS="$save_LIBS"
17764 fi
17765
17766 if test x"$libmysqlclient_found" = xyes; then
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17768 $as_echo "yes" >&6; }
17769
17770 else
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773 as_fn_error $? "lib$libmysqlclient_name is not found; consider using CPPFLAGS/LDFLAGS to specify its location" "$LINENO" 5
17774 fi
17775
17776 # Check if the THR_KEY_mysys pthread key symbol is visible.
17777 #
17778 libmysqlclient_thr_key_visible=no
17779
17780 if test x"$libmysqlclient_found" = xyes -a x"$threads" = xposix; then
17781
17782
17783
17784 ac_ext=cpp
17785 ac_cpp='$CXXCPP $CPPFLAGS'
17786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789
17790
17791 if test -d .libs; then
17792 delete_libs_dir=no
17793 else
17794 delete_libs_dir=yes
17795 fi
17796
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799
17800
17801 #include <pthread.h>
17802 extern pthread_key_t THR_KEY_mysys;
17803 int
17804 main ()
17805 {
17806 return pthread_getspecific (THR_KEY_mysys) != 0;
17807 }
17808
17809 _ACEOF
17810 if ac_fn_cxx_try_compile "$LINENO"; then :
17811
17812 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17813 if { { case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17816 esac
17817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17818 $as_echo "$ac_try_echo"; } >&5
17819 (eval "$ac_try") 2>&5
17820 ac_status=$?
17821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17822 test $ac_status = 0; }; then
17823 libtool_link_ok=yes
17824 else
17825 libtool_link_ok=no
17826 fi
17827
17828 else
17829
17830 libtool_link_ok=no
17831
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834
17835 if test x"$delete_libs_dir" = xyes; then
17836 rm -rf .libs
17837 fi
17838
17839 if test x"$libtool_link_ok" = xyes; then
17840
17841 libmysqlclient_thr_key_visible=yes
17842
17843 :
17844 else
17845
17846 :
17847 fi
17848
17849 ac_ext=cpp
17850 ac_cpp='$CXXCPP $CPPFLAGS'
17851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17854
17855 fi
17856
17857
17858
17859 case $libmysqlclient_include in
17860 short)
17861
17862 $as_echo "#define LIBODB_MYSQL_INCLUDE_SHORT 1" >>confdefs.h
17863
17864 ;;
17865 long)
17866
17867 $as_echo "#define LIBODB_MYSQL_INCLUDE_LONG 1" >>confdefs.h
17868
17869 ;;
17870 esac
17871
17872 if test x"$libmysqlclient_thr_key_visible" = xyes; then
17873
17874 $as_echo "#define LIBODB_MYSQL_THR_KEY_VISIBLE 1" >>confdefs.h
17875
17876 fi
17877
17878 # Check for libodb.
17879 #
17880
17881 libodb_found=no
17882
17883
17884 # Check whether --with-libodb was given.
17885 if test "${with_libodb+set}" = set; then :
17886 withval=$with_libodb; libodb_dir=${withval}
17887 else
17888 libodb_dir=
17889 fi
17890
17891
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libodb" >&5
17893 $as_echo_n "checking for libodb... " >&6; }
17894
17895 # If libodb_dir was given, add the necessary preprocessor and linker flags.
17896 #
17897 if test x"$libodb_dir" != x; then
17898 save_CPPFLAGS="$CPPFLAGS"
17899 save_LDFLAGS="$LDFLAGS"
17900
17901 case $ac_pwd in #((
17902 .) abs_libodb_dir=$libodb_dir;;
17903 *)
17904 case $libodb_dir in #(((
17905 .) abs_libodb_dir=$ac_pwd;;
17906 [\\/]* | ?:[\\/]* ) abs_libodb_dir=$libodb_dir;;
17907 *) abs_libodb_dir=$ac_pwd/$libodb_dir;;
17908 esac;;
17909 esac
17910
17911 CPPFLAGS="$CPPFLAGS -I$abs_libodb_dir"
17912 LDFLAGS="$LDFLAGS -L$abs_libodb_dir/odb"
17913 fi
17914
17915 save_LIBS="$LIBS"
17916 LIBS="-lodb $LIBS"
17917
17918
17919
17920 ac_ext=cpp
17921 ac_cpp='$CXXCPP $CPPFLAGS'
17922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17925
17926
17927 if test -d .libs; then
17928 delete_libs_dir=no
17929 else
17930 delete_libs_dir=yes
17931 fi
17932
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935
17936
17937 #include <odb/exception.hxx>
17938
17939 void
17940 f ()
17941 {
17942 }
17943
17944 const char*
17945 g ()
17946 {
17947 try
17948 {
17949 f ();
17950 }
17951 catch (const odb::exception& e)
17952 {
17953 return e.what ();
17954 }
17955 return 0;
17956 }
17957
17958 int
17959 main ()
17960 {
17961 const char* m (g ());
17962 return m != 0;
17963 }
17964
17965 _ACEOF
17966 if ac_fn_cxx_try_compile "$LINENO"; then :
17967
17968 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17969 if { { case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972 esac
17973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17974 $as_echo "$ac_try_echo"; } >&5
17975 (eval "$ac_try") 2>&5
17976 ac_status=$?
17977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17978 test $ac_status = 0; }; then
17979 libtool_link_ok=yes
17980 else
17981 libtool_link_ok=no
17982 fi
17983
17984 else
17985
17986 libtool_link_ok=no
17987
17988 fi
17989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990
17991 if test x"$delete_libs_dir" = xyes; then
17992 rm -rf .libs
17993 fi
17994
17995 if test x"$libtool_link_ok" = xyes; then
17996 libodb_found=yes
17997 :
17998 else
17999
18000 :
18001 fi
18002
18003 ac_ext=cpp
18004 ac_cpp='$CXXCPP $CPPFLAGS'
18005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18008
18009
18010 if test x"$libodb_found" = xno; then
18011 LIBS="$save_LIBS"
18012
18013 if test x"$libodb_dir" != x; then
18014 CPPFLAGS="$save_CPPFLAGS"
18015 LDFLAGS="$save_LDFLAGS"
18016 fi
18017 fi
18018
18019 if test x"$libodb_found" = xyes; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18021 $as_echo "yes" >&6; }
18022
18023 else
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18025 $as_echo "no" >&6; }
18026 as_fn_error $? "libodb is not found; consider using --with-libodb=DIR" "$LINENO" 5
18027 fi
18028
18029
18030 # Define LIBODB_MYSQL_STATIC_LIB if we are build static library on certain
18031 # platforms.
18032 #
18033
18034 if test x$enable_shared = xno; then
18035 case $host_os in
18036 mingw*)
18037
18038 $as_echo "#define LIBODB_MYSQL_STATIC_LIB 1" >>confdefs.h
18039
18040 ;;
18041 esac
18042 fi
18043
18044
18045 # Allow the user to specify the pkgconfig directory.
18046 #
18047
18048
18049 # Check whether --with-pkgconfigdir was given.
18050 if test "${with_pkgconfigdir+set}" = set; then :
18051 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
18052 else
18053 pkgconfigdir='${libdir}/pkgconfig'
18054 fi
18055
18056
18057
18058
18059 # Check if we should disable rpath.
18060 #
18061
18062
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
18064 $as_echo_n "checking whether to use rpath... " >&6; }
18065 # Check whether --enable-rpath was given.
18066 if test "${enable_rpath+set}" = set; then :
18067 enableval=$enable_rpath; libtool_rpath="$enable_rpath"
18068 else
18069 libtool_rpath="yes"
18070 fi
18071
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool_rpath" >&5
18073 $as_echo "$libtool_rpath" >&6; }
18074
18075 # Patch libtool to not use rpath if requested.
18076 #
18077 ac_config_commands="$ac_config_commands libtool-rpath-patch"
18078
18079
18080
18081 # Output.
18082 #
18083 ac_config_headers="$ac_config_headers odb/mysql/config.h odb/mysql/details/config.h"
18084
18085 ac_config_files="$ac_config_files libodb-mysql.pc Makefile odb/mysql/Makefile"
18086
18087 cat >confcache <<\_ACEOF
18088 # This file is a shell script that caches the results of configure
18089 # tests run on this system so they can be shared between configure
18090 # scripts and configure runs, see configure's option --config-cache.
18091 # It is not useful on other systems. If it contains results you don't
18092 # want to keep, you may remove or edit it.
18093 #
18094 # config.status only pays attention to the cache file if you give it
18095 # the --recheck option to rerun configure.
18096 #
18097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18099 # following values.
18100
18101 _ACEOF
18102
18103 # The following way of writing the cache mishandles newlines in values,
18104 # but we know of no workaround that is simple, portable, and efficient.
18105 # So, we kill variables containing newlines.
18106 # Ultrix sh set writes to stderr and can't be redirected directly,
18107 # and sets the high bit in the cache file unless we assign to the vars.
18108 (
18109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18110 eval ac_val=\$$ac_var
18111 case $ac_val in #(
18112 *${as_nl}*)
18113 case $ac_var in #(
18114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18116 esac
18117 case $ac_var in #(
18118 _ | IFS | as_nl) ;; #(
18119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18120 *) { eval $ac_var=; unset $ac_var;} ;;
18121 esac ;;
18122 esac
18123 done
18124
18125 (set) 2>&1 |
18126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18127 *${as_nl}ac_space=\ *)
18128 # `set' does not quote correctly, so add quotes: double-quote
18129 # substitution turns \\\\ into \\, and sed turns \\ into \.
18130 sed -n \
18131 "s/'/'\\\\''/g;
18132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18133 ;; #(
18134 *)
18135 # `set' quotes correctly as required by POSIX, so do not add quotes.
18136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18137 ;;
18138 esac |
18139 sort
18140 ) |
18141 sed '
18142 /^ac_cv_env_/b end
18143 t clear
18144 :clear
18145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18146 t end
18147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18148 :end' >>confcache
18149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18150 if test -w "$cache_file"; then
18151 if test "x$cache_file" != "x/dev/null"; then
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18153 $as_echo "$as_me: updating cache $cache_file" >&6;}
18154 if test ! -f "$cache_file" || test -h "$cache_file"; then
18155 cat confcache >"$cache_file"
18156 else
18157 case $cache_file in #(
18158 */* | ?:*)
18159 mv -f confcache "$cache_file"$$ &&
18160 mv -f "$cache_file"$$ "$cache_file" ;; #(
18161 *)
18162 mv -f confcache "$cache_file" ;;
18163 esac
18164 fi
18165 fi
18166 else
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18168 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18169 fi
18170 fi
18171 rm -f confcache
18172
18173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18174 # Let make expand exec_prefix.
18175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18176
18177 DEFS=-DHAVE_CONFIG_H
18178
18179 ac_libobjs=
18180 ac_ltlibobjs=
18181 U=
18182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18183 # 1. Remove the extension, and $U if already installed.
18184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18187 # will be set to the directory where LIBOBJS objects are built.
18188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18190 done
18191 LIBOBJS=$ac_libobjs
18192
18193 LTLIBOBJS=$ac_ltlibobjs
18194
18195
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18197 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18198 if test -n "$am_sleep_pid"; then
18199 # Hide warnings about reused PIDs.
18200 wait $am_sleep_pid 2>/dev/null
18201 fi
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18203 $as_echo "done" >&6; }
18204 if test -n "$EXEEXT"; then
18205 am__EXEEXT_TRUE=
18206 am__EXEEXT_FALSE='#'
18207 else
18208 am__EXEEXT_TRUE='#'
18209 am__EXEEXT_FALSE=
18210 fi
18211
18212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18213 as_fn_error $? "conditional \"AMDEP\" was never defined.
18214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18215 fi
18216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18217 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18219 fi
18220 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18221 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18223 fi
18224
18225 : "${CONFIG_STATUS=./config.status}"
18226 ac_write_fail=0
18227 ac_clean_files_save=$ac_clean_files
18228 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18230 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18231 as_write_fail=0
18232 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18233 #! $SHELL
18234 # Generated by $as_me.
18235 # Run this file to recreate the current configuration.
18236 # Compiler output produced by configure, useful for debugging
18237 # configure, is in config.log if it exists.
18238
18239 debug=false
18240 ac_cs_recheck=false
18241 ac_cs_silent=false
18242
18243 SHELL=\${CONFIG_SHELL-$SHELL}
18244 export SHELL
18245 _ASEOF
18246 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18247 ## -------------------- ##
18248 ## M4sh Initialization. ##
18249 ## -------------------- ##
18250
18251 # Be more Bourne compatible
18252 DUALCASE=1; export DUALCASE # for MKS sh
18253 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18254 emulate sh
18255 NULLCMD=:
18256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18257 # is contrary to our usage. Disable this feature.
18258 alias -g '${1+"$@"}'='"$@"'
18259 setopt NO_GLOB_SUBST
18260 else
18261 case `(set -o) 2>/dev/null` in #(
18262 *posix*) :
18263 set -o posix ;; #(
18264 *) :
18265 ;;
18266 esac
18267 fi
18268
18269
18270 as_nl='
18271 '
18272 export as_nl
18273 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18274 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18275 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18277 # Prefer a ksh shell builtin over an external printf program on Solaris,
18278 # but without wasting forks for bash or zsh.
18279 if test -z "$BASH_VERSION$ZSH_VERSION" \
18280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18281 as_echo='print -r --'
18282 as_echo_n='print -rn --'
18283 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18284 as_echo='printf %s\n'
18285 as_echo_n='printf %s'
18286 else
18287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18289 as_echo_n='/usr/ucb/echo -n'
18290 else
18291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18292 as_echo_n_body='eval
18293 arg=$1;
18294 case $arg in #(
18295 *"$as_nl"*)
18296 expr "X$arg" : "X\\(.*\\)$as_nl";
18297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18298 esac;
18299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18300 '
18301 export as_echo_n_body
18302 as_echo_n='sh -c $as_echo_n_body as_echo'
18303 fi
18304 export as_echo_body
18305 as_echo='sh -c $as_echo_body as_echo'
18306 fi
18307
18308 # The user is always right.
18309 if test "${PATH_SEPARATOR+set}" != set; then
18310 PATH_SEPARATOR=:
18311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18313 PATH_SEPARATOR=';'
18314 }
18315 fi
18316
18317
18318 # IFS
18319 # We need space, tab and new line, in precisely that order. Quoting is
18320 # there to prevent editors from complaining about space-tab.
18321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18322 # splitting by setting IFS to empty value.)
18323 IFS=" "" $as_nl"
18324
18325 # Find who we are. Look in the path if we contain no directory separator.
18326 as_myself=
18327 case $0 in #((
18328 *[\\/]* ) as_myself=$0 ;;
18329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18330 for as_dir in $PATH
18331 do
18332 IFS=$as_save_IFS
18333 test -z "$as_dir" && as_dir=.
18334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18335 done
18336 IFS=$as_save_IFS
18337
18338 ;;
18339 esac
18340 # We did not find ourselves, most probably we were run as `sh COMMAND'
18341 # in which case we are not to be found in the path.
18342 if test "x$as_myself" = x; then
18343 as_myself=$0
18344 fi
18345 if test ! -f "$as_myself"; then
18346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18347 exit 1
18348 fi
18349
18350 # Unset variables that we do not need and which cause bugs (e.g. in
18351 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18352 # suppresses any "Segmentation fault" message there. '((' could
18353 # trigger a bug in pdksh 5.2.14.
18354 for as_var in BASH_ENV ENV MAIL MAILPATH
18355 do eval test x\${$as_var+set} = xset \
18356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18357 done
18358 PS1='$ '
18359 PS2='> '
18360 PS4='+ '
18361
18362 # NLS nuisances.
18363 LC_ALL=C
18364 export LC_ALL
18365 LANGUAGE=C
18366 export LANGUAGE
18367
18368 # CDPATH.
18369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18370
18371
18372 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18373 # ----------------------------------------
18374 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18375 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18376 # script with STATUS, using 1 if that was 0.
18377 as_fn_error ()
18378 {
18379 as_status=$1; test $as_status -eq 0 && as_status=1
18380 if test "$4"; then
18381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18383 fi
18384 $as_echo "$as_me: error: $2" >&2
18385 as_fn_exit $as_status
18386 } # as_fn_error
18387
18388
18389 # as_fn_set_status STATUS
18390 # -----------------------
18391 # Set $? to STATUS, without forking.
18392 as_fn_set_status ()
18393 {
18394 return $1
18395 } # as_fn_set_status
18396
18397 # as_fn_exit STATUS
18398 # -----------------
18399 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18400 as_fn_exit ()
18401 {
18402 set +e
18403 as_fn_set_status $1
18404 exit $1
18405 } # as_fn_exit
18406
18407 # as_fn_unset VAR
18408 # ---------------
18409 # Portably unset VAR.
18410 as_fn_unset ()
18411 {
18412 { eval $1=; unset $1;}
18413 }
18414 as_unset=as_fn_unset
18415 # as_fn_append VAR VALUE
18416 # ----------------------
18417 # Append the text in VALUE to the end of the definition contained in VAR. Take
18418 # advantage of any shell optimizations that allow amortized linear growth over
18419 # repeated appends, instead of the typical quadratic growth present in naive
18420 # implementations.
18421 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18422 eval 'as_fn_append ()
18423 {
18424 eval $1+=\$2
18425 }'
18426 else
18427 as_fn_append ()
18428 {
18429 eval $1=\$$1\$2
18430 }
18431 fi # as_fn_append
18432
18433 # as_fn_arith ARG...
18434 # ------------------
18435 # Perform arithmetic evaluation on the ARGs, and store the result in the
18436 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18437 # must be portable across $(()) and expr.
18438 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18439 eval 'as_fn_arith ()
18440 {
18441 as_val=$(( $* ))
18442 }'
18443 else
18444 as_fn_arith ()
18445 {
18446 as_val=`expr "$@" || test $? -eq 1`
18447 }
18448 fi # as_fn_arith
18449
18450
18451 if expr a : '\(a\)' >/dev/null 2>&1 &&
18452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18453 as_expr=expr
18454 else
18455 as_expr=false
18456 fi
18457
18458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18459 as_basename=basename
18460 else
18461 as_basename=false
18462 fi
18463
18464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18465 as_dirname=dirname
18466 else
18467 as_dirname=false
18468 fi
18469
18470 as_me=`$as_basename -- "$0" ||
18471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18472 X"$0" : 'X\(//\)$' \| \
18473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18474 $as_echo X/"$0" |
18475 sed '/^.*\/\([^/][^/]*\)\/*$/{
18476 s//\1/
18477 q
18478 }
18479 /^X\/\(\/\/\)$/{
18480 s//\1/
18481 q
18482 }
18483 /^X\/\(\/\).*/{
18484 s//\1/
18485 q
18486 }
18487 s/.*/./; q'`
18488
18489 # Avoid depending upon Character Ranges.
18490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18493 as_cr_digits='0123456789'
18494 as_cr_alnum=$as_cr_Letters$as_cr_digits
18495
18496 ECHO_C= ECHO_N= ECHO_T=
18497 case `echo -n x` in #(((((
18498 -n*)
18499 case `echo 'xy\c'` in
18500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18501 xy) ECHO_C='\c';;
18502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18503 ECHO_T=' ';;
18504 esac;;
18505 *)
18506 ECHO_N='-n';;
18507 esac
18508
18509 rm -f conf$$ conf$$.exe conf$$.file
18510 if test -d conf$$.dir; then
18511 rm -f conf$$.dir/conf$$.file
18512 else
18513 rm -f conf$$.dir
18514 mkdir conf$$.dir 2>/dev/null
18515 fi
18516 if (echo >conf$$.file) 2>/dev/null; then
18517 if ln -s conf$$.file conf$$ 2>/dev/null; then
18518 as_ln_s='ln -s'
18519 # ... but there are two gotchas:
18520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18522 # In both cases, we have to default to `cp -pR'.
18523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18524 as_ln_s='cp -pR'
18525 elif ln conf$$.file conf$$ 2>/dev/null; then
18526 as_ln_s=ln
18527 else
18528 as_ln_s='cp -pR'
18529 fi
18530 else
18531 as_ln_s='cp -pR'
18532 fi
18533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18534 rmdir conf$$.dir 2>/dev/null
18535
18536
18537 # as_fn_mkdir_p
18538 # -------------
18539 # Create "$as_dir" as a directory, including parents if necessary.
18540 as_fn_mkdir_p ()
18541 {
18542
18543 case $as_dir in #(
18544 -*) as_dir=./$as_dir;;
18545 esac
18546 test -d "$as_dir" || eval $as_mkdir_p || {
18547 as_dirs=
18548 while :; do
18549 case $as_dir in #(
18550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18551 *) as_qdir=$as_dir;;
18552 esac
18553 as_dirs="'$as_qdir' $as_dirs"
18554 as_dir=`$as_dirname -- "$as_dir" ||
18555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18556 X"$as_dir" : 'X\(//\)[^/]' \| \
18557 X"$as_dir" : 'X\(//\)$' \| \
18558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18559 $as_echo X"$as_dir" |
18560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18561 s//\1/
18562 q
18563 }
18564 /^X\(\/\/\)[^/].*/{
18565 s//\1/
18566 q
18567 }
18568 /^X\(\/\/\)$/{
18569 s//\1/
18570 q
18571 }
18572 /^X\(\/\).*/{
18573 s//\1/
18574 q
18575 }
18576 s/.*/./; q'`
18577 test -d "$as_dir" && break
18578 done
18579 test -z "$as_dirs" || eval "mkdir $as_dirs"
18580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18581
18582
18583 } # as_fn_mkdir_p
18584 if mkdir -p . 2>/dev/null; then
18585 as_mkdir_p='mkdir -p "$as_dir"'
18586 else
18587 test -d ./-p && rmdir ./-p
18588 as_mkdir_p=false
18589 fi
18590
18591
18592 # as_fn_executable_p FILE
18593 # -----------------------
18594 # Test if FILE is an executable regular file.
18595 as_fn_executable_p ()
18596 {
18597 test -f "$1" && test -x "$1"
18598 } # as_fn_executable_p
18599 as_test_x='test -x'
18600 as_executable_p=as_fn_executable_p
18601
18602 # Sed expression to map a string onto a valid CPP name.
18603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18604
18605 # Sed expression to map a string onto a valid variable name.
18606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18607
18608
18609 exec 6>&1
18610 ## ----------------------------------- ##
18611 ## Main body of $CONFIG_STATUS script. ##
18612 ## ----------------------------------- ##
18613 _ASEOF
18614 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18615
18616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18617 # Save the log message, to keep $0 and so on meaningful, and to
18618 # report actual input values of CONFIG_FILES etc. instead of their
18619 # values after options handling.
18620 ac_log="
18621 This file was extended by libodb-mysql $as_me 2.4.0, which was
18622 generated by GNU Autoconf 2.69. Invocation command line was
18623
18624 CONFIG_FILES = $CONFIG_FILES
18625 CONFIG_HEADERS = $CONFIG_HEADERS
18626 CONFIG_LINKS = $CONFIG_LINKS
18627 CONFIG_COMMANDS = $CONFIG_COMMANDS
18628 $ $0 $@
18629
18630 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18631 "
18632
18633 _ACEOF
18634
18635 case $ac_config_files in *"
18636 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18637 esac
18638
18639 case $ac_config_headers in *"
18640 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18641 esac
18642
18643
18644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18645 # Files that config.status was made for.
18646 config_files="$ac_config_files"
18647 config_headers="$ac_config_headers"
18648 config_commands="$ac_config_commands"
18649
18650 _ACEOF
18651
18652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18653 ac_cs_usage="\
18654 \`$as_me' instantiates files and other configuration actions
18655 from templates according to the current configuration. Unless the files
18656 and actions are specified as TAGs, all are instantiated by default.
18657
18658 Usage: $0 [OPTION]... [TAG]...
18659
18660 -h, --help print this help, then exit
18661 -V, --version print version number and configuration settings, then exit
18662 --config print configuration, then exit
18663 -q, --quiet, --silent
18664 do not print progress messages
18665 -d, --debug don't remove temporary files
18666 --recheck update $as_me by reconfiguring in the same conditions
18667 --file=FILE[:TEMPLATE]
18668 instantiate the configuration file FILE
18669 --header=FILE[:TEMPLATE]
18670 instantiate the configuration header FILE
18671
18672 Configuration files:
18673 $config_files
18674
18675 Configuration headers:
18676 $config_headers
18677
18678 Configuration commands:
18679 $config_commands
18680
18681 Report bugs to <[email protected]>."
18682
18683 _ACEOF
18684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18686 ac_cs_version="\\
18687 libodb-mysql config.status 2.4.0
18688 configured by $0, generated by GNU Autoconf 2.69,
18689 with options \\"\$ac_cs_config\\"
18690
18691 Copyright (C) 2012 Free Software Foundation, Inc.
18692 This config.status script is free software; the Free Software Foundation
18693 gives unlimited permission to copy, distribute and modify it."
18694
18695 ac_pwd='$ac_pwd'
18696 srcdir='$srcdir'
18697 INSTALL='$INSTALL'
18698 MKDIR_P='$MKDIR_P'
18699 AWK='$AWK'
18700 test -n "\$AWK" || AWK=awk
18701 _ACEOF
18702
18703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18704 # The default lists apply if the user does not specify any file.
18705 ac_need_defaults=:
18706 while test $# != 0
18707 do
18708 case $1 in
18709 --*=?*)
18710 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18712 ac_shift=:
18713 ;;
18714 --*=)
18715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18716 ac_optarg=
18717 ac_shift=:
18718 ;;
18719 *)
18720 ac_option=$1
18721 ac_optarg=$2
18722 ac_shift=shift
18723 ;;
18724 esac
18725
18726 case $ac_option in
18727 # Handling of the options.
18728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18729 ac_cs_recheck=: ;;
18730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18731 $as_echo "$ac_cs_version"; exit ;;
18732 --config | --confi | --conf | --con | --co | --c )
18733 $as_echo "$ac_cs_config"; exit ;;
18734 --debug | --debu | --deb | --de | --d | -d )
18735 debug=: ;;
18736 --file | --fil | --fi | --f )
18737 $ac_shift
18738 case $ac_optarg in
18739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18740 '') as_fn_error $? "missing file argument" ;;
18741 esac
18742 as_fn_append CONFIG_FILES " '$ac_optarg'"
18743 ac_need_defaults=false;;
18744 --header | --heade | --head | --hea )
18745 $ac_shift
18746 case $ac_optarg in
18747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18748 esac
18749 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18750 ac_need_defaults=false;;
18751 --he | --h)
18752 # Conflict between --help and --header
18753 as_fn_error $? "ambiguous option: \`$1'
18754 Try \`$0 --help' for more information.";;
18755 --help | --hel | -h )
18756 $as_echo "$ac_cs_usage"; exit ;;
18757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18759 ac_cs_silent=: ;;
18760
18761 # This is an error.
18762 -*) as_fn_error $? "unrecognized option: \`$1'
18763 Try \`$0 --help' for more information." ;;
18764
18765 *) as_fn_append ac_config_targets " $1"
18766 ac_need_defaults=false ;;
18767
18768 esac
18769 shift
18770 done
18771
18772 ac_configure_extra_args=
18773
18774 if $ac_cs_silent; then
18775 exec 6>/dev/null
18776 ac_configure_extra_args="$ac_configure_extra_args --silent"
18777 fi
18778
18779 _ACEOF
18780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18781 if \$ac_cs_recheck; then
18782 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18783 shift
18784 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18785 CONFIG_SHELL='$SHELL'
18786 export CONFIG_SHELL
18787 exec "\$@"
18788 fi
18789
18790 _ACEOF
18791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18792 exec 5>>config.log
18793 {
18794 echo
18795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18796 ## Running $as_me. ##
18797 _ASBOX
18798 $as_echo "$ac_log"
18799 } >&5
18800
18801 _ACEOF
18802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18803 #
18804 # INIT-COMMANDS
18805 #
18806 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18807
18808
18809 # The HP-UX ksh and POSIX shell print the target directory to stdout
18810 # if CDPATH is set.
18811 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18812
18813 sed_quote_subst='$sed_quote_subst'
18814 double_quote_subst='$double_quote_subst'
18815 delay_variable_subst='$delay_variable_subst'
18816 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18817 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18818 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18819 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18820 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18821 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18822 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18823 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18824 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18825 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18826 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18827 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18828 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18829 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18830 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18831 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18832 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18833 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18834 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18835 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18836 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18837 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18838 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18839 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18840 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18841 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18842 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18843 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18844 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18845 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18846 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18847 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18848 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18849 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18850 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18851 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18852 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18853 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18854 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18855 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18856 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18857 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18858 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18859 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18860 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18861 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18862 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18863 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18864 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18865 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18866 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18867 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18868 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18869 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18871 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18872 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18873 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"`'
18874 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18875 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18879 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18880 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18884 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18885 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18886 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18887 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18888 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18889 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18890 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18891 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18892 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18893 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18894 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18895 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18896 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18897 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18898 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18899 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18900 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18901 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18902 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18903 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18904 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18905 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18906 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18907 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18916 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18917 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18918 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18919 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18920 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18921 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18940 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18941 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18942 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18943 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18944 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18945 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18946 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18947 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18948 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18949 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18950 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18951 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18952 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18953 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18954 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18955 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18956 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18957 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18958 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18959 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18960 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18961 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18962 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18963 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18964 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18965 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18966 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18967 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18968 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18969 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18970 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18971 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18972 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18973 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18974 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18975 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18976 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18977 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18979 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18980 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18981 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18982 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18983 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18984 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18985 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18986 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18987 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18988 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18989 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18990 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18991 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18992 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18993 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18994 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18995 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18996 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18997 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18998 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18999 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19000 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19001
19002 LTCC='$LTCC'
19003 LTCFLAGS='$LTCFLAGS'
19004 compiler='$compiler_DEFAULT'
19005
19006 # A function that is used when there is no print builtin or printf.
19007 func_fallback_echo ()
19008 {
19009 eval 'cat <<_LTECHO_EOF
19010 \$1
19011 _LTECHO_EOF'
19012 }
19013
19014 # Quote evaled strings.
19015 for var in AS \
19016 DLLTOOL \
19017 OBJDUMP \
19018 SHELL \
19019 ECHO \
19020 PATH_SEPARATOR \
19021 SED \
19022 GREP \
19023 EGREP \
19024 FGREP \
19025 LD \
19026 NM \
19027 LN_S \
19028 lt_SP2NL \
19029 lt_NL2SP \
19030 reload_flag \
19031 deplibs_check_method \
19032 file_magic_cmd \
19033 file_magic_glob \
19034 want_nocaseglob \
19035 sharedlib_from_linklib_cmd \
19036 AR \
19037 AR_FLAGS \
19038 archiver_list_spec \
19039 STRIP \
19040 RANLIB \
19041 CC \
19042 CFLAGS \
19043 compiler \
19044 lt_cv_sys_global_symbol_pipe \
19045 lt_cv_sys_global_symbol_to_cdecl \
19046 lt_cv_sys_global_symbol_to_c_name_address \
19047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19048 nm_file_list_spec \
19049 lt_prog_compiler_no_builtin_flag \
19050 lt_prog_compiler_pic \
19051 lt_prog_compiler_wl \
19052 lt_prog_compiler_static \
19053 lt_cv_prog_compiler_c_o \
19054 need_locks \
19055 MANIFEST_TOOL \
19056 DSYMUTIL \
19057 NMEDIT \
19058 LIPO \
19059 OTOOL \
19060 OTOOL64 \
19061 shrext_cmds \
19062 export_dynamic_flag_spec \
19063 whole_archive_flag_spec \
19064 compiler_needs_object \
19065 with_gnu_ld \
19066 allow_undefined_flag \
19067 no_undefined_flag \
19068 hardcode_libdir_flag_spec \
19069 hardcode_libdir_separator \
19070 exclude_expsyms \
19071 include_expsyms \
19072 file_list_spec \
19073 variables_saved_for_relink \
19074 libname_spec \
19075 library_names_spec \
19076 soname_spec \
19077 install_override_mode \
19078 finish_eval \
19079 old_striplib \
19080 striplib \
19081 compiler_lib_search_dirs \
19082 predep_objects \
19083 postdep_objects \
19084 predeps \
19085 postdeps \
19086 compiler_lib_search_path \
19087 LD_CXX \
19088 reload_flag_CXX \
19089 compiler_CXX \
19090 lt_prog_compiler_no_builtin_flag_CXX \
19091 lt_prog_compiler_pic_CXX \
19092 lt_prog_compiler_wl_CXX \
19093 lt_prog_compiler_static_CXX \
19094 lt_cv_prog_compiler_c_o_CXX \
19095 export_dynamic_flag_spec_CXX \
19096 whole_archive_flag_spec_CXX \
19097 compiler_needs_object_CXX \
19098 with_gnu_ld_CXX \
19099 allow_undefined_flag_CXX \
19100 no_undefined_flag_CXX \
19101 hardcode_libdir_flag_spec_CXX \
19102 hardcode_libdir_separator_CXX \
19103 exclude_expsyms_CXX \
19104 include_expsyms_CXX \
19105 file_list_spec_CXX \
19106 compiler_lib_search_dirs_CXX \
19107 predep_objects_CXX \
19108 postdep_objects_CXX \
19109 predeps_CXX \
19110 postdeps_CXX \
19111 compiler_lib_search_path_CXX; do
19112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19113 *[\\\\\\\`\\"\\\$]*)
19114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19115 ;;
19116 *)
19117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19118 ;;
19119 esac
19120 done
19121
19122 # Double-quote double-evaled strings.
19123 for var in reload_cmds \
19124 old_postinstall_cmds \
19125 old_postuninstall_cmds \
19126 old_archive_cmds \
19127 extract_expsyms_cmds \
19128 old_archive_from_new_cmds \
19129 old_archive_from_expsyms_cmds \
19130 archive_cmds \
19131 archive_expsym_cmds \
19132 module_cmds \
19133 module_expsym_cmds \
19134 export_symbols_cmds \
19135 prelink_cmds \
19136 postlink_cmds \
19137 postinstall_cmds \
19138 postuninstall_cmds \
19139 finish_cmds \
19140 sys_lib_search_path_spec \
19141 sys_lib_dlsearch_path_spec \
19142 reload_cmds_CXX \
19143 old_archive_cmds_CXX \
19144 old_archive_from_new_cmds_CXX \
19145 old_archive_from_expsyms_cmds_CXX \
19146 archive_cmds_CXX \
19147 archive_expsym_cmds_CXX \
19148 module_cmds_CXX \
19149 module_expsym_cmds_CXX \
19150 export_symbols_cmds_CXX \
19151 prelink_cmds_CXX \
19152 postlink_cmds_CXX; do
19153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19154 *[\\\\\\\`\\"\\\$]*)
19155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19156 ;;
19157 *)
19158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19159 ;;
19160 esac
19161 done
19162
19163 ac_aux_dir='$ac_aux_dir'
19164 xsi_shell='$xsi_shell'
19165 lt_shell_append='$lt_shell_append'
19166
19167 # See if we are running on zsh, and set the options which allow our
19168 # commands through without removal of \ escapes INIT.
19169 if test -n "\${ZSH_VERSION+set}" ; then
19170 setopt NO_GLOB_SUBST
19171 fi
19172
19173
19174 PACKAGE='$PACKAGE'
19175 VERSION='$VERSION'
19176 TIMESTAMP='$TIMESTAMP'
19177 RM='$RM'
19178 ofile='$ofile'
19179
19180
19181
19182 ac_aux_dir='$ac_aux_dir'
19183
19184
19185 libtool_use_rpath=$libtool_rpath
19186
19187 _ACEOF
19188
19189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19190
19191 # Handling of arguments.
19192 for ac_config_target in $ac_config_targets
19193 do
19194 case $ac_config_target in
19195 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19196 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19197 "libtool-rpath-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-rpath-patch" ;;
19198 "odb/mysql/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/mysql/config.h" ;;
19199 "odb/mysql/details/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/mysql/details/config.h" ;;
19200 "libodb-mysql.pc") CONFIG_FILES="$CONFIG_FILES libodb-mysql.pc" ;;
19201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19202 "odb/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES odb/mysql/Makefile" ;;
19203
19204 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19205 esac
19206 done
19207
19208
19209 # If the user did not use the arguments to specify the items to instantiate,
19210 # then the envvar interface is used. Set only those that are not.
19211 # We use the long form for the default assignment because of an extremely
19212 # bizarre bug on SunOS 4.1.3.
19213 if $ac_need_defaults; then
19214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19217 fi
19218
19219 # Have a temporary directory for convenience. Make it in the build tree
19220 # simply because there is no reason against having it here, and in addition,
19221 # creating and moving files from /tmp can sometimes cause problems.
19222 # Hook for its removal unless debugging.
19223 # Note that there is a small window in which the directory will not be cleaned:
19224 # after its creation but before its name has been assigned to `$tmp'.
19225 $debug ||
19226 {
19227 tmp= ac_tmp=
19228 trap 'exit_status=$?
19229 : "${ac_tmp:=$tmp}"
19230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19231 ' 0
19232 trap 'as_fn_exit 1' 1 2 13 15
19233 }
19234 # Create a (secure) tmp directory for tmp files.
19235
19236 {
19237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19238 test -d "$tmp"
19239 } ||
19240 {
19241 tmp=./conf$$-$RANDOM
19242 (umask 077 && mkdir "$tmp")
19243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19244 ac_tmp=$tmp
19245
19246 # Set up the scripts for CONFIG_FILES section.
19247 # No need to generate them if there are no CONFIG_FILES.
19248 # This happens for instance with `./config.status config.h'.
19249 if test -n "$CONFIG_FILES"; then
19250
19251
19252 ac_cr=`echo X | tr X '\015'`
19253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19254 # But we know of no other shell where ac_cr would be empty at this
19255 # point, so we can use a bashism as a fallback.
19256 if test "x$ac_cr" = x; then
19257 eval ac_cr=\$\'\\r\'
19258 fi
19259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19261 ac_cs_awk_cr='\\r'
19262 else
19263 ac_cs_awk_cr=$ac_cr
19264 fi
19265
19266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19267 _ACEOF
19268
19269
19270 {
19271 echo "cat >conf$$subs.awk <<_ACEOF" &&
19272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19273 echo "_ACEOF"
19274 } >conf$$subs.sh ||
19275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19277 ac_delim='%!_!# '
19278 for ac_last_try in false false false false false :; do
19279 . ./conf$$subs.sh ||
19280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19281
19282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19283 if test $ac_delim_n = $ac_delim_num; then
19284 break
19285 elif $ac_last_try; then
19286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19287 else
19288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19289 fi
19290 done
19291 rm -f conf$$subs.sh
19292
19293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19295 _ACEOF
19296 sed -n '
19297 h
19298 s/^/S["/; s/!.*/"]=/
19299 p
19300 g
19301 s/^[^!]*!//
19302 :repl
19303 t repl
19304 s/'"$ac_delim"'$//
19305 t delim
19306 :nl
19307 h
19308 s/\(.\{148\}\)..*/\1/
19309 t more1
19310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19311 p
19312 n
19313 b repl
19314 :more1
19315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19316 p
19317 g
19318 s/.\{148\}//
19319 t nl
19320 :delim
19321 h
19322 s/\(.\{148\}\)..*/\1/
19323 t more2
19324 s/["\\]/\\&/g; s/^/"/; s/$/"/
19325 p
19326 b
19327 :more2
19328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19329 p
19330 g
19331 s/.\{148\}//
19332 t delim
19333 ' <conf$$subs.awk | sed '
19334 /^[^""]/{
19335 N
19336 s/\n//
19337 }
19338 ' >>$CONFIG_STATUS || ac_write_fail=1
19339 rm -f conf$$subs.awk
19340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19341 _ACAWK
19342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19343 for (key in S) S_is_set[key] = 1
19344 FS = ""
19345
19346 }
19347 {
19348 line = $ 0
19349 nfields = split(line, field, "@")
19350 substed = 0
19351 len = length(field[1])
19352 for (i = 2; i < nfields; i++) {
19353 key = field[i]
19354 keylen = length(key)
19355 if (S_is_set[key]) {
19356 value = S[key]
19357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19358 len += length(value) + length(field[++i])
19359 substed = 1
19360 } else
19361 len += 1 + keylen
19362 }
19363
19364 print line
19365 }
19366
19367 _ACAWK
19368 _ACEOF
19369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19372 else
19373 cat
19374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19376 _ACEOF
19377
19378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19380 # trailing colons and then remove the whole line if VPATH becomes empty
19381 # (actually we leave an empty line to preserve line numbers).
19382 if test "x$srcdir" = x.; then
19383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19384 h
19385 s///
19386 s/^/:/
19387 s/[ ]*$/:/
19388 s/:\$(srcdir):/:/g
19389 s/:\${srcdir}:/:/g
19390 s/:@srcdir@:/:/g
19391 s/^:*//
19392 s/:*$//
19393 x
19394 s/\(=[ ]*\).*/\1/
19395 G
19396 s/\n//
19397 s/^[^=]*=[ ]*$//
19398 }'
19399 fi
19400
19401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19402 fi # test -n "$CONFIG_FILES"
19403
19404 # Set up the scripts for CONFIG_HEADERS section.
19405 # No need to generate them if there are no CONFIG_HEADERS.
19406 # This happens for instance with `./config.status Makefile'.
19407 if test -n "$CONFIG_HEADERS"; then
19408 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19409 BEGIN {
19410 _ACEOF
19411
19412 # Transform confdefs.h into an awk script `defines.awk', embedded as
19413 # here-document in config.status, that substitutes the proper values into
19414 # config.h.in to produce config.h.
19415
19416 # Create a delimiter string that does not exist in confdefs.h, to ease
19417 # handling of long lines.
19418 ac_delim='%!_!# '
19419 for ac_last_try in false false :; do
19420 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19421 if test -z "$ac_tt"; then
19422 break
19423 elif $ac_last_try; then
19424 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19425 else
19426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19427 fi
19428 done
19429
19430 # For the awk script, D is an array of macro values keyed by name,
19431 # likewise P contains macro parameters if any. Preserve backslash
19432 # newline sequences.
19433
19434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19435 sed -n '
19436 s/.\{148\}/&'"$ac_delim"'/g
19437 t rset
19438 :rset
19439 s/^[ ]*#[ ]*define[ ][ ]*/ /
19440 t def
19441 d
19442 :def
19443 s/\\$//
19444 t bsnl
19445 s/["\\]/\\&/g
19446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19447 D["\1"]=" \3"/p
19448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19449 d
19450 :bsnl
19451 s/["\\]/\\&/g
19452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19453 D["\1"]=" \3\\\\\\n"\\/p
19454 t cont
19455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19456 t cont
19457 d
19458 :cont
19459 n
19460 s/.\{148\}/&'"$ac_delim"'/g
19461 t clear
19462 :clear
19463 s/\\$//
19464 t bsnlc
19465 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19466 d
19467 :bsnlc
19468 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19469 b cont
19470 ' <confdefs.h | sed '
19471 s/'"$ac_delim"'/"\\\
19472 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19473
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 for (key in D) D_is_set[key] = 1
19476 FS = ""
19477 }
19478 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19479 line = \$ 0
19480 split(line, arg, " ")
19481 if (arg[1] == "#") {
19482 defundef = arg[2]
19483 mac1 = arg[3]
19484 } else {
19485 defundef = substr(arg[1], 2)
19486 mac1 = arg[2]
19487 }
19488 split(mac1, mac2, "(") #)
19489 macro = mac2[1]
19490 prefix = substr(line, 1, index(line, defundef) - 1)
19491 if (D_is_set[macro]) {
19492 # Preserve the white space surrounding the "#".
19493 print prefix "define", macro P[macro] D[macro]
19494 next
19495 } else {
19496 # Replace #undef with comments. This is necessary, for example,
19497 # in the case of _POSIX_SOURCE, which is predefined and required
19498 # on some systems where configure will not decide to define it.
19499 if (defundef == "undef") {
19500 print "/*", prefix defundef, macro, "*/"
19501 next
19502 }
19503 }
19504 }
19505 { print }
19506 _ACAWK
19507 _ACEOF
19508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19509 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19510 fi # test -n "$CONFIG_HEADERS"
19511
19512
19513 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19514 shift
19515 for ac_tag
19516 do
19517 case $ac_tag in
19518 :[FHLC]) ac_mode=$ac_tag; continue;;
19519 esac
19520 case $ac_mode$ac_tag in
19521 :[FHL]*:*);;
19522 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19523 :[FH]-) ac_tag=-:-;;
19524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19525 esac
19526 ac_save_IFS=$IFS
19527 IFS=:
19528 set x $ac_tag
19529 IFS=$ac_save_IFS
19530 shift
19531 ac_file=$1
19532 shift
19533
19534 case $ac_mode in
19535 :L) ac_source=$1;;
19536 :[FH])
19537 ac_file_inputs=
19538 for ac_f
19539 do
19540 case $ac_f in
19541 -) ac_f="$ac_tmp/stdin";;
19542 *) # Look for the file first in the build tree, then in the source tree
19543 # (if the path is not absolute). The absolute path cannot be DOS-style,
19544 # because $ac_f cannot contain `:'.
19545 test -f "$ac_f" ||
19546 case $ac_f in
19547 [\\/$]*) false;;
19548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19549 esac ||
19550 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19551 esac
19552 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19553 as_fn_append ac_file_inputs " '$ac_f'"
19554 done
19555
19556 # Let's still pretend it is `configure' which instantiates (i.e., don't
19557 # use $as_me), people would be surprised to read:
19558 # /* config.h. Generated by config.status. */
19559 configure_input='Generated from '`
19560 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19561 `' by configure.'
19562 if test x"$ac_file" != x-; then
19563 configure_input="$ac_file. $configure_input"
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19565 $as_echo "$as_me: creating $ac_file" >&6;}
19566 fi
19567 # Neutralize special characters interpreted by sed in replacement strings.
19568 case $configure_input in #(
19569 *\&* | *\|* | *\\* )
19570 ac_sed_conf_input=`$as_echo "$configure_input" |
19571 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19572 *) ac_sed_conf_input=$configure_input;;
19573 esac
19574
19575 case $ac_tag in
19576 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19578 esac
19579 ;;
19580 esac
19581
19582 ac_dir=`$as_dirname -- "$ac_file" ||
19583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19584 X"$ac_file" : 'X\(//\)[^/]' \| \
19585 X"$ac_file" : 'X\(//\)$' \| \
19586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19587 $as_echo X"$ac_file" |
19588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19589 s//\1/
19590 q
19591 }
19592 /^X\(\/\/\)[^/].*/{
19593 s//\1/
19594 q
19595 }
19596 /^X\(\/\/\)$/{
19597 s//\1/
19598 q
19599 }
19600 /^X\(\/\).*/{
19601 s//\1/
19602 q
19603 }
19604 s/.*/./; q'`
19605 as_dir="$ac_dir"; as_fn_mkdir_p
19606 ac_builddir=.
19607
19608 case "$ac_dir" in
19609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19610 *)
19611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19612 # A ".." for each directory in $ac_dir_suffix.
19613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19614 case $ac_top_builddir_sub in
19615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19617 esac ;;
19618 esac
19619 ac_abs_top_builddir=$ac_pwd
19620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19621 # for backward compatibility:
19622 ac_top_builddir=$ac_top_build_prefix
19623
19624 case $srcdir in
19625 .) # We are building in place.
19626 ac_srcdir=.
19627 ac_top_srcdir=$ac_top_builddir_sub
19628 ac_abs_top_srcdir=$ac_pwd ;;
19629 [\\/]* | ?:[\\/]* ) # Absolute name.
19630 ac_srcdir=$srcdir$ac_dir_suffix;
19631 ac_top_srcdir=$srcdir
19632 ac_abs_top_srcdir=$srcdir ;;
19633 *) # Relative name.
19634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19635 ac_top_srcdir=$ac_top_build_prefix$srcdir
19636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19637 esac
19638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19639
19640
19641 case $ac_mode in
19642 :F)
19643 #
19644 # CONFIG_FILE
19645 #
19646
19647 case $INSTALL in
19648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19650 esac
19651 ac_MKDIR_P=$MKDIR_P
19652 case $MKDIR_P in
19653 [\\/$]* | ?:[\\/]* ) ;;
19654 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19655 esac
19656 _ACEOF
19657
19658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19659 # If the template does not know about datarootdir, expand it.
19660 # FIXME: This hack should be removed a few years after 2.60.
19661 ac_datarootdir_hack=; ac_datarootdir_seen=
19662 ac_sed_dataroot='
19663 /datarootdir/ {
19664 p
19665 q
19666 }
19667 /@datadir@/p
19668 /@docdir@/p
19669 /@infodir@/p
19670 /@localedir@/p
19671 /@mandir@/p'
19672 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19673 *datarootdir*) ac_datarootdir_seen=yes;;
19674 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19676 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19677 _ACEOF
19678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19679 ac_datarootdir_hack='
19680 s&@datadir@&$datadir&g
19681 s&@docdir@&$docdir&g
19682 s&@infodir@&$infodir&g
19683 s&@localedir@&$localedir&g
19684 s&@mandir@&$mandir&g
19685 s&\\\${datarootdir}&$datarootdir&g' ;;
19686 esac
19687 _ACEOF
19688
19689 # Neutralize VPATH when `$srcdir' = `.'.
19690 # Shell code in configure.ac might set extrasub.
19691 # FIXME: do we really want to maintain this feature?
19692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19693 ac_sed_extra="$ac_vpsub
19694 $extrasub
19695 _ACEOF
19696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19697 :t
19698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19699 s|@configure_input@|$ac_sed_conf_input|;t t
19700 s&@top_builddir@&$ac_top_builddir_sub&;t t
19701 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19702 s&@srcdir@&$ac_srcdir&;t t
19703 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19704 s&@top_srcdir@&$ac_top_srcdir&;t t
19705 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19706 s&@builddir@&$ac_builddir&;t t
19707 s&@abs_builddir@&$ac_abs_builddir&;t t
19708 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19709 s&@INSTALL@&$ac_INSTALL&;t t
19710 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19711 $ac_datarootdir_hack
19712 "
19713 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19714 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19715
19716 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19717 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19718 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19719 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19721 which seems to be undefined. Please make sure it is defined" >&5
19722 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19723 which seems to be undefined. Please make sure it is defined" >&2;}
19724
19725 rm -f "$ac_tmp/stdin"
19726 case $ac_file in
19727 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19728 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19729 esac \
19730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19731 ;;
19732 :H)
19733 #
19734 # CONFIG_HEADER
19735 #
19736 if test x"$ac_file" != x-; then
19737 {
19738 $as_echo "/* $configure_input */" \
19739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19740 } >"$ac_tmp/config.h" \
19741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19742 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19744 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19745 else
19746 rm -f "$ac_file"
19747 mv "$ac_tmp/config.h" "$ac_file" \
19748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19749 fi
19750 else
19751 $as_echo "/* $configure_input */" \
19752 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19753 || as_fn_error $? "could not create -" "$LINENO" 5
19754 fi
19755 # Compute "$ac_file"'s index in $config_headers.
19756 _am_arg="$ac_file"
19757 _am_stamp_count=1
19758 for _am_header in $config_headers :; do
19759 case $_am_header in
19760 $_am_arg | $_am_arg:* )
19761 break ;;
19762 * )
19763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19764 esac
19765 done
19766 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19767 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19768 X"$_am_arg" : 'X\(//\)[^/]' \| \
19769 X"$_am_arg" : 'X\(//\)$' \| \
19770 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19771 $as_echo X"$_am_arg" |
19772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19773 s//\1/
19774 q
19775 }
19776 /^X\(\/\/\)[^/].*/{
19777 s//\1/
19778 q
19779 }
19780 /^X\(\/\/\)$/{
19781 s//\1/
19782 q
19783 }
19784 /^X\(\/\).*/{
19785 s//\1/
19786 q
19787 }
19788 s/.*/./; q'`/stamp-h$_am_stamp_count
19789 ;;
19790
19791 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19792 $as_echo "$as_me: executing $ac_file commands" >&6;}
19793 ;;
19794 esac
19795
19796
19797 case $ac_file$ac_mode in
19798 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19799 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19800 # are listed without --file. Let's play safe and only enable the eval
19801 # if we detect the quoting.
19802 case $CONFIG_FILES in
19803 *\'*) eval set x "$CONFIG_FILES" ;;
19804 *) set x $CONFIG_FILES ;;
19805 esac
19806 shift
19807 for mf
19808 do
19809 # Strip MF so we end up with the name of the file.
19810 mf=`echo "$mf" | sed -e 's/:.*$//'`
19811 # Check whether this is an Automake generated Makefile or not.
19812 # We used to match only the files named 'Makefile.in', but
19813 # some people rename them; so instead we look at the file content.
19814 # Grep'ing the first line is not enough: some people post-process
19815 # each Makefile.in and add a new line on top of each file to say so.
19816 # Grep'ing the whole file is not good either: AIX grep has a line
19817 # limit of 2048, but all sed's we know have understand at least 4000.
19818 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19819 dirpart=`$as_dirname -- "$mf" ||
19820 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19821 X"$mf" : 'X\(//\)[^/]' \| \
19822 X"$mf" : 'X\(//\)$' \| \
19823 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19824 $as_echo X"$mf" |
19825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19826 s//\1/
19827 q
19828 }
19829 /^X\(\/\/\)[^/].*/{
19830 s//\1/
19831 q
19832 }
19833 /^X\(\/\/\)$/{
19834 s//\1/
19835 q
19836 }
19837 /^X\(\/\).*/{
19838 s//\1/
19839 q
19840 }
19841 s/.*/./; q'`
19842 else
19843 continue
19844 fi
19845 # Extract the definition of DEPDIR, am__include, and am__quote
19846 # from the Makefile without running 'make'.
19847 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19848 test -z "$DEPDIR" && continue
19849 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19850 test -z "am__include" && continue
19851 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19852 # Find all dependency output files, they are included files with
19853 # $(DEPDIR) in their names. We invoke sed twice because it is the
19854 # simplest approach to changing $(DEPDIR) to its actual value in the
19855 # expansion.
19856 for file in `sed -n "
19857 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19858 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19859 # Make sure the directory exists.
19860 test -f "$dirpart/$file" && continue
19861 fdir=`$as_dirname -- "$file" ||
19862 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19863 X"$file" : 'X\(//\)[^/]' \| \
19864 X"$file" : 'X\(//\)$' \| \
19865 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19866 $as_echo X"$file" |
19867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19868 s//\1/
19869 q
19870 }
19871 /^X\(\/\/\)[^/].*/{
19872 s//\1/
19873 q
19874 }
19875 /^X\(\/\/\)$/{
19876 s//\1/
19877 q
19878 }
19879 /^X\(\/\).*/{
19880 s//\1/
19881 q
19882 }
19883 s/.*/./; q'`
19884 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19885 # echo "creating $dirpart/$file"
19886 echo '# dummy' > "$dirpart/$file"
19887 done
19888 done
19889 }
19890 ;;
19891 "libtool":C)
19892
19893 # See if we are running on zsh, and set the options which allow our
19894 # commands through without removal of \ escapes.
19895 if test -n "${ZSH_VERSION+set}" ; then
19896 setopt NO_GLOB_SUBST
19897 fi
19898
19899 cfgfile="${ofile}T"
19900 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19901 $RM "$cfgfile"
19902
19903 cat <<_LT_EOF >> "$cfgfile"
19904 #! $SHELL
19905
19906 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19907 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19909 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19910 #
19911 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19912 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19913 # Foundation, Inc.
19914 # Written by Gordon Matzigkeit, 1996
19915 #
19916 # This file is part of GNU Libtool.
19917 #
19918 # GNU Libtool is free software; you can redistribute it and/or
19919 # modify it under the terms of the GNU General Public License as
19920 # published by the Free Software Foundation; either version 2 of
19921 # the License, or (at your option) any later version.
19922 #
19923 # As a special exception to the GNU General Public License,
19924 # if you distribute this file as part of a program or library that
19925 # is built using GNU Libtool, you may include this file under the
19926 # same distribution terms that you use for the rest of that program.
19927 #
19928 # GNU Libtool is distributed in the hope that it will be useful,
19929 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19930 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19931 # GNU General Public License for more details.
19932 #
19933 # You should have received a copy of the GNU General Public License
19934 # along with GNU Libtool; see the file COPYING. If not, a copy
19935 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19936 # obtained by writing to the Free Software Foundation, Inc.,
19937 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19938
19939
19940 # The names of the tagged configurations supported by this script.
19941 available_tags="CXX "
19942
19943 # ### BEGIN LIBTOOL CONFIG
19944
19945 # Which release of libtool.m4 was used?
19946 macro_version=$macro_version
19947 macro_revision=$macro_revision
19948
19949 # Assembler program.
19950 AS=$lt_AS
19951
19952 # DLL creation program.
19953 DLLTOOL=$lt_DLLTOOL
19954
19955 # Object dumper program.
19956 OBJDUMP=$lt_OBJDUMP
19957
19958 # Whether or not to build shared libraries.
19959 build_libtool_libs=$enable_shared
19960
19961 # Whether or not to build static libraries.
19962 build_old_libs=$enable_static
19963
19964 # What type of objects to build.
19965 pic_mode=$pic_mode
19966
19967 # Whether or not to optimize for fast installation.
19968 fast_install=$enable_fast_install
19969
19970 # Shell to use when invoking shell scripts.
19971 SHELL=$lt_SHELL
19972
19973 # An echo program that protects backslashes.
19974 ECHO=$lt_ECHO
19975
19976 # The PATH separator for the build system.
19977 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19978
19979 # The host system.
19980 host_alias=$host_alias
19981 host=$host
19982 host_os=$host_os
19983
19984 # The build system.
19985 build_alias=$build_alias
19986 build=$build
19987 build_os=$build_os
19988
19989 # A sed program that does not truncate output.
19990 SED=$lt_SED
19991
19992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19993 Xsed="\$SED -e 1s/^X//"
19994
19995 # A grep program that handles long lines.
19996 GREP=$lt_GREP
19997
19998 # An ERE matcher.
19999 EGREP=$lt_EGREP
20000
20001 # A literal string matcher.
20002 FGREP=$lt_FGREP
20003
20004 # A BSD- or MS-compatible name lister.
20005 NM=$lt_NM
20006
20007 # Whether we need soft or hard links.
20008 LN_S=$lt_LN_S
20009
20010 # What is the maximum length of a command?
20011 max_cmd_len=$max_cmd_len
20012
20013 # Object file suffix (normally "o").
20014 objext=$ac_objext
20015
20016 # Executable file suffix (normally "").
20017 exeext=$exeext
20018
20019 # whether the shell understands "unset".
20020 lt_unset=$lt_unset
20021
20022 # turn spaces into newlines.
20023 SP2NL=$lt_lt_SP2NL
20024
20025 # turn newlines into spaces.
20026 NL2SP=$lt_lt_NL2SP
20027
20028 # convert \$build file names to \$host format.
20029 to_host_file_cmd=$lt_cv_to_host_file_cmd
20030
20031 # convert \$build files to toolchain format.
20032 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20033
20034 # Method to check whether dependent libraries are shared objects.
20035 deplibs_check_method=$lt_deplibs_check_method
20036
20037 # Command to use when deplibs_check_method = "file_magic".
20038 file_magic_cmd=$lt_file_magic_cmd
20039
20040 # How to find potential files when deplibs_check_method = "file_magic".
20041 file_magic_glob=$lt_file_magic_glob
20042
20043 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20044 want_nocaseglob=$lt_want_nocaseglob
20045
20046 # Command to associate shared and link libraries.
20047 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20048
20049 # The archiver.
20050 AR=$lt_AR
20051
20052 # Flags to create an archive.
20053 AR_FLAGS=$lt_AR_FLAGS
20054
20055 # How to feed a file listing to the archiver.
20056 archiver_list_spec=$lt_archiver_list_spec
20057
20058 # A symbol stripping program.
20059 STRIP=$lt_STRIP
20060
20061 # Commands used to install an old-style archive.
20062 RANLIB=$lt_RANLIB
20063 old_postinstall_cmds=$lt_old_postinstall_cmds
20064 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20065
20066 # Whether to use a lock for old archive extraction.
20067 lock_old_archive_extraction=$lock_old_archive_extraction
20068
20069 # A C compiler.
20070 LTCC=$lt_CC
20071
20072 # LTCC compiler flags.
20073 LTCFLAGS=$lt_CFLAGS
20074
20075 # Take the output of nm and produce a listing of raw symbols and C names.
20076 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20077
20078 # Transform the output of nm in a proper C declaration.
20079 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20080
20081 # Transform the output of nm in a C name address pair.
20082 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20083
20084 # Transform the output of nm in a C name address pair when lib prefix is needed.
20085 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20086
20087 # Specify filename containing input files for \$NM.
20088 nm_file_list_spec=$lt_nm_file_list_spec
20089
20090 # The root where to search for dependent libraries,and in which our libraries should be installed.
20091 lt_sysroot=$lt_sysroot
20092
20093 # The name of the directory that contains temporary libtool files.
20094 objdir=$objdir
20095
20096 # Used to examine libraries when file_magic_cmd begins with "file".
20097 MAGIC_CMD=$MAGIC_CMD
20098
20099 # Must we lock files when doing compilation?
20100 need_locks=$lt_need_locks
20101
20102 # Manifest tool.
20103 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20104
20105 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20106 DSYMUTIL=$lt_DSYMUTIL
20107
20108 # Tool to change global to local symbols on Mac OS X.
20109 NMEDIT=$lt_NMEDIT
20110
20111 # Tool to manipulate fat objects and archives on Mac OS X.
20112 LIPO=$lt_LIPO
20113
20114 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20115 OTOOL=$lt_OTOOL
20116
20117 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20118 OTOOL64=$lt_OTOOL64
20119
20120 # Old archive suffix (normally "a").
20121 libext=$libext
20122
20123 # Shared library suffix (normally ".so").
20124 shrext_cmds=$lt_shrext_cmds
20125
20126 # The commands to extract the exported symbol list from a shared archive.
20127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20128
20129 # Variables whose values should be saved in libtool wrapper scripts and
20130 # restored at link time.
20131 variables_saved_for_relink=$lt_variables_saved_for_relink
20132
20133 # Do we need the "lib" prefix for modules?
20134 need_lib_prefix=$need_lib_prefix
20135
20136 # Do we need a version for libraries?
20137 need_version=$need_version
20138
20139 # Library versioning type.
20140 version_type=$version_type
20141
20142 # Shared library runtime path variable.
20143 runpath_var=$runpath_var
20144
20145 # Shared library path variable.
20146 shlibpath_var=$shlibpath_var
20147
20148 # Is shlibpath searched before the hard-coded library search path?
20149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20150
20151 # Format of library name prefix.
20152 libname_spec=$lt_libname_spec
20153
20154 # List of archive names. First name is the real one, the rest are links.
20155 # The last name is the one that the linker finds with -lNAME
20156 library_names_spec=$lt_library_names_spec
20157
20158 # The coded name of the library, if different from the real name.
20159 soname_spec=$lt_soname_spec
20160
20161 # Permission mode override for installation of shared libraries.
20162 install_override_mode=$lt_install_override_mode
20163
20164 # Command to use after installation of a shared archive.
20165 postinstall_cmds=$lt_postinstall_cmds
20166
20167 # Command to use after uninstallation of a shared archive.
20168 postuninstall_cmds=$lt_postuninstall_cmds
20169
20170 # Commands used to finish a libtool library installation in a directory.
20171 finish_cmds=$lt_finish_cmds
20172
20173 # As "finish_cmds", except a single script fragment to be evaled but
20174 # not shown.
20175 finish_eval=$lt_finish_eval
20176
20177 # Whether we should hardcode library paths into libraries.
20178 hardcode_into_libs=$hardcode_into_libs
20179
20180 # Compile-time system search path for libraries.
20181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20182
20183 # Run-time system search path for libraries.
20184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20185
20186 # Whether dlopen is supported.
20187 dlopen_support=$enable_dlopen
20188
20189 # Whether dlopen of programs is supported.
20190 dlopen_self=$enable_dlopen_self
20191
20192 # Whether dlopen of statically linked programs is supported.
20193 dlopen_self_static=$enable_dlopen_self_static
20194
20195 # Commands to strip libraries.
20196 old_striplib=$lt_old_striplib
20197 striplib=$lt_striplib
20198
20199
20200 # The linker used to build libraries.
20201 LD=$lt_LD
20202
20203 # How to create reloadable object files.
20204 reload_flag=$lt_reload_flag
20205 reload_cmds=$lt_reload_cmds
20206
20207 # Commands used to build an old-style archive.
20208 old_archive_cmds=$lt_old_archive_cmds
20209
20210 # A language specific compiler.
20211 CC=$lt_compiler
20212
20213 # Is the compiler the GNU compiler?
20214 with_gcc=$GCC
20215
20216 # Compiler flag to turn off builtin functions.
20217 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20218
20219 # Additional compiler flags for building library objects.
20220 pic_flag=$lt_lt_prog_compiler_pic
20221
20222 # How to pass a linker flag through the compiler.
20223 wl=$lt_lt_prog_compiler_wl
20224
20225 # Compiler flag to prevent dynamic linking.
20226 link_static_flag=$lt_lt_prog_compiler_static
20227
20228 # Does compiler simultaneously support -c and -o options?
20229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20230
20231 # Whether or not to add -lc for building shared libraries.
20232 build_libtool_need_lc=$archive_cmds_need_lc
20233
20234 # Whether or not to disallow shared libs when runtime libs are static.
20235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20236
20237 # Compiler flag to allow reflexive dlopens.
20238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20239
20240 # Compiler flag to generate shared objects directly from archives.
20241 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20242
20243 # Whether the compiler copes with passing no objects directly.
20244 compiler_needs_object=$lt_compiler_needs_object
20245
20246 # Create an old-style archive from a shared archive.
20247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20248
20249 # Create a temporary old-style archive to link instead of a shared archive.
20250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20251
20252 # Commands used to build a shared archive.
20253 archive_cmds=$lt_archive_cmds
20254 archive_expsym_cmds=$lt_archive_expsym_cmds
20255
20256 # Commands used to build a loadable module if different from building
20257 # a shared archive.
20258 module_cmds=$lt_module_cmds
20259 module_expsym_cmds=$lt_module_expsym_cmds
20260
20261 # Whether we are building with GNU ld or not.
20262 with_gnu_ld=$lt_with_gnu_ld
20263
20264 # Flag that allows shared libraries with undefined symbols to be built.
20265 allow_undefined_flag=$lt_allow_undefined_flag
20266
20267 # Flag that enforces no undefined symbols.
20268 no_undefined_flag=$lt_no_undefined_flag
20269
20270 # Flag to hardcode \$libdir into a binary during linking.
20271 # This must work even if \$libdir does not exist
20272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20273
20274 # Whether we need a single "-rpath" flag with a separated argument.
20275 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20276
20277 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20278 # DIR into the resulting binary.
20279 hardcode_direct=$hardcode_direct
20280
20281 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20282 # DIR into the resulting binary and the resulting library dependency is
20283 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20284 # library is relocated.
20285 hardcode_direct_absolute=$hardcode_direct_absolute
20286
20287 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20288 # into the resulting binary.
20289 hardcode_minus_L=$hardcode_minus_L
20290
20291 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20292 # into the resulting binary.
20293 hardcode_shlibpath_var=$hardcode_shlibpath_var
20294
20295 # Set to "yes" if building a shared library automatically hardcodes DIR
20296 # into the library and all subsequent libraries and executables linked
20297 # against it.
20298 hardcode_automatic=$hardcode_automatic
20299
20300 # Set to yes if linker adds runtime paths of dependent libraries
20301 # to runtime path list.
20302 inherit_rpath=$inherit_rpath
20303
20304 # Whether libtool must link a program against all its dependency libraries.
20305 link_all_deplibs=$link_all_deplibs
20306
20307 # Set to "yes" if exported symbols are required.
20308 always_export_symbols=$always_export_symbols
20309
20310 # The commands to list exported symbols.
20311 export_symbols_cmds=$lt_export_symbols_cmds
20312
20313 # Symbols that should not be listed in the preloaded symbols.
20314 exclude_expsyms=$lt_exclude_expsyms
20315
20316 # Symbols that must always be exported.
20317 include_expsyms=$lt_include_expsyms
20318
20319 # Commands necessary for linking programs (against libraries) with templates.
20320 prelink_cmds=$lt_prelink_cmds
20321
20322 # Commands necessary for finishing linking programs.
20323 postlink_cmds=$lt_postlink_cmds
20324
20325 # Specify filename containing input files.
20326 file_list_spec=$lt_file_list_spec
20327
20328 # How to hardcode a shared library path into an executable.
20329 hardcode_action=$hardcode_action
20330
20331 # The directories searched by this compiler when creating a shared library.
20332 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20333
20334 # Dependencies to place before and after the objects being linked to
20335 # create a shared library.
20336 predep_objects=$lt_predep_objects
20337 postdep_objects=$lt_postdep_objects
20338 predeps=$lt_predeps
20339 postdeps=$lt_postdeps
20340
20341 # The library search path used internally by the compiler when linking
20342 # a shared library.
20343 compiler_lib_search_path=$lt_compiler_lib_search_path
20344
20345 # ### END LIBTOOL CONFIG
20346
20347 _LT_EOF
20348
20349 case $host_os in
20350 aix3*)
20351 cat <<\_LT_EOF >> "$cfgfile"
20352 # AIX sometimes has problems with the GCC collect2 program. For some
20353 # reason, if we set the COLLECT_NAMES environment variable, the problems
20354 # vanish in a puff of smoke.
20355 if test "X${COLLECT_NAMES+set}" != Xset; then
20356 COLLECT_NAMES=
20357 export COLLECT_NAMES
20358 fi
20359 _LT_EOF
20360 ;;
20361 esac
20362
20363
20364 ltmain="$ac_aux_dir/ltmain.sh"
20365
20366
20367 # We use sed instead of cat because bash on DJGPP gets confused if
20368 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20369 # text mode, it properly converts lines to CR/LF. This bash problem
20370 # is reportedly fixed, but why not run on old versions too?
20371 sed '$q' "$ltmain" >> "$cfgfile" \
20372 || (rm -f "$cfgfile"; exit 1)
20373
20374 if test x"$xsi_shell" = xyes; then
20375 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20376 func_dirname ()\
20377 {\
20378 \ case ${1} in\
20379 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20380 \ * ) func_dirname_result="${3}" ;;\
20381 \ esac\
20382 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20383 && mv -f "$cfgfile.tmp" "$cfgfile" \
20384 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20385 test 0 -eq $? || _lt_function_replace_fail=:
20386
20387
20388 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20389 func_basename ()\
20390 {\
20391 \ func_basename_result="${1##*/}"\
20392 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20393 && mv -f "$cfgfile.tmp" "$cfgfile" \
20394 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20395 test 0 -eq $? || _lt_function_replace_fail=:
20396
20397
20398 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20399 func_dirname_and_basename ()\
20400 {\
20401 \ case ${1} in\
20402 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20403 \ * ) func_dirname_result="${3}" ;;\
20404 \ esac\
20405 \ func_basename_result="${1##*/}"\
20406 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20407 && mv -f "$cfgfile.tmp" "$cfgfile" \
20408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20409 test 0 -eq $? || _lt_function_replace_fail=:
20410
20411
20412 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20413 func_stripname ()\
20414 {\
20415 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20416 \ # positional parameters, so assign one to ordinary parameter first.\
20417 \ func_stripname_result=${3}\
20418 \ func_stripname_result=${func_stripname_result#"${1}"}\
20419 \ func_stripname_result=${func_stripname_result%"${2}"}\
20420 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20421 && mv -f "$cfgfile.tmp" "$cfgfile" \
20422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20423 test 0 -eq $? || _lt_function_replace_fail=:
20424
20425
20426 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20427 func_split_long_opt ()\
20428 {\
20429 \ func_split_long_opt_name=${1%%=*}\
20430 \ func_split_long_opt_arg=${1#*=}\
20431 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20432 && mv -f "$cfgfile.tmp" "$cfgfile" \
20433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20434 test 0 -eq $? || _lt_function_replace_fail=:
20435
20436
20437 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20438 func_split_short_opt ()\
20439 {\
20440 \ func_split_short_opt_arg=${1#??}\
20441 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20442 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20443 && mv -f "$cfgfile.tmp" "$cfgfile" \
20444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20445 test 0 -eq $? || _lt_function_replace_fail=:
20446
20447
20448 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20449 func_lo2o ()\
20450 {\
20451 \ case ${1} in\
20452 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20453 \ *) func_lo2o_result=${1} ;;\
20454 \ esac\
20455 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20456 && mv -f "$cfgfile.tmp" "$cfgfile" \
20457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20458 test 0 -eq $? || _lt_function_replace_fail=:
20459
20460
20461 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20462 func_xform ()\
20463 {\
20464 func_xform_result=${1%.*}.lo\
20465 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20466 && mv -f "$cfgfile.tmp" "$cfgfile" \
20467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20468 test 0 -eq $? || _lt_function_replace_fail=:
20469
20470
20471 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20472 func_arith ()\
20473 {\
20474 func_arith_result=$(( $* ))\
20475 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20476 && mv -f "$cfgfile.tmp" "$cfgfile" \
20477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20478 test 0 -eq $? || _lt_function_replace_fail=:
20479
20480
20481 sed -e '/^func_len ()$/,/^} # func_len /c\
20482 func_len ()\
20483 {\
20484 func_len_result=${#1}\
20485 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20486 && mv -f "$cfgfile.tmp" "$cfgfile" \
20487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20488 test 0 -eq $? || _lt_function_replace_fail=:
20489
20490 fi
20491
20492 if test x"$lt_shell_append" = xyes; then
20493 sed -e '/^func_append ()$/,/^} # func_append /c\
20494 func_append ()\
20495 {\
20496 eval "${1}+=\\${2}"\
20497 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20498 && mv -f "$cfgfile.tmp" "$cfgfile" \
20499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20500 test 0 -eq $? || _lt_function_replace_fail=:
20501
20502
20503 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20504 func_append_quoted ()\
20505 {\
20506 \ func_quote_for_eval "${2}"\
20507 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20508 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20509 && mv -f "$cfgfile.tmp" "$cfgfile" \
20510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20511 test 0 -eq $? || _lt_function_replace_fail=:
20512
20513
20514 # Save a `func_append' function call where possible by direct use of '+='
20515 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20516 && mv -f "$cfgfile.tmp" "$cfgfile" \
20517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20518 test 0 -eq $? || _lt_function_replace_fail=:
20519 else
20520 # Save a `func_append' function call even when '+=' is not available
20521 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20522 && mv -f "$cfgfile.tmp" "$cfgfile" \
20523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20524 test 0 -eq $? || _lt_function_replace_fail=:
20525 fi
20526
20527 if test x"$_lt_function_replace_fail" = x":"; then
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20529 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20530 fi
20531
20532
20533 mv -f "$cfgfile" "$ofile" ||
20534 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20535 chmod +x "$ofile"
20536
20537
20538 cat <<_LT_EOF >> "$ofile"
20539
20540 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20541
20542 # The linker used to build libraries.
20543 LD=$lt_LD_CXX
20544
20545 # How to create reloadable object files.
20546 reload_flag=$lt_reload_flag_CXX
20547 reload_cmds=$lt_reload_cmds_CXX
20548
20549 # Commands used to build an old-style archive.
20550 old_archive_cmds=$lt_old_archive_cmds_CXX
20551
20552 # A language specific compiler.
20553 CC=$lt_compiler_CXX
20554
20555 # Is the compiler the GNU compiler?
20556 with_gcc=$GCC_CXX
20557
20558 # Compiler flag to turn off builtin functions.
20559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20560
20561 # Additional compiler flags for building library objects.
20562 pic_flag=$lt_lt_prog_compiler_pic_CXX
20563
20564 # How to pass a linker flag through the compiler.
20565 wl=$lt_lt_prog_compiler_wl_CXX
20566
20567 # Compiler flag to prevent dynamic linking.
20568 link_static_flag=$lt_lt_prog_compiler_static_CXX
20569
20570 # Does compiler simultaneously support -c and -o options?
20571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20572
20573 # Whether or not to add -lc for building shared libraries.
20574 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20575
20576 # Whether or not to disallow shared libs when runtime libs are static.
20577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20578
20579 # Compiler flag to allow reflexive dlopens.
20580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20581
20582 # Compiler flag to generate shared objects directly from archives.
20583 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20584
20585 # Whether the compiler copes with passing no objects directly.
20586 compiler_needs_object=$lt_compiler_needs_object_CXX
20587
20588 # Create an old-style archive from a shared archive.
20589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20590
20591 # Create a temporary old-style archive to link instead of a shared archive.
20592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20593
20594 # Commands used to build a shared archive.
20595 archive_cmds=$lt_archive_cmds_CXX
20596 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20597
20598 # Commands used to build a loadable module if different from building
20599 # a shared archive.
20600 module_cmds=$lt_module_cmds_CXX
20601 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20602
20603 # Whether we are building with GNU ld or not.
20604 with_gnu_ld=$lt_with_gnu_ld_CXX
20605
20606 # Flag that allows shared libraries with undefined symbols to be built.
20607 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20608
20609 # Flag that enforces no undefined symbols.
20610 no_undefined_flag=$lt_no_undefined_flag_CXX
20611
20612 # Flag to hardcode \$libdir into a binary during linking.
20613 # This must work even if \$libdir does not exist
20614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20615
20616 # Whether we need a single "-rpath" flag with a separated argument.
20617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20618
20619 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20620 # DIR into the resulting binary.
20621 hardcode_direct=$hardcode_direct_CXX
20622
20623 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20624 # DIR into the resulting binary and the resulting library dependency is
20625 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20626 # library is relocated.
20627 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20628
20629 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20630 # into the resulting binary.
20631 hardcode_minus_L=$hardcode_minus_L_CXX
20632
20633 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20634 # into the resulting binary.
20635 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20636
20637 # Set to "yes" if building a shared library automatically hardcodes DIR
20638 # into the library and all subsequent libraries and executables linked
20639 # against it.
20640 hardcode_automatic=$hardcode_automatic_CXX
20641
20642 # Set to yes if linker adds runtime paths of dependent libraries
20643 # to runtime path list.
20644 inherit_rpath=$inherit_rpath_CXX
20645
20646 # Whether libtool must link a program against all its dependency libraries.
20647 link_all_deplibs=$link_all_deplibs_CXX
20648
20649 # Set to "yes" if exported symbols are required.
20650 always_export_symbols=$always_export_symbols_CXX
20651
20652 # The commands to list exported symbols.
20653 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20654
20655 # Symbols that should not be listed in the preloaded symbols.
20656 exclude_expsyms=$lt_exclude_expsyms_CXX
20657
20658 # Symbols that must always be exported.
20659 include_expsyms=$lt_include_expsyms_CXX
20660
20661 # Commands necessary for linking programs (against libraries) with templates.
20662 prelink_cmds=$lt_prelink_cmds_CXX
20663
20664 # Commands necessary for finishing linking programs.
20665 postlink_cmds=$lt_postlink_cmds_CXX
20666
20667 # Specify filename containing input files.
20668 file_list_spec=$lt_file_list_spec_CXX
20669
20670 # How to hardcode a shared library path into an executable.
20671 hardcode_action=$hardcode_action_CXX
20672
20673 # The directories searched by this compiler when creating a shared library.
20674 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20675
20676 # Dependencies to place before and after the objects being linked to
20677 # create a shared library.
20678 predep_objects=$lt_predep_objects_CXX
20679 postdep_objects=$lt_postdep_objects_CXX
20680 predeps=$lt_predeps_CXX
20681 postdeps=$lt_postdeps_CXX
20682
20683 # The library search path used internally by the compiler when linking
20684 # a shared library.
20685 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20686
20687 # ### END LIBTOOL TAG CONFIG: CXX
20688 _LT_EOF
20689
20690 ;;
20691 "libtool-rpath-patch":C) if test "$libtool_use_rpath" = "no"; then
20692 sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
20693 mv libtool-2 libtool
20694 chmod 755 libtool
20695 fi ;;
20696
20697 esac
20698 done # for ac_tag
20699
20700
20701 as_fn_exit 0
20702 _ACEOF
20703 ac_clean_files=$ac_clean_files_save
20704
20705 test $ac_write_fail = 0 ||
20706 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20707
20708
20709 # configure is writing to config.log, and then calls config.status.
20710 # config.status does its own redirection, appending to config.log.
20711 # Unfortunately, on DOS this fails, as config.log is still kept open
20712 # by configure, so config.status won't be able to write to it; its
20713 # output is simply discarded. So we exec the FD to /dev/null,
20714 # effectively closing config.log, so it can be properly (re)opened and
20715 # appended to by config.status. When coming back to configure, we
20716 # need to make the FD available again.
20717 if test "$no_create" != yes; then
20718 ac_cs_success=:
20719 ac_config_status_args=
20720 test "$silent" = yes &&
20721 ac_config_status_args="$ac_config_status_args --quiet"
20722 exec 5>/dev/null
20723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20724 exec 5>>config.log
20725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20726 # would make configure fail if this is the last instruction.
20727 $ac_cs_success || as_fn_exit 1
20728 fi
20729 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20731 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20732 fi
20733