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 dia2code 1.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='dia2code'
589 PACKAGE_TARNAME='dia2code'
590 PACKAGE_VERSION='1.0.0'
591 PACKAGE_STRING='dia2code 1.0.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/main.cpp"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ENABLE_CORBA_FALSE
637 ENABLE_CORBA_TRUE
638 XML_LIBS
639 XML_CFLAGS
640 XML_CONFIG
641 CXXCPP
642 am__fastdepCXX_FALSE
643 am__fastdepCXX_TRUE
644 CXXDEPMODE
645 ac_ct_CXX
646 CXXFLAGS
647 CXX
648 CPP
649 LT_SYS_LIBRARY_PATH
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_aix_soname
770 enable_dependency_tracking
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 with_corba
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 LT_SYS_LIBRARY_PATH
785 CPP
786 CXX
787 CXXFLAGS
788 CCC
789 CXXCPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures dia2code 1.0.0 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/dia2code]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of dia2code 1.0.0:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-aix-soname=aix|svr4|both
1426 shared library versioning (aka "SONAME") variant to
1427 provide on AIX, [default=aix].
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1430 compiler's sysroot if not specified).
1431 --with-corba build with corba.
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 LT_SYS_LIBRARY_PATH
1442 User-defined run-time library search path.
1443 CPP C preprocessor
1444 CXX C++ compiler command
1445 CXXFLAGS C++ compiler flags
1446 CXXCPP C++ preprocessor
1447
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to the package provider.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 dia2code configure 1.0.0
1515 generated by GNU Autoconf 2.69
1516
1517 Copyright (C) 2012 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=1
1560 fi
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 test -x conftest$ac_exeext
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_link
1611
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1623 else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631 else
1632 eval "$3=no"
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 fi
1636 eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_c_check_header_compile
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715 fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1743
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1749
1750 #undef $2
1751
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1765
1766 int
1767 main ()
1768 {
1769 return $2 ();
1770 ;
1771 return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_func
1788
1789 # ac_fn_cxx_try_compile LINENO
1790 # ----------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_compile ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_cxx_try_compile
1826
1827 # ac_fn_cxx_try_cpp LINENO
1828 # ------------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_cpp ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } > conftest.i && {
1849 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_retval=1
1858 fi
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_cxx_try_cpp
1863
1864 # ac_fn_cxx_try_link LINENO
1865 # -------------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_cxx_try_link ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1884 fi
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 test -x conftest$ac_exeext
1892 }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899 fi
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908 } # ac_fn_cxx_try_link
1909 cat >config.log <<_ACEOF
1910 This file contains any messages produced by compilers while
1911 running configure, to aid debugging if configure makes a mistake.
1912
1913 It was created by dia2code $as_me 1.0.0, which was
1914 generated by GNU Autoconf 2.69. Invocation command line was
1915
1916 $ $0 $@
1917
1918 _ACEOF
1919 exec 5>>config.log
1920 {
1921 cat <<_ASUNAME
1922 ## --------- ##
1923 ## Platform. ##
1924 ## --------- ##
1925
1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934
1935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942
1943 _ASUNAME
1944
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 $as_echo "PATH: $as_dir"
1951 done
1952 IFS=$as_save_IFS
1953
1954 } >&5
1955
1956 cat >&5 <<_ACEOF
1957
1958
1959 ## ----------- ##
1960 ## Core tests. ##
1961 ## ----------- ##
1962
1963 _ACEOF
1964
1965
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_configure_args=
1972 ac_configure_args0=
1973 ac_configure_args1=
1974 ac_must_keep_next=false
1975 for ac_pass in 1 2
1976 do
1977 for ac_arg
1978 do
1979 case $ac_arg in
1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982 | -silent | --silent | --silen | --sile | --sil)
1983 continue ;;
1984 *\'*)
1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 esac
1987 case $ac_pass in
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 2)
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
1991 if test $ac_must_keep_next = true; then
1992 ac_must_keep_next=false # Got value, back to normal.
1993 else
1994 case $ac_arg in
1995 *=* | --config-cache | -C | -disable-* | --disable-* \
1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998 | -with-* | --with-* | -without-* | --without-* | --x)
1999 case "$ac_configure_args0 " in
2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 esac
2002 ;;
2003 -* ) ac_must_keep_next=true ;;
2004 esac
2005 fi
2006 as_fn_append ac_configure_args " '$ac_arg'"
2007 ;;
2008 esac
2009 done
2010 done
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2013
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log. We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020 # Save into config.log some information that might help in debugging.
2021 {
2022 echo
2023
2024 $as_echo "## ---------------- ##
2025 ## Cache variables. ##
2026 ## ---------------- ##"
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
2029 (
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;;
2043 esac
2044 done
2045 (set) 2>&1 |
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
2048 sed -n \
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
2052 *)
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 ;;
2055 esac |
2056 sort
2057 )
2058 echo
2059
2060 $as_echo "## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##"
2063 echo
2064 for ac_var in $ac_subst_vars
2065 do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 esac
2070 $as_echo "$ac_var='\''$ac_val'\''"
2071 done | sort
2072 echo
2073
2074 if test -n "$ac_subst_files"; then
2075 $as_echo "## ------------------- ##
2076 ## File substitutions. ##
2077 ## ------------------- ##"
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 $as_echo "## ----------- ##
2092 ## confdefs.h. ##
2093 ## ----------- ##"
2094 echo
2095 cat confdefs.h
2096 echo
2097 fi
2098 test "$ac_signal" != 0 &&
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
2101 } >&5
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 exit $exit_status
2105 ' 0
2106 for ac_signal in 1 2 13 15; do
2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108 done
2109 ac_signal=0
2110
2111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2112 rm -f -r conftest* confdefs.h
2113
2114 $as_echo "/* confdefs.h */" > confdefs.h
2115
2116 # Predefined preprocessor variables.
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_URL "$PACKAGE_URL"
2140 _ACEOF
2141
2142
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 ac_site_file1=NONE
2146 ac_site_file2=NONE
2147 if test -n "$CONFIG_SITE"; then
2148 # We do not want a PATH search for config.site.
2149 case $CONFIG_SITE in #((
2150 -*) ac_site_file1=./$CONFIG_SITE;;
2151 */*) ac_site_file1=$CONFIG_SITE;;
2152 *) ac_site_file1=./$CONFIG_SITE;;
2153 esac
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157 else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2160 fi
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 do
2163 test "x$ac_site_file" = xNONE && continue
2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file" \
2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2173 fi
2174 done
2175
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2186 fi
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 $as_echo "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2191 fi
2192
2193 # Check that the precious variables saved in the cache have kept the same
2194 # value.
2195 ac_cache_corrupted=false
2196 for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2202 set,)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,set)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,);;
2211 *)
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2224 fi
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 fi;;
2230 esac
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2233 case $ac_new_val in
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2236 esac
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240 esac
2241 fi
2242 done
2243 if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 fi
2250 ## -------------------- ##
2251 ## Main body of script. ##
2252 ## -------------------- ##
2253
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261
2262 am__api_version='1.15'
2263
2264 ac_aux_dir=
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266 if test -f "$ac_dir/install-sh"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/install-sh -c"
2269 break
2270 elif test -f "$ac_dir/install.sh"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/install.sh -c"
2273 break
2274 elif test -f "$ac_dir/shtool"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/shtool install -c"
2277 break
2278 fi
2279 done
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
2292
2293 # Find a good install program. We prefer a C program (faster),
2294 # so one script is as good as another. But avoid the broken or
2295 # incompatible versions:
2296 # SysV /etc/install, /usr/sbin/install
2297 # SunOS /usr/etc/install
2298 # IRIX /sbin/install
2299 # AIX /bin/install
2300 # AmigaOS /C/install, which installs bootblocks on floppy discs
2301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2304 # OS/2's system install, which has a completely different semantic
2305 # ./install, which can be erroneously created by make from ./install.sh.
2306 # Reject install programs that cannot install multiple files.
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2308 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2309 if test -z "$INSTALL"; then
2310 if ${ac_cv_path_install+:} false; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 # Account for people who put trailing slashes in PATH elements.
2319 case $as_dir/ in #((
2320 ./ | .// | /[cC]/* | \
2321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2323 /usr/ucb/* ) ;;
2324 *)
2325 # OSF1 and SCO ODT 3.0 have their own names for install.
2326 # Don't use installbsd from OSF since it installs stuff as root
2327 # by default.
2328 for ac_prog in ginstall scoinst install; do
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2331 if test $ac_prog = install &&
2332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2333 # AIX install. It has an incompatible calling convention.
2334 :
2335 elif test $ac_prog = install &&
2336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337 # program-specific install script used by HP pwplus--don't use.
2338 :
2339 else
2340 rm -rf conftest.one conftest.two conftest.dir
2341 echo one > conftest.one
2342 echo two > conftest.two
2343 mkdir conftest.dir
2344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2345 test -s conftest.one && test -s conftest.two &&
2346 test -s conftest.dir/conftest.one &&
2347 test -s conftest.dir/conftest.two
2348 then
2349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2350 break 3
2351 fi
2352 fi
2353 fi
2354 done
2355 done
2356 ;;
2357 esac
2358
2359 done
2360 IFS=$as_save_IFS
2361
2362 rm -rf conftest.one conftest.two conftest.dir
2363
2364 fi
2365 if test "${ac_cv_path_install+set}" = set; then
2366 INSTALL=$ac_cv_path_install
2367 else
2368 # As a last resort, use the slow shell script. Don't cache a
2369 # value for INSTALL within a source directory, because that will
2370 # break other packages using the cache if that directory is
2371 # removed, or if the value is a relative name.
2372 INSTALL=$ac_install_sh
2373 fi
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2376 $as_echo "$INSTALL" >&6; }
2377
2378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2379 # It thinks the first close brace ends the variable substitution.
2380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381
2382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383
2384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2387 $as_echo_n "checking whether build environment is sane... " >&6; }
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name. Accept space and tab only in the latter.
2390 am_lf='
2391 '
2392 case `pwd` in
2393 *[\\\"\#\$\&\'\`$am_lf]*)
2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 esac
2396 case $srcdir in
2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2399 esac
2400
2401 # Do 'set' in a subshell so we don't clobber the current shell's
2402 # arguments. Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2405 # directory).
2406 if (
2407 am_has_slept=no
2408 for am_try in 1 2; do
2409 echo "timestamp, slept: $am_has_slept" > conftest.file
2410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2411 if test "$*" = "X"; then
2412 # -L didn't work.
2413 set X `ls -t "$srcdir/configure" conftest.file`
2414 fi
2415 if test "$*" != "X $srcdir/configure conftest.file" \
2416 && test "$*" != "X conftest.file $srcdir/configure"; then
2417
2418 # If neither matched, then we have a broken ls. This can happen
2419 # if, for instance, CONFIG_SHELL is bash and it inherits a
2420 # broken ls alias from the environment. This has actually
2421 # happened. Such a system could not be considered "sane".
2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2423 alias in your environment" "$LINENO" 5
2424 fi
2425 if test "$2" = conftest.file || test $am_try -eq 2; then
2426 break
2427 fi
2428 # Just in case.
2429 sleep 1
2430 am_has_slept=yes
2431 done
2432 test "$2" = conftest.file
2433 )
2434 then
2435 # Ok.
2436 :
2437 else
2438 as_fn_error $? "newly created file is older than distributed files!
2439 Check your system clock" "$LINENO" 5
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442 $as_echo "yes" >&6; }
2443 # If we didn't sleep, we still need to ensure time stamps of config.status and
2444 # generated files are strictly newer.
2445 am_sleep_pid=
2446 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2447 ( sleep 1 ) &
2448 am_sleep_pid=$!
2449 fi
2450
2451 rm -f conftest.file
2452
2453 test "$program_prefix" != NONE &&
2454 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2455 # Use a double $ so make ignores it.
2456 test "$program_suffix" != NONE &&
2457 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2458 # Double any \ or $.
2459 # By default was `s,x,x', remove it if useless.
2460 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2461 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2462
2463 # Expand $ac_aux_dir to an absolute path.
2464 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2465
2466 if test x"${MISSING+set}" != xset; then
2467 case $am_aux_dir in
2468 *\ * | *\ *)
2469 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2470 *)
2471 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2472 esac
2473 fi
2474 # Use eval to expand $SHELL
2475 if eval "$MISSING --is-lightweight"; then
2476 am_missing_run="$MISSING "
2477 else
2478 am_missing_run=
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2480 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2481 fi
2482
2483 if test x"${install_sh+set}" != xset; then
2484 case $am_aux_dir in
2485 *\ * | *\ *)
2486 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2487 *)
2488 install_sh="\${SHELL} $am_aux_dir/install-sh"
2489 esac
2490 fi
2491
2492 # Installed binaries are usually stripped using 'strip' when the user
2493 # run "make install-strip". However 'strip' might not be the right
2494 # tool to use in cross-compilation environments, therefore Automake
2495 # will honor the 'STRIP' environment variable to overrule this program.
2496 if test "$cross_compiling" != no; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_STRIP+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test -n "$STRIP"; then
2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 STRIP=$ac_cv_prog_STRIP
2526 if test -n "$STRIP"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2528 $as_echo "$STRIP" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$ac_cv_prog_STRIP"; then
2537 ac_ct_STRIP=$STRIP
2538 # Extract the first word of "strip", so it can be a program name with args.
2539 set dummy strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$ac_ct_STRIP"; then
2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_STRIP="strip"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566 if test -n "$ac_ct_STRIP"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2568 $as_echo "$ac_ct_STRIP" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574 if test "x$ac_ct_STRIP" = x; then
2575 STRIP=":"
2576 else
2577 case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583 STRIP=$ac_ct_STRIP
2584 fi
2585 else
2586 STRIP="$ac_cv_prog_STRIP"
2587 fi
2588
2589 fi
2590 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2593 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2594 if test -z "$MKDIR_P"; then
2595 if ${ac_cv_path_mkdir+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_prog in mkdir gmkdir; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2606 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2607 'mkdir (GNU coreutils) '* | \
2608 'mkdir (coreutils) '* | \
2609 'mkdir (fileutils) '4.1*)
2610 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2611 break 3;;
2612 esac
2613 done
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619
2620 test -d ./--version && rmdir ./--version
2621 if test "${ac_cv_path_mkdir+set}" = set; then
2622 MKDIR_P="$ac_cv_path_mkdir -p"
2623 else
2624 # As a last resort, use the slow shell script. Don't cache a
2625 # value for MKDIR_P within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the value is a relative name.
2628 MKDIR_P="$ac_install_sh -d"
2629 fi
2630 fi
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2632 $as_echo "$MKDIR_P" >&6; }
2633
2634 for ac_prog in gawk mawk nawk awk
2635 do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_AWK+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 test -n "$AWK" && break
2674 done
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678 set x ${MAKE-make}
2679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 cat >conftest.make <<\_ACEOF
2684 SHELL = /bin/sh
2685 all:
2686 @echo '@@@%%%=$(MAKE)=@@@%%%'
2687 _ACEOF
2688 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690 *@@@%%%=?*=@@@%%%*)
2691 eval ac_cv_prog_make_${ac_make}_set=yes;;
2692 *)
2693 eval ac_cv_prog_make_${ac_make}_set=no;;
2694 esac
2695 rm -f conftest.make
2696 fi
2697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699 $as_echo "yes" >&6; }
2700 SET_MAKE=
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 SET_MAKE="MAKE=${MAKE-make}"
2705 fi
2706
2707 rm -rf .tst 2>/dev/null
2708 mkdir .tst 2>/dev/null
2709 if test -d .tst; then
2710 am__leading_dot=.
2711 else
2712 am__leading_dot=_
2713 fi
2714 rmdir .tst 2>/dev/null
2715
2716 # Check whether --enable-silent-rules was given.
2717 if test "${enable_silent_rules+set}" = set; then :
2718 enableval=$enable_silent_rules;
2719 fi
2720
2721 case $enable_silent_rules in # (((
2722 yes) AM_DEFAULT_VERBOSITY=0;;
2723 no) AM_DEFAULT_VERBOSITY=1;;
2724 *) AM_DEFAULT_VERBOSITY=1;;
2725 esac
2726 am_make=${MAKE-make}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2728 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2729 if ${am_cv_make_support_nested_variables+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if $as_echo 'TRUE=$(BAR$(V))
2733 BAR0=false
2734 BAR1=true
2735 V=1
2736 am__doit:
2737 @$(TRUE)
2738 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2739 am_cv_make_support_nested_variables=yes
2740 else
2741 am_cv_make_support_nested_variables=no
2742 fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2745 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2746 if test $am_cv_make_support_nested_variables = yes; then
2747 AM_V='$(V)'
2748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2749 else
2750 AM_V=$AM_DEFAULT_VERBOSITY
2751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2752 fi
2753 AM_BACKSLASH='\'
2754
2755 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2757 # is not polluted with repeated "-I."
2758 am__isrc=' -I$(srcdir)'
2759 # test to see if srcdir already configured
2760 if test -f $srcdir/config.status; then
2761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2762 fi
2763 fi
2764
2765 # test whether we have cygpath
2766 if test -z "$CYGPATH_W"; then
2767 if (cygpath --version) >/dev/null 2>/dev/null; then
2768 CYGPATH_W='cygpath -w'
2769 else
2770 CYGPATH_W=echo
2771 fi
2772 fi
2773
2774
2775 # Define the identity of the package.
2776 PACKAGE='dia2code'
2777 VERSION='1.0.0'
2778
2779
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE "$PACKAGE"
2782 _ACEOF
2783
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define VERSION "$VERSION"
2787 _ACEOF
2788
2789 # Some tools Automake needs.
2790
2791 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2792
2793
2794 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2795
2796
2797 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2798
2799
2800 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2801
2802
2803 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2804
2805 # For better backward compatibility. To be removed once Automake 1.9.x
2806 # dies out for good. For more background, see:
2807 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2808 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2809 mkdir_p='$(MKDIR_P)'
2810
2811 # We need awk for the "check" target (and possibly the TAP driver). The
2812 # system "awk" is bad on some platforms.
2813 # Always define AMTAR for backward compatibility. Yes, it's still used
2814 # in the wild :-( We should find a proper way to deprecate it ...
2815 AMTAR='$${TAR-tar}'
2816
2817
2818 # We'll loop over all known methods to create a tar archive until one works.
2819 _am_tools='gnutar pax cpio none'
2820
2821 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2822
2823
2824
2825
2826
2827
2828 # POSIX will say in a future version that running "rm -f" with no argument
2829 # is OK; and we want to be able to make that assumption in our Makefile
2830 # recipes. So use an aggressive probe to check that the usage we want is
2831 # actually supported "in the wild" to an acceptable degree.
2832 # See automake bug#10828.
2833 # To make any issue more visible, cause the running configure to be aborted
2834 # by default if the 'rm' program in use doesn't match our expectations; the
2835 # user can still override this though.
2836 if rm -f && rm -fr && rm -rf; then : OK; else
2837 cat >&2 <<'END'
2838 Oops!
2839
2840 Your 'rm' program seems unable to run without file operands specified
2841 on the command line, even when the '-f' option is present. This is contrary
2842 to the behaviour of most rm programs out there, and not conforming with
2843 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2844
2845 Please tell [email protected] about your system, including the value
2846 of your $PATH and any error possibly output before this message. This
2847 can help us improve future automake versions.
2848
2849 END
2850 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2851 echo 'Configuration will proceed anyway, since you have set the' >&2
2852 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2853 echo >&2
2854 else
2855 cat >&2 <<'END'
2856 Aborting the configuration process, to ensure you take notice of the issue.
2857
2858 You can download and install GNU coreutils to get an 'rm' implementation
2859 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2860
2861 If you want to complete the configuration process using your problematic
2862 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2863 to "yes", and re-run configure.
2864
2865 END
2866 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2867 fi
2868 fi
2869
2870
2871
2872 case `pwd` in
2873 *\ * | *\ *)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2875 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2876 esac
2877
2878
2879
2880 macro_version='2.4.6'
2881 macro_revision='2.4.6'
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895 ltmain=$ac_aux_dir/ltmain.sh
2896
2897 # Make sure we can run config.sub.
2898 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2899 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2900
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2902 $as_echo_n "checking build system type... " >&6; }
2903 if ${ac_cv_build+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 ac_build_alias=$build_alias
2907 test "x$ac_build_alias" = x &&
2908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2909 test "x$ac_build_alias" = x &&
2910 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2911 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2913
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2916 $as_echo "$ac_cv_build" >&6; }
2917 case $ac_cv_build in
2918 *-*-*) ;;
2919 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2920 esac
2921 build=$ac_cv_build
2922 ac_save_IFS=$IFS; IFS='-'
2923 set x $ac_cv_build
2924 shift
2925 build_cpu=$1
2926 build_vendor=$2
2927 shift; shift
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2930 build_os=$*
2931 IFS=$ac_save_IFS
2932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2933
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2936 $as_echo_n "checking host system type... " >&6; }
2937 if ${ac_cv_host+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test "x$host_alias" = x; then
2941 ac_cv_host=$ac_cv_build
2942 else
2943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2945 fi
2946
2947 fi
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2949 $as_echo "$ac_cv_host" >&6; }
2950 case $ac_cv_host in
2951 *-*-*) ;;
2952 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2953 esac
2954 host=$ac_cv_host
2955 ac_save_IFS=$IFS; IFS='-'
2956 set x $ac_cv_host
2957 shift
2958 host_cpu=$1
2959 host_vendor=$2
2960 shift; shift
2961 # Remember, the first character of IFS is used to create $*,
2962 # except with old shells:
2963 host_os=$*
2964 IFS=$ac_save_IFS
2965 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2966
2967
2968 # Backslashify metacharacters that are still active within
2969 # double-quoted strings.
2970 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2971
2972 # Same as above, but do not quote variable references.
2973 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2974
2975 # Sed substitution to delay expansion of an escaped shell variable in a
2976 # double_quote_subst'ed string.
2977 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2978
2979 # Sed substitution to delay expansion of an escaped single quote.
2980 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2981
2982 # Sed substitution to avoid accidental globbing in evaled expressions
2983 no_glob_subst='s/\*/\\\*/g'
2984
2985 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2987 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2990 $as_echo_n "checking how to print strings... " >&6; }
2991 # Test print first, because it will be a builtin if present.
2992 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2994 ECHO='print -r --'
2995 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2996 ECHO='printf %s\n'
2997 else
2998 # Use this function as a fallback that always works.
2999 func_fallback_echo ()
3000 {
3001 eval 'cat <<_LTECHO_EOF
3002 $1
3003 _LTECHO_EOF'
3004 }
3005 ECHO='func_fallback_echo'
3006 fi
3007
3008 # func_echo_all arg...
3009 # Invoke $ECHO with all args, space-separated.
3010 func_echo_all ()
3011 {
3012 $ECHO ""
3013 }
3014
3015 case $ECHO in
3016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3017 $as_echo "printf" >&6; } ;;
3018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3019 $as_echo "print -r" >&6; } ;;
3020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3021 $as_echo "cat" >&6; } ;;
3022 esac
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037 DEPDIR="${am__leading_dot}deps"
3038
3039 ac_config_commands="$ac_config_commands depfiles"
3040
3041
3042 am_make=${MAKE-make}
3043 cat > confinc << 'END'
3044 am__doit:
3045 @echo this is the am__doit target
3046 .PHONY: am__doit
3047 END
3048 # If we don't find an include directive, just comment out the code.
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3050 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3051 am__include="#"
3052 am__quote=
3053 _am_result=none
3054 # First try GNU make style include.
3055 echo "include confinc" > confmf
3056 # Ignore all kinds of additional output from 'make'.
3057 case `$am_make -s -f confmf 2> /dev/null` in #(
3058 *the\ am__doit\ target*)
3059 am__include=include
3060 am__quote=
3061 _am_result=GNU
3062 ;;
3063 esac
3064 # Now try BSD make style include.
3065 if test "$am__include" = "#"; then
3066 echo '.include "confinc"' > confmf
3067 case `$am_make -s -f confmf 2> /dev/null` in #(
3068 *the\ am__doit\ target*)
3069 am__include=.include
3070 am__quote="\""
3071 _am_result=BSD
3072 ;;
3073 esac
3074 fi
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3078 $as_echo "$_am_result" >&6; }
3079 rm -f confinc confmf
3080
3081 # Check whether --enable-dependency-tracking was given.
3082 if test "${enable_dependency_tracking+set}" = set; then :
3083 enableval=$enable_dependency_tracking;
3084 fi
3085
3086 if test "x$enable_dependency_tracking" != xno; then
3087 am_depcomp="$ac_aux_dir/depcomp"
3088 AMDEPBACKSLASH='\'
3089 am__nodep='_no'
3090 fi
3091 if test "x$enable_dependency_tracking" != xno; then
3092 AMDEP_TRUE=
3093 AMDEP_FALSE='#'
3094 else
3095 AMDEP_TRUE='#'
3096 AMDEP_FALSE=
3097 fi
3098
3099
3100 ac_ext=c
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test -n "$ac_tool_prefix"; then
3106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 fi
3144 if test -z "$ac_cv_prog_CC"; then
3145 ac_ct_CC=$CC
3146 # Extract the first word of "gcc", so it can be a program name with args.
3147 set dummy gcc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_ac_ct_CC="gcc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182 if test "x$ac_ct_CC" = x; then
3183 CC=""
3184 else
3185 case $cross_compiling:$ac_tool_warned in
3186 yes:)
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189 ac_tool_warned=yes ;;
3190 esac
3191 CC=$ac_ct_CC
3192 fi
3193 else
3194 CC="$ac_cv_prog_CC"
3195 fi
3196
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}cc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_CC="${ac_tool_prefix}cc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236 fi
3237 fi
3238 if test -z "$CC"; then
3239 # Extract the first word of "cc", so it can be a program name with args.
3240 set dummy cc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 ac_prog_rejected=no
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3258 ac_prog_rejected=yes
3259 continue
3260 fi
3261 ac_cv_prog_CC="cc"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 if test $ac_prog_rejected = yes; then
3270 # We found a bogon in the path, so make sure we never use it.
3271 set dummy $ac_cv_prog_CC
3272 shift
3273 if test $# != 0; then
3274 # We chose a different compiler from the bogus one.
3275 # However, it has the same basename, so the bogon will be chosen
3276 # first if we set CC to just the basename; use the full file name.
3277 shift
3278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279 fi
3280 fi
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 if test -z "$CC"; then
3295 if test -n "$ac_tool_prefix"; then
3296 for ac_prog in cl.exe
3297 do
3298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 test -n "$CC" && break
3336 done
3337 fi
3338 if test -z "$CC"; then
3339 ac_ct_CC=$CC
3340 for ac_prog in cl.exe
3341 do
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$ac_ct_CC"; then
3350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_CC="$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370 if test -n "$ac_ct_CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372 $as_echo "$ac_ct_CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379 test -n "$ac_ct_CC" && break
3380 done
3381
3382 if test "x$ac_ct_CC" = x; then
3383 CC=""
3384 else
3385 case $cross_compiling:$ac_tool_warned in
3386 yes:)
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned=yes ;;
3390 esac
3391 CC=$ac_ct_CC
3392 fi
3393 fi
3394
3395 fi
3396
3397
3398 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "no acceptable C compiler found in \$PATH
3401 See \`config.log' for more details" "$LINENO" 5; }
3402
3403 # Provide some information about the compiler.
3404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3405 set X $ac_compile
3406 ac_compiler=$2
3407 for ac_option in --version -v -V -qversion; do
3408 { { ac_try="$ac_compiler $ac_option >&5"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3416 ac_status=$?
3417 if test -s conftest.err; then
3418 sed '10a\
3419 ... rest of stderr output deleted ...
3420 10q' conftest.err >conftest.er1
3421 cat conftest.er1 >&5
3422 fi
3423 rm -f conftest.er1 conftest.err
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }
3426 done
3427
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 ac_clean_files_save=$ac_clean_files
3440 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3441 # Try to create an executable without -o first, disregard a.out.
3442 # It will help us diagnose broken compilers, and finding out an intuition
3443 # of exeext.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3447
3448 # The possible output files:
3449 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3450
3451 ac_rmfiles=
3452 for ac_file in $ac_files
3453 do
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3457 esac
3458 done
3459 rm -f $ac_rmfiles
3460
3461 if { { ac_try="$ac_link_default"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link_default") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3475 # so that the user can short-circuit this test for compilers unknown to
3476 # Autoconf.
3477 for ac_file in $ac_files ''
3478 do
3479 test -f "$ac_file" || continue
3480 case $ac_file in
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3482 ;;
3483 [ab].out )
3484 # We found the default executable, but exeext='' is most
3485 # certainly right.
3486 break;;
3487 *.* )
3488 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3489 then :; else
3490 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491 fi
3492 # We set ac_cv_exeext here because the later test for it is not
3493 # safe: cross compilers may not add the suffix if given an `-o'
3494 # argument, so we may need to know it at that point already.
3495 # Even if this section looks crufty: it has the advantage of
3496 # actually working.
3497 break;;
3498 * )
3499 break;;
3500 esac
3501 done
3502 test "$ac_cv_exeext" = no && ac_cv_exeext=
3503
3504 else
3505 ac_file=''
3506 fi
3507 if test -z "$ac_file"; then :
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error 77 "C compiler cannot create executables
3516 See \`config.log' for more details" "$LINENO" 5; }
3517 else
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3522 $as_echo_n "checking for C compiler default output file name... " >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3524 $as_echo "$ac_file" >&6; }
3525 ac_exeext=$ac_cv_exeext
3526
3527 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3528 ac_clean_files=$ac_clean_files_save
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3530 $as_echo_n "checking for suffix of executables... " >&6; }
3531 if { { ac_try="$ac_link"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3544 # work properly (i.e., refer to `conftest.exe'), while it won't with
3545 # `rm'.
3546 for ac_file in conftest.exe conftest conftest.*; do
3547 test -f "$ac_file" || continue
3548 case $ac_file in
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551 break;;
3552 * ) break;;
3553 esac
3554 done
3555 else
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 fi
3561 rm -f conftest conftest$ac_cv_exeext
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3563 $as_echo "$ac_cv_exeext" >&6; }
3564
3565 rm -f conftest.$ac_ext
3566 EXEEXT=$ac_cv_exeext
3567 ac_exeext=$EXEEXT
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570 #include <stdio.h>
3571 int
3572 main ()
3573 {
3574 FILE *f = fopen ("conftest.out", "w");
3575 return ferror (f) || fclose (f) != 0;
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 ac_clean_files="$ac_clean_files conftest.out"
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3585 $as_echo_n "checking whether we are cross compiling... " >&6; }
3586 if test "$cross_compiling" != yes; then
3587 { { ac_try="$ac_link"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_link") 2>&5
3595 ac_status=$?
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }
3598 if { ac_try='./conftest$ac_cv_exeext'
3599 { { case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_try") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; }; then
3609 cross_compiling=no
3610 else
3611 if test "$cross_compiling" = maybe; then
3612 cross_compiling=yes
3613 else
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "cannot run C compiled programs.
3617 If you meant to cross compile, use \`--host'.
3618 See \`config.log' for more details" "$LINENO" 5; }
3619 fi
3620 fi
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3623 $as_echo "$cross_compiling" >&6; }
3624
3625 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3626 ac_clean_files=$ac_clean_files_save
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3628 $as_echo_n "checking for suffix of object files... " >&6; }
3629 if ${ac_cv_objext+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634
3635 int
3636 main ()
3637 {
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 rm -f conftest.o conftest.obj
3644 if { { ac_try="$ac_compile"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_compile") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 for ac_file in conftest.o conftest.obj conftest.*; do
3656 test -f "$ac_file" || continue;
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3660 break;;
3661 esac
3662 done
3663 else
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot compute suffix of object files: cannot compile
3670 See \`config.log' for more details" "$LINENO" 5; }
3671 fi
3672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3675 $as_echo "$ac_cv_objext" >&6; }
3676 OBJEXT=$ac_cv_objext
3677 ac_objext=$OBJEXT
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3679 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680 if ${ac_cv_c_compiler_gnu+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685
3686 int
3687 main ()
3688 {
3689 #ifndef __GNUC__
3690 choke me
3691 #endif
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_compiler_gnu=yes
3699 else
3700 ac_compiler_gnu=no
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3704
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3707 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3708 if test $ac_compiler_gnu = yes; then
3709 GCC=yes
3710 else
3711 GCC=
3712 fi
3713 ac_test_CFLAGS=${CFLAGS+set}
3714 ac_save_CFLAGS=$CFLAGS
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3716 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3717 if ${ac_cv_prog_cc_g+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 ac_save_c_werror_flag=$ac_c_werror_flag
3721 ac_c_werror_flag=yes
3722 ac_cv_prog_cc_g=no
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3737 else
3738 CFLAGS=""
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751
3752 else
3753 ac_c_werror_flag=$ac_save_c_werror_flag
3754 CFLAGS="-g"
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 int
3759 main ()
3760 {
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_prog_cc_g=yes
3768 fi
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3777 $as_echo "$ac_cv_prog_cc_g" >&6; }
3778 if test "$ac_test_CFLAGS" = set; then
3779 CFLAGS=$ac_save_CFLAGS
3780 elif test $ac_cv_prog_cc_g = yes; then
3781 if test "$GCC" = yes; then
3782 CFLAGS="-g -O2"
3783 else
3784 CFLAGS="-g"
3785 fi
3786 else
3787 if test "$GCC" = yes; then
3788 CFLAGS="-O2"
3789 else
3790 CFLAGS=
3791 fi
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3795 if ${ac_cv_prog_cc_c89+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_cv_prog_cc_c89=no
3799 ac_save_CC=$CC
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <stdarg.h>
3803 #include <stdio.h>
3804 struct stat;
3805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3806 struct buf { int x; };
3807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3808 static char *e (p, i)
3809 char **p;
3810 int i;
3811 {
3812 return p[i];
3813 }
3814 static char *f (char * (*g) (char **, int), char **p, ...)
3815 {
3816 char *s;
3817 va_list v;
3818 va_start (v,p);
3819 s = g (p, va_arg (v,int));
3820 va_end (v);
3821 return s;
3822 }
3823
3824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3825 function prototypes and stuff, but not '\xHH' hex character constants.
3826 These don't provoke an error unfortunately, instead are silently treated
3827 as 'x'. The following induces an error, until -std is added to get
3828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3829 array size at least. It's necessary to write '\x00'==0 to get something
3830 that's true only with -std. */
3831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3832
3833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3834 inside strings and character constants. */
3835 #define FOO(x) 'x'
3836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3837
3838 int test (int i, double x);
3839 struct s1 {int (*f) (int a);};
3840 struct s2 {int (*f) (double a);};
3841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842 int argc;
3843 char **argv;
3844 int
3845 main ()
3846 {
3847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3854 do
3855 CC="$ac_save_CC $ac_arg"
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_cv_prog_cc_c89=$ac_arg
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext
3860 test "x$ac_cv_prog_cc_c89" != "xno" && break
3861 done
3862 rm -f conftest.$ac_ext
3863 CC=$ac_save_CC
3864
3865 fi
3866 # AC_CACHE_VAL
3867 case "x$ac_cv_prog_cc_c89" in
3868 x)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3870 $as_echo "none needed" >&6; } ;;
3871 xno)
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3873 $as_echo "unsupported" >&6; } ;;
3874 *)
3875 CC="$CC $ac_cv_prog_cc_c89"
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3877 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3878 esac
3879 if test "x$ac_cv_prog_cc_c89" != xno; then :
3880
3881 fi
3882
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3895 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3896 if ${am_cv_prog_cc_c_o+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901
3902 int
3903 main ()
3904 {
3905
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 # Make sure it works both with $CC and with simple cc.
3911 # Following AC_PROG_CC_C_O, we do the test twice because some
3912 # compilers refuse to overwrite an existing .o file with -o,
3913 # though they will create one.
3914 am_cv_prog_cc_c_o=yes
3915 for am_i in 1 2; do
3916 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3917 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } \
3921 && test -f conftest2.$ac_objext; then
3922 : OK
3923 else
3924 am_cv_prog_cc_c_o=no
3925 break
3926 fi
3927 done
3928 rm -f core conftest*
3929 unset am_i
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3932 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3933 if test "$am_cv_prog_cc_c_o" != yes; then
3934 # Losing compiler, so override with the script.
3935 # FIXME: It is wrong to rewrite CC.
3936 # But if we don't then we get into trouble of one sort or another.
3937 # A longer-term fix would be to have automake use am__CC in this case,
3938 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3939 CC="$am_aux_dir/compile $CC"
3940 fi
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
3947
3948 depcc="$CC" am_compiler_list=
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3951 $as_echo_n "checking dependency style of $depcc... " >&6; }
3952 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3956 # We make a subdir and do the tests there. Otherwise we can end up
3957 # making bogus files that we don't know about and never remove. For
3958 # instance it was reported that on HP-UX the gcc test will end up
3959 # making a dummy file named 'D' -- because '-MD' means "put the output
3960 # in D".
3961 rm -rf conftest.dir
3962 mkdir conftest.dir
3963 # Copy depcomp to subdir because otherwise we won't find it if we're
3964 # using a relative directory.
3965 cp "$am_depcomp" conftest.dir
3966 cd conftest.dir
3967 # We will build objects and dependencies in a subdirectory because
3968 # it helps to detect inapplicable dependency modes. For instance
3969 # both Tru64's cc and ICC support -MD to output dependencies as a
3970 # side effect of compilation, but ICC will put the dependencies in
3971 # the current directory while Tru64 will put them in the object
3972 # directory.
3973 mkdir sub
3974
3975 am_cv_CC_dependencies_compiler_type=none
3976 if test "$am_compiler_list" = ""; then
3977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3978 fi
3979 am__universal=false
3980 case " $depcc " in #(
3981 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3982 esac
3983
3984 for depmode in $am_compiler_list; do
3985 # Setup a source with many dependencies, because some compilers
3986 # like to wrap large dependency lists on column 80 (with \), and
3987 # we should not choose a depcomp mode which is confused by this.
3988 #
3989 # We need to recreate these files for each test, as the compiler may
3990 # overwrite some of them when testing with obscure command lines.
3991 # This happens at least with the AIX C compiler.
3992 : > sub/conftest.c
3993 for i in 1 2 3 4 5 6; do
3994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3996 # Solaris 10 /bin/sh.
3997 echo '/* dummy */' > sub/conftst$i.h
3998 done
3999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4000
4001 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4002 # mode. It turns out that the SunPro C++ compiler does not properly
4003 # handle '-M -o', and we need to detect this. Also, some Intel
4004 # versions had trouble with output in subdirs.
4005 am__obj=sub/conftest.${OBJEXT-o}
4006 am__minus_obj="-o $am__obj"
4007 case $depmode in
4008 gcc)
4009 # This depmode causes a compiler race in universal mode.
4010 test "$am__universal" = false || continue
4011 ;;
4012 nosideeffect)
4013 # After this tag, mechanisms are not by side-effect, so they'll
4014 # only be used when explicitly requested.
4015 if test "x$enable_dependency_tracking" = xyes; then
4016 continue
4017 else
4018 break
4019 fi
4020 ;;
4021 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4022 # This compiler won't grok '-c -o', but also, the minuso test has
4023 # not run yet. These depmodes are late enough in the game, and
4024 # so weak that their functioning should not be impacted.
4025 am__obj=conftest.${OBJEXT-o}
4026 am__minus_obj=
4027 ;;
4028 none) break ;;
4029 esac
4030 if depmode=$depmode \
4031 source=sub/conftest.c object=$am__obj \
4032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4034 >/dev/null 2>conftest.err &&
4035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4039 # icc doesn't choke on unknown options, it will just issue warnings
4040 # or remarks (even with -Werror). So we grep stderr for any message
4041 # that says an option was ignored or not supported.
4042 # When given -MP, icc 7.0 and 7.1 complain thusly:
4043 # icc: Command line warning: ignoring option '-M'; no argument required
4044 # The diagnosis changed in icc 8.0:
4045 # icc: Command line remark: option '-MP' not supported
4046 if (grep 'ignoring option' conftest.err ||
4047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4048 am_cv_CC_dependencies_compiler_type=$depmode
4049 break
4050 fi
4051 fi
4052 done
4053
4054 cd ..
4055 rm -rf conftest.dir
4056 else
4057 am_cv_CC_dependencies_compiler_type=none
4058 fi
4059
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4062 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4064
4065 if
4066 test "x$enable_dependency_tracking" != xno \
4067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4068 am__fastdepCC_TRUE=
4069 am__fastdepCC_FALSE='#'
4070 else
4071 am__fastdepCC_TRUE='#'
4072 am__fastdepCC_FALSE=
4073 fi
4074
4075
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4077 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4078 if ${ac_cv_path_SED+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4082 for ac_i in 1 2 3 4 5 6 7; do
4083 ac_script="$ac_script$as_nl$ac_script"
4084 done
4085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4086 { ac_script=; unset ac_script;}
4087 if test -z "$SED"; then
4088 ac_path_SED_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in sed gsed; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4098 as_fn_executable_p "$ac_path_SED" || continue
4099 # Check for GNU ac_path_SED and select it if it is found.
4100 # Check for GNU $ac_path_SED
4101 case `"$ac_path_SED" --version 2>&1` in
4102 *GNU*)
4103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4104 *)
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo '' >> "conftest.nl"
4113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_SED_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_SED="$ac_path_SED"
4119 ac_path_SED_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127 $ac_path_SED_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_SED"; then
4133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4134 fi
4135 else
4136 ac_cv_path_SED=$SED
4137 fi
4138
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4141 $as_echo "$ac_cv_path_SED" >&6; }
4142 SED="$ac_cv_path_SED"
4143 rm -f conftest.sed
4144
4145 test -z "$SED" && SED=sed
4146 Xsed="$SED -e 1s/^X//"
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4159 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4160 if ${ac_cv_path_GREP+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -z "$GREP"; then
4164 ac_path_GREP_found=false
4165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168 do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_prog in grep ggrep; do
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4174 as_fn_executable_p "$ac_path_GREP" || continue
4175 # Check for GNU ac_path_GREP and select it if it is found.
4176 # Check for GNU $ac_path_GREP
4177 case `"$ac_path_GREP" --version 2>&1` in
4178 *GNU*)
4179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4180 *)
4181 ac_count=0
4182 $as_echo_n 0123456789 >"conftest.in"
4183 while :
4184 do
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
4188 $as_echo 'GREP' >> "conftest.nl"
4189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4191 as_fn_arith $ac_count + 1 && ac_count=$as_val
4192 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_GREP="$ac_path_GREP"
4195 ac_path_GREP_max=$ac_count
4196 fi
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4199 done
4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201 esac
4202
4203 $ac_path_GREP_found && break 3
4204 done
4205 done
4206 done
4207 IFS=$as_save_IFS
4208 if test -z "$ac_cv_path_GREP"; then
4209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4210 fi
4211 else
4212 ac_cv_path_GREP=$GREP
4213 fi
4214
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4217 $as_echo "$ac_cv_path_GREP" >&6; }
4218 GREP="$ac_cv_path_GREP"
4219
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4222 $as_echo_n "checking for egrep... " >&6; }
4223 if ${ac_cv_path_EGREP+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4227 then ac_cv_path_EGREP="$GREP -E"
4228 else
4229 if test -z "$EGREP"; then
4230 ac_path_EGREP_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in egrep; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4240 as_fn_executable_p "$ac_path_EGREP" || continue
4241 # Check for GNU ac_path_EGREP and select it if it is found.
4242 # Check for GNU $ac_path_EGREP
4243 case `"$ac_path_EGREP" --version 2>&1` in
4244 *GNU*)
4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4246 *)
4247 ac_count=0
4248 $as_echo_n 0123456789 >"conftest.in"
4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo 'EGREP' >> "conftest.nl"
4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 as_fn_arith $ac_count + 1 && ac_count=$as_val
4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_EGREP="$ac_path_EGREP"
4261 ac_path_EGREP_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267 esac
4268
4269 $ac_path_EGREP_found && break 3
4270 done
4271 done
4272 done
4273 IFS=$as_save_IFS
4274 if test -z "$ac_cv_path_EGREP"; then
4275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4276 fi
4277 else
4278 ac_cv_path_EGREP=$EGREP
4279 fi
4280
4281 fi
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4284 $as_echo "$ac_cv_path_EGREP" >&6; }
4285 EGREP="$ac_cv_path_EGREP"
4286
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4289 $as_echo_n "checking for fgrep... " >&6; }
4290 if ${ac_cv_path_FGREP+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4294 then ac_cv_path_FGREP="$GREP -F"
4295 else
4296 if test -z "$FGREP"; then
4297 ac_path_FGREP_found=false
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_prog in fgrep; do
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4307 as_fn_executable_p "$ac_path_FGREP" || continue
4308 # Check for GNU ac_path_FGREP and select it if it is found.
4309 # Check for GNU $ac_path_FGREP
4310 case `"$ac_path_FGREP" --version 2>&1` in
4311 *GNU*)
4312 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4313 *)
4314 ac_count=0
4315 $as_echo_n 0123456789 >"conftest.in"
4316 while :
4317 do
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
4321 $as_echo 'FGREP' >> "conftest.nl"
4322 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324 as_fn_arith $ac_count + 1 && ac_count=$as_val
4325 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_FGREP="$ac_path_FGREP"
4328 ac_path_FGREP_max=$ac_count
4329 fi
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4332 done
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334 esac
4335
4336 $ac_path_FGREP_found && break 3
4337 done
4338 done
4339 done
4340 IFS=$as_save_IFS
4341 if test -z "$ac_cv_path_FGREP"; then
4342 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343 fi
4344 else
4345 ac_cv_path_FGREP=$FGREP
4346 fi
4347
4348 fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4351 $as_echo "$ac_cv_path_FGREP" >&6; }
4352 FGREP="$ac_cv_path_FGREP"
4353
4354
4355 test -z "$GREP" && GREP=grep
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 # Check whether --with-gnu-ld was given.
4376 if test "${with_gnu_ld+set}" = set; then :
4377 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4378 else
4379 with_gnu_ld=no
4380 fi
4381
4382 ac_prog=ld
4383 if test yes = "$GCC"; then
4384 # Check if gcc -print-prog-name=ld gives a path.
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4386 $as_echo_n "checking for ld used by $CC... " >&6; }
4387 case $host in
4388 *-*-mingw*)
4389 # gcc leaves a trailing carriage return, which upsets mingw
4390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4391 *)
4392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4393 esac
4394 case $ac_prog in
4395 # Accept absolute paths.
4396 [\\/]* | ?:[\\/]*)
4397 re_direlt='/[^/][^/]*/\.\./'
4398 # Canonicalize the pathname of ld
4399 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4400 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4401 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4402 done
4403 test -z "$LD" && LD=$ac_prog
4404 ;;
4405 "")
4406 # If it fails, then pretend we aren't using GCC.
4407 ac_prog=ld
4408 ;;
4409 *)
4410 # If it is relative, then search for the first ld in PATH.
4411 with_gnu_ld=unknown
4412 ;;
4413 esac
4414 elif test yes = "$with_gnu_ld"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4416 $as_echo_n "checking for GNU ld... " >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4419 $as_echo_n "checking for non-GNU ld... " >&6; }
4420 fi
4421 if ${lt_cv_path_LD+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -z "$LD"; then
4425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4426 for ac_dir in $PATH; do
4427 IFS=$lt_save_ifs
4428 test -z "$ac_dir" && ac_dir=.
4429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4430 lt_cv_path_LD=$ac_dir/$ac_prog
4431 # Check to see if the program is GNU ld. I'd rather use --version,
4432 # but apparently some variants of GNU ld only accept -v.
4433 # Break only if it was the GNU/non-GNU ld that we prefer.
4434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4435 *GNU* | *'with BFD'*)
4436 test no != "$with_gnu_ld" && break
4437 ;;
4438 *)
4439 test yes != "$with_gnu_ld" && break
4440 ;;
4441 esac
4442 fi
4443 done
4444 IFS=$lt_save_ifs
4445 else
4446 lt_cv_path_LD=$LD # Let the user override the test with a path.
4447 fi
4448 fi
4449
4450 LD=$lt_cv_path_LD
4451 if test -n "$LD"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4453 $as_echo "$LD" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4460 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4461 if ${lt_cv_prog_gnu_ld+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4465 case `$LD -v 2>&1 </dev/null` in
4466 *GNU* | *'with BFD'*)
4467 lt_cv_prog_gnu_ld=yes
4468 ;;
4469 *)
4470 lt_cv_prog_gnu_ld=no
4471 ;;
4472 esac
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4475 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4476 with_gnu_ld=$lt_cv_prog_gnu_ld
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4487 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4488 if ${lt_cv_path_NM+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$NM"; then
4492 # Let the user override the test.
4493 lt_cv_path_NM=$NM
4494 else
4495 lt_nm_to_check=${ac_tool_prefix}nm
4496 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4497 lt_nm_to_check="$lt_nm_to_check nm"
4498 fi
4499 for lt_tmp_nm in $lt_nm_to_check; do
4500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4501 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4502 IFS=$lt_save_ifs
4503 test -z "$ac_dir" && ac_dir=.
4504 tmp_nm=$ac_dir/$lt_tmp_nm
4505 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4506 # Check to see if the nm accepts a BSD-compat flag.
4507 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4508 # nm: unknown option "B" ignored
4509 # Tru64's nm complains that /dev/null is an invalid object file
4510 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4511 case $build_os in
4512 mingw*) lt_bad_file=conftest.nm/nofile ;;
4513 *) lt_bad_file=/dev/null ;;
4514 esac
4515 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4516 *$lt_bad_file* | *'Invalid file or object type'*)
4517 lt_cv_path_NM="$tmp_nm -B"
4518 break 2
4519 ;;
4520 *)
4521 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4522 */dev/null*)
4523 lt_cv_path_NM="$tmp_nm -p"
4524 break 2
4525 ;;
4526 *)
4527 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4528 continue # so that we can try to find one that supports BSD flags
4529 ;;
4530 esac
4531 ;;
4532 esac
4533 fi
4534 done
4535 IFS=$lt_save_ifs
4536 done
4537 : ${lt_cv_path_NM=no}
4538 fi
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4541 $as_echo "$lt_cv_path_NM" >&6; }
4542 if test no != "$lt_cv_path_NM"; then
4543 NM=$lt_cv_path_NM
4544 else
4545 # Didn't find any BSD compatible name lister, look for dumpbin.
4546 if test -n "$DUMPBIN"; then :
4547 # Let the user override the test.
4548 else
4549 if test -n "$ac_tool_prefix"; then
4550 for ac_prog in dumpbin "link -dump"
4551 do
4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if ${ac_cv_prog_DUMPBIN+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -n "$DUMPBIN"; then
4560 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 DUMPBIN=$ac_cv_prog_DUMPBIN
4580 if test -n "$DUMPBIN"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4582 $as_echo "$DUMPBIN" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588
4589 test -n "$DUMPBIN" && break
4590 done
4591 fi
4592 if test -z "$DUMPBIN"; then
4593 ac_ct_DUMPBIN=$DUMPBIN
4594 for ac_prog in dumpbin "link -dump"
4595 do
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$ac_ct_DUMPBIN"; then
4604 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4624 if test -n "$ac_ct_DUMPBIN"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4626 $as_echo "$ac_ct_DUMPBIN" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 test -n "$ac_ct_DUMPBIN" && break
4634 done
4635
4636 if test "x$ac_ct_DUMPBIN" = x; then
4637 DUMPBIN=":"
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 DUMPBIN=$ac_ct_DUMPBIN
4646 fi
4647 fi
4648
4649 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4650 *COFF*)
4651 DUMPBIN="$DUMPBIN -symbols -headers"
4652 ;;
4653 *)
4654 DUMPBIN=:
4655 ;;
4656 esac
4657 fi
4658
4659 if test : != "$DUMPBIN"; then
4660 NM=$DUMPBIN
4661 fi
4662 fi
4663 test -z "$NM" && NM=nm
4664
4665
4666
4667
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4671 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4672 if ${lt_cv_nm_interface+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 lt_cv_nm_interface="BSD nm"
4676 echo "int some_variable = 0;" > conftest.$ac_ext
4677 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4678 (eval "$ac_compile" 2>conftest.err)
4679 cat conftest.err >&5
4680 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4681 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4682 cat conftest.err >&5
4683 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4684 cat conftest.out >&5
4685 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4686 lt_cv_nm_interface="MS dumpbin"
4687 fi
4688 rm -f conftest*
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4691 $as_echo "$lt_cv_nm_interface" >&6; }
4692
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4694 $as_echo_n "checking whether ln -s works... " >&6; }
4695 LN_S=$as_ln_s
4696 if test "$LN_S" = "ln -s"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4698 $as_echo "yes" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4701 $as_echo "no, using $LN_S" >&6; }
4702 fi
4703
4704 # find the maximum length of command line arguments
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4706 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4707 if ${lt_cv_sys_max_cmd_len+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 i=0
4711 teststring=ABCD
4712
4713 case $build_os in
4714 msdosdjgpp*)
4715 # On DJGPP, this test can blow up pretty badly due to problems in libc
4716 # (any single argument exceeding 2000 bytes causes a buffer overrun
4717 # during glob expansion). Even if it were fixed, the result of this
4718 # check would be larger than it should be.
4719 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4720 ;;
4721
4722 gnu*)
4723 # Under GNU Hurd, this test is not required because there is
4724 # no limit to the length of command line arguments.
4725 # Libtool will interpret -1 as no limit whatsoever
4726 lt_cv_sys_max_cmd_len=-1;
4727 ;;
4728
4729 cygwin* | mingw* | cegcc*)
4730 # On Win9x/ME, this test blows up -- it succeeds, but takes
4731 # about 5 minutes as the teststring grows exponentially.
4732 # Worse, since 9x/ME are not pre-emptively multitasking,
4733 # you end up with a "frozen" computer, even though with patience
4734 # the test eventually succeeds (with a max line length of 256k).
4735 # Instead, let's just punt: use the minimum linelength reported by
4736 # all of the supported platforms: 8192 (on NT/2K/XP).
4737 lt_cv_sys_max_cmd_len=8192;
4738 ;;
4739
4740 mint*)
4741 # On MiNT this can take a long time and run out of memory.
4742 lt_cv_sys_max_cmd_len=8192;
4743 ;;
4744
4745 amigaos*)
4746 # On AmigaOS with pdksh, this test takes hours, literally.
4747 # So we just punt and use a minimum line length of 8192.
4748 lt_cv_sys_max_cmd_len=8192;
4749 ;;
4750
4751 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4752 # This has been around since 386BSD, at least. Likely further.
4753 if test -x /sbin/sysctl; then
4754 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4755 elif test -x /usr/sbin/sysctl; then
4756 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4757 else
4758 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4759 fi
4760 # And add a safety zone
4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4763 ;;
4764
4765 interix*)
4766 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4767 lt_cv_sys_max_cmd_len=196608
4768 ;;
4769
4770 os2*)
4771 # The test takes a long time on OS/2.
4772 lt_cv_sys_max_cmd_len=8192
4773 ;;
4774
4775 osf*)
4776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4778 # nice to cause kernel panics so lets avoid the loop below.
4779 # First set a reasonable default.
4780 lt_cv_sys_max_cmd_len=16384
4781 #
4782 if test -x /sbin/sysconfig; then
4783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4785 esac
4786 fi
4787 ;;
4788 sco3.2v5*)
4789 lt_cv_sys_max_cmd_len=102400
4790 ;;
4791 sysv5* | sco5v6* | sysv4.2uw2*)
4792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4793 if test -n "$kargmax"; then
4794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4795 else
4796 lt_cv_sys_max_cmd_len=32768
4797 fi
4798 ;;
4799 *)
4800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4801 if test -n "$lt_cv_sys_max_cmd_len" && \
4802 test undefined != "$lt_cv_sys_max_cmd_len"; then
4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4805 else
4806 # Make teststring a little bigger before we do anything with it.
4807 # a 1K string should be a reasonable start.
4808 for i in 1 2 3 4 5 6 7 8; do
4809 teststring=$teststring$teststring
4810 done
4811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4812 # If test is not a shell built-in, we'll probably end up computing a
4813 # maximum length that is only half of the actual maximum length, but
4814 # we can't tell.
4815 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4816 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4817 test 17 != "$i" # 1/2 MB should be enough
4818 do
4819 i=`expr $i + 1`
4820 teststring=$teststring$teststring
4821 done
4822 # Only check the string length outside the loop.
4823 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4824 teststring=
4825 # Add a significant safety factor because C++ compilers can tack on
4826 # massive amounts of additional arguments before passing them to the
4827 # linker. It appears as though 1/2 is a usable value.
4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4829 fi
4830 ;;
4831 esac
4832
4833 fi
4834
4835 if test -n "$lt_cv_sys_max_cmd_len"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4837 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4840 $as_echo "none" >&6; }
4841 fi
4842 max_cmd_len=$lt_cv_sys_max_cmd_len
4843
4844
4845
4846
4847
4848
4849 : ${CP="cp -f"}
4850 : ${MV="mv -f"}
4851 : ${RM="rm -f"}
4852
4853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4854 lt_unset=unset
4855 else
4856 lt_unset=false
4857 fi
4858
4859
4860
4861
4862
4863 # test EBCDIC or ASCII
4864 case `echo X|tr X '\101'` in
4865 A) # ASCII based system
4866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4867 lt_SP2NL='tr \040 \012'
4868 lt_NL2SP='tr \015\012 \040\040'
4869 ;;
4870 *) # EBCDIC based system
4871 lt_SP2NL='tr \100 \n'
4872 lt_NL2SP='tr \r\n \100\100'
4873 ;;
4874 esac
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4885 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4886 if ${lt_cv_to_host_file_cmd+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 case $host in
4890 *-*-mingw* )
4891 case $build in
4892 *-*-mingw* ) # actually msys
4893 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4894 ;;
4895 *-*-cygwin* )
4896 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4897 ;;
4898 * ) # otherwise, assume *nix
4899 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4900 ;;
4901 esac
4902 ;;
4903 *-*-cygwin* )
4904 case $build in
4905 *-*-mingw* ) # actually msys
4906 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4907 ;;
4908 *-*-cygwin* )
4909 lt_cv_to_host_file_cmd=func_convert_file_noop
4910 ;;
4911 * ) # otherwise, assume *nix
4912 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4913 ;;
4914 esac
4915 ;;
4916 * ) # unhandled hosts (and "normal" native builds)
4917 lt_cv_to_host_file_cmd=func_convert_file_noop
4918 ;;
4919 esac
4920
4921 fi
4922
4923 to_host_file_cmd=$lt_cv_to_host_file_cmd
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4925 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4926
4927
4928
4929
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4932 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4933 if ${lt_cv_to_tool_file_cmd+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 #assume ordinary cross tools, or native build.
4937 lt_cv_to_tool_file_cmd=func_convert_file_noop
4938 case $host in
4939 *-*-mingw* )
4940 case $build in
4941 *-*-mingw* ) # actually msys
4942 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4943 ;;
4944 esac
4945 ;;
4946 esac
4947
4948 fi
4949
4950 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4952 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4953
4954
4955
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4959 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4960 if ${lt_cv_ld_reload_flag+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 lt_cv_ld_reload_flag='-r'
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4966 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4967 reload_flag=$lt_cv_ld_reload_flag
4968 case $reload_flag in
4969 "" | " "*) ;;
4970 *) reload_flag=" $reload_flag" ;;
4971 esac
4972 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4973 case $host_os in
4974 cygwin* | mingw* | pw32* | cegcc*)
4975 if test yes != "$GCC"; then
4976 reload_cmds=false
4977 fi
4978 ;;
4979 darwin*)
4980 if test yes = "$GCC"; then
4981 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4982 else
4983 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4984 fi
4985 ;;
4986 esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_OBJDUMP+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$OBJDUMP"; then
5005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 OBJDUMP=$ac_cv_prog_OBJDUMP
5025 if test -n "$OBJDUMP"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5027 $as_echo "$OBJDUMP" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032
5033
5034 fi
5035 if test -z "$ac_cv_prog_OBJDUMP"; then
5036 ac_ct_OBJDUMP=$OBJDUMP
5037 # Extract the first word of "objdump", so it can be a program name with args.
5038 set dummy objdump; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$ac_ct_OBJDUMP"; then
5045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5057 fi
5058 done
5059 done
5060 IFS=$as_save_IFS
5061
5062 fi
5063 fi
5064 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5065 if test -n "$ac_ct_OBJDUMP"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5067 $as_echo "$ac_ct_OBJDUMP" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073 if test "x$ac_ct_OBJDUMP" = x; then
5074 OBJDUMP="false"
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5080 ac_tool_warned=yes ;;
5081 esac
5082 OBJDUMP=$ac_ct_OBJDUMP
5083 fi
5084 else
5085 OBJDUMP="$ac_cv_prog_OBJDUMP"
5086 fi
5087
5088 test -z "$OBJDUMP" && OBJDUMP=objdump
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5099 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5100 if ${lt_cv_deplibs_check_method+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 lt_cv_file_magic_cmd='$MAGIC_CMD'
5104 lt_cv_file_magic_test_file=
5105 lt_cv_deplibs_check_method='unknown'
5106 # Need to set the preceding variable on all platforms that support
5107 # interlibrary dependencies.
5108 # 'none' -- dependencies not supported.
5109 # 'unknown' -- same as none, but documents that we really don't know.
5110 # 'pass_all' -- all dependencies passed with no checks.
5111 # 'test_compile' -- check by making test program.
5112 # 'file_magic [[regex]]' -- check by looking for files in library path
5113 # that responds to the $file_magic_cmd with a given extended regex.
5114 # If you have 'file' or equivalent on your system and you're not sure
5115 # whether 'pass_all' will *always* work, you probably want this one.
5116
5117 case $host_os in
5118 aix[4-9]*)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121
5122 beos*)
5123 lt_cv_deplibs_check_method=pass_all
5124 ;;
5125
5126 bsdi[45]*)
5127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5128 lt_cv_file_magic_cmd='/usr/bin/file -L'
5129 lt_cv_file_magic_test_file=/shlib/libc.so
5130 ;;
5131
5132 cygwin*)
5133 # func_win32_libid is a shell function defined in ltmain.sh
5134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5135 lt_cv_file_magic_cmd='func_win32_libid'
5136 ;;
5137
5138 mingw* | pw32*)
5139 # Base MSYS/MinGW do not provide the 'file' command needed by
5140 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5141 # unless we find 'file', for example because we are cross-compiling.
5142 if ( file / ) >/dev/null 2>&1; then
5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5144 lt_cv_file_magic_cmd='func_win32_libid'
5145 else
5146 # Keep this pattern in sync with the one in func_win32_libid.
5147 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5148 lt_cv_file_magic_cmd='$OBJDUMP -f'
5149 fi
5150 ;;
5151
5152 cegcc*)
5153 # use the weaker test based on 'objdump'. See mingw*.
5154 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5155 lt_cv_file_magic_cmd='$OBJDUMP -f'
5156 ;;
5157
5158 darwin* | rhapsody*)
5159 lt_cv_deplibs_check_method=pass_all
5160 ;;
5161
5162 freebsd* | dragonfly*)
5163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5164 case $host_cpu in
5165 i*86 )
5166 # Not sure whether the presence of OpenBSD here was a mistake.
5167 # Let's accept both of them until this is cleared up.
5168 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5169 lt_cv_file_magic_cmd=/usr/bin/file
5170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5171 ;;
5172 esac
5173 else
5174 lt_cv_deplibs_check_method=pass_all
5175 fi
5176 ;;
5177
5178 haiku*)
5179 lt_cv_deplibs_check_method=pass_all
5180 ;;
5181
5182 hpux10.20* | hpux11*)
5183 lt_cv_file_magic_cmd=/usr/bin/file
5184 case $host_cpu in
5185 ia64*)
5186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5187 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5188 ;;
5189 hppa*64*)
5190 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]'
5191 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5192 ;;
5193 *)
5194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5195 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5196 ;;
5197 esac
5198 ;;
5199
5200 interix[3-9]*)
5201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5203 ;;
5204
5205 irix5* | irix6* | nonstopux*)
5206 case $LD in
5207 *-32|*"-32 ") libmagic=32-bit;;
5208 *-n32|*"-n32 ") libmagic=N32;;
5209 *-64|*"-64 ") libmagic=64-bit;;
5210 *) libmagic=never-match;;
5211 esac
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 # This must be glibc/ELF.
5216 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219
5220 netbsd*)
5221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5223 else
5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5225 fi
5226 ;;
5227
5228 newos6*)
5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5230 lt_cv_file_magic_cmd=/usr/bin/file
5231 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5232 ;;
5233
5234 *nto* | *qnx*)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237
5238 openbsd* | bitrig*)
5239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5241 else
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5243 fi
5244 ;;
5245
5246 osf3* | osf4* | osf5*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 rdos*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 solaris*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 sysv4 | sysv4.3*)
5263 case $host_vendor in
5264 motorola)
5265 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]'
5266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5267 ;;
5268 ncr)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271 sequent)
5272 lt_cv_file_magic_cmd='/bin/file'
5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5274 ;;
5275 sni)
5276 lt_cv_file_magic_cmd='/bin/file'
5277 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5278 lt_cv_file_magic_test_file=/lib/libc.so
5279 ;;
5280 siemens)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283 pc)
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
5286 esac
5287 ;;
5288
5289 tpf*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292 os2*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295 esac
5296
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5299 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5300
5301 file_magic_glob=
5302 want_nocaseglob=no
5303 if test "$build" = "$host"; then
5304 case $host_os in
5305 mingw* | pw32*)
5306 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5307 want_nocaseglob=yes
5308 else
5309 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5310 fi
5311 ;;
5312 esac
5313 fi
5314
5315 file_magic_cmd=$lt_cv_file_magic_cmd
5316 deplibs_check_method=$lt_cv_deplibs_check_method
5317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if ${ac_cv_prog_DLLTOOL+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -n "$DLLTOOL"; then
5349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362 done
5363 done
5364 IFS=$as_save_IFS
5365
5366 fi
5367 fi
5368 DLLTOOL=$ac_cv_prog_DLLTOOL
5369 if test -n "$DLLTOOL"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5371 $as_echo "$DLLTOOL" >&6; }
5372 else
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 fi
5376
5377
5378 fi
5379 if test -z "$ac_cv_prog_DLLTOOL"; then
5380 ac_ct_DLLTOOL=$DLLTOOL
5381 # Extract the first word of "dlltool", so it can be a program name with args.
5382 set dummy dlltool; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$ac_ct_DLLTOOL"; then
5389 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5409 if test -n "$ac_ct_DLLTOOL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5411 $as_echo "$ac_ct_DLLTOOL" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417 if test "x$ac_ct_DLLTOOL" = x; then
5418 DLLTOOL="false"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 DLLTOOL=$ac_ct_DLLTOOL
5427 fi
5428 else
5429 DLLTOOL="$ac_cv_prog_DLLTOOL"
5430 fi
5431
5432 test -z "$DLLTOOL" && DLLTOOL=dlltool
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5444 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5445 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 lt_cv_sharedlib_from_linklib_cmd='unknown'
5449
5450 case $host_os in
5451 cygwin* | mingw* | pw32* | cegcc*)
5452 # two different shell functions defined in ltmain.sh;
5453 # decide which one to use based on capabilities of $DLLTOOL
5454 case `$DLLTOOL --help 2>&1` in
5455 *--identify-strict*)
5456 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5457 ;;
5458 *)
5459 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5460 ;;
5461 esac
5462 ;;
5463 *)
5464 # fallback: assume linklib IS sharedlib
5465 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5466 ;;
5467 esac
5468
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5471 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5472 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5473 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5474
5475
5476
5477
5478
5479
5480
5481
5482 if test -n "$ac_tool_prefix"; then
5483 for ac_prog in ar
5484 do
5485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_AR+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$AR"; then
5493 ac_cv_prog_AR="$AR" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 AR=$ac_cv_prog_AR
5513 if test -n "$AR"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5515 $as_echo "$AR" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522 test -n "$AR" && break
5523 done
5524 fi
5525 if test -z "$AR"; then
5526 ac_ct_AR=$AR
5527 for ac_prog in ar
5528 do
5529 # Extract the first word of "$ac_prog", so it can be a program name with args.
5530 set dummy $ac_prog; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$ac_ct_AR"; then
5537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_ac_ct_AR="$ac_prog"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550 done
5551 done
5552 IFS=$as_save_IFS
5553
5554 fi
5555 fi
5556 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5557 if test -n "$ac_ct_AR"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5559 $as_echo "$ac_ct_AR" >&6; }
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565
5566 test -n "$ac_ct_AR" && break
5567 done
5568
5569 if test "x$ac_ct_AR" = x; then
5570 AR="false"
5571 else
5572 case $cross_compiling:$ac_tool_warned in
5573 yes:)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578 AR=$ac_ct_AR
5579 fi
5580 fi
5581
5582 : ${AR=ar}
5583 : ${AR_FLAGS=cru}
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5596 $as_echo_n "checking for archiver @FILE support... " >&6; }
5597 if ${lt_cv_ar_at_file+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 lt_cv_ar_at_file=no
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603
5604 int
5605 main ()
5606 {
5607
5608 ;
5609 return 0;
5610 }
5611 _ACEOF
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 echo conftest.$ac_objext > conftest.lst
5614 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5616 (eval $lt_ar_try) 2>&5
5617 ac_status=$?
5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619 test $ac_status = 0; }
5620 if test 0 -eq "$ac_status"; then
5621 # Ensure the archiver fails upon bogus file names.
5622 rm -f conftest.$ac_objext libconftest.a
5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5624 (eval $lt_ar_try) 2>&5
5625 ac_status=$?
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; }
5628 if test 0 -ne "$ac_status"; then
5629 lt_cv_ar_at_file=@
5630 fi
5631 fi
5632 rm -f conftest.* libconftest.a
5633
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5639 $as_echo "$lt_cv_ar_at_file" >&6; }
5640
5641 if test no = "$lt_cv_ar_at_file"; then
5642 archiver_list_spec=
5643 else
5644 archiver_list_spec=$lt_cv_ar_at_file
5645 fi
5646
5647
5648
5649
5650
5651
5652
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}strip; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_STRIP+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -n "$STRIP"; then
5662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 STRIP=$ac_cv_prog_STRIP
5682 if test -n "$STRIP"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5684 $as_echo "$STRIP" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691 fi
5692 if test -z "$ac_cv_prog_STRIP"; then
5693 ac_ct_STRIP=$STRIP
5694 # Extract the first word of "strip", so it can be a program name with args.
5695 set dummy strip; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$ac_ct_STRIP"; then
5702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_ac_ct_STRIP="strip"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5722 if test -n "$ac_ct_STRIP"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5724 $as_echo "$ac_ct_STRIP" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730 if test "x$ac_ct_STRIP" = x; then
5731 STRIP=":"
5732 else
5733 case $cross_compiling:$ac_tool_warned in
5734 yes:)
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5737 ac_tool_warned=yes ;;
5738 esac
5739 STRIP=$ac_ct_STRIP
5740 fi
5741 else
5742 STRIP="$ac_cv_prog_STRIP"
5743 fi
5744
5745 test -z "$STRIP" && STRIP=:
5746
5747
5748
5749
5750
5751
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_RANLIB+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$RANLIB"; then
5761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 RANLIB=$ac_cv_prog_RANLIB
5781 if test -n "$RANLIB"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5783 $as_echo "$RANLIB" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_RANLIB"; then
5792 ac_ct_RANLIB=$RANLIB
5793 # Extract the first word of "ranlib", so it can be a program name with args.
5794 set dummy ranlib; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$ac_ct_RANLIB"; then
5801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_ac_ct_RANLIB="ranlib"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5821 if test -n "$ac_ct_RANLIB"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5823 $as_echo "$ac_ct_RANLIB" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829 if test "x$ac_ct_RANLIB" = x; then
5830 RANLIB=":"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838 RANLIB=$ac_ct_RANLIB
5839 fi
5840 else
5841 RANLIB="$ac_cv_prog_RANLIB"
5842 fi
5843
5844 test -z "$RANLIB" && RANLIB=:
5845
5846
5847
5848
5849
5850
5851 # Determine commands to create old-style static archives.
5852 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5853 old_postinstall_cmds='chmod 644 $oldlib'
5854 old_postuninstall_cmds=
5855
5856 if test -n "$RANLIB"; then
5857 case $host_os in
5858 bitrig* | openbsd*)
5859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5860 ;;
5861 *)
5862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5863 ;;
5864 esac
5865 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5866 fi
5867
5868 case $host_os in
5869 darwin*)
5870 lock_old_archive_extraction=yes ;;
5871 *)
5872 lock_old_archive_extraction=no ;;
5873 esac
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 # If no C compiler was specified, use CC.
5914 LTCC=${LTCC-"$CC"}
5915
5916 # If no C compiler flags were specified, use CFLAGS.
5917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5918
5919 # Allow CC to be a program name with arguments.
5920 compiler=$CC
5921
5922
5923 # Check for command to grab the raw symbol name followed by C symbol from nm.
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5925 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5926 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929
5930 # These are sane defaults that work on at least a few old systems.
5931 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5932
5933 # Character class describing NM global symbol codes.
5934 symcode='[BCDEGRST]'
5935
5936 # Regexp to match symbols that can be accessed directly from C.
5937 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5938
5939 # Define system-specific variables.
5940 case $host_os in
5941 aix*)
5942 symcode='[BCDT]'
5943 ;;
5944 cygwin* | mingw* | pw32* | cegcc*)
5945 symcode='[ABCDGISTW]'
5946 ;;
5947 hpux*)
5948 if test ia64 = "$host_cpu"; then
5949 symcode='[ABCDEGRST]'
5950 fi
5951 ;;
5952 irix* | nonstopux*)
5953 symcode='[BCDEGRST]'
5954 ;;
5955 osf*)
5956 symcode='[BCDEGQRST]'
5957 ;;
5958 solaris*)
5959 symcode='[BDRT]'
5960 ;;
5961 sco3.2v5*)
5962 symcode='[DT]'
5963 ;;
5964 sysv4.2uw2*)
5965 symcode='[DT]'
5966 ;;
5967 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5968 symcode='[ABDT]'
5969 ;;
5970 sysv4)
5971 symcode='[DFNSTU]'
5972 ;;
5973 esac
5974
5975 # If we're using GNU nm, then use its standard symbol codes.
5976 case `$NM -V 2>&1` in
5977 *GNU* | *'with BFD'*)
5978 symcode='[ABCDGIRSTW]' ;;
5979 esac
5980
5981 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5982 # Gets list of data symbols to import.
5983 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5984 # Adjust the below global symbol transforms to fixup imported variables.
5985 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5986 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5987 lt_c_name_lib_hook="\
5988 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5989 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5990 else
5991 # Disable hooks by default.
5992 lt_cv_sys_global_symbol_to_import=
5993 lt_cdecl_hook=
5994 lt_c_name_hook=
5995 lt_c_name_lib_hook=
5996 fi
5997
5998 # Transform an extracted symbol line into a proper C declaration.
5999 # Some systems (esp. on ia64) link data and code symbols differently,
6000 # so use this general approach.
6001 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6002 $lt_cdecl_hook\
6003 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6004 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6005
6006 # Transform an extracted symbol line into symbol name and symbol address
6007 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6008 $lt_c_name_hook\
6009 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6010 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6011
6012 # Transform an extracted symbol line into symbol name with lib prefix and
6013 # symbol address.
6014 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6015 $lt_c_name_lib_hook\
6016 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6017 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6018 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6019
6020 # Handle CRLF in mingw tool chain
6021 opt_cr=
6022 case $build_os in
6023 mingw*)
6024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6025 ;;
6026 esac
6027
6028 # Try without a prefix underscore, then with it.
6029 for ac_symprfx in "" "_"; do
6030
6031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6032 symxfrm="\\1 $ac_symprfx\\2 \\2"
6033
6034 # Write the raw and C identifiers.
6035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6036 # Fake it for dumpbin and say T for any non-static function,
6037 # D for any global variable and I for any imported variable.
6038 # Also find C++ and __fastcall symbols from MSVC++,
6039 # which start with @ or ?.
6040 lt_cv_sys_global_symbol_pipe="$AWK '"\
6041 " {last_section=section; section=\$ 3};"\
6042 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6043 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6044 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6045 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6046 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6047 " \$ 0!~/External *\|/{next};"\
6048 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6049 " {if(hide[section]) next};"\
6050 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6051 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6052 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6053 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6054 " ' prfx=^$ac_symprfx"
6055 else
6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6057 fi
6058 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6059
6060 # Check to see that the pipe works correctly.
6061 pipe_works=no
6062
6063 rm -f conftest*
6064 cat > conftest.$ac_ext <<_LT_EOF
6065 #ifdef __cplusplus
6066 extern "C" {
6067 #endif
6068 char nm_test_var;
6069 void nm_test_func(void);
6070 void nm_test_func(void){}
6071 #ifdef __cplusplus
6072 }
6073 #endif
6074 int main(){nm_test_var='a';nm_test_func();return(0);}
6075 _LT_EOF
6076
6077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6078 (eval $ac_compile) 2>&5
6079 ac_status=$?
6080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6081 test $ac_status = 0; }; then
6082 # Now try to grab the symbols.
6083 nlist=conftest.nm
6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6085 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6086 ac_status=$?
6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088 test $ac_status = 0; } && test -s "$nlist"; then
6089 # Try sorting and uniquifying the output.
6090 if sort "$nlist" | uniq > "$nlist"T; then
6091 mv -f "$nlist"T "$nlist"
6092 else
6093 rm -f "$nlist"T
6094 fi
6095
6096 # Make sure that we snagged all the symbols we need.
6097 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6098 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6099 cat <<_LT_EOF > conftest.$ac_ext
6100 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6101 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6102 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6103 relocations are performed -- see ld's documentation on pseudo-relocs. */
6104 # define LT_DLSYM_CONST
6105 #elif defined __osf__
6106 /* This system does not cope well with relocations in const data. */
6107 # define LT_DLSYM_CONST
6108 #else
6109 # define LT_DLSYM_CONST const
6110 #endif
6111
6112 #ifdef __cplusplus
6113 extern "C" {
6114 #endif
6115
6116 _LT_EOF
6117 # Now generate the symbol file.
6118 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6119
6120 cat <<_LT_EOF >> conftest.$ac_ext
6121
6122 /* The mapping between symbol names and symbols. */
6123 LT_DLSYM_CONST struct {
6124 const char *name;
6125 void *address;
6126 }
6127 lt__PROGRAM__LTX_preloaded_symbols[] =
6128 {
6129 { "@PROGRAM@", (void *) 0 },
6130 _LT_EOF
6131 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6132 cat <<\_LT_EOF >> conftest.$ac_ext
6133 {0, (void *) 0}
6134 };
6135
6136 /* This works around a problem in FreeBSD linker */
6137 #ifdef FREEBSD_WORKAROUND
6138 static const void *lt_preloaded_setup() {
6139 return lt__PROGRAM__LTX_preloaded_symbols;
6140 }
6141 #endif
6142
6143 #ifdef __cplusplus
6144 }
6145 #endif
6146 _LT_EOF
6147 # Now try linking the two files.
6148 mv conftest.$ac_objext conftstm.$ac_objext
6149 lt_globsym_save_LIBS=$LIBS
6150 lt_globsym_save_CFLAGS=$CFLAGS
6151 LIBS=conftstm.$ac_objext
6152 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6154 (eval $ac_link) 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6158 pipe_works=yes
6159 fi
6160 LIBS=$lt_globsym_save_LIBS
6161 CFLAGS=$lt_globsym_save_CFLAGS
6162 else
6163 echo "cannot find nm_test_func in $nlist" >&5
6164 fi
6165 else
6166 echo "cannot find nm_test_var in $nlist" >&5
6167 fi
6168 else
6169 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6170 fi
6171 else
6172 echo "$progname: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6174 fi
6175 rm -rf conftest* conftst*
6176
6177 # Do not use the global_symbol_pipe unless it works.
6178 if test yes = "$pipe_works"; then
6179 break
6180 else
6181 lt_cv_sys_global_symbol_pipe=
6182 fi
6183 done
6184
6185 fi
6186
6187 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6188 lt_cv_sys_global_symbol_to_cdecl=
6189 fi
6190 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6192 $as_echo "failed" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6195 $as_echo "ok" >&6; }
6196 fi
6197
6198 # Response file support.
6199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6200 nm_file_list_spec='@'
6201 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6202 nm_file_list_spec='@'
6203 fi
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6242 $as_echo_n "checking for sysroot... " >&6; }
6243
6244 # Check whether --with-sysroot was given.
6245 if test "${with_sysroot+set}" = set; then :
6246 withval=$with_sysroot;
6247 else
6248 with_sysroot=no
6249 fi
6250
6251
6252 lt_sysroot=
6253 case $with_sysroot in #(
6254 yes)
6255 if test yes = "$GCC"; then
6256 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6257 fi
6258 ;; #(
6259 /*)
6260 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6261 ;; #(
6262 no|'')
6263 ;; #(
6264 *)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6266 $as_echo "$with_sysroot" >&6; }
6267 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6268 ;;
6269 esac
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6272 $as_echo "${lt_sysroot:-no}" >&6; }
6273
6274
6275
6276
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6279 $as_echo_n "checking for a working dd... " >&6; }
6280 if ${ac_cv_path_lt_DD+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 printf 0123456789abcdef0123456789abcdef >conftest.i
6284 cat conftest.i conftest.i >conftest2.i
6285 : ${lt_DD:=$DD}
6286 if test -z "$lt_DD"; then
6287 ac_path_lt_DD_found=false
6288 # Loop through the user's path and test for each of PROGNAME-LIST
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_prog in dd; do
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6297 as_fn_executable_p "$ac_path_lt_DD" || continue
6298 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6299 cmp -s conftest.i conftest.out \
6300 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6301 fi
6302 $ac_path_lt_DD_found && break 3
6303 done
6304 done
6305 done
6306 IFS=$as_save_IFS
6307 if test -z "$ac_cv_path_lt_DD"; then
6308 :
6309 fi
6310 else
6311 ac_cv_path_lt_DD=$lt_DD
6312 fi
6313
6314 rm -f conftest.i conftest2.i conftest.out
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6317 $as_echo "$ac_cv_path_lt_DD" >&6; }
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6321 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6322 if ${lt_cv_truncate_bin+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 printf 0123456789abcdef0123456789abcdef >conftest.i
6326 cat conftest.i conftest.i >conftest2.i
6327 lt_cv_truncate_bin=
6328 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6329 cmp -s conftest.i conftest.out \
6330 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6331 fi
6332 rm -f conftest.i conftest2.i conftest.out
6333 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6336 $as_echo "$lt_cv_truncate_bin" >&6; }
6337
6338
6339
6340
6341
6342
6343
6344 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6345 func_cc_basename ()
6346 {
6347 for cc_temp in $*""; do
6348 case $cc_temp in
6349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6351 \-*) ;;
6352 *) break;;
6353 esac
6354 done
6355 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6356 }
6357
6358 # Check whether --enable-libtool-lock was given.
6359 if test "${enable_libtool_lock+set}" = set; then :
6360 enableval=$enable_libtool_lock;
6361 fi
6362
6363 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6364
6365 # Some flags need to be propagated to the compiler or linker for good
6366 # libtool support.
6367 case $host in
6368 ia64-*-hpux*)
6369 # Find out what ABI is being produced by ac_compile, and set mode
6370 # options accordingly.
6371 echo 'int i;' > conftest.$ac_ext
6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6373 (eval $ac_compile) 2>&5
6374 ac_status=$?
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }; then
6377 case `/usr/bin/file conftest.$ac_objext` in
6378 *ELF-32*)
6379 HPUX_IA64_MODE=32
6380 ;;
6381 *ELF-64*)
6382 HPUX_IA64_MODE=64
6383 ;;
6384 esac
6385 fi
6386 rm -rf conftest*
6387 ;;
6388 *-*-irix6*)
6389 # Find out what ABI is being produced by ac_compile, and set linker
6390 # options accordingly.
6391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; then
6397 if test yes = "$lt_cv_prog_gnu_ld"; then
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *32-bit*)
6400 LD="${LD-ld} -melf32bsmip"
6401 ;;
6402 *N32*)
6403 LD="${LD-ld} -melf32bmipn32"
6404 ;;
6405 *64-bit*)
6406 LD="${LD-ld} -melf64bmip"
6407 ;;
6408 esac
6409 else
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *32-bit*)
6412 LD="${LD-ld} -32"
6413 ;;
6414 *N32*)
6415 LD="${LD-ld} -n32"
6416 ;;
6417 *64-bit*)
6418 LD="${LD-ld} -64"
6419 ;;
6420 esac
6421 fi
6422 fi
6423 rm -rf conftest*
6424 ;;
6425
6426 mips64*-*linux*)
6427 # Find out what ABI is being produced by ac_compile, and set linker
6428 # options accordingly.
6429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; then
6435 emul=elf
6436 case `/usr/bin/file conftest.$ac_objext` in
6437 *32-bit*)
6438 emul="${emul}32"
6439 ;;
6440 *64-bit*)
6441 emul="${emul}64"
6442 ;;
6443 esac
6444 case `/usr/bin/file conftest.$ac_objext` in
6445 *MSB*)
6446 emul="${emul}btsmip"
6447 ;;
6448 *LSB*)
6449 emul="${emul}ltsmip"
6450 ;;
6451 esac
6452 case `/usr/bin/file conftest.$ac_objext` in
6453 *N32*)
6454 emul="${emul}n32"
6455 ;;
6456 esac
6457 LD="${LD-ld} -m $emul"
6458 fi
6459 rm -rf conftest*
6460 ;;
6461
6462 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6463 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6464 # Find out what ABI is being produced by ac_compile, and set linker
6465 # options accordingly. Note that the listed cases only cover the
6466 # situations where additional linker options are needed (such as when
6467 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6468 # vice versa); the common cases where no linker options are needed do
6469 # not appear in the list.
6470 echo 'int i;' > conftest.$ac_ext
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
6476 case `/usr/bin/file conftest.o` in
6477 *32-bit*)
6478 case $host in
6479 x86_64-*kfreebsd*-gnu)
6480 LD="${LD-ld} -m elf_i386_fbsd"
6481 ;;
6482 x86_64-*linux*)
6483 case `/usr/bin/file conftest.o` in
6484 *x86-64*)
6485 LD="${LD-ld} -m elf32_x86_64"
6486 ;;
6487 *)
6488 LD="${LD-ld} -m elf_i386"
6489 ;;
6490 esac
6491 ;;
6492 powerpc64le-*linux*)
6493 LD="${LD-ld} -m elf32lppclinux"
6494 ;;
6495 powerpc64-*linux*)
6496 LD="${LD-ld} -m elf32ppclinux"
6497 ;;
6498 s390x-*linux*)
6499 LD="${LD-ld} -m elf_s390"
6500 ;;
6501 sparc64-*linux*)
6502 LD="${LD-ld} -m elf32_sparc"
6503 ;;
6504 esac
6505 ;;
6506 *64-bit*)
6507 case $host in
6508 x86_64-*kfreebsd*-gnu)
6509 LD="${LD-ld} -m elf_x86_64_fbsd"
6510 ;;
6511 x86_64-*linux*)
6512 LD="${LD-ld} -m elf_x86_64"
6513 ;;
6514 powerpcle-*linux*)
6515 LD="${LD-ld} -m elf64lppc"
6516 ;;
6517 powerpc-*linux*)
6518 LD="${LD-ld} -m elf64ppc"
6519 ;;
6520 s390*-*linux*|s390*-*tpf*)
6521 LD="${LD-ld} -m elf64_s390"
6522 ;;
6523 sparc*-*linux*)
6524 LD="${LD-ld} -m elf64_sparc"
6525 ;;
6526 esac
6527 ;;
6528 esac
6529 fi
6530 rm -rf conftest*
6531 ;;
6532
6533 *-*-sco3.2v5*)
6534 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6535 SAVE_CFLAGS=$CFLAGS
6536 CFLAGS="$CFLAGS -belf"
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6538 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6539 if ${lt_cv_cc_needs_belf+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 ac_ext=c
6543 ac_cpp='$CPP $CPPFLAGS'
6544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6547
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550
6551 int
6552 main ()
6553 {
6554
6555 ;
6556 return 0;
6557 }
6558 _ACEOF
6559 if ac_fn_c_try_link "$LINENO"; then :
6560 lt_cv_cc_needs_belf=yes
6561 else
6562 lt_cv_cc_needs_belf=no
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext conftest.$ac_ext
6566 ac_ext=c
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6574 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6575 if test yes != "$lt_cv_cc_needs_belf"; then
6576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6577 CFLAGS=$SAVE_CFLAGS
6578 fi
6579 ;;
6580 *-*solaris*)
6581 # Find out what ABI is being produced by ac_compile, and set linker
6582 # options accordingly.
6583 echo 'int i;' > conftest.$ac_ext
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 case `/usr/bin/file conftest.o` in
6590 *64-bit*)
6591 case $lt_cv_prog_gnu_ld in
6592 yes*)
6593 case $host in
6594 i?86-*-solaris*|x86_64-*-solaris*)
6595 LD="${LD-ld} -m elf_x86_64"
6596 ;;
6597 sparc*-*-solaris*)
6598 LD="${LD-ld} -m elf64_sparc"
6599 ;;
6600 esac
6601 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6602 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6603 LD=${LD-ld}_sol2
6604 fi
6605 ;;
6606 *)
6607 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6608 LD="${LD-ld} -64"
6609 fi
6610 ;;
6611 esac
6612 ;;
6613 esac
6614 fi
6615 rm -rf conftest*
6616 ;;
6617 esac
6618
6619 need_locks=$enable_libtool_lock
6620
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}mt; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$MANIFEST_TOOL"; then
6630 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6650 if test -n "$MANIFEST_TOOL"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6652 $as_echo "$MANIFEST_TOOL" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6661 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6662 # Extract the first word of "mt", so it can be a program name with args.
6663 set dummy mt; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$ac_ct_MANIFEST_TOOL"; then
6670 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6690 if test -n "$ac_ct_MANIFEST_TOOL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6692 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6699 MANIFEST_TOOL=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6708 fi
6709 else
6710 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6711 fi
6712
6713 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6715 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6716 if ${lt_cv_path_mainfest_tool+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 lt_cv_path_mainfest_tool=no
6720 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6721 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6722 cat conftest.err >&5
6723 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6724 lt_cv_path_mainfest_tool=yes
6725 fi
6726 rm -f conftest*
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6729 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6730 if test yes != "$lt_cv_path_mainfest_tool"; then
6731 MANIFEST_TOOL=:
6732 fi
6733
6734
6735
6736
6737
6738
6739 case $host_os in
6740 rhapsody* | darwin*)
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$DSYMUTIL"; then
6750 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6770 if test -n "$DSYMUTIL"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6772 $as_echo "$DSYMUTIL" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_DSYMUTIL"; then
6781 ac_ct_DSYMUTIL=$DSYMUTIL
6782 # Extract the first word of "dsymutil", so it can be a program name with args.
6783 set dummy dsymutil; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$ac_ct_DSYMUTIL"; then
6790 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6810 if test -n "$ac_ct_DSYMUTIL"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6812 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818 if test "x$ac_ct_DSYMUTIL" = x; then
6819 DSYMUTIL=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 DSYMUTIL=$ac_ct_DSYMUTIL
6828 fi
6829 else
6830 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6831 fi
6832
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_NMEDIT+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$NMEDIT"; then
6842 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 NMEDIT=$ac_cv_prog_NMEDIT
6862 if test -n "$NMEDIT"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6864 $as_echo "$NMEDIT" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_NMEDIT"; then
6873 ac_ct_NMEDIT=$NMEDIT
6874 # Extract the first word of "nmedit", so it can be a program name with args.
6875 set dummy nmedit; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_NMEDIT"; then
6882 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6902 if test -n "$ac_ct_NMEDIT"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6904 $as_echo "$ac_ct_NMEDIT" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910 if test "x$ac_ct_NMEDIT" = x; then
6911 NMEDIT=":"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 NMEDIT=$ac_ct_NMEDIT
6920 fi
6921 else
6922 NMEDIT="$ac_cv_prog_NMEDIT"
6923 fi
6924
6925 if test -n "$ac_tool_prefix"; then
6926 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_LIPO+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 if test -n "$LIPO"; then
6934 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 LIPO=$ac_cv_prog_LIPO
6954 if test -n "$LIPO"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6956 $as_echo "$LIPO" >&6; }
6957 else
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962
6963 fi
6964 if test -z "$ac_cv_prog_LIPO"; then
6965 ac_ct_LIPO=$LIPO
6966 # Extract the first word of "lipo", so it can be a program name with args.
6967 set dummy lipo; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$ac_ct_LIPO"; then
6974 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_ac_ct_LIPO="lipo"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6994 if test -n "$ac_ct_LIPO"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6996 $as_echo "$ac_ct_LIPO" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002 if test "x$ac_ct_LIPO" = x; then
7003 LIPO=":"
7004 else
7005 case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011 LIPO=$ac_ct_LIPO
7012 fi
7013 else
7014 LIPO="$ac_cv_prog_LIPO"
7015 fi
7016
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}otool; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_OTOOL+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$OTOOL"; then
7026 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 OTOOL=$ac_cv_prog_OTOOL
7046 if test -n "$OTOOL"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7048 $as_echo "$OTOOL" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_OTOOL"; then
7057 ac_ct_OTOOL=$OTOOL
7058 # Extract the first word of "otool", so it can be a program name with args.
7059 set dummy otool; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$ac_ct_OTOOL"; then
7066 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_ac_ct_OTOOL="otool"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7086 if test -n "$ac_ct_OTOOL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7088 $as_echo "$ac_ct_OTOOL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094 if test "x$ac_ct_OTOOL" = x; then
7095 OTOOL=":"
7096 else
7097 case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103 OTOOL=$ac_ct_OTOOL
7104 fi
7105 else
7106 OTOOL="$ac_cv_prog_OTOOL"
7107 fi
7108
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_OTOOL64+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$OTOOL64"; then
7118 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 OTOOL64=$ac_cv_prog_OTOOL64
7138 if test -n "$OTOOL64"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7140 $as_echo "$OTOOL64" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_OTOOL64"; then
7149 ac_ct_OTOOL64=$OTOOL64
7150 # Extract the first word of "otool64", so it can be a program name with args.
7151 set dummy otool64; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_OTOOL64"; then
7158 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_ac_ct_OTOOL64="otool64"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7178 if test -n "$ac_ct_OTOOL64"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7180 $as_echo "$ac_ct_OTOOL64" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_OTOOL64" = x; then
7187 OTOOL64=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 OTOOL64=$ac_ct_OTOOL64
7196 fi
7197 else
7198 OTOOL64="$ac_cv_prog_OTOOL64"
7199 fi
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7228 $as_echo_n "checking for -single_module linker flag... " >&6; }
7229 if ${lt_cv_apple_cc_single_mod+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 lt_cv_apple_cc_single_mod=no
7233 if test -z "$LT_MULTI_MODULE"; then
7234 # By default we will add the -single_module flag. You can override
7235 # by either setting the environment variable LT_MULTI_MODULE
7236 # non-empty at configure time, or by adding -multi_module to the
7237 # link flags.
7238 rm -rf libconftest.dylib*
7239 echo "int foo(void){return 1;}" > conftest.c
7240 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7241 -dynamiclib -Wl,-single_module conftest.c" >&5
7242 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7243 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7244 _lt_result=$?
7245 # If there is a non-empty error log, and "single_module"
7246 # appears in it, assume the flag caused a linker warning
7247 if test -s conftest.err && $GREP single_module conftest.err; then
7248 cat conftest.err >&5
7249 # Otherwise, if the output was created with a 0 exit code from
7250 # the compiler, it worked.
7251 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7252 lt_cv_apple_cc_single_mod=yes
7253 else
7254 cat conftest.err >&5
7255 fi
7256 rm -rf libconftest.dylib*
7257 rm -f conftest.*
7258 fi
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7261 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7262
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7264 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7265 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 lt_cv_ld_exported_symbols_list=no
7269 save_LDFLAGS=$LDFLAGS
7270 echo "_main" > conftest.sym
7271 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274
7275 int
7276 main ()
7277 {
7278
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_link "$LINENO"; then :
7284 lt_cv_ld_exported_symbols_list=yes
7285 else
7286 lt_cv_ld_exported_symbols_list=no
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 LDFLAGS=$save_LDFLAGS
7291
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7294 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7297 $as_echo_n "checking for -force_load linker flag... " >&6; }
7298 if ${lt_cv_ld_force_load+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 lt_cv_ld_force_load=no
7302 cat > conftest.c << _LT_EOF
7303 int forced_loaded() { return 2;}
7304 _LT_EOF
7305 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7306 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7307 echo "$AR cru libconftest.a conftest.o" >&5
7308 $AR cru libconftest.a conftest.o 2>&5
7309 echo "$RANLIB libconftest.a" >&5
7310 $RANLIB libconftest.a 2>&5
7311 cat > conftest.c << _LT_EOF
7312 int main() { return 0;}
7313 _LT_EOF
7314 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7315 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7316 _lt_result=$?
7317 if test -s conftest.err && $GREP force_load conftest.err; then
7318 cat conftest.err >&5
7319 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7320 lt_cv_ld_force_load=yes
7321 else
7322 cat conftest.err >&5
7323 fi
7324 rm -f conftest.err libconftest.a conftest conftest.c
7325 rm -rf conftest.dSYM
7326
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7329 $as_echo "$lt_cv_ld_force_load" >&6; }
7330 case $host_os in
7331 rhapsody* | darwin1.[012])
7332 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7333 darwin1.*)
7334 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7335 darwin*) # darwin 5.x on
7336 # if running on 10.5 or later, the deployment target defaults
7337 # to the OS version, if on x86, and 10.4, the deployment
7338 # target defaults to 10.4. Don't you love it?
7339 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7340 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7341 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7342 10.[012][,.]*)
7343 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7344 10.*)
7345 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7346 esac
7347 ;;
7348 esac
7349 if test yes = "$lt_cv_apple_cc_single_mod"; then
7350 _lt_dar_single_mod='$single_module'
7351 fi
7352 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7353 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7354 else
7355 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7356 fi
7357 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7358 _lt_dsymutil='~$DSYMUTIL $lib || :'
7359 else
7360 _lt_dsymutil=
7361 fi
7362 ;;
7363 esac
7364
7365 # func_munge_path_list VARIABLE PATH
7366 # -----------------------------------
7367 # VARIABLE is name of variable containing _space_ separated list of
7368 # directories to be munged by the contents of PATH, which is string
7369 # having a format:
7370 # "DIR[:DIR]:"
7371 # string "DIR[ DIR]" will be prepended to VARIABLE
7372 # ":DIR[:DIR]"
7373 # string "DIR[ DIR]" will be appended to VARIABLE
7374 # "DIRP[:DIRP]::[DIRA:]DIRA"
7375 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7376 # "DIRA[ DIRA]" will be appended to VARIABLE
7377 # "DIR[:DIR]"
7378 # VARIABLE will be replaced by "DIR[ DIR]"
7379 func_munge_path_list ()
7380 {
7381 case x$2 in
7382 x)
7383 ;;
7384 *:)
7385 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7386 ;;
7387 x:*)
7388 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7389 ;;
7390 *::*)
7391 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7392 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7393 ;;
7394 *)
7395 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7396 ;;
7397 esac
7398 }
7399
7400 ac_ext=c
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7407 # On Suns, sometimes $CPP names a directory.
7408 if test -n "$CPP" && test -d "$CPP"; then
7409 CPP=
7410 fi
7411 if test -z "$CPP"; then
7412 if ${ac_cv_prog_CPP+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 # Double quotes because CPP needs to be expanded
7416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7417 do
7418 ac_preproc_ok=false
7419 for ac_c_preproc_warn_flag in '' yes
7420 do
7421 # Use a header file that comes with gcc, so configuring glibc
7422 # with a fresh cross-compiler works.
7423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7424 # <limits.h> exists even on freestanding compilers.
7425 # On the NeXT, cc -E runs the code through the compiler's parser,
7426 # not just through cpp. "Syntax error" is here to catch this case.
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 #ifdef __STDC__
7430 # include <limits.h>
7431 #else
7432 # include <assert.h>
7433 #endif
7434 Syntax error
7435 _ACEOF
7436 if ac_fn_c_try_cpp "$LINENO"; then :
7437
7438 else
7439 # Broken: fails on valid input.
7440 continue
7441 fi
7442 rm -f conftest.err conftest.i conftest.$ac_ext
7443
7444 # OK, works on sane cases. Now check whether nonexistent headers
7445 # can be detected and how.
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 #include <ac_nonexistent.h>
7449 _ACEOF
7450 if ac_fn_c_try_cpp "$LINENO"; then :
7451 # Broken: success on invalid input.
7452 continue
7453 else
7454 # Passes both tests.
7455 ac_preproc_ok=:
7456 break
7457 fi
7458 rm -f conftest.err conftest.i conftest.$ac_ext
7459
7460 done
7461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7462 rm -f conftest.i conftest.err conftest.$ac_ext
7463 if $ac_preproc_ok; then :
7464 break
7465 fi
7466
7467 done
7468 ac_cv_prog_CPP=$CPP
7469
7470 fi
7471 CPP=$ac_cv_prog_CPP
7472 else
7473 ac_cv_prog_CPP=$CPP
7474 fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7476 $as_echo "$CPP" >&6; }
7477 ac_preproc_ok=false
7478 for ac_c_preproc_warn_flag in '' yes
7479 do
7480 # Use a header file that comes with gcc, so configuring glibc
7481 # with a fresh cross-compiler works.
7482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7483 # <limits.h> exists even on freestanding compilers.
7484 # On the NeXT, cc -E runs the code through the compiler's parser,
7485 # not just through cpp. "Syntax error" is here to catch this case.
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #ifdef __STDC__
7489 # include <limits.h>
7490 #else
7491 # include <assert.h>
7492 #endif
7493 Syntax error
7494 _ACEOF
7495 if ac_fn_c_try_cpp "$LINENO"; then :
7496
7497 else
7498 # Broken: fails on valid input.
7499 continue
7500 fi
7501 rm -f conftest.err conftest.i conftest.$ac_ext
7502
7503 # OK, works on sane cases. Now check whether nonexistent headers
7504 # can be detected and how.
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <ac_nonexistent.h>
7508 _ACEOF
7509 if ac_fn_c_try_cpp "$LINENO"; then :
7510 # Broken: success on invalid input.
7511 continue
7512 else
7513 # Passes both tests.
7514 ac_preproc_ok=:
7515 break
7516 fi
7517 rm -f conftest.err conftest.i conftest.$ac_ext
7518
7519 done
7520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7521 rm -f conftest.i conftest.err conftest.$ac_ext
7522 if $ac_preproc_ok; then :
7523
7524 else
7525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7527 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7528 See \`config.log' for more details" "$LINENO" 5; }
7529 fi
7530
7531 ac_ext=c
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7539 $as_echo_n "checking for ANSI C header files... " >&6; }
7540 if ${ac_cv_header_stdc+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #include <stdlib.h>
7546 #include <stdarg.h>
7547 #include <string.h>
7548 #include <float.h>
7549
7550 int
7551 main ()
7552 {
7553
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 ac_cv_header_stdc=yes
7560 else
7561 ac_cv_header_stdc=no
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564
7565 if test $ac_cv_header_stdc = yes; then
7566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <string.h>
7570
7571 _ACEOF
7572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7573 $EGREP "memchr" >/dev/null 2>&1; then :
7574
7575 else
7576 ac_cv_header_stdc=no
7577 fi
7578 rm -f conftest*
7579
7580 fi
7581
7582 if test $ac_cv_header_stdc = yes; then
7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <stdlib.h>
7587
7588 _ACEOF
7589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590 $EGREP "free" >/dev/null 2>&1; then :
7591
7592 else
7593 ac_cv_header_stdc=no
7594 fi
7595 rm -f conftest*
7596
7597 fi
7598
7599 if test $ac_cv_header_stdc = yes; then
7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7601 if test "$cross_compiling" = yes; then :
7602 :
7603 else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <ctype.h>
7607 #include <stdlib.h>
7608 #if ((' ' & 0x0FF) == 0x020)
7609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7611 #else
7612 # define ISLOWER(c) \
7613 (('a' <= (c) && (c) <= 'i') \
7614 || ('j' <= (c) && (c) <= 'r') \
7615 || ('s' <= (c) && (c) <= 'z'))
7616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7617 #endif
7618
7619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7620 int
7621 main ()
7622 {
7623 int i;
7624 for (i = 0; i < 256; i++)
7625 if (XOR (islower (i), ISLOWER (i))
7626 || toupper (i) != TOUPPER (i))
7627 return 2;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_run "$LINENO"; then :
7632
7633 else
7634 ac_cv_header_stdc=no
7635 fi
7636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7637 conftest.$ac_objext conftest.beam conftest.$ac_ext
7638 fi
7639
7640 fi
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7643 $as_echo "$ac_cv_header_stdc" >&6; }
7644 if test $ac_cv_header_stdc = yes; then
7645
7646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7647
7648 fi
7649
7650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7651 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7652 inttypes.h stdint.h unistd.h
7653 do :
7654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7655 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7656 "
7657 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7658 cat >>confdefs.h <<_ACEOF
7659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7660 _ACEOF
7661
7662 fi
7663
7664 done
7665
7666
7667 for ac_header in dlfcn.h
7668 do :
7669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7670 "
7671 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DLFCN_H 1
7674 _ACEOF
7675
7676 fi
7677
7678 done
7679
7680
7681
7682
7683
7684 # Set options
7685
7686
7687
7688 enable_dlopen=no
7689
7690
7691 enable_win32_dll=no
7692
7693
7694 # Check whether --enable-shared was given.
7695 if test "${enable_shared+set}" = set; then :
7696 enableval=$enable_shared; p=${PACKAGE-default}
7697 case $enableval in
7698 yes) enable_shared=yes ;;
7699 no) enable_shared=no ;;
7700 *)
7701 enable_shared=no
7702 # Look at the argument we got. We use all the common list separators.
7703 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7704 for pkg in $enableval; do
7705 IFS=$lt_save_ifs
7706 if test "X$pkg" = "X$p"; then
7707 enable_shared=yes
7708 fi
7709 done
7710 IFS=$lt_save_ifs
7711 ;;
7712 esac
7713 else
7714 enable_shared=yes
7715 fi
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 # Check whether --enable-static was given.
7726 if test "${enable_static+set}" = set; then :
7727 enableval=$enable_static; p=${PACKAGE-default}
7728 case $enableval in
7729 yes) enable_static=yes ;;
7730 no) enable_static=no ;;
7731 *)
7732 enable_static=no
7733 # Look at the argument we got. We use all the common list separators.
7734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7735 for pkg in $enableval; do
7736 IFS=$lt_save_ifs
7737 if test "X$pkg" = "X$p"; then
7738 enable_static=yes
7739 fi
7740 done
7741 IFS=$lt_save_ifs
7742 ;;
7743 esac
7744 else
7745 enable_static=yes
7746 fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 # Check whether --with-pic was given.
7758 if test "${with_pic+set}" = set; then :
7759 withval=$with_pic; lt_p=${PACKAGE-default}
7760 case $withval in
7761 yes|no) pic_mode=$withval ;;
7762 *)
7763 pic_mode=default
7764 # Look at the argument we got. We use all the common list separators.
7765 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7766 for lt_pkg in $withval; do
7767 IFS=$lt_save_ifs
7768 if test "X$lt_pkg" = "X$lt_p"; then
7769 pic_mode=yes
7770 fi
7771 done
7772 IFS=$lt_save_ifs
7773 ;;
7774 esac
7775 else
7776 pic_mode=default
7777 fi
7778
7779
7780
7781
7782
7783
7784
7785
7786 # Check whether --enable-fast-install was given.
7787 if test "${enable_fast_install+set}" = set; then :
7788 enableval=$enable_fast_install; p=${PACKAGE-default}
7789 case $enableval in
7790 yes) enable_fast_install=yes ;;
7791 no) enable_fast_install=no ;;
7792 *)
7793 enable_fast_install=no
7794 # Look at the argument we got. We use all the common list separators.
7795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7796 for pkg in $enableval; do
7797 IFS=$lt_save_ifs
7798 if test "X$pkg" = "X$p"; then
7799 enable_fast_install=yes
7800 fi
7801 done
7802 IFS=$lt_save_ifs
7803 ;;
7804 esac
7805 else
7806 enable_fast_install=yes
7807 fi
7808
7809
7810
7811
7812
7813
7814
7815
7816 shared_archive_member_spec=
7817 case $host,$enable_shared in
7818 power*-*-aix[5-9]*,yes)
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7820 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7821
7822 # Check whether --with-aix-soname was given.
7823 if test "${with_aix_soname+set}" = set; then :
7824 withval=$with_aix_soname; case $withval in
7825 aix|svr4|both)
7826 ;;
7827 *)
7828 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7829 ;;
7830 esac
7831 lt_cv_with_aix_soname=$with_aix_soname
7832 else
7833 if ${lt_cv_with_aix_soname+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 lt_cv_with_aix_soname=aix
7837 fi
7838
7839 with_aix_soname=$lt_cv_with_aix_soname
7840 fi
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7843 $as_echo "$with_aix_soname" >&6; }
7844 if test aix != "$with_aix_soname"; then
7845 # For the AIX way of multilib, we name the shared archive member
7846 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7847 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7848 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7849 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7850 if test 64 = "${OBJECT_MODE-32}"; then
7851 shared_archive_member_spec=shr_64
7852 else
7853 shared_archive_member_spec=shr
7854 fi
7855 fi
7856 ;;
7857 *)
7858 with_aix_soname=aix
7859 ;;
7860 esac
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 # This can be used to rebuild libtool when needed
7872 LIBTOOL_DEPS=$ltmain
7873
7874 # Always use our own libtool.
7875 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 test -z "$LN_S" && LN_S="ln -s"
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 if test -n "${ZSH_VERSION+set}"; then
7922 setopt NO_GLOB_SUBST
7923 fi
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7926 $as_echo_n "checking for objdir... " >&6; }
7927 if ${lt_cv_objdir+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 rm -f .libs 2>/dev/null
7931 mkdir .libs 2>/dev/null
7932 if test -d .libs; then
7933 lt_cv_objdir=.libs
7934 else
7935 # MS-DOS does not allow filenames that begin with a dot.
7936 lt_cv_objdir=_libs
7937 fi
7938 rmdir .libs 2>/dev/null
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7941 $as_echo "$lt_cv_objdir" >&6; }
7942 objdir=$lt_cv_objdir
7943
7944
7945
7946
7947
7948 cat >>confdefs.h <<_ACEOF
7949 #define LT_OBJDIR "$lt_cv_objdir/"
7950 _ACEOF
7951
7952
7953
7954
7955 case $host_os in
7956 aix3*)
7957 # AIX sometimes has problems with the GCC collect2 program. For some
7958 # reason, if we set the COLLECT_NAMES environment variable, the problems
7959 # vanish in a puff of smoke.
7960 if test set != "${COLLECT_NAMES+set}"; then
7961 COLLECT_NAMES=
7962 export COLLECT_NAMES
7963 fi
7964 ;;
7965 esac
7966
7967 # Global variables:
7968 ofile=libtool
7969 can_build_shared=yes
7970
7971 # All known linkers require a '.a' archive for static linking (except MSVC,
7972 # which needs '.lib').
7973 libext=a
7974
7975 with_gnu_ld=$lt_cv_prog_gnu_ld
7976
7977 old_CC=$CC
7978 old_CFLAGS=$CFLAGS
7979
7980 # Set sane defaults for various variables
7981 test -z "$CC" && CC=cc
7982 test -z "$LTCC" && LTCC=$CC
7983 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7984 test -z "$LD" && LD=ld
7985 test -z "$ac_objext" && ac_objext=o
7986
7987 func_cc_basename $compiler
7988 cc_basename=$func_cc_basename_result
7989
7990
7991 # Only perform the check for file, if the check method requires it
7992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7993 case $deplibs_check_method in
7994 file_magic*)
7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7997 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7998 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $MAGIC_CMD in
8002 [\\/*] | ?:[\\/]*)
8003 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8004 ;;
8005 *)
8006 lt_save_MAGIC_CMD=$MAGIC_CMD
8007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8009 for ac_dir in $ac_dummy; do
8010 IFS=$lt_save_ifs
8011 test -z "$ac_dir" && ac_dir=.
8012 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8013 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8014 if test -n "$file_magic_test_file"; then
8015 case $deplibs_check_method in
8016 "file_magic "*)
8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8020 $EGREP "$file_magic_regex" > /dev/null; then
8021 :
8022 else
8023 cat <<_LT_EOF 1>&2
8024
8025 *** Warning: the command libtool uses to detect shared libraries,
8026 *** $file_magic_cmd, produces output that libtool cannot recognize.
8027 *** The result is that libtool may fail to recognize shared libraries
8028 *** as such. This will affect the creation of libtool libraries that
8029 *** depend on shared libraries, but programs linked with such libtool
8030 *** libraries will work regardless of this problem. Nevertheless, you
8031 *** may want to report the problem to your system manager and/or to
8032 *** [email protected]
8033
8034 _LT_EOF
8035 fi ;;
8036 esac
8037 fi
8038 break
8039 fi
8040 done
8041 IFS=$lt_save_ifs
8042 MAGIC_CMD=$lt_save_MAGIC_CMD
8043 ;;
8044 esac
8045 fi
8046
8047 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8048 if test -n "$MAGIC_CMD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8050 $as_echo "$MAGIC_CMD" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057
8058
8059
8060 if test -z "$lt_cv_path_MAGIC_CMD"; then
8061 if test -n "$ac_tool_prefix"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8063 $as_echo_n "checking for file... " >&6; }
8064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $MAGIC_CMD in
8068 [\\/*] | ?:[\\/]*)
8069 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8070 ;;
8071 *)
8072 lt_save_MAGIC_CMD=$MAGIC_CMD
8073 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8075 for ac_dir in $ac_dummy; do
8076 IFS=$lt_save_ifs
8077 test -z "$ac_dir" && ac_dir=.
8078 if test -f "$ac_dir/file"; then
8079 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8080 if test -n "$file_magic_test_file"; then
8081 case $deplibs_check_method in
8082 "file_magic "*)
8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8086 $EGREP "$file_magic_regex" > /dev/null; then
8087 :
8088 else
8089 cat <<_LT_EOF 1>&2
8090
8091 *** Warning: the command libtool uses to detect shared libraries,
8092 *** $file_magic_cmd, produces output that libtool cannot recognize.
8093 *** The result is that libtool may fail to recognize shared libraries
8094 *** as such. This will affect the creation of libtool libraries that
8095 *** depend on shared libraries, but programs linked with such libtool
8096 *** libraries will work regardless of this problem. Nevertheless, you
8097 *** may want to report the problem to your system manager and/or to
8098 *** [email protected]
8099
8100 _LT_EOF
8101 fi ;;
8102 esac
8103 fi
8104 break
8105 fi
8106 done
8107 IFS=$lt_save_ifs
8108 MAGIC_CMD=$lt_save_MAGIC_CMD
8109 ;;
8110 esac
8111 fi
8112
8113 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8114 if test -n "$MAGIC_CMD"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8116 $as_echo "$MAGIC_CMD" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 else
8124 MAGIC_CMD=:
8125 fi
8126 fi
8127
8128 fi
8129 ;;
8130 esac
8131
8132 # Use C for the default configuration in the libtool script
8133
8134 lt_save_CC=$CC
8135 ac_ext=c
8136 ac_cpp='$CPP $CPPFLAGS'
8137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140
8141
8142 # Source file extension for C test sources.
8143 ac_ext=c
8144
8145 # Object file extension for compiled C test sources.
8146 objext=o
8147 objext=$objext
8148
8149 # Code to be used in simple compile tests
8150 lt_simple_compile_test_code="int some_variable = 0;"
8151
8152 # Code to be used in simple link tests
8153 lt_simple_link_test_code='int main(){return(0);}'
8154
8155
8156
8157
8158
8159
8160
8161 # If no C compiler was specified, use CC.
8162 LTCC=${LTCC-"$CC"}
8163
8164 # If no C compiler flags were specified, use CFLAGS.
8165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8166
8167 # Allow CC to be a program name with arguments.
8168 compiler=$CC
8169
8170 # Save the default compiler, since it gets overwritten when the other
8171 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8172 compiler_DEFAULT=$CC
8173
8174 # save warnings/boilerplate of simple test code
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8178 _lt_compiler_boilerplate=`cat conftest.err`
8179 $RM conftest*
8180
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8184 _lt_linker_boilerplate=`cat conftest.err`
8185 $RM -r conftest*
8186
8187
8188 if test -n "$compiler"; then
8189
8190 lt_prog_compiler_no_builtin_flag=
8191
8192 if test yes = "$GCC"; then
8193 case $cc_basename in
8194 nvcc*)
8195 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8196 *)
8197 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8198 esac
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8201 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8202 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_prog_compiler_rtti_exceptions=no
8206 ac_outfile=conftest.$ac_objext
8207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8208 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8209 # Insert the option either (1) after the last *FLAGS variable, or
8210 # (2) before a word containing "conftest.", or (3) at the end.
8211 # Note that $ac_compile itself does not contain backslashes and begins
8212 # with a dollar sign (not a hyphen), so the echo should work correctly.
8213 # The option is referenced via a variable to avoid confusing sed.
8214 lt_compile=`echo "$ac_compile" | $SED \
8215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217 -e 's:$: $lt_compiler_flag:'`
8218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8219 (eval "$lt_compile" 2>conftest.err)
8220 ac_status=$?
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 if (exit $ac_status) && test -s "$ac_outfile"; then
8224 # The compiler can only warn and ignore the option if not recognized
8225 # So say no if there are warnings other than the usual output.
8226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8229 lt_cv_prog_compiler_rtti_exceptions=yes
8230 fi
8231 fi
8232 $RM conftest*
8233
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8236 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8237
8238 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8239 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8240 else
8241 :
8242 fi
8243
8244 fi
8245
8246
8247
8248
8249
8250
8251 lt_prog_compiler_wl=
8252 lt_prog_compiler_pic=
8253 lt_prog_compiler_static=
8254
8255
8256 if test yes = "$GCC"; then
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_static='-static'
8259
8260 case $host_os in
8261 aix*)
8262 # All AIX code is PIC.
8263 if test ia64 = "$host_cpu"; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static='-Bstatic'
8266 fi
8267 lt_prog_compiler_pic='-fPIC'
8268 ;;
8269
8270 amigaos*)
8271 case $host_cpu in
8272 powerpc)
8273 # see comment about AmigaOS4 .so support
8274 lt_prog_compiler_pic='-fPIC'
8275 ;;
8276 m68k)
8277 # FIXME: we need at least 68020 code to build shared libraries, but
8278 # adding the '-m68020' flag to GCC prevents building anything better,
8279 # like '-m68040'.
8280 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8281 ;;
8282 esac
8283 ;;
8284
8285 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8286 # PIC is the default for these OSes.
8287 ;;
8288
8289 mingw* | cygwin* | pw32* | os2* | cegcc*)
8290 # This hack is so that the source file can tell whether it is being
8291 # built for inclusion in a dll (and should export symbols for example).
8292 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8293 # (--disable-auto-import) libraries
8294 lt_prog_compiler_pic='-DDLL_EXPORT'
8295 case $host_os in
8296 os2*)
8297 lt_prog_compiler_static='$wl-static'
8298 ;;
8299 esac
8300 ;;
8301
8302 darwin* | rhapsody*)
8303 # PIC is the default on this platform
8304 # Common symbols not allowed in MH_DYLIB files
8305 lt_prog_compiler_pic='-fno-common'
8306 ;;
8307
8308 haiku*)
8309 # PIC is the default for Haiku.
8310 # The "-static" flag exists, but is broken.
8311 lt_prog_compiler_static=
8312 ;;
8313
8314 hpux*)
8315 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8316 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8317 # sets the default TLS model and affects inlining.
8318 case $host_cpu in
8319 hppa*64*)
8320 # +Z the default
8321 ;;
8322 *)
8323 lt_prog_compiler_pic='-fPIC'
8324 ;;
8325 esac
8326 ;;
8327
8328 interix[3-9]*)
8329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8330 # Instead, we relocate shared libraries at runtime.
8331 ;;
8332
8333 msdosdjgpp*)
8334 # Just because we use GCC doesn't mean we suddenly get shared libraries
8335 # on systems that don't support them.
8336 lt_prog_compiler_can_build_shared=no
8337 enable_shared=no
8338 ;;
8339
8340 *nto* | *qnx*)
8341 # QNX uses GNU C++, but need to define -shared option too, otherwise
8342 # it will coredump.
8343 lt_prog_compiler_pic='-fPIC -shared'
8344 ;;
8345
8346 sysv4*MP*)
8347 if test -d /usr/nec; then
8348 lt_prog_compiler_pic=-Kconform_pic
8349 fi
8350 ;;
8351
8352 *)
8353 lt_prog_compiler_pic='-fPIC'
8354 ;;
8355 esac
8356
8357 case $cc_basename in
8358 nvcc*) # Cuda Compiler Driver 2.2
8359 lt_prog_compiler_wl='-Xlinker '
8360 if test -n "$lt_prog_compiler_pic"; then
8361 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8362 fi
8363 ;;
8364 esac
8365 else
8366 # PORTME Check for flag to pass linker flags through the system compiler.
8367 case $host_os in
8368 aix*)
8369 lt_prog_compiler_wl='-Wl,'
8370 if test ia64 = "$host_cpu"; then
8371 # AIX 5 now supports IA64 processor
8372 lt_prog_compiler_static='-Bstatic'
8373 else
8374 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8375 fi
8376 ;;
8377
8378 darwin* | rhapsody*)
8379 # PIC is the default on this platform
8380 # Common symbols not allowed in MH_DYLIB files
8381 lt_prog_compiler_pic='-fno-common'
8382 case $cc_basename in
8383 nagfor*)
8384 # NAG Fortran compiler
8385 lt_prog_compiler_wl='-Wl,-Wl,,'
8386 lt_prog_compiler_pic='-PIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 ;;
8389 esac
8390 ;;
8391
8392 mingw* | cygwin* | pw32* | os2* | cegcc*)
8393 # This hack is so that the source file can tell whether it is being
8394 # built for inclusion in a dll (and should export symbols for example).
8395 lt_prog_compiler_pic='-DDLL_EXPORT'
8396 case $host_os in
8397 os2*)
8398 lt_prog_compiler_static='$wl-static'
8399 ;;
8400 esac
8401 ;;
8402
8403 hpux9* | hpux10* | hpux11*)
8404 lt_prog_compiler_wl='-Wl,'
8405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8406 # not for PA HP-UX.
8407 case $host_cpu in
8408 hppa*64*|ia64*)
8409 # +Z the default
8410 ;;
8411 *)
8412 lt_prog_compiler_pic='+Z'
8413 ;;
8414 esac
8415 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8416 lt_prog_compiler_static='$wl-a ${wl}archive'
8417 ;;
8418
8419 irix5* | irix6* | nonstopux*)
8420 lt_prog_compiler_wl='-Wl,'
8421 # PIC (with -KPIC) is the default.
8422 lt_prog_compiler_static='-non_shared'
8423 ;;
8424
8425 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8426 case $cc_basename in
8427 # old Intel for x86_64, which still supported -KPIC.
8428 ecc*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-static'
8432 ;;
8433 # icc used to be incompatible with GCC.
8434 # ICC 10 doesn't accept -KPIC any more.
8435 icc* | ifort*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fPIC'
8438 lt_prog_compiler_static='-static'
8439 ;;
8440 # Lahey Fortran 8.1.
8441 lf95*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='--shared'
8444 lt_prog_compiler_static='--static'
8445 ;;
8446 nagfor*)
8447 # NAG Fortran compiler
8448 lt_prog_compiler_wl='-Wl,-Wl,,'
8449 lt_prog_compiler_pic='-PIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 ;;
8452 tcc*)
8453 # Fabrice Bellard et al's Tiny C Compiler
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_pic='-fPIC'
8456 lt_prog_compiler_static='-static'
8457 ;;
8458 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8459 # Portland Group compilers (*not* the Pentium gcc compiler,
8460 # which looks to be a dead project)
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_pic='-fpic'
8463 lt_prog_compiler_static='-Bstatic'
8464 ;;
8465 ccc*)
8466 lt_prog_compiler_wl='-Wl,'
8467 # All Alpha code is PIC.
8468 lt_prog_compiler_static='-non_shared'
8469 ;;
8470 xl* | bgxl* | bgf* | mpixl*)
8471 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8472 lt_prog_compiler_wl='-Wl,'
8473 lt_prog_compiler_pic='-qpic'
8474 lt_prog_compiler_static='-qstaticlink'
8475 ;;
8476 *)
8477 case `$CC -V 2>&1 | sed 5q` in
8478 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8479 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8480 lt_prog_compiler_pic='-KPIC'
8481 lt_prog_compiler_static='-Bstatic'
8482 lt_prog_compiler_wl=''
8483 ;;
8484 *Sun\ F* | *Sun*Fortran*)
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8487 lt_prog_compiler_wl='-Qoption ld '
8488 ;;
8489 *Sun\ C*)
8490 # Sun C 5.9
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8493 lt_prog_compiler_wl='-Wl,'
8494 ;;
8495 *Intel*\ [CF]*Compiler*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_pic='-fPIC'
8498 lt_prog_compiler_static='-static'
8499 ;;
8500 *Portland\ Group*)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-fpic'
8503 lt_prog_compiler_static='-Bstatic'
8504 ;;
8505 esac
8506 ;;
8507 esac
8508 ;;
8509
8510 newsos6)
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 ;;
8514
8515 *nto* | *qnx*)
8516 # QNX uses GNU C++, but need to define -shared option too, otherwise
8517 # it will coredump.
8518 lt_prog_compiler_pic='-fPIC -shared'
8519 ;;
8520
8521 osf3* | osf4* | osf5*)
8522 lt_prog_compiler_wl='-Wl,'
8523 # All OSF/1 code is PIC.
8524 lt_prog_compiler_static='-non_shared'
8525 ;;
8526
8527 rdos*)
8528 lt_prog_compiler_static='-non_shared'
8529 ;;
8530
8531 solaris*)
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 case $cc_basename in
8535 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8536 lt_prog_compiler_wl='-Qoption ld ';;
8537 *)
8538 lt_prog_compiler_wl='-Wl,';;
8539 esac
8540 ;;
8541
8542 sunos4*)
8543 lt_prog_compiler_wl='-Qoption ld '
8544 lt_prog_compiler_pic='-PIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 ;;
8547
8548 sysv4 | sysv4.2uw2* | sysv4.3*)
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_pic='-KPIC'
8551 lt_prog_compiler_static='-Bstatic'
8552 ;;
8553
8554 sysv4*MP*)
8555 if test -d /usr/nec; then
8556 lt_prog_compiler_pic='-Kconform_pic'
8557 lt_prog_compiler_static='-Bstatic'
8558 fi
8559 ;;
8560
8561 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-KPIC'
8564 lt_prog_compiler_static='-Bstatic'
8565 ;;
8566
8567 unicos*)
8568 lt_prog_compiler_wl='-Wl,'
8569 lt_prog_compiler_can_build_shared=no
8570 ;;
8571
8572 uts4*)
8573 lt_prog_compiler_pic='-pic'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576
8577 *)
8578 lt_prog_compiler_can_build_shared=no
8579 ;;
8580 esac
8581 fi
8582
8583 case $host_os in
8584 # For platforms that do not support PIC, -DPIC is meaningless:
8585 *djgpp*)
8586 lt_prog_compiler_pic=
8587 ;;
8588 *)
8589 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8590 ;;
8591 esac
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8594 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8595 if ${lt_cv_prog_compiler_pic+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8601 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8602 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8603
8604 #
8605 # Check to make sure the PIC flag actually works.
8606 #
8607 if test -n "$lt_prog_compiler_pic"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8609 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8610 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 lt_cv_prog_compiler_pic_works=no
8614 ac_outfile=conftest.$ac_objext
8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8616 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8617 # Insert the option either (1) after the last *FLAGS variable, or
8618 # (2) before a word containing "conftest.", or (3) at the end.
8619 # Note that $ac_compile itself does not contain backslashes and begins
8620 # with a dollar sign (not a hyphen), so the echo should work correctly.
8621 # The option is referenced via a variable to avoid confusing sed.
8622 lt_compile=`echo "$ac_compile" | $SED \
8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8625 -e 's:$: $lt_compiler_flag:'`
8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8627 (eval "$lt_compile" 2>conftest.err)
8628 ac_status=$?
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 if (exit $ac_status) && test -s "$ac_outfile"; then
8632 # The compiler can only warn and ignore the option if not recognized
8633 # So say no if there are warnings other than the usual output.
8634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8637 lt_cv_prog_compiler_pic_works=yes
8638 fi
8639 fi
8640 $RM conftest*
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8644 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8645
8646 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8647 case $lt_prog_compiler_pic in
8648 "" | " "*) ;;
8649 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8650 esac
8651 else
8652 lt_prog_compiler_pic=
8653 lt_prog_compiler_can_build_shared=no
8654 fi
8655
8656 fi
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668 #
8669 # Check to make sure the static flag actually works.
8670 #
8671 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8674 if ${lt_cv_prog_compiler_static_works+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 lt_cv_prog_compiler_static_works=no
8678 save_LDFLAGS=$LDFLAGS
8679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8682 # The linker can only warn and ignore the option if not recognized
8683 # So say no if there are warnings
8684 if test -s conftest.err; then
8685 # Append any errors to the config.log.
8686 cat conftest.err 1>&5
8687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8689 if diff conftest.exp conftest.er2 >/dev/null; then
8690 lt_cv_prog_compiler_static_works=yes
8691 fi
8692 else
8693 lt_cv_prog_compiler_static_works=yes
8694 fi
8695 fi
8696 $RM -r conftest*
8697 LDFLAGS=$save_LDFLAGS
8698
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8701 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8702
8703 if test yes = "$lt_cv_prog_compiler_static_works"; then
8704 :
8705 else
8706 lt_prog_compiler_static=
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8717 if ${lt_cv_prog_compiler_c_o+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 lt_cv_prog_compiler_c_o=no
8721 $RM -r conftest 2>/dev/null
8722 mkdir conftest
8723 cd conftest
8724 mkdir out
8725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726
8727 lt_compiler_flag="-o out/conftest2.$ac_objext"
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 lt_compile=`echo "$ac_compile" | $SED \
8733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735 -e 's:$: $lt_compiler_flag:'`
8736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737 (eval "$lt_compile" 2>out/conftest.err)
8738 ac_status=$?
8739 cat out/conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8742 then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings
8745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8748 lt_cv_prog_compiler_c_o=yes
8749 fi
8750 fi
8751 chmod u+w . 2>&5
8752 $RM conftest*
8753 # SGI C++ compiler will create directory out/ii_files/ for
8754 # template instantiation
8755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8756 $RM out/* && rmdir out
8757 cd ..
8758 $RM -r conftest
8759 $RM conftest*
8760
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8763 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8764
8765
8766
8767
8768
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8772 if ${lt_cv_prog_compiler_c_o+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 lt_cv_prog_compiler_c_o=no
8776 $RM -r conftest 2>/dev/null
8777 mkdir conftest
8778 cd conftest
8779 mkdir out
8780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8781
8782 lt_compiler_flag="-o out/conftest2.$ac_objext"
8783 # Insert the option either (1) after the last *FLAGS variable, or
8784 # (2) before a word containing "conftest.", or (3) at the end.
8785 # Note that $ac_compile itself does not contain backslashes and begins
8786 # with a dollar sign (not a hyphen), so the echo should work correctly.
8787 lt_compile=`echo "$ac_compile" | $SED \
8788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8790 -e 's:$: $lt_compiler_flag:'`
8791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8792 (eval "$lt_compile" 2>out/conftest.err)
8793 ac_status=$?
8794 cat out/conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8797 then
8798 # The compiler can only warn and ignore the option if not recognized
8799 # So say no if there are warnings
8800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8803 lt_cv_prog_compiler_c_o=yes
8804 fi
8805 fi
8806 chmod u+w . 2>&5
8807 $RM conftest*
8808 # SGI C++ compiler will create directory out/ii_files/ for
8809 # template instantiation
8810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8811 $RM out/* && rmdir out
8812 cd ..
8813 $RM -r conftest
8814 $RM conftest*
8815
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8818 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8819
8820
8821
8822
8823 hard_links=nottested
8824 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8825 # do not overwrite the value of need_locks provided by the user
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8827 $as_echo_n "checking if we can lock with hard links... " >&6; }
8828 hard_links=yes
8829 $RM conftest*
8830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8831 touch conftest.a
8832 ln conftest.a conftest.b 2>&5 || hard_links=no
8833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8835 $as_echo "$hard_links" >&6; }
8836 if test no = "$hard_links"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8838 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8839 need_locks=warn
8840 fi
8841 else
8842 need_locks=no
8843 fi
8844
8845
8846
8847
8848
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8852
8853 runpath_var=
8854 allow_undefined_flag=
8855 always_export_symbols=no
8856 archive_cmds=
8857 archive_expsym_cmds=
8858 compiler_needs_object=no
8859 enable_shared_with_static_runtimes=no
8860 export_dynamic_flag_spec=
8861 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8862 hardcode_automatic=no
8863 hardcode_direct=no
8864 hardcode_direct_absolute=no
8865 hardcode_libdir_flag_spec=
8866 hardcode_libdir_separator=
8867 hardcode_minus_L=no
8868 hardcode_shlibpath_var=unsupported
8869 inherit_rpath=no
8870 link_all_deplibs=unknown
8871 module_cmds=
8872 module_expsym_cmds=
8873 old_archive_from_new_cmds=
8874 old_archive_from_expsyms_cmds=
8875 thread_safe_flag_spec=
8876 whole_archive_flag_spec=
8877 # include_expsyms should be a list of space-separated symbols to be *always*
8878 # included in the symbol list
8879 include_expsyms=
8880 # exclude_expsyms can be an extended regexp of symbols to exclude
8881 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8882 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8883 # as well as any symbol that contains 'd'.
8884 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8886 # platforms (ab)use it in PIC code, but their linkers get confused if
8887 # the symbol is explicitly referenced. Since portable code cannot
8888 # rely on this symbol name, it's probably fine to never include it in
8889 # preloaded symbol tables.
8890 # Exclude shared library initialization/finalization symbols.
8891 extract_expsyms_cmds=
8892
8893 case $host_os in
8894 cygwin* | mingw* | pw32* | cegcc*)
8895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8896 # When not using gcc, we currently assume that we are using
8897 # Microsoft Visual C++.
8898 if test yes != "$GCC"; then
8899 with_gnu_ld=no
8900 fi
8901 ;;
8902 interix*)
8903 # we just hope/assume this is gcc and not c89 (= MSVC++)
8904 with_gnu_ld=yes
8905 ;;
8906 openbsd* | bitrig*)
8907 with_gnu_ld=no
8908 ;;
8909 esac
8910
8911 ld_shlibs=yes
8912
8913 # On some targets, GNU ld is compatible enough with the native linker
8914 # that we're better off using the native interface for both.
8915 lt_use_gnu_ld_interface=no
8916 if test yes = "$with_gnu_ld"; then
8917 case $host_os in
8918 aix*)
8919 # The AIX port of GNU ld has always aspired to compatibility
8920 # with the native linker. However, as the warning in the GNU ld
8921 # block says, versions before 2.19.5* couldn't really create working
8922 # shared libraries, regardless of the interface used.
8923 case `$LD -v 2>&1` in
8924 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8925 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8926 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8927 *)
8928 lt_use_gnu_ld_interface=yes
8929 ;;
8930 esac
8931 ;;
8932 *)
8933 lt_use_gnu_ld_interface=yes
8934 ;;
8935 esac
8936 fi
8937
8938 if test yes = "$lt_use_gnu_ld_interface"; then
8939 # If archive_cmds runs LD, not CC, wlarc should be empty
8940 wlarc='$wl'
8941
8942 # Set some defaults for GNU ld with shared library support. These
8943 # are reset later if shared libraries are not supported. Putting them
8944 # here allows them to be overridden if necessary.
8945 runpath_var=LD_RUN_PATH
8946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8947 export_dynamic_flag_spec='$wl--export-dynamic'
8948 # ancient GNU ld didn't support --whole-archive et. al.
8949 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8950 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8951 else
8952 whole_archive_flag_spec=
8953 fi
8954 supports_anon_versioning=no
8955 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8956 *GNU\ gold*) supports_anon_versioning=yes ;;
8957 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8958 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8959 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8960 *\ 2.11.*) ;; # other 2.11 versions
8961 *) supports_anon_versioning=yes ;;
8962 esac
8963
8964 # See if GNU ld supports shared libraries.
8965 case $host_os in
8966 aix[3-9]*)
8967 # On AIX/PPC, the GNU linker is very broken
8968 if test ia64 != "$host_cpu"; then
8969 ld_shlibs=no
8970 cat <<_LT_EOF 1>&2
8971
8972 *** Warning: the GNU linker, at least up to release 2.19, is reported
8973 *** to be unable to reliably create shared libraries on AIX.
8974 *** Therefore, libtool is disabling shared libraries support. If you
8975 *** really care for shared libraries, you may want to install binutils
8976 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8977 *** You will then need to restart the configuration process.
8978
8979 _LT_EOF
8980 fi
8981 ;;
8982
8983 amigaos*)
8984 case $host_cpu in
8985 powerpc)
8986 # see comment about AmigaOS4 .so support
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8988 archive_expsym_cmds=''
8989 ;;
8990 m68k)
8991 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)'
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_minus_L=yes
8994 ;;
8995 esac
8996 ;;
8997
8998 beos*)
8999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 allow_undefined_flag=unsupported
9001 # Joseph Beckenbach <[email protected]> says some releases of gcc
9002 # support --undefined. This deserves some investigation. FIXME
9003 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9004 else
9005 ld_shlibs=no
9006 fi
9007 ;;
9008
9009 cygwin* | mingw* | pw32* | cegcc*)
9010 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9011 # as there is no search path for DLLs.
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 export_dynamic_flag_spec='$wl--export-all-symbols'
9014 allow_undefined_flag=unsupported
9015 always_export_symbols=no
9016 enable_shared_with_static_runtimes=yes
9017 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'
9018 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9019
9020 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9022 # If the export-symbols file already is a .def file, use it as
9023 # is; otherwise, prepend EXPORTS...
9024 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9025 cp $export_symbols $output_objdir/$soname.def;
9026 else
9027 echo EXPORTS > $output_objdir/$soname.def;
9028 cat $export_symbols >> $output_objdir/$soname.def;
9029 fi~
9030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
9035
9036 haiku*)
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9038 link_all_deplibs=yes
9039 ;;
9040
9041 os2*)
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_minus_L=yes
9044 allow_undefined_flag=unsupported
9045 shrext_cmds=.dll
9046 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9049 $ECHO EXPORTS >> $output_objdir/$libname.def~
9050 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9051 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9052 emximp -o $lib $output_objdir/$libname.def'
9053 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9054 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9055 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9056 $ECHO EXPORTS >> $output_objdir/$libname.def~
9057 prefix_cmds="$SED"~
9058 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9059 prefix_cmds="$prefix_cmds -e 1d";
9060 fi~
9061 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9062 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9063 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9064 emximp -o $lib $output_objdir/$libname.def'
9065 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9066 enable_shared_with_static_runtimes=yes
9067 ;;
9068
9069 interix[3-9]*)
9070 hardcode_direct=no
9071 hardcode_shlibpath_var=no
9072 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9073 export_dynamic_flag_spec='$wl-E'
9074 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9075 # Instead, shared libraries are loaded at an image base (0x10000000 by
9076 # default) and relocated if they conflict, which is a slow very memory
9077 # consuming and fragmenting process. To avoid this, we pick a random,
9078 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9079 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9081 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'
9082 ;;
9083
9084 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9085 tmp_diet=no
9086 if test linux-dietlibc = "$host_os"; then
9087 case $cc_basename in
9088 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9089 esac
9090 fi
9091 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9092 && test no = "$tmp_diet"
9093 then
9094 tmp_addflag=' $pic_flag'
9095 tmp_sharedflag='-shared'
9096 case $cc_basename,$host_cpu in
9097 pgcc*) # Portland Group C compiler
9098 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'
9099 tmp_addflag=' $pic_flag'
9100 ;;
9101 pgf77* | pgf90* | pgf95* | pgfortran*)
9102 # Portland Group f77 and f90 compilers
9103 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'
9104 tmp_addflag=' $pic_flag -Mnomain' ;;
9105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9106 tmp_addflag=' -i_dynamic' ;;
9107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9108 tmp_addflag=' -i_dynamic -nofor_main' ;;
9109 ifc* | ifort*) # Intel Fortran compiler
9110 tmp_addflag=' -nofor_main' ;;
9111 lf95*) # Lahey Fortran 8.1
9112 whole_archive_flag_spec=
9113 tmp_sharedflag='--shared' ;;
9114 nagfor*) # NAGFOR 5.3
9115 tmp_sharedflag='-Wl,-shared' ;;
9116 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9117 tmp_sharedflag='-qmkshrobj'
9118 tmp_addflag= ;;
9119 nvcc*) # Cuda Compiler Driver 2.2
9120 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'
9121 compiler_needs_object=yes
9122 ;;
9123 esac
9124 case `$CC -V 2>&1 | sed 5q` in
9125 *Sun\ C*) # Sun C 5.9
9126 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'
9127 compiler_needs_object=yes
9128 tmp_sharedflag='-G' ;;
9129 *Sun\ F*) # Sun Fortran 8.3
9130 tmp_sharedflag='-G' ;;
9131 esac
9132 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9133
9134 if test yes = "$supports_anon_versioning"; then
9135 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9137 echo "local: *; };" >> $output_objdir/$libname.ver~
9138 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9139 fi
9140
9141 case $cc_basename in
9142 tcc*)
9143 export_dynamic_flag_spec='-rdynamic'
9144 ;;
9145 xlf* | bgf* | bgxlf* | mpixlf*)
9146 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9147 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9149 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9150 if test yes = "$supports_anon_versioning"; then
9151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153 echo "local: *; };" >> $output_objdir/$libname.ver~
9154 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9155 fi
9156 ;;
9157 esac
9158 else
9159 ld_shlibs=no
9160 fi
9161 ;;
9162
9163 netbsd*)
9164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9165 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9166 wlarc=
9167 else
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9170 fi
9171 ;;
9172
9173 solaris*)
9174 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9175 ld_shlibs=no
9176 cat <<_LT_EOF 1>&2
9177
9178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9179 *** create shared libraries on Solaris systems. Therefore, libtool
9180 *** is disabling shared libraries support. We urge you to upgrade GNU
9181 *** binutils to release 2.9.1 or newer. Another option is to modify
9182 *** your PATH or compiler configuration so that the native linker is
9183 *** used, and then restart.
9184
9185 _LT_EOF
9186 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9188 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9189 else
9190 ld_shlibs=no
9191 fi
9192 ;;
9193
9194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9195 case `$LD -v 2>&1` in
9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9197 ld_shlibs=no
9198 cat <<_LT_EOF 1>&2
9199
9200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9201 *** reliably create shared libraries on SCO systems. Therefore, libtool
9202 *** is disabling shared libraries support. We urge you to upgrade GNU
9203 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9204 *** your PATH or compiler configuration so that the native linker is
9205 *** used, and then restart.
9206
9207 _LT_EOF
9208 ;;
9209 *)
9210 # For security reasons, it is highly recommended that you always
9211 # use absolute paths for naming shared libraries, and exclude the
9212 # DT_RUNPATH tag from executables and libraries. But doing so
9213 # requires that you compile everything twice, which is a pain.
9214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9218 else
9219 ld_shlibs=no
9220 fi
9221 ;;
9222 esac
9223 ;;
9224
9225 sunos4*)
9226 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227 wlarc=
9228 hardcode_direct=yes
9229 hardcode_shlibpath_var=no
9230 ;;
9231
9232 *)
9233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9236 else
9237 ld_shlibs=no
9238 fi
9239 ;;
9240 esac
9241
9242 if test no = "$ld_shlibs"; then
9243 runpath_var=
9244 hardcode_libdir_flag_spec=
9245 export_dynamic_flag_spec=
9246 whole_archive_flag_spec=
9247 fi
9248 else
9249 # PORTME fill in a description of your system's linker (not GNU ld)
9250 case $host_os in
9251 aix3*)
9252 allow_undefined_flag=unsupported
9253 always_export_symbols=yes
9254 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'
9255 # Note: this linker hardcodes the directories in LIBPATH if there
9256 # are no directories specified by -L.
9257 hardcode_minus_L=yes
9258 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9259 # Neither direct hardcoding nor static linking is supported with a
9260 # broken collect2.
9261 hardcode_direct=unsupported
9262 fi
9263 ;;
9264
9265 aix[4-9]*)
9266 if test ia64 = "$host_cpu"; then
9267 # On IA64, the linker does run time linking by default, so we don't
9268 # have to do anything special.
9269 aix_use_runtimelinking=no
9270 exp_sym_flag='-Bexport'
9271 no_entry_flag=
9272 else
9273 # If we're using GNU nm, then we don't want the "-C" option.
9274 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9275 # Without the "-l" option, or with the "-B" option, AIX nm treats
9276 # weak defined symbols like other global defined symbols, whereas
9277 # GNU nm marks them as "W".
9278 # While the 'weak' keyword is ignored in the Export File, we need
9279 # it in the Import File for the 'aix-soname' feature, so we have
9280 # to replace the "-B" option with "-P" for AIX nm.
9281 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9282 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9283 else
9284 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9285 fi
9286 aix_use_runtimelinking=no
9287
9288 # Test if we are trying to use run time linking or normal
9289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9290 # have runtime linking enabled, and use it for executables.
9291 # For shared libraries, we enable/disable runtime linking
9292 # depending on the kind of the shared library created -
9293 # when "with_aix_soname,aix_use_runtimelinking" is:
9294 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9295 # "aix,yes" lib.so shared, rtl:yes, for executables
9296 # lib.a static archive
9297 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9298 # lib.a(lib.so.V) shared, rtl:no, for executables
9299 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9300 # lib.a(lib.so.V) shared, rtl:no
9301 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9302 # lib.a static archive
9303 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9304 for ld_flag in $LDFLAGS; do
9305 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9306 aix_use_runtimelinking=yes
9307 break
9308 fi
9309 done
9310 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9311 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9312 # so we don't have lib.a shared libs to link our executables.
9313 # We have to force runtime linking in this case.
9314 aix_use_runtimelinking=yes
9315 LDFLAGS="$LDFLAGS -Wl,-brtl"
9316 fi
9317 ;;
9318 esac
9319
9320 exp_sym_flag='-bexport'
9321 no_entry_flag='-bnoentry'
9322 fi
9323
9324 # When large executables or shared objects are built, AIX ld can
9325 # have problems creating the table of contents. If linking a library
9326 # or program results in "error TOC overflow" add -mminimal-toc to
9327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9329
9330 archive_cmds=''
9331 hardcode_direct=yes
9332 hardcode_direct_absolute=yes
9333 hardcode_libdir_separator=':'
9334 link_all_deplibs=yes
9335 file_list_spec='$wl-f,'
9336 case $with_aix_soname,$aix_use_runtimelinking in
9337 aix,*) ;; # traditional, no import file
9338 svr4,* | *,yes) # use import file
9339 # The Import File defines what to hardcode.
9340 hardcode_direct=no
9341 hardcode_direct_absolute=no
9342 ;;
9343 esac
9344
9345 if test yes = "$GCC"; then
9346 case $host_os in aix4.[012]|aix4.[012].*)
9347 # We only want to do this on AIX 4.2 and lower, the check
9348 # below for broken collect2 doesn't work under 4.3+
9349 collect2name=`$CC -print-prog-name=collect2`
9350 if test -f "$collect2name" &&
9351 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9352 then
9353 # We have reworked collect2
9354 :
9355 else
9356 # We have old collect2
9357 hardcode_direct=unsupported
9358 # It fails to find uninstalled libraries when the uninstalled
9359 # path is not listed in the libpath. Setting hardcode_minus_L
9360 # to unsupported forces relinking
9361 hardcode_minus_L=yes
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_libdir_separator=
9364 fi
9365 ;;
9366 esac
9367 shared_flag='-shared'
9368 if test yes = "$aix_use_runtimelinking"; then
9369 shared_flag="$shared_flag "'$wl-G'
9370 fi
9371 # Need to ensure runtime linking is disabled for the traditional
9372 # shared library, or the linker may eventually find shared libraries
9373 # /with/ Import File - we do not want to mix them.
9374 shared_flag_aix='-shared'
9375 shared_flag_svr4='-shared $wl-G'
9376 else
9377 # not using gcc
9378 if test ia64 = "$host_cpu"; then
9379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9380 # chokes on -Wl,-G. The following line is correct:
9381 shared_flag='-G'
9382 else
9383 if test yes = "$aix_use_runtimelinking"; then
9384 shared_flag='$wl-G'
9385 else
9386 shared_flag='$wl-bM:SRE'
9387 fi
9388 shared_flag_aix='$wl-bM:SRE'
9389 shared_flag_svr4='$wl-G'
9390 fi
9391 fi
9392
9393 export_dynamic_flag_spec='$wl-bexpall'
9394 # It seems that -bexpall does not export symbols beginning with
9395 # underscore (_), so it is better to generate a list of symbols to export.
9396 always_export_symbols=yes
9397 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9398 # Warning - without using the other runtime loading flags (-brtl),
9399 # -berok will link without error, but may produce a broken library.
9400 allow_undefined_flag='-berok'
9401 # Determine the default libpath from the value encoded in an
9402 # empty executable.
9403 if test set = "${lt_cv_aix_libpath+set}"; then
9404 aix_libpath=$lt_cv_aix_libpath
9405 else
9406 if ${lt_cv_aix_libpath_+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411
9412 int
9413 main ()
9414 {
9415
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 if ac_fn_c_try_link "$LINENO"; then :
9421
9422 lt_aix_libpath_sed='
9423 /Import File Strings/,/^$/ {
9424 /^0/ {
9425 s/^0 *\([^ ]*\) *$/\1/
9426 p
9427 }
9428 }'
9429 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9430 # Check for a 64-bit object if we didn't find anything.
9431 if test -z "$lt_cv_aix_libpath_"; then
9432 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9433 fi
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 if test -z "$lt_cv_aix_libpath_"; then
9438 lt_cv_aix_libpath_=/usr/lib:/lib
9439 fi
9440
9441 fi
9442
9443 aix_libpath=$lt_cv_aix_libpath_
9444 fi
9445
9446 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9447 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9448 else
9449 if test ia64 = "$host_cpu"; then
9450 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9451 allow_undefined_flag="-z nodefs"
9452 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"
9453 else
9454 # Determine the default libpath from the value encoded in an
9455 # empty executable.
9456 if test set = "${lt_cv_aix_libpath+set}"; then
9457 aix_libpath=$lt_cv_aix_libpath
9458 else
9459 if ${lt_cv_aix_libpath_+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 int
9466 main ()
9467 {
9468
9469 ;
9470 return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474
9475 lt_aix_libpath_sed='
9476 /Import File Strings/,/^$/ {
9477 /^0/ {
9478 s/^0 *\([^ ]*\) *$/\1/
9479 p
9480 }
9481 }'
9482 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 # Check for a 64-bit object if we didn't find anything.
9484 if test -z "$lt_cv_aix_libpath_"; then
9485 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 fi
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test -z "$lt_cv_aix_libpath_"; then
9491 lt_cv_aix_libpath_=/usr/lib:/lib
9492 fi
9493
9494 fi
9495
9496 aix_libpath=$lt_cv_aix_libpath_
9497 fi
9498
9499 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9500 # Warning - without using the other run time loading flags,
9501 # -berok will link without error, but may produce a broken library.
9502 no_undefined_flag=' $wl-bernotok'
9503 allow_undefined_flag=' $wl-berok'
9504 if test yes = "$with_gnu_ld"; then
9505 # We only use this code for GNU lds that support --whole-archive.
9506 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9507 else
9508 # Exported symbols can be pulled into shared objects from archives
9509 whole_archive_flag_spec='$convenience'
9510 fi
9511 archive_cmds_need_lc=yes
9512 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9513 # -brtl affects multiple linker settings, -berok does not and is overridden later
9514 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9515 if test svr4 != "$with_aix_soname"; then
9516 # This is similar to how AIX traditionally builds its shared libraries.
9517 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9518 fi
9519 if test aix != "$with_aix_soname"; then
9520 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9521 else
9522 # used by -dlpreopen to get the symbols
9523 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9524 fi
9525 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9526 fi
9527 fi
9528 ;;
9529
9530 amigaos*)
9531 case $host_cpu in
9532 powerpc)
9533 # see comment about AmigaOS4 .so support
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9535 archive_expsym_cmds=''
9536 ;;
9537 m68k)
9538 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)'
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_minus_L=yes
9541 ;;
9542 esac
9543 ;;
9544
9545 bsdi[45]*)
9546 export_dynamic_flag_spec=-rdynamic
9547 ;;
9548
9549 cygwin* | mingw* | pw32* | cegcc*)
9550 # When not using gcc, we currently assume that we are using
9551 # Microsoft Visual C++.
9552 # hardcode_libdir_flag_spec is actually meaningless, as there is
9553 # no search path for DLLs.
9554 case $cc_basename in
9555 cl*)
9556 # Native MSVC
9557 hardcode_libdir_flag_spec=' '
9558 allow_undefined_flag=unsupported
9559 always_export_symbols=yes
9560 file_list_spec='@'
9561 # Tell ltmain to make .lib files, not .a files.
9562 libext=lib
9563 # Tell ltmain to make .dll files, not .so files.
9564 shrext_cmds=.dll
9565 # FIXME: Setting linknames here is a bad hack.
9566 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9567 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9568 cp "$export_symbols" "$output_objdir/$soname.def";
9569 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9570 else
9571 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9572 fi~
9573 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9574 linknames='
9575 # The linker will not automatically build a static lib if we build a DLL.
9576 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9577 enable_shared_with_static_runtimes=yes
9578 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9580 # Don't use ranlib
9581 old_postinstall_cmds='chmod 644 $oldlib'
9582 postlink_cmds='lt_outputfile="@OUTPUT@"~
9583 lt_tool_outputfile="@TOOL_OUTPUT@"~
9584 case $lt_outputfile in
9585 *.exe|*.EXE) ;;
9586 *)
9587 lt_outputfile=$lt_outputfile.exe
9588 lt_tool_outputfile=$lt_tool_outputfile.exe
9589 ;;
9590 esac~
9591 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9592 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9593 $RM "$lt_outputfile.manifest";
9594 fi'
9595 ;;
9596 *)
9597 # Assume MSVC wrapper
9598 hardcode_libdir_flag_spec=' '
9599 allow_undefined_flag=unsupported
9600 # Tell ltmain to make .lib files, not .a files.
9601 libext=lib
9602 # Tell ltmain to make .dll files, not .so files.
9603 shrext_cmds=.dll
9604 # FIXME: Setting linknames here is a bad hack.
9605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9606 # The linker will automatically build a .lib file if we build a DLL.
9607 old_archive_from_new_cmds='true'
9608 # FIXME: Should let the user specify the lib program.
9609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9610 enable_shared_with_static_runtimes=yes
9611 ;;
9612 esac
9613 ;;
9614
9615 darwin* | rhapsody*)
9616
9617
9618 archive_cmds_need_lc=no
9619 hardcode_direct=no
9620 hardcode_automatic=yes
9621 hardcode_shlibpath_var=unsupported
9622 if test yes = "$lt_cv_ld_force_load"; then
9623 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\"`'
9624
9625 else
9626 whole_archive_flag_spec=''
9627 fi
9628 link_all_deplibs=yes
9629 allow_undefined_flag=$_lt_dar_allow_undefined
9630 case $cc_basename in
9631 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9632 *) _lt_dar_can_shared=$GCC ;;
9633 esac
9634 if test yes = "$_lt_dar_can_shared"; then
9635 output_verbose_link_cmd=func_echo_all
9636 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9637 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9638 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"
9639 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"
9640
9641 else
9642 ld_shlibs=no
9643 fi
9644
9645 ;;
9646
9647 dgux*)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654 # support. Future versions do this automatically, but an explicit c++rt0.o
9655 # does not break anything, and helps significantly (at the cost of a little
9656 # extra space).
9657 freebsd2.2*)
9658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659 hardcode_libdir_flag_spec='-R$libdir'
9660 hardcode_direct=yes
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665 freebsd2.*)
9666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673 freebsd* | dragonfly*)
9674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9676 hardcode_direct=yes
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 hpux9*)
9681 if test yes = "$GCC"; then
9682 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9683 else
9684 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9685 fi
9686 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9687 hardcode_libdir_separator=:
9688 hardcode_direct=yes
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 export_dynamic_flag_spec='$wl-E'
9694 ;;
9695
9696 hpux10*)
9697 if test yes,no = "$GCC,$with_gnu_ld"; then
9698 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 fi
9702 if test no = "$with_gnu_ld"; then
9703 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9704 hardcode_libdir_separator=:
9705 hardcode_direct=yes
9706 hardcode_direct_absolute=yes
9707 export_dynamic_flag_spec='$wl-E'
9708 # hardcode_minus_L: Not really in the search PATH,
9709 # but as the default location of the library.
9710 hardcode_minus_L=yes
9711 fi
9712 ;;
9713
9714 hpux11*)
9715 if test yes,no = "$GCC,$with_gnu_ld"; then
9716 case $host_cpu in
9717 hppa*64*)
9718 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 ;;
9720 ia64*)
9721 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9722 ;;
9723 *)
9724 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725 ;;
9726 esac
9727 else
9728 case $host_cpu in
9729 hppa*64*)
9730 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 ;;
9732 ia64*)
9733 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734 ;;
9735 *)
9736
9737 # Older versions of the 11.00 compiler do not understand -b yet
9738 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9740 $as_echo_n "checking if $CC understands -b... " >&6; }
9741 if ${lt_cv_prog_compiler__b+:} false; then :
9742 $as_echo_n "(cached) " >&6
9743 else
9744 lt_cv_prog_compiler__b=no
9745 save_LDFLAGS=$LDFLAGS
9746 LDFLAGS="$LDFLAGS -b"
9747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9749 # The linker can only warn and ignore the option if not recognized
9750 # So say no if there are warnings
9751 if test -s conftest.err; then
9752 # Append any errors to the config.log.
9753 cat conftest.err 1>&5
9754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9756 if diff conftest.exp conftest.er2 >/dev/null; then
9757 lt_cv_prog_compiler__b=yes
9758 fi
9759 else
9760 lt_cv_prog_compiler__b=yes
9761 fi
9762 fi
9763 $RM -r conftest*
9764 LDFLAGS=$save_LDFLAGS
9765
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9768 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9769
9770 if test yes = "$lt_cv_prog_compiler__b"; then
9771 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775
9776 ;;
9777 esac
9778 fi
9779 if test no = "$with_gnu_ld"; then
9780 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9781 hardcode_libdir_separator=:
9782
9783 case $host_cpu in
9784 hppa*64*|ia64*)
9785 hardcode_direct=no
9786 hardcode_shlibpath_var=no
9787 ;;
9788 *)
9789 hardcode_direct=yes
9790 hardcode_direct_absolute=yes
9791 export_dynamic_flag_spec='$wl-E'
9792
9793 # hardcode_minus_L: Not really in the search PATH,
9794 # but as the default location of the library.
9795 hardcode_minus_L=yes
9796 ;;
9797 esac
9798 fi
9799 ;;
9800
9801 irix5* | irix6* | nonstopux*)
9802 if test yes = "$GCC"; then
9803 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'
9804 # Try to use the -exported_symbol ld option, if it does not
9805 # work, assume that -exports_file does not work either and
9806 # implicitly export all symbols.
9807 # This should be the same for all languages, so no per-tag cache variable.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9809 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9810 if ${lt_cv_irix_exported_symbol+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 save_LDFLAGS=$LDFLAGS
9814 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 int foo (void) { return 0; }
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"; then :
9820 lt_cv_irix_exported_symbol=yes
9821 else
9822 lt_cv_irix_exported_symbol=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 LDFLAGS=$save_LDFLAGS
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9829 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9830 if test yes = "$lt_cv_irix_exported_symbol"; then
9831 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'
9832 fi
9833 else
9834 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'
9835 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'
9836 fi
9837 archive_cmds_need_lc='no'
9838 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9839 hardcode_libdir_separator=:
9840 inherit_rpath=yes
9841 link_all_deplibs=yes
9842 ;;
9843
9844 linux*)
9845 case $cc_basename in
9846 tcc*)
9847 # Fabrice Bellard et al's Tiny C Compiler
9848 ld_shlibs=yes
9849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9850 ;;
9851 esac
9852 ;;
9853
9854 netbsd*)
9855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9857 else
9858 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9859 fi
9860 hardcode_libdir_flag_spec='-R$libdir'
9861 hardcode_direct=yes
9862 hardcode_shlibpath_var=no
9863 ;;
9864
9865 newsos6)
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_direct=yes
9868 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9869 hardcode_libdir_separator=:
9870 hardcode_shlibpath_var=no
9871 ;;
9872
9873 *nto* | *qnx*)
9874 ;;
9875
9876 openbsd* | bitrig*)
9877 if test -f /usr/libexec/ld.so; then
9878 hardcode_direct=yes
9879 hardcode_shlibpath_var=no
9880 hardcode_direct_absolute=yes
9881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9883 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9884 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9885 export_dynamic_flag_spec='$wl-E'
9886 else
9887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9888 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9889 fi
9890 else
9891 ld_shlibs=no
9892 fi
9893 ;;
9894
9895 os2*)
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_minus_L=yes
9898 allow_undefined_flag=unsupported
9899 shrext_cmds=.dll
9900 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9901 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9902 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9903 $ECHO EXPORTS >> $output_objdir/$libname.def~
9904 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9905 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9906 emximp -o $lib $output_objdir/$libname.def'
9907 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9908 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9909 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9910 $ECHO EXPORTS >> $output_objdir/$libname.def~
9911 prefix_cmds="$SED"~
9912 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9913 prefix_cmds="$prefix_cmds -e 1d";
9914 fi~
9915 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9916 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9917 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9918 emximp -o $lib $output_objdir/$libname.def'
9919 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9920 enable_shared_with_static_runtimes=yes
9921 ;;
9922
9923 osf3*)
9924 if test yes = "$GCC"; then
9925 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9926 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'
9927 else
9928 allow_undefined_flag=' -expect_unresolved \*'
9929 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'
9930 fi
9931 archive_cmds_need_lc='no'
9932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9933 hardcode_libdir_separator=:
9934 ;;
9935
9936 osf4* | osf5*) # as osf3* with the addition of -msym flag
9937 if test yes = "$GCC"; then
9938 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9939 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'
9940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9941 else
9942 allow_undefined_flag=' -expect_unresolved \*'
9943 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'
9944 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~
9945 $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'
9946
9947 # Both c and cxx compiler support -rpath directly
9948 hardcode_libdir_flag_spec='-rpath $libdir'
9949 fi
9950 archive_cmds_need_lc='no'
9951 hardcode_libdir_separator=:
9952 ;;
9953
9954 solaris*)
9955 no_undefined_flag=' -z defs'
9956 if test yes = "$GCC"; then
9957 wlarc='$wl'
9958 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9960 $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'
9961 else
9962 case `$CC -V 2>&1` in
9963 *"Compilers 5.0"*)
9964 wlarc=''
9965 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9967 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9968 ;;
9969 *)
9970 wlarc='$wl'
9971 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9973 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9974 ;;
9975 esac
9976 fi
9977 hardcode_libdir_flag_spec='-R$libdir'
9978 hardcode_shlibpath_var=no
9979 case $host_os in
9980 solaris2.[0-5] | solaris2.[0-5].*) ;;
9981 *)
9982 # The compiler driver will combine and reorder linker options,
9983 # but understands '-z linker_flag'. GCC discards it without '$wl',
9984 # but is careful enough not to reorder.
9985 # Supported since Solaris 2.6 (maybe 2.5.1?)
9986 if test yes = "$GCC"; then
9987 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9988 else
9989 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9990 fi
9991 ;;
9992 esac
9993 link_all_deplibs=yes
9994 ;;
9995
9996 sunos4*)
9997 if test sequent = "$host_vendor"; then
9998 # Use $CC to link under sequent, because it throws in some extra .o
9999 # files that make .init and .fini sections work.
10000 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10001 else
10002 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10003 fi
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 hardcode_direct=yes
10006 hardcode_minus_L=yes
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 sysv4)
10011 case $host_vendor in
10012 sni)
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_direct=yes # is this really true???
10015 ;;
10016 siemens)
10017 ## LD is ld it makes a PLAMLIB
10018 ## CC just makes a GrossModule.
10019 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10020 reload_cmds='$CC -r -o $output$reload_objs'
10021 hardcode_direct=no
10022 ;;
10023 motorola)
10024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10026 ;;
10027 esac
10028 runpath_var='LD_RUN_PATH'
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 sysv4.3*)
10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_shlibpath_var=no
10035 export_dynamic_flag_spec='-Bexport'
10036 ;;
10037
10038 sysv4*MP*)
10039 if test -d /usr/nec; then
10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_shlibpath_var=no
10042 runpath_var=LD_RUN_PATH
10043 hardcode_runpath_var=yes
10044 ld_shlibs=yes
10045 fi
10046 ;;
10047
10048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10049 no_undefined_flag='$wl-z,text'
10050 archive_cmds_need_lc=no
10051 hardcode_shlibpath_var=no
10052 runpath_var='LD_RUN_PATH'
10053
10054 if test yes = "$GCC"; then
10055 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 else
10058 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 fi
10061 ;;
10062
10063 sysv5* | sco3.2v5* | sco5v6*)
10064 # Note: We CANNOT use -z defs as we might desire, because we do not
10065 # link with -lc, and that would cause any symbols used from libc to
10066 # always be unresolved, which means just about no library would
10067 # ever link correctly. If we're not using GNU ld we use -z text
10068 # though, which does catch some bad symbols but isn't as heavy-handed
10069 # as -z defs.
10070 no_undefined_flag='$wl-z,text'
10071 allow_undefined_flag='$wl-z,nodefs'
10072 archive_cmds_need_lc=no
10073 hardcode_shlibpath_var=no
10074 hardcode_libdir_flag_spec='$wl-R,$libdir'
10075 hardcode_libdir_separator=':'
10076 link_all_deplibs=yes
10077 export_dynamic_flag_spec='$wl-Bexport'
10078 runpath_var='LD_RUN_PATH'
10079
10080 if test yes = "$GCC"; then
10081 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 else
10084 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 fi
10087 ;;
10088
10089 uts4*)
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_shlibpath_var=no
10093 ;;
10094
10095 *)
10096 ld_shlibs=no
10097 ;;
10098 esac
10099
10100 if test sni = "$host_vendor"; then
10101 case $host in
10102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10103 export_dynamic_flag_spec='$wl-Blargedynsym'
10104 ;;
10105 esac
10106 fi
10107 fi
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10110 $as_echo "$ld_shlibs" >&6; }
10111 test no = "$ld_shlibs" && can_build_shared=no
10112
10113 with_gnu_ld=$with_gnu_ld
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 #
10130 # Do we need to explicitly link libc?
10131 #
10132 case "x$archive_cmds_need_lc" in
10133 x|xyes)
10134 # Assume -lc should be added
10135 archive_cmds_need_lc=yes
10136
10137 if test yes,yes = "$GCC,$enable_shared"; then
10138 case $archive_cmds in
10139 *'~'*)
10140 # FIXME: we may have to deal with multi-command sequences.
10141 ;;
10142 '$CC '*)
10143 # Test whether the compiler implicitly links with -lc since on some
10144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10145 # to ld, don't add -lc before -lgcc.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10148 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 $RM conftest*
10152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10153
10154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155 (eval $ac_compile) 2>&5
10156 ac_status=$?
10157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158 test $ac_status = 0; } 2>conftest.err; then
10159 soname=conftest
10160 lib=conftest
10161 libobjs=conftest.$ac_objext
10162 deplibs=
10163 wl=$lt_prog_compiler_wl
10164 pic_flag=$lt_prog_compiler_pic
10165 compiler_flags=-v
10166 linker_flags=-v
10167 verstring=
10168 output_objdir=.
10169 libname=conftest
10170 lt_save_allow_undefined_flag=$allow_undefined_flag
10171 allow_undefined_flag=
10172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10174 ac_status=$?
10175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10176 test $ac_status = 0; }
10177 then
10178 lt_cv_archive_cmds_need_lc=no
10179 else
10180 lt_cv_archive_cmds_need_lc=yes
10181 fi
10182 allow_undefined_flag=$lt_save_allow_undefined_flag
10183 else
10184 cat conftest.err 1>&5
10185 fi
10186 $RM conftest*
10187
10188 fi
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10190 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10191 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10192 ;;
10193 esac
10194 fi
10195 ;;
10196 esac
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10350 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10351
10352 if test yes = "$GCC"; then
10353 case $host_os in
10354 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10355 *) lt_awk_arg='/^libraries:/' ;;
10356 esac
10357 case $host_os in
10358 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10359 *) lt_sed_strip_eq='s|=/|/|g' ;;
10360 esac
10361 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10362 case $lt_search_path_spec in
10363 *\;*)
10364 # if the path contains ";" then we assume it to be the separator
10365 # otherwise default to the standard path separator (i.e. ":") - it is
10366 # assumed that no part of a normal pathname contains ";" but that should
10367 # okay in the real world where ";" in dirpaths is itself problematic.
10368 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10369 ;;
10370 *)
10371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10372 ;;
10373 esac
10374 # Ok, now we have the path, separated by spaces, we can step through it
10375 # and add multilib dir if necessary...
10376 lt_tmp_lt_search_path_spec=
10377 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10378 # ...but if some path component already ends with the multilib dir we assume
10379 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10380 case "$lt_multi_os_dir; $lt_search_path_spec " in
10381 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10382 lt_multi_os_dir=
10383 ;;
10384 esac
10385 for lt_sys_path in $lt_search_path_spec; do
10386 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10388 elif test -n "$lt_multi_os_dir"; then
10389 test -d "$lt_sys_path" && \
10390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10391 fi
10392 done
10393 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10394 BEGIN {RS = " "; FS = "/|\n";} {
10395 lt_foo = "";
10396 lt_count = 0;
10397 for (lt_i = NF; lt_i > 0; lt_i--) {
10398 if ($lt_i != "" && $lt_i != ".") {
10399 if ($lt_i == "..") {
10400 lt_count++;
10401 } else {
10402 if (lt_count == 0) {
10403 lt_foo = "/" $lt_i lt_foo;
10404 } else {
10405 lt_count--;
10406 }
10407 }
10408 }
10409 }
10410 if (lt_foo != "") { lt_freq[lt_foo]++; }
10411 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10412 }'`
10413 # AWK program above erroneously prepends '/' to C:/dos/paths
10414 # for these hosts.
10415 case $host_os in
10416 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10417 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10418 esac
10419 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10420 else
10421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10422 fi
10423 library_names_spec=
10424 libname_spec='lib$name'
10425 soname_spec=
10426 shrext_cmds=.so
10427 postinstall_cmds=
10428 postuninstall_cmds=
10429 finish_cmds=
10430 finish_eval=
10431 shlibpath_var=
10432 shlibpath_overrides_runpath=unknown
10433 version_type=none
10434 dynamic_linker="$host_os ld.so"
10435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10436 need_lib_prefix=unknown
10437 hardcode_into_libs=no
10438
10439 # when you set need_version to no, make sure it does not cause -set_version
10440 # flags to be left without arguments
10441 need_version=unknown
10442
10443
10444
10445 case $host_os in
10446 aix3*)
10447 version_type=linux # correct to gnu/linux during the next big refactor
10448 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10449 shlibpath_var=LIBPATH
10450
10451 # AIX 3 has no versioning support, so we append a major version to the name.
10452 soname_spec='$libname$release$shared_ext$major'
10453 ;;
10454
10455 aix[4-9]*)
10456 version_type=linux # correct to gnu/linux during the next big refactor
10457 need_lib_prefix=no
10458 need_version=no
10459 hardcode_into_libs=yes
10460 if test ia64 = "$host_cpu"; then
10461 # AIX 5 supports IA64
10462 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 else
10465 # With GCC up to 2.95.x, collect2 would create an import file
10466 # for dependence libraries. The import file would start with
10467 # the line '#! .'. This would cause the generated library to
10468 # depend on '.', always an invalid library. This was fixed in
10469 # development snapshots of GCC prior to 3.0.
10470 case $host_os in
10471 aix4 | aix4.[01] | aix4.[01].*)
10472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10473 echo ' yes '
10474 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10475 :
10476 else
10477 can_build_shared=no
10478 fi
10479 ;;
10480 esac
10481 # Using Import Files as archive members, it is possible to support
10482 # filename-based versioning of shared library archives on AIX. While
10483 # this would work for both with and without runtime linking, it will
10484 # prevent static linking of such archives. So we do filename-based
10485 # shared library versioning with .so extension only, which is used
10486 # when both runtime linking and shared linking is enabled.
10487 # Unfortunately, runtime linking may impact performance, so we do
10488 # not want this to be the default eventually. Also, we use the
10489 # versioned .so libs for executables only if there is the -brtl
10490 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10491 # To allow for filename-based versioning support, we need to create
10492 # libNAME.so.V as an archive file, containing:
10493 # *) an Import File, referring to the versioned filename of the
10494 # archive as well as the shared archive member, telling the
10495 # bitwidth (32 or 64) of that shared object, and providing the
10496 # list of exported symbols of that shared object, eventually
10497 # decorated with the 'weak' keyword
10498 # *) the shared object with the F_LOADONLY flag set, to really avoid
10499 # it being seen by the linker.
10500 # At run time we better use the real file rather than another symlink,
10501 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10502
10503 case $with_aix_soname,$aix_use_runtimelinking in
10504 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10505 # soname into executable. Probably we can add versioning support to
10506 # collect2, so additional links can be useful in future.
10507 aix,yes) # traditional libtool
10508 dynamic_linker='AIX unversionable lib.so'
10509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10510 # instead of lib<name>.a to let people know that these are not
10511 # typical AIX shared libraries.
10512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10513 ;;
10514 aix,no) # traditional AIX only
10515 dynamic_linker='AIX lib.a(lib.so.V)'
10516 # We preserve .a as extension for shared libraries through AIX4.2
10517 # and later when we are not doing run time linking.
10518 library_names_spec='$libname$release.a $libname.a'
10519 soname_spec='$libname$release$shared_ext$major'
10520 ;;
10521 svr4,*) # full svr4 only
10522 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10523 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10524 # We do not specify a path in Import Files, so LIBPATH fires.
10525 shlibpath_overrides_runpath=yes
10526 ;;
10527 *,yes) # both, prefer svr4
10528 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10529 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10530 # unpreferred sharedlib libNAME.a needs extra handling
10531 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10532 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10533 # We do not specify a path in Import Files, so LIBPATH fires.
10534 shlibpath_overrides_runpath=yes
10535 ;;
10536 *,no) # both, prefer aix
10537 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10538 library_names_spec='$libname$release.a $libname.a'
10539 soname_spec='$libname$release$shared_ext$major'
10540 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10541 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10542 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10543 ;;
10544 esac
10545 shlibpath_var=LIBPATH
10546 fi
10547 ;;
10548
10549 amigaos*)
10550 case $host_cpu in
10551 powerpc)
10552 # Since July 2007 AmigaOS4 officially supports .so libraries.
10553 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10555 ;;
10556 m68k)
10557 library_names_spec='$libname.ixlibrary $libname.a'
10558 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10559 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10560 ;;
10561 esac
10562 ;;
10563
10564 beos*)
10565 library_names_spec='$libname$shared_ext'
10566 dynamic_linker="$host_os ld.so"
10567 shlibpath_var=LIBRARY_PATH
10568 ;;
10569
10570 bsdi[45]*)
10571 version_type=linux # correct to gnu/linux during the next big refactor
10572 need_version=no
10573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10574 soname_spec='$libname$release$shared_ext$major'
10575 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10578 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10579 # the default ld.so.conf also contains /usr/contrib/lib and
10580 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10581 # libtool to hard-code these into programs
10582 ;;
10583
10584 cygwin* | mingw* | pw32* | cegcc*)
10585 version_type=windows
10586 shrext_cmds=.dll
10587 need_version=no
10588 need_lib_prefix=no
10589
10590 case $GCC,$cc_basename in
10591 yes,*)
10592 # gcc
10593 library_names_spec='$libname.dll.a'
10594 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10595 postinstall_cmds='base_file=`basename \$file`~
10596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10597 dldir=$destdir/`dirname \$dlpath`~
10598 test -d \$dldir || mkdir -p \$dldir~
10599 $install_prog $dir/$dlname \$dldir/$dlname~
10600 chmod a+x \$dldir/$dlname~
10601 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10602 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10603 fi'
10604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10605 dlpath=$dir/\$dldll~
10606 $RM \$dlpath'
10607 shlibpath_overrides_runpath=yes
10608
10609 case $host_os in
10610 cygwin*)
10611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10612 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10613
10614 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10615 ;;
10616 mingw* | cegcc*)
10617 # MinGW DLLs use traditional 'lib' prefix
10618 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10619 ;;
10620 pw32*)
10621 # pw32 DLLs use 'pw' prefix rather than 'lib'
10622 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10623 ;;
10624 esac
10625 dynamic_linker='Win32 ld.exe'
10626 ;;
10627
10628 *,cl*)
10629 # Native MSVC
10630 libname_spec='$name'
10631 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10632 library_names_spec='$libname.dll.lib'
10633
10634 case $build_os in
10635 mingw*)
10636 sys_lib_search_path_spec=
10637 lt_save_ifs=$IFS
10638 IFS=';'
10639 for lt_path in $LIB
10640 do
10641 IFS=$lt_save_ifs
10642 # Let DOS variable expansion print the short 8.3 style file name.
10643 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10644 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10645 done
10646 IFS=$lt_save_ifs
10647 # Convert to MSYS style.
10648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10649 ;;
10650 cygwin*)
10651 # Convert to unix form, then to dos form, then back to unix form
10652 # but this time dos style (no spaces!) so that the unix form looks
10653 # like /cygdrive/c/PROGRA~1:/cygdr...
10654 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10655 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10656 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10657 ;;
10658 *)
10659 sys_lib_search_path_spec=$LIB
10660 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10661 # It is most probably a Windows format PATH.
10662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10663 else
10664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10665 fi
10666 # FIXME: find the short name or the path components, as spaces are
10667 # common. (e.g. "Program Files" -> "PROGRA~1")
10668 ;;
10669 esac
10670
10671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672 postinstall_cmds='base_file=`basename \$file`~
10673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10674 dldir=$destdir/`dirname \$dlpath`~
10675 test -d \$dldir || mkdir -p \$dldir~
10676 $install_prog $dir/$dlname \$dldir/$dlname'
10677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10678 dlpath=$dir/\$dldll~
10679 $RM \$dlpath'
10680 shlibpath_overrides_runpath=yes
10681 dynamic_linker='Win32 link.exe'
10682 ;;
10683
10684 *)
10685 # Assume MSVC wrapper
10686 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10687 dynamic_linker='Win32 ld.exe'
10688 ;;
10689 esac
10690 # FIXME: first we should search . and the directory the executable is in
10691 shlibpath_var=PATH
10692 ;;
10693
10694 darwin* | rhapsody*)
10695 dynamic_linker="$host_os dyld"
10696 version_type=darwin
10697 need_lib_prefix=no
10698 need_version=no
10699 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10700 soname_spec='$libname$release$major$shared_ext'
10701 shlibpath_overrides_runpath=yes
10702 shlibpath_var=DYLD_LIBRARY_PATH
10703 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10704
10705 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10706 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10707 ;;
10708
10709 dgux*)
10710 version_type=linux # correct to gnu/linux during the next big refactor
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10714 soname_spec='$libname$release$shared_ext$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 ;;
10717
10718 freebsd* | dragonfly*)
10719 # DragonFly does not have aout. When/if they implement a new
10720 # versioning mechanism, adjust this.
10721 if test -x /usr/bin/objformat; then
10722 objformat=`/usr/bin/objformat`
10723 else
10724 case $host_os in
10725 freebsd[23].*) objformat=aout ;;
10726 *) objformat=elf ;;
10727 esac
10728 fi
10729 version_type=freebsd-$objformat
10730 case $version_type in
10731 freebsd-elf*)
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 soname_spec='$libname$release$shared_ext$major'
10734 need_version=no
10735 need_lib_prefix=no
10736 ;;
10737 freebsd-*)
10738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10739 need_version=yes
10740 ;;
10741 esac
10742 shlibpath_var=LD_LIBRARY_PATH
10743 case $host_os in
10744 freebsd2.*)
10745 shlibpath_overrides_runpath=yes
10746 ;;
10747 freebsd3.[01]* | freebsdelf3.[01]*)
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10750 ;;
10751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10755 ;;
10756 *) # from 4.6 on, and DragonFly
10757 shlibpath_overrides_runpath=yes
10758 hardcode_into_libs=yes
10759 ;;
10760 esac
10761 ;;
10762
10763 haiku*)
10764 version_type=linux # correct to gnu/linux during the next big refactor
10765 need_lib_prefix=no
10766 need_version=no
10767 dynamic_linker="$host_os runtime_loader"
10768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769 soname_spec='$libname$release$shared_ext$major'
10770 shlibpath_var=LIBRARY_PATH
10771 shlibpath_overrides_runpath=no
10772 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10773 hardcode_into_libs=yes
10774 ;;
10775
10776 hpux9* | hpux10* | hpux11*)
10777 # Give a soname corresponding to the major version so that dld.sl refuses to
10778 # link against other versions.
10779 version_type=sunos
10780 need_lib_prefix=no
10781 need_version=no
10782 case $host_cpu in
10783 ia64*)
10784 shrext_cmds='.so'
10785 hardcode_into_libs=yes
10786 dynamic_linker="$host_os dld.so"
10787 shlibpath_var=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10790 soname_spec='$libname$release$shared_ext$major'
10791 if test 32 = "$HPUX_IA64_MODE"; then
10792 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10793 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10794 else
10795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10796 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10797 fi
10798 ;;
10799 hppa*64*)
10800 shrext_cmds='.sl'
10801 hardcode_into_libs=yes
10802 dynamic_linker="$host_os dld.sl"
10803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10806 soname_spec='$libname$release$shared_ext$major'
10807 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10809 ;;
10810 *)
10811 shrext_cmds='.sl'
10812 dynamic_linker="$host_os dld.sl"
10813 shlibpath_var=SHLIB_PATH
10814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10816 soname_spec='$libname$release$shared_ext$major'
10817 ;;
10818 esac
10819 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10820 postinstall_cmds='chmod 555 $lib'
10821 # or fails outright, so override atomically:
10822 install_override_mode=555
10823 ;;
10824
10825 interix[3-9]*)
10826 version_type=linux # correct to gnu/linux during the next big refactor
10827 need_lib_prefix=no
10828 need_version=no
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
10831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=no
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 irix5* | irix6* | nonstopux*)
10838 case $host_os in
10839 nonstopux*) version_type=nonstopux ;;
10840 *)
10841 if test yes = "$lt_cv_prog_gnu_ld"; then
10842 version_type=linux # correct to gnu/linux during the next big refactor
10843 else
10844 version_type=irix
10845 fi ;;
10846 esac
10847 need_lib_prefix=no
10848 need_version=no
10849 soname_spec='$libname$release$shared_ext$major'
10850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10851 case $host_os in
10852 irix5* | nonstopux*)
10853 libsuff= shlibsuff=
10854 ;;
10855 *)
10856 case $LD in # libtool.m4 will add one of these switches to LD
10857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10858 libsuff= shlibsuff= libmagic=32-bit;;
10859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10860 libsuff=32 shlibsuff=N32 libmagic=N32;;
10861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10862 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10863 *) libsuff= shlibsuff= libmagic=never-match;;
10864 esac
10865 ;;
10866 esac
10867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10868 shlibpath_overrides_runpath=no
10869 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10870 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10871 hardcode_into_libs=yes
10872 ;;
10873
10874 # No shared lib support for Linux oldld, aout, or coff.
10875 linux*oldld* | linux*aout* | linux*coff*)
10876 dynamic_linker=no
10877 ;;
10878
10879 linux*android*)
10880 version_type=none # Android doesn't support versioned libraries.
10881 need_lib_prefix=no
10882 need_version=no
10883 library_names_spec='$libname$release$shared_ext'
10884 soname_spec='$libname$release$shared_ext'
10885 finish_cmds=
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes
10888
10889 # This implies no fast_install, which is unacceptable.
10890 # Some rework will be needed to allow for fast_install
10891 # before this can be enabled.
10892 hardcode_into_libs=yes
10893
10894 dynamic_linker='Android linker'
10895 # Don't embed -rpath directories since the linker doesn't support them.
10896 hardcode_libdir_flag_spec='-L$libdir'
10897 ;;
10898
10899 # This must be glibc/ELF.
10900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10901 version_type=linux # correct to gnu/linux during the next big refactor
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10905 soname_spec='$libname$release$shared_ext$major'
10906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=no
10909
10910 # Some binutils ld are patched to set DT_RUNPATH
10911 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 lt_cv_shlibpath_overrides_runpath=no
10915 save_LDFLAGS=$LDFLAGS
10916 save_libdir=$libdir
10917 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10918 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h. */
10921
10922 int
10923 main ()
10924 {
10925
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10932 lt_cv_shlibpath_overrides_runpath=yes
10933 fi
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LDFLAGS=$save_LDFLAGS
10938 libdir=$save_libdir
10939
10940 fi
10941
10942 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10943
10944 # This implies no fast_install, which is unacceptable.
10945 # Some rework will be needed to allow for fast_install
10946 # before this can be enabled.
10947 hardcode_into_libs=yes
10948
10949 # Ideally, we could use ldconfig to report *all* directores which are
10950 # searched for libraries, however this is still not possible. Aside from not
10951 # being certain /sbin/ldconfig is available, command
10952 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10953 # even though it is searched at run-time. Try to do the best guess by
10954 # appending ld.so.conf contents (and includes) to the search path.
10955 if test -f /etc/ld.so.conf; then
10956 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' ' '`
10957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10958 fi
10959
10960 # We used to test for /lib/ld.so.1 and disable shared libraries on
10961 # powerpc, because MkLinux only supported shared libraries with the
10962 # GNU dynamic linker. Since this was broken with cross compilers,
10963 # most powerpc-linux boxes support dynamic linking these days and
10964 # people can always --disable-shared, the test was removed, and we
10965 # assume the GNU/Linux dynamic linker is in use.
10966 dynamic_linker='GNU/Linux ld.so'
10967 ;;
10968
10969 netbsd*)
10970 version_type=sunos
10971 need_lib_prefix=no
10972 need_version=no
10973 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10976 dynamic_linker='NetBSD (a.out) ld.so'
10977 else
10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10979 soname_spec='$libname$release$shared_ext$major'
10980 dynamic_linker='NetBSD ld.elf_so'
10981 fi
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=yes
10984 hardcode_into_libs=yes
10985 ;;
10986
10987 newsos6)
10988 version_type=linux # correct to gnu/linux during the next big refactor
10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=yes
10992 ;;
10993
10994 *nto* | *qnx*)
10995 version_type=qnx
10996 need_lib_prefix=no
10997 need_version=no
10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999 soname_spec='$libname$release$shared_ext$major'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=no
11002 hardcode_into_libs=yes
11003 dynamic_linker='ldqnx.so'
11004 ;;
11005
11006 openbsd* | bitrig*)
11007 version_type=sunos
11008 sys_lib_dlsearch_path_spec=/usr/lib
11009 need_lib_prefix=no
11010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11011 need_version=no
11012 else
11013 need_version=yes
11014 fi
11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 ;;
11020
11021 os2*)
11022 libname_spec='$name'
11023 version_type=windows
11024 shrext_cmds=.dll
11025 need_version=no
11026 need_lib_prefix=no
11027 # OS/2 can only load a DLL with a base name of 8 characters or less.
11028 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11029 v=$($ECHO $release$versuffix | tr -d .-);
11030 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11031 $ECHO $n$v`$shared_ext'
11032 library_names_spec='${libname}_dll.$libext'
11033 dynamic_linker='OS/2 ld.exe'
11034 shlibpath_var=BEGINLIBPATH
11035 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11037 postinstall_cmds='base_file=`basename \$file`~
11038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11039 dldir=$destdir/`dirname \$dlpath`~
11040 test -d \$dldir || mkdir -p \$dldir~
11041 $install_prog $dir/$dlname \$dldir/$dlname~
11042 chmod a+x \$dldir/$dlname~
11043 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11044 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11045 fi'
11046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11047 dlpath=$dir/\$dldll~
11048 $RM \$dlpath'
11049 ;;
11050
11051 osf3* | osf4* | osf5*)
11052 version_type=osf
11053 need_lib_prefix=no
11054 need_version=no
11055 soname_spec='$libname$release$shared_ext$major'
11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11060 ;;
11061
11062 rdos*)
11063 dynamic_linker=no
11064 ;;
11065
11066 solaris*)
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 need_lib_prefix=no
11069 need_version=no
11070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11071 soname_spec='$libname$release$shared_ext$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 # ldd complains unless libraries are executable
11076 postinstall_cmds='chmod +x $lib'
11077 ;;
11078
11079 sunos4*)
11080 version_type=sunos
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11085 if test yes = "$with_gnu_ld"; then
11086 need_lib_prefix=no
11087 fi
11088 need_version=yes
11089 ;;
11090
11091 sysv4 | sysv4.3*)
11092 version_type=linux # correct to gnu/linux during the next big refactor
11093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11094 soname_spec='$libname$release$shared_ext$major'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 case $host_vendor in
11097 sni)
11098 shlibpath_overrides_runpath=no
11099 need_lib_prefix=no
11100 runpath_var=LD_RUN_PATH
11101 ;;
11102 siemens)
11103 need_lib_prefix=no
11104 ;;
11105 motorola)
11106 need_lib_prefix=no
11107 need_version=no
11108 shlibpath_overrides_runpath=no
11109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11110 ;;
11111 esac
11112 ;;
11113
11114 sysv4*MP*)
11115 if test -d /usr/nec; then
11116 version_type=linux # correct to gnu/linux during the next big refactor
11117 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11118 soname_spec='$libname$shared_ext.$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 fi
11121 ;;
11122
11123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11124 version_type=sco
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11128 soname_spec='$libname$release$shared_ext$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 if test yes = "$with_gnu_ld"; then
11133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11134 else
11135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11136 case $host_os in
11137 sco3.2v5*)
11138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11139 ;;
11140 esac
11141 fi
11142 sys_lib_dlsearch_path_spec='/usr/lib'
11143 ;;
11144
11145 tpf*)
11146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 need_lib_prefix=no
11149 need_version=no
11150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=no
11153 hardcode_into_libs=yes
11154 ;;
11155
11156 uts4*)
11157 version_type=linux # correct to gnu/linux during the next big refactor
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159 soname_spec='$libname$release$shared_ext$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 ;;
11162
11163 *)
11164 dynamic_linker=no
11165 ;;
11166 esac
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11168 $as_echo "$dynamic_linker" >&6; }
11169 test no = "$dynamic_linker" && can_build_shared=no
11170
11171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11172 if test yes = "$GCC"; then
11173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11174 fi
11175
11176 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11177 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11178 fi
11179
11180 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11181 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11182 fi
11183
11184 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11185 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11186
11187 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11188 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11189
11190 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11191 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11290 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11291 hardcode_action=
11292 if test -n "$hardcode_libdir_flag_spec" ||
11293 test -n "$runpath_var" ||
11294 test yes = "$hardcode_automatic"; then
11295
11296 # We can hardcode non-existent directories.
11297 if test no != "$hardcode_direct" &&
11298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11299 # have to relink, otherwise we might link with an installed library
11300 # when we should be linking with a yet-to-be-installed one
11301 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11302 test no != "$hardcode_minus_L"; then
11303 # Linking always hardcodes the temporary library directory.
11304 hardcode_action=relink
11305 else
11306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11307 hardcode_action=immediate
11308 fi
11309 else
11310 # We cannot hardcode anything, or else we can only hardcode existing
11311 # directories.
11312 hardcode_action=unsupported
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11315 $as_echo "$hardcode_action" >&6; }
11316
11317 if test relink = "$hardcode_action" ||
11318 test yes = "$inherit_rpath"; then
11319 # Fast installation is not supported
11320 enable_fast_install=no
11321 elif test yes = "$shlibpath_overrides_runpath" ||
11322 test no = "$enable_shared"; then
11323 # Fast installation is not necessary
11324 enable_fast_install=needless
11325 fi
11326
11327
11328
11329
11330
11331
11332 if test yes != "$enable_dlopen"; then
11333 enable_dlopen=unknown
11334 enable_dlopen_self=unknown
11335 enable_dlopen_self_static=unknown
11336 else
11337 lt_cv_dlopen=no
11338 lt_cv_dlopen_libs=
11339
11340 case $host_os in
11341 beos*)
11342 lt_cv_dlopen=load_add_on
11343 lt_cv_dlopen_libs=
11344 lt_cv_dlopen_self=yes
11345 ;;
11346
11347 mingw* | pw32* | cegcc*)
11348 lt_cv_dlopen=LoadLibrary
11349 lt_cv_dlopen_libs=
11350 ;;
11351
11352 cygwin*)
11353 lt_cv_dlopen=dlopen
11354 lt_cv_dlopen_libs=
11355 ;;
11356
11357 darwin*)
11358 # if libdl is installed we need to link against it
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11360 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11361 if ${ac_cv_lib_dl_dlopen+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldl $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char dlopen ();
11376 int
11377 main ()
11378 {
11379 return dlopen ();
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_dl_dlopen=yes
11386 else
11387 ac_cv_lib_dl_dlopen=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11395 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11396 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11397 else
11398
11399 lt_cv_dlopen=dyld
11400 lt_cv_dlopen_libs=
11401 lt_cv_dlopen_self=yes
11402
11403 fi
11404
11405 ;;
11406
11407 tpf*)
11408 # Don't try to run any link tests for TPF. We know it's impossible
11409 # because TPF is a cross-compiler, and we know how we open DSOs.
11410 lt_cv_dlopen=dlopen
11411 lt_cv_dlopen_libs=
11412 lt_cv_dlopen_self=no
11413 ;;
11414
11415 *)
11416 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11417 if test "x$ac_cv_func_shl_load" = xyes; then :
11418 lt_cv_dlopen=shl_load
11419 else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11421 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11422 if ${ac_cv_lib_dld_shl_load+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldld $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char shl_load ();
11437 int
11438 main ()
11439 {
11440 return shl_load ();
11441 ;
11442 return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dld_shl_load=yes
11447 else
11448 ac_cv_lib_dld_shl_load=no
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11455 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11456 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11457 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11458 else
11459 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11460 if test "x$ac_cv_func_dlopen" = xyes; then :
11461 lt_cv_dlopen=dlopen
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11465 if ${ac_cv_lib_dl_dlopen+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldl $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char dlopen ();
11480 int
11481 main ()
11482 {
11483 return dlopen ();
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 ac_cv_lib_dl_dlopen=yes
11490 else
11491 ac_cv_lib_dl_dlopen=no
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11499 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11500 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11503 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11504 if ${ac_cv_lib_svld_dlopen+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-lsvld $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char dlopen ();
11519 int
11520 main ()
11521 {
11522 return dlopen ();
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 ac_cv_lib_svld_dlopen=yes
11529 else
11530 ac_cv_lib_svld_dlopen=no
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11537 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11538 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11539 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11542 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11543 if ${ac_cv_lib_dld_dld_link+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-ldld $LIBS"
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char dld_link ();
11558 int
11559 main ()
11560 {
11561 return dld_link ();
11562 ;
11563 return 0;
11564 }
11565 _ACEOF
11566 if ac_fn_c_try_link "$LINENO"; then :
11567 ac_cv_lib_dld_dld_link=yes
11568 else
11569 ac_cv_lib_dld_dld_link=no
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11576 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11577 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11578 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11579 fi
11580
11581
11582 fi
11583
11584
11585 fi
11586
11587
11588 fi
11589
11590
11591 fi
11592
11593
11594 fi
11595
11596 ;;
11597 esac
11598
11599 if test no = "$lt_cv_dlopen"; then
11600 enable_dlopen=no
11601 else
11602 enable_dlopen=yes
11603 fi
11604
11605 case $lt_cv_dlopen in
11606 dlopen)
11607 save_CPPFLAGS=$CPPFLAGS
11608 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11609
11610 save_LDFLAGS=$LDFLAGS
11611 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11612
11613 save_LIBS=$LIBS
11614 LIBS="$lt_cv_dlopen_libs $LIBS"
11615
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11617 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11618 if ${lt_cv_dlopen_self+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 if test yes = "$cross_compiling"; then :
11622 lt_cv_dlopen_self=cross
11623 else
11624 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11625 lt_status=$lt_dlunknown
11626 cat > conftest.$ac_ext <<_LT_EOF
11627 #line $LINENO "configure"
11628 #include "confdefs.h"
11629
11630 #if HAVE_DLFCN_H
11631 #include <dlfcn.h>
11632 #endif
11633
11634 #include <stdio.h>
11635
11636 #ifdef RTLD_GLOBAL
11637 # define LT_DLGLOBAL RTLD_GLOBAL
11638 #else
11639 # ifdef DL_GLOBAL
11640 # define LT_DLGLOBAL DL_GLOBAL
11641 # else
11642 # define LT_DLGLOBAL 0
11643 # endif
11644 #endif
11645
11646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11647 find out it does not work in some platform. */
11648 #ifndef LT_DLLAZY_OR_NOW
11649 # ifdef RTLD_LAZY
11650 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11651 # else
11652 # ifdef DL_LAZY
11653 # define LT_DLLAZY_OR_NOW DL_LAZY
11654 # else
11655 # ifdef RTLD_NOW
11656 # define LT_DLLAZY_OR_NOW RTLD_NOW
11657 # else
11658 # ifdef DL_NOW
11659 # define LT_DLLAZY_OR_NOW DL_NOW
11660 # else
11661 # define LT_DLLAZY_OR_NOW 0
11662 # endif
11663 # endif
11664 # endif
11665 # endif
11666 #endif
11667
11668 /* When -fvisibility=hidden is used, assume the code has been annotated
11669 correspondingly for the symbols needed. */
11670 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11671 int fnord () __attribute__((visibility("default")));
11672 #endif
11673
11674 int fnord () { return 42; }
11675 int main ()
11676 {
11677 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11678 int status = $lt_dlunknown;
11679
11680 if (self)
11681 {
11682 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11683 else
11684 {
11685 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11686 else puts (dlerror ());
11687 }
11688 /* dlclose (self); */
11689 }
11690 else
11691 puts (dlerror ());
11692
11693 return status;
11694 }
11695 _LT_EOF
11696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11697 (eval $ac_link) 2>&5
11698 ac_status=$?
11699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11701 (./conftest; exit; ) >&5 2>/dev/null
11702 lt_status=$?
11703 case x$lt_status in
11704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11706 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11707 esac
11708 else :
11709 # compilation failed
11710 lt_cv_dlopen_self=no
11711 fi
11712 fi
11713 rm -fr conftest*
11714
11715
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11718 $as_echo "$lt_cv_dlopen_self" >&6; }
11719
11720 if test yes = "$lt_cv_dlopen_self"; then
11721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11723 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11724 if ${lt_cv_dlopen_self_static+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test yes = "$cross_compiling"; then :
11728 lt_cv_dlopen_self_static=cross
11729 else
11730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731 lt_status=$lt_dlunknown
11732 cat > conftest.$ac_ext <<_LT_EOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11735
11736 #if HAVE_DLFCN_H
11737 #include <dlfcn.h>
11738 #endif
11739
11740 #include <stdio.h>
11741
11742 #ifdef RTLD_GLOBAL
11743 # define LT_DLGLOBAL RTLD_GLOBAL
11744 #else
11745 # ifdef DL_GLOBAL
11746 # define LT_DLGLOBAL DL_GLOBAL
11747 # else
11748 # define LT_DLGLOBAL 0
11749 # endif
11750 #endif
11751
11752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753 find out it does not work in some platform. */
11754 #ifndef LT_DLLAZY_OR_NOW
11755 # ifdef RTLD_LAZY
11756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11757 # else
11758 # ifdef DL_LAZY
11759 # define LT_DLLAZY_OR_NOW DL_LAZY
11760 # else
11761 # ifdef RTLD_NOW
11762 # define LT_DLLAZY_OR_NOW RTLD_NOW
11763 # else
11764 # ifdef DL_NOW
11765 # define LT_DLLAZY_OR_NOW DL_NOW
11766 # else
11767 # define LT_DLLAZY_OR_NOW 0
11768 # endif
11769 # endif
11770 # endif
11771 # endif
11772 #endif
11773
11774 /* When -fvisibility=hidden is used, assume the code has been annotated
11775 correspondingly for the symbols needed. */
11776 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777 int fnord () __attribute__((visibility("default")));
11778 #endif
11779
11780 int fnord () { return 42; }
11781 int main ()
11782 {
11783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784 int status = $lt_dlunknown;
11785
11786 if (self)
11787 {
11788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11789 else
11790 {
11791 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11792 else puts (dlerror ());
11793 }
11794 /* dlclose (self); */
11795 }
11796 else
11797 puts (dlerror ());
11798
11799 return status;
11800 }
11801 _LT_EOF
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803 (eval $ac_link) 2>&5
11804 ac_status=$?
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11807 (./conftest; exit; ) >&5 2>/dev/null
11808 lt_status=$?
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11812 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11813 esac
11814 else :
11815 # compilation failed
11816 lt_cv_dlopen_self_static=no
11817 fi
11818 fi
11819 rm -fr conftest*
11820
11821
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11824 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11825 fi
11826
11827 CPPFLAGS=$save_CPPFLAGS
11828 LDFLAGS=$save_LDFLAGS
11829 LIBS=$save_LIBS
11830 ;;
11831 esac
11832
11833 case $lt_cv_dlopen_self in
11834 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11835 *) enable_dlopen_self=unknown ;;
11836 esac
11837
11838 case $lt_cv_dlopen_self_static in
11839 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11840 *) enable_dlopen_self_static=unknown ;;
11841 esac
11842 fi
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860 striplib=
11861 old_striplib=
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11863 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11864 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11865 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11866 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11868 $as_echo "yes" >&6; }
11869 else
11870 # FIXME - insert some real tests, host_os isn't really good enough
11871 case $host_os in
11872 darwin*)
11873 if test -n "$STRIP"; then
11874 striplib="$STRIP -x"
11875 old_striplib="$STRIP -S"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11877 $as_echo "yes" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882 ;;
11883 *)
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 ;;
11887 esac
11888 fi
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901 # Report what library types will actually be built
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11903 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11905 $as_echo "$can_build_shared" >&6; }
11906
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11908 $as_echo_n "checking whether to build shared libraries... " >&6; }
11909 test no = "$can_build_shared" && enable_shared=no
11910
11911 # On AIX, shared libraries and static libraries use the same namespace, and
11912 # are all built from PIC.
11913 case $host_os in
11914 aix3*)
11915 test yes = "$enable_shared" && enable_static=no
11916 if test -n "$RANLIB"; then
11917 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11918 postinstall_cmds='$RANLIB $lib'
11919 fi
11920 ;;
11921
11922 aix[4-9]*)
11923 if test ia64 != "$host_cpu"; then
11924 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11925 yes,aix,yes) ;; # shared object as lib.so file only
11926 yes,svr4,*) ;; # shared object as lib.so archive member only
11927 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11928 esac
11929 fi
11930 ;;
11931 esac
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11933 $as_echo "$enable_shared" >&6; }
11934
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11936 $as_echo_n "checking whether to build static libraries... " >&6; }
11937 # Make sure either enable_shared or enable_static is yes.
11938 test yes = "$enable_shared" || enable_static=yes
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11940 $as_echo "$enable_static" >&6; }
11941
11942
11943
11944
11945 fi
11946 ac_ext=c
11947 ac_cpp='$CPP $CPPFLAGS'
11948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11951
11952 CC=$lt_save_CC
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968 ac_config_commands="$ac_config_commands libtool"
11969
11970
11971
11972
11973 # Only expand once:
11974
11975
11976
11977 ac_ext=cpp
11978 ac_cpp='$CXXCPP $CPPFLAGS'
11979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11982 if test -z "$CXX"; then
11983 if test -n "$CCC"; then
11984 CXX=$CCC
11985 else
11986 if test -n "$ac_tool_prefix"; then
11987 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11988 do
11989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if ${ac_cv_prog_CXX+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 if test -n "$CXX"; then
11997 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12009 fi
12010 done
12011 done
12012 IFS=$as_save_IFS
12013
12014 fi
12015 fi
12016 CXX=$ac_cv_prog_CXX
12017 if test -n "$CXX"; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12019 $as_echo "$CXX" >&6; }
12020 else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023 fi
12024
12025
12026 test -n "$CXX" && break
12027 done
12028 fi
12029 if test -z "$CXX"; then
12030 ac_ct_CXX=$CXX
12031 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12032 do
12033 # Extract the first word of "$ac_prog", so it can be a program name with args.
12034 set dummy $ac_prog; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 if test -n "$ac_ct_CXX"; then
12041 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12042 else
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050 ac_cv_prog_ac_ct_CXX="$ac_prog"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12053 fi
12054 done
12055 done
12056 IFS=$as_save_IFS
12057
12058 fi
12059 fi
12060 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12061 if test -n "$ac_ct_CXX"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12063 $as_echo "$ac_ct_CXX" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068
12069
12070 test -n "$ac_ct_CXX" && break
12071 done
12072
12073 if test "x$ac_ct_CXX" = x; then
12074 CXX="g++"
12075 else
12076 case $cross_compiling:$ac_tool_warned in
12077 yes:)
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12080 ac_tool_warned=yes ;;
12081 esac
12082 CXX=$ac_ct_CXX
12083 fi
12084 fi
12085
12086 fi
12087 fi
12088 # Provide some information about the compiler.
12089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12090 set X $ac_compile
12091 ac_compiler=$2
12092 for ac_option in --version -v -V -qversion; do
12093 { { ac_try="$ac_compiler $ac_option >&5"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097 esac
12098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12099 $as_echo "$ac_try_echo"; } >&5
12100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12101 ac_status=$?
12102 if test -s conftest.err; then
12103 sed '10a\
12104 ... rest of stderr output deleted ...
12105 10q' conftest.err >conftest.er1
12106 cat conftest.er1 >&5
12107 fi
12108 rm -f conftest.er1 conftest.err
12109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110 test $ac_status = 0; }
12111 done
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12114 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12115 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120
12121 int
12122 main ()
12123 {
12124 #ifndef __GNUC__
12125 choke me
12126 #endif
12127
12128 ;
12129 return 0;
12130 }
12131 _ACEOF
12132 if ac_fn_cxx_try_compile "$LINENO"; then :
12133 ac_compiler_gnu=yes
12134 else
12135 ac_compiler_gnu=no
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12139
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12142 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12143 if test $ac_compiler_gnu = yes; then
12144 GXX=yes
12145 else
12146 GXX=
12147 fi
12148 ac_test_CXXFLAGS=${CXXFLAGS+set}
12149 ac_save_CXXFLAGS=$CXXFLAGS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12151 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12152 if ${ac_cv_prog_cxx_g+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12156 ac_cxx_werror_flag=yes
12157 ac_cv_prog_cxx_g=no
12158 CXXFLAGS="-g"
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161
12162 int
12163 main ()
12164 {
12165
12166 ;
12167 return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_cxx_try_compile "$LINENO"; then :
12171 ac_cv_prog_cxx_g=yes
12172 else
12173 CXXFLAGS=""
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 int
12178 main ()
12179 {
12180
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_cxx_try_compile "$LINENO"; then :
12186
12187 else
12188 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12189 CXXFLAGS="-g"
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192
12193 int
12194 main ()
12195 {
12196
12197 ;
12198 return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_cxx_try_compile "$LINENO"; then :
12202 ac_cv_prog_cxx_g=yes
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12212 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12213 if test "$ac_test_CXXFLAGS" = set; then
12214 CXXFLAGS=$ac_save_CXXFLAGS
12215 elif test $ac_cv_prog_cxx_g = yes; then
12216 if test "$GXX" = yes; then
12217 CXXFLAGS="-g -O2"
12218 else
12219 CXXFLAGS="-g"
12220 fi
12221 else
12222 if test "$GXX" = yes; then
12223 CXXFLAGS="-O2"
12224 else
12225 CXXFLAGS=
12226 fi
12227 fi
12228 ac_ext=c
12229 ac_cpp='$CPP $CPPFLAGS'
12230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12233
12234 depcc="$CXX" am_compiler_list=
12235
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12237 $as_echo_n "checking dependency style of $depcc... " >&6; }
12238 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12242 # We make a subdir and do the tests there. Otherwise we can end up
12243 # making bogus files that we don't know about and never remove. For
12244 # instance it was reported that on HP-UX the gcc test will end up
12245 # making a dummy file named 'D' -- because '-MD' means "put the output
12246 # in D".
12247 rm -rf conftest.dir
12248 mkdir conftest.dir
12249 # Copy depcomp to subdir because otherwise we won't find it if we're
12250 # using a relative directory.
12251 cp "$am_depcomp" conftest.dir
12252 cd conftest.dir
12253 # We will build objects and dependencies in a subdirectory because
12254 # it helps to detect inapplicable dependency modes. For instance
12255 # both Tru64's cc and ICC support -MD to output dependencies as a
12256 # side effect of compilation, but ICC will put the dependencies in
12257 # the current directory while Tru64 will put them in the object
12258 # directory.
12259 mkdir sub
12260
12261 am_cv_CXX_dependencies_compiler_type=none
12262 if test "$am_compiler_list" = ""; then
12263 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12264 fi
12265 am__universal=false
12266 case " $depcc " in #(
12267 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12268 esac
12269
12270 for depmode in $am_compiler_list; do
12271 # Setup a source with many dependencies, because some compilers
12272 # like to wrap large dependency lists on column 80 (with \), and
12273 # we should not choose a depcomp mode which is confused by this.
12274 #
12275 # We need to recreate these files for each test, as the compiler may
12276 # overwrite some of them when testing with obscure command lines.
12277 # This happens at least with the AIX C compiler.
12278 : > sub/conftest.c
12279 for i in 1 2 3 4 5 6; do
12280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12281 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12282 # Solaris 10 /bin/sh.
12283 echo '/* dummy */' > sub/conftst$i.h
12284 done
12285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12286
12287 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12288 # mode. It turns out that the SunPro C++ compiler does not properly
12289 # handle '-M -o', and we need to detect this. Also, some Intel
12290 # versions had trouble with output in subdirs.
12291 am__obj=sub/conftest.${OBJEXT-o}
12292 am__minus_obj="-o $am__obj"
12293 case $depmode in
12294 gcc)
12295 # This depmode causes a compiler race in universal mode.
12296 test "$am__universal" = false || continue
12297 ;;
12298 nosideeffect)
12299 # After this tag, mechanisms are not by side-effect, so they'll
12300 # only be used when explicitly requested.
12301 if test "x$enable_dependency_tracking" = xyes; then
12302 continue
12303 else
12304 break
12305 fi
12306 ;;
12307 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12308 # This compiler won't grok '-c -o', but also, the minuso test has
12309 # not run yet. These depmodes are late enough in the game, and
12310 # so weak that their functioning should not be impacted.
12311 am__obj=conftest.${OBJEXT-o}
12312 am__minus_obj=
12313 ;;
12314 none) break ;;
12315 esac
12316 if depmode=$depmode \
12317 source=sub/conftest.c object=$am__obj \
12318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12319 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12320 >/dev/null 2>conftest.err &&
12321 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12322 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12323 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12324 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12325 # icc doesn't choke on unknown options, it will just issue warnings
12326 # or remarks (even with -Werror). So we grep stderr for any message
12327 # that says an option was ignored or not supported.
12328 # When given -MP, icc 7.0 and 7.1 complain thusly:
12329 # icc: Command line warning: ignoring option '-M'; no argument required
12330 # The diagnosis changed in icc 8.0:
12331 # icc: Command line remark: option '-MP' not supported
12332 if (grep 'ignoring option' conftest.err ||
12333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12334 am_cv_CXX_dependencies_compiler_type=$depmode
12335 break
12336 fi
12337 fi
12338 done
12339
12340 cd ..
12341 rm -rf conftest.dir
12342 else
12343 am_cv_CXX_dependencies_compiler_type=none
12344 fi
12345
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12348 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12349 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12350
12351 if
12352 test "x$enable_dependency_tracking" != xno \
12353 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12354 am__fastdepCXX_TRUE=
12355 am__fastdepCXX_FALSE='#'
12356 else
12357 am__fastdepCXX_TRUE='#'
12358 am__fastdepCXX_FALSE=
12359 fi
12360
12361
12362
12363
12364 func_stripname_cnf ()
12365 {
12366 case $2 in
12367 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12368 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12369 esac
12370 } # func_stripname_cnf
12371
12372 if test -n "$CXX" && ( test no != "$CXX" &&
12373 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12374 (test g++ != "$CXX"))); then
12375 ac_ext=cpp
12376 ac_cpp='$CXXCPP $CPPFLAGS'
12377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12381 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12382 if test -z "$CXXCPP"; then
12383 if ${ac_cv_prog_CXXCPP+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 # Double quotes because CXXCPP needs to be expanded
12387 for CXXCPP in "$CXX -E" "/lib/cpp"
12388 do
12389 ac_preproc_ok=false
12390 for ac_cxx_preproc_warn_flag in '' yes
12391 do
12392 # Use a header file that comes with gcc, so configuring glibc
12393 # with a fresh cross-compiler works.
12394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12395 # <limits.h> exists even on freestanding compilers.
12396 # On the NeXT, cc -E runs the code through the compiler's parser,
12397 # not just through cpp. "Syntax error" is here to catch this case.
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #ifdef __STDC__
12401 # include <limits.h>
12402 #else
12403 # include <assert.h>
12404 #endif
12405 Syntax error
12406 _ACEOF
12407 if ac_fn_cxx_try_cpp "$LINENO"; then :
12408
12409 else
12410 # Broken: fails on valid input.
12411 continue
12412 fi
12413 rm -f conftest.err conftest.i conftest.$ac_ext
12414
12415 # OK, works on sane cases. Now check whether nonexistent headers
12416 # can be detected and how.
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 #include <ac_nonexistent.h>
12420 _ACEOF
12421 if ac_fn_cxx_try_cpp "$LINENO"; then :
12422 # Broken: success on invalid input.
12423 continue
12424 else
12425 # Passes both tests.
12426 ac_preproc_ok=:
12427 break
12428 fi
12429 rm -f conftest.err conftest.i conftest.$ac_ext
12430
12431 done
12432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12433 rm -f conftest.i conftest.err conftest.$ac_ext
12434 if $ac_preproc_ok; then :
12435 break
12436 fi
12437
12438 done
12439 ac_cv_prog_CXXCPP=$CXXCPP
12440
12441 fi
12442 CXXCPP=$ac_cv_prog_CXXCPP
12443 else
12444 ac_cv_prog_CXXCPP=$CXXCPP
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12447 $as_echo "$CXXCPP" >&6; }
12448 ac_preproc_ok=false
12449 for ac_cxx_preproc_warn_flag in '' yes
12450 do
12451 # Use a header file that comes with gcc, so configuring glibc
12452 # with a fresh cross-compiler works.
12453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12454 # <limits.h> exists even on freestanding compilers.
12455 # On the NeXT, cc -E runs the code through the compiler's parser,
12456 # not just through cpp. "Syntax error" is here to catch this case.
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459 #ifdef __STDC__
12460 # include <limits.h>
12461 #else
12462 # include <assert.h>
12463 #endif
12464 Syntax error
12465 _ACEOF
12466 if ac_fn_cxx_try_cpp "$LINENO"; then :
12467
12468 else
12469 # Broken: fails on valid input.
12470 continue
12471 fi
12472 rm -f conftest.err conftest.i conftest.$ac_ext
12473
12474 # OK, works on sane cases. Now check whether nonexistent headers
12475 # can be detected and how.
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #include <ac_nonexistent.h>
12479 _ACEOF
12480 if ac_fn_cxx_try_cpp "$LINENO"; then :
12481 # Broken: success on invalid input.
12482 continue
12483 else
12484 # Passes both tests.
12485 ac_preproc_ok=:
12486 break
12487 fi
12488 rm -f conftest.err conftest.i conftest.$ac_ext
12489
12490 done
12491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12492 rm -f conftest.i conftest.err conftest.$ac_ext
12493 if $ac_preproc_ok; then :
12494
12495 else
12496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12498 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12499 See \`config.log' for more details" "$LINENO" 5; }
12500 fi
12501
12502 ac_ext=c
12503 ac_cpp='$CPP $CPPFLAGS'
12504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12507
12508 else
12509 _lt_caught_CXX_error=yes
12510 fi
12511
12512 ac_ext=cpp
12513 ac_cpp='$CXXCPP $CPPFLAGS'
12514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12517
12518 archive_cmds_need_lc_CXX=no
12519 allow_undefined_flag_CXX=
12520 always_export_symbols_CXX=no
12521 archive_expsym_cmds_CXX=
12522 compiler_needs_object_CXX=no
12523 export_dynamic_flag_spec_CXX=
12524 hardcode_direct_CXX=no
12525 hardcode_direct_absolute_CXX=no
12526 hardcode_libdir_flag_spec_CXX=
12527 hardcode_libdir_separator_CXX=
12528 hardcode_minus_L_CXX=no
12529 hardcode_shlibpath_var_CXX=unsupported
12530 hardcode_automatic_CXX=no
12531 inherit_rpath_CXX=no
12532 module_cmds_CXX=
12533 module_expsym_cmds_CXX=
12534 link_all_deplibs_CXX=unknown
12535 old_archive_cmds_CXX=$old_archive_cmds
12536 reload_flag_CXX=$reload_flag
12537 reload_cmds_CXX=$reload_cmds
12538 no_undefined_flag_CXX=
12539 whole_archive_flag_spec_CXX=
12540 enable_shared_with_static_runtimes_CXX=no
12541
12542 # Source file extension for C++ test sources.
12543 ac_ext=cpp
12544
12545 # Object file extension for compiled C++ test sources.
12546 objext=o
12547 objext_CXX=$objext
12548
12549 # No sense in running all these tests if we already determined that
12550 # the CXX compiler isn't working. Some variables (like enable_shared)
12551 # are currently assumed to apply to all compilers on this platform,
12552 # and will be corrupted by setting them based on a non-working compiler.
12553 if test yes != "$_lt_caught_CXX_error"; then
12554 # Code to be used in simple compile tests
12555 lt_simple_compile_test_code="int some_variable = 0;"
12556
12557 # Code to be used in simple link tests
12558 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12559
12560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12561
12562
12563
12564
12565
12566
12567 # If no C compiler was specified, use CC.
12568 LTCC=${LTCC-"$CC"}
12569
12570 # If no C compiler flags were specified, use CFLAGS.
12571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12572
12573 # Allow CC to be a program name with arguments.
12574 compiler=$CC
12575
12576
12577 # save warnings/boilerplate of simple test code
12578 ac_outfile=conftest.$ac_objext
12579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12581 _lt_compiler_boilerplate=`cat conftest.err`
12582 $RM conftest*
12583
12584 ac_outfile=conftest.$ac_objext
12585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12587 _lt_linker_boilerplate=`cat conftest.err`
12588 $RM -r conftest*
12589
12590
12591 # Allow CC to be a program name with arguments.
12592 lt_save_CC=$CC
12593 lt_save_CFLAGS=$CFLAGS
12594 lt_save_LD=$LD
12595 lt_save_GCC=$GCC
12596 GCC=$GXX
12597 lt_save_with_gnu_ld=$with_gnu_ld
12598 lt_save_path_LD=$lt_cv_path_LD
12599 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12600 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12601 else
12602 $as_unset lt_cv_prog_gnu_ld
12603 fi
12604 if test -n "${lt_cv_path_LDCXX+set}"; then
12605 lt_cv_path_LD=$lt_cv_path_LDCXX
12606 else
12607 $as_unset lt_cv_path_LD
12608 fi
12609 test -z "${LDCXX+set}" || LD=$LDCXX
12610 CC=${CXX-"c++"}
12611 CFLAGS=$CXXFLAGS
12612 compiler=$CC
12613 compiler_CXX=$CC
12614 func_cc_basename $compiler
12615 cc_basename=$func_cc_basename_result
12616
12617
12618 if test -n "$compiler"; then
12619 # We don't want -fno-exception when compiling C++ code, so set the
12620 # no_builtin_flag separately
12621 if test yes = "$GXX"; then
12622 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12623 else
12624 lt_prog_compiler_no_builtin_flag_CXX=
12625 fi
12626
12627 if test yes = "$GXX"; then
12628 # Set up default GNU C++ configuration
12629
12630
12631
12632 # Check whether --with-gnu-ld was given.
12633 if test "${with_gnu_ld+set}" = set; then :
12634 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12635 else
12636 with_gnu_ld=no
12637 fi
12638
12639 ac_prog=ld
12640 if test yes = "$GCC"; then
12641 # Check if gcc -print-prog-name=ld gives a path.
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12643 $as_echo_n "checking for ld used by $CC... " >&6; }
12644 case $host in
12645 *-*-mingw*)
12646 # gcc leaves a trailing carriage return, which upsets mingw
12647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12648 *)
12649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12650 esac
12651 case $ac_prog in
12652 # Accept absolute paths.
12653 [\\/]* | ?:[\\/]*)
12654 re_direlt='/[^/][^/]*/\.\./'
12655 # Canonicalize the pathname of ld
12656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12659 done
12660 test -z "$LD" && LD=$ac_prog
12661 ;;
12662 "")
12663 # If it fails, then pretend we aren't using GCC.
12664 ac_prog=ld
12665 ;;
12666 *)
12667 # If it is relative, then search for the first ld in PATH.
12668 with_gnu_ld=unknown
12669 ;;
12670 esac
12671 elif test yes = "$with_gnu_ld"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12673 $as_echo_n "checking for GNU ld... " >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12676 $as_echo_n "checking for non-GNU ld... " >&6; }
12677 fi
12678 if ${lt_cv_path_LD+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 if test -z "$LD"; then
12682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12683 for ac_dir in $PATH; do
12684 IFS=$lt_save_ifs
12685 test -z "$ac_dir" && ac_dir=.
12686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12687 lt_cv_path_LD=$ac_dir/$ac_prog
12688 # Check to see if the program is GNU ld. I'd rather use --version,
12689 # but apparently some variants of GNU ld only accept -v.
12690 # Break only if it was the GNU/non-GNU ld that we prefer.
12691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12692 *GNU* | *'with BFD'*)
12693 test no != "$with_gnu_ld" && break
12694 ;;
12695 *)
12696 test yes != "$with_gnu_ld" && break
12697 ;;
12698 esac
12699 fi
12700 done
12701 IFS=$lt_save_ifs
12702 else
12703 lt_cv_path_LD=$LD # Let the user override the test with a path.
12704 fi
12705 fi
12706
12707 LD=$lt_cv_path_LD
12708 if test -n "$LD"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12710 $as_echo "$LD" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 fi
12715 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12717 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12718 if ${lt_cv_prog_gnu_ld+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12722 case `$LD -v 2>&1 </dev/null` in
12723 *GNU* | *'with BFD'*)
12724 lt_cv_prog_gnu_ld=yes
12725 ;;
12726 *)
12727 lt_cv_prog_gnu_ld=no
12728 ;;
12729 esac
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12732 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12733 with_gnu_ld=$lt_cv_prog_gnu_ld
12734
12735
12736
12737
12738
12739
12740
12741 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12742 # archiving commands below assume that GNU ld is being used.
12743 if test yes = "$with_gnu_ld"; then
12744 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12745 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'
12746
12747 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12748 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12749
12750 # If archive_cmds runs LD, not CC, wlarc should be empty
12751 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12752 # investigate it a little bit more. (MM)
12753 wlarc='$wl'
12754
12755 # ancient GNU ld didn't support --whole-archive et. al.
12756 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12757 $GREP 'no-whole-archive' > /dev/null; then
12758 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12759 else
12760 whole_archive_flag_spec_CXX=
12761 fi
12762 else
12763 with_gnu_ld=no
12764 wlarc=
12765
12766 # A generic and very simple default shared library creation
12767 # command for GNU C++ for the case where it uses the native
12768 # linker, instead of GNU ld. If possible, this setting should
12769 # overridden to take advantage of the native linker features on
12770 # the platform it is being used on.
12771 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12772 fi
12773
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12778
12779 else
12780 GXX=no
12781 with_gnu_ld=no
12782 wlarc=
12783 fi
12784
12785 # PORTME: fill in a description of your system's C++ link characteristics
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12788 ld_shlibs_CXX=yes
12789 case $host_os in
12790 aix3*)
12791 # FIXME: insert proper C++ library support
12792 ld_shlibs_CXX=no
12793 ;;
12794 aix[4-9]*)
12795 if test ia64 = "$host_cpu"; then
12796 # On IA64, the linker does run time linking by default, so we don't
12797 # have to do anything special.
12798 aix_use_runtimelinking=no
12799 exp_sym_flag='-Bexport'
12800 no_entry_flag=
12801 else
12802 aix_use_runtimelinking=no
12803
12804 # Test if we are trying to use run time linking or normal
12805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12806 # have runtime linking enabled, and use it for executables.
12807 # For shared libraries, we enable/disable runtime linking
12808 # depending on the kind of the shared library created -
12809 # when "with_aix_soname,aix_use_runtimelinking" is:
12810 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12811 # "aix,yes" lib.so shared, rtl:yes, for executables
12812 # lib.a static archive
12813 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12814 # lib.a(lib.so.V) shared, rtl:no, for executables
12815 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12816 # lib.a(lib.so.V) shared, rtl:no
12817 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12818 # lib.a static archive
12819 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12820 for ld_flag in $LDFLAGS; do
12821 case $ld_flag in
12822 *-brtl*)
12823 aix_use_runtimelinking=yes
12824 break
12825 ;;
12826 esac
12827 done
12828 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12829 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12830 # so we don't have lib.a shared libs to link our executables.
12831 # We have to force runtime linking in this case.
12832 aix_use_runtimelinking=yes
12833 LDFLAGS="$LDFLAGS -Wl,-brtl"
12834 fi
12835 ;;
12836 esac
12837
12838 exp_sym_flag='-bexport'
12839 no_entry_flag='-bnoentry'
12840 fi
12841
12842 # When large executables or shared objects are built, AIX ld can
12843 # have problems creating the table of contents. If linking a library
12844 # or program results in "error TOC overflow" add -mminimal-toc to
12845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12847
12848 archive_cmds_CXX=''
12849 hardcode_direct_CXX=yes
12850 hardcode_direct_absolute_CXX=yes
12851 hardcode_libdir_separator_CXX=':'
12852 link_all_deplibs_CXX=yes
12853 file_list_spec_CXX='$wl-f,'
12854 case $with_aix_soname,$aix_use_runtimelinking in
12855 aix,*) ;; # no import file
12856 svr4,* | *,yes) # use import file
12857 # The Import File defines what to hardcode.
12858 hardcode_direct_CXX=no
12859 hardcode_direct_absolute_CXX=no
12860 ;;
12861 esac
12862
12863 if test yes = "$GXX"; then
12864 case $host_os in aix4.[012]|aix4.[012].*)
12865 # We only want to do this on AIX 4.2 and lower, the check
12866 # below for broken collect2 doesn't work under 4.3+
12867 collect2name=`$CC -print-prog-name=collect2`
12868 if test -f "$collect2name" &&
12869 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12870 then
12871 # We have reworked collect2
12872 :
12873 else
12874 # We have old collect2
12875 hardcode_direct_CXX=unsupported
12876 # It fails to find uninstalled libraries when the uninstalled
12877 # path is not listed in the libpath. Setting hardcode_minus_L
12878 # to unsupported forces relinking
12879 hardcode_minus_L_CXX=yes
12880 hardcode_libdir_flag_spec_CXX='-L$libdir'
12881 hardcode_libdir_separator_CXX=
12882 fi
12883 esac
12884 shared_flag='-shared'
12885 if test yes = "$aix_use_runtimelinking"; then
12886 shared_flag=$shared_flag' $wl-G'
12887 fi
12888 # Need to ensure runtime linking is disabled for the traditional
12889 # shared library, or the linker may eventually find shared libraries
12890 # /with/ Import File - we do not want to mix them.
12891 shared_flag_aix='-shared'
12892 shared_flag_svr4='-shared $wl-G'
12893 else
12894 # not using gcc
12895 if test ia64 = "$host_cpu"; then
12896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12897 # chokes on -Wl,-G. The following line is correct:
12898 shared_flag='-G'
12899 else
12900 if test yes = "$aix_use_runtimelinking"; then
12901 shared_flag='$wl-G'
12902 else
12903 shared_flag='$wl-bM:SRE'
12904 fi
12905 shared_flag_aix='$wl-bM:SRE'
12906 shared_flag_svr4='$wl-G'
12907 fi
12908 fi
12909
12910 export_dynamic_flag_spec_CXX='$wl-bexpall'
12911 # It seems that -bexpall does not export symbols beginning with
12912 # underscore (_), so it is better to generate a list of symbols to
12913 # export.
12914 always_export_symbols_CXX=yes
12915 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12916 # Warning - without using the other runtime loading flags (-brtl),
12917 # -berok will link without error, but may produce a broken library.
12918 # The "-G" linker flag allows undefined symbols.
12919 no_undefined_flag_CXX='-bernotok'
12920 # Determine the default libpath from the value encoded in an empty
12921 # executable.
12922 if test set = "${lt_cv_aix_libpath+set}"; then
12923 aix_libpath=$lt_cv_aix_libpath
12924 else
12925 if ${lt_cv_aix_libpath__CXX+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930
12931 int
12932 main ()
12933 {
12934
12935 ;
12936 return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_cxx_try_link "$LINENO"; then :
12940
12941 lt_aix_libpath_sed='
12942 /Import File Strings/,/^$/ {
12943 /^0/ {
12944 s/^0 *\([^ ]*\) *$/\1/
12945 p
12946 }
12947 }'
12948 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12949 # Check for a 64-bit object if we didn't find anything.
12950 if test -z "$lt_cv_aix_libpath__CXX"; then
12951 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12952 fi
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 if test -z "$lt_cv_aix_libpath__CXX"; then
12957 lt_cv_aix_libpath__CXX=/usr/lib:/lib
12958 fi
12959
12960 fi
12961
12962 aix_libpath=$lt_cv_aix_libpath__CXX
12963 fi
12964
12965 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12966
12967 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12968 else
12969 if test ia64 = "$host_cpu"; then
12970 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
12971 allow_undefined_flag_CXX="-z nodefs"
12972 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"
12973 else
12974 # Determine the default libpath from the value encoded in an
12975 # empty executable.
12976 if test set = "${lt_cv_aix_libpath+set}"; then
12977 aix_libpath=$lt_cv_aix_libpath
12978 else
12979 if ${lt_cv_aix_libpath__CXX+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984
12985 int
12986 main ()
12987 {
12988
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_cxx_try_link "$LINENO"; then :
12994
12995 lt_aix_libpath_sed='
12996 /Import File Strings/,/^$/ {
12997 /^0/ {
12998 s/^0 *\([^ ]*\) *$/\1/
12999 p
13000 }
13001 }'
13002 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003 # Check for a 64-bit object if we didn't find anything.
13004 if test -z "$lt_cv_aix_libpath__CXX"; then
13005 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006 fi
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 if test -z "$lt_cv_aix_libpath__CXX"; then
13011 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13012 fi
13013
13014 fi
13015
13016 aix_libpath=$lt_cv_aix_libpath__CXX
13017 fi
13018
13019 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13020 # Warning - without using the other run time loading flags,
13021 # -berok will link without error, but may produce a broken library.
13022 no_undefined_flag_CXX=' $wl-bernotok'
13023 allow_undefined_flag_CXX=' $wl-berok'
13024 if test yes = "$with_gnu_ld"; then
13025 # We only use this code for GNU lds that support --whole-archive.
13026 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13027 else
13028 # Exported symbols can be pulled into shared objects from archives
13029 whole_archive_flag_spec_CXX='$convenience'
13030 fi
13031 archive_cmds_need_lc_CXX=yes
13032 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13033 # -brtl affects multiple linker settings, -berok does not and is overridden later
13034 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13035 if test svr4 != "$with_aix_soname"; then
13036 # This is similar to how AIX traditionally builds its shared
13037 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13038 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13039 fi
13040 if test aix != "$with_aix_soname"; then
13041 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13042 else
13043 # used by -dlpreopen to get the symbols
13044 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13045 fi
13046 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13047 fi
13048 fi
13049 ;;
13050
13051 beos*)
13052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13053 allow_undefined_flag_CXX=unsupported
13054 # Joseph Beckenbach <[email protected]> says some releases of gcc
13055 # support --undefined. This deserves some investigation. FIXME
13056 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13057 else
13058 ld_shlibs_CXX=no
13059 fi
13060 ;;
13061
13062 chorus*)
13063 case $cc_basename in
13064 *)
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13067 ;;
13068 esac
13069 ;;
13070
13071 cygwin* | mingw* | pw32* | cegcc*)
13072 case $GXX,$cc_basename in
13073 ,cl* | no,cl*)
13074 # Native MSVC
13075 # hardcode_libdir_flag_spec is actually meaningless, as there is
13076 # no search path for DLLs.
13077 hardcode_libdir_flag_spec_CXX=' '
13078 allow_undefined_flag_CXX=unsupported
13079 always_export_symbols_CXX=yes
13080 file_list_spec_CXX='@'
13081 # Tell ltmain to make .lib files, not .a files.
13082 libext=lib
13083 # Tell ltmain to make .dll files, not .so files.
13084 shrext_cmds=.dll
13085 # FIXME: Setting linknames here is a bad hack.
13086 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13087 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13088 cp "$export_symbols" "$output_objdir/$soname.def";
13089 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13090 else
13091 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13092 fi~
13093 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13094 linknames='
13095 # The linker will not automatically build a static lib if we build a DLL.
13096 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13097 enable_shared_with_static_runtimes_CXX=yes
13098 # Don't use ranlib
13099 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13100 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13101 lt_tool_outputfile="@TOOL_OUTPUT@"~
13102 case $lt_outputfile in
13103 *.exe|*.EXE) ;;
13104 *)
13105 lt_outputfile=$lt_outputfile.exe
13106 lt_tool_outputfile=$lt_tool_outputfile.exe
13107 ;;
13108 esac~
13109 func_to_tool_file "$lt_outputfile"~
13110 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13111 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13112 $RM "$lt_outputfile.manifest";
13113 fi'
13114 ;;
13115 *)
13116 # g++
13117 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13118 # as there is no search path for DLLs.
13119 hardcode_libdir_flag_spec_CXX='-L$libdir'
13120 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13121 allow_undefined_flag_CXX=unsupported
13122 always_export_symbols_CXX=no
13123 enable_shared_with_static_runtimes_CXX=yes
13124
13125 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13126 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'
13127 # If the export-symbols file already is a .def file, use it as
13128 # is; otherwise, prepend EXPORTS...
13129 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13130 cp $export_symbols $output_objdir/$soname.def;
13131 else
13132 echo EXPORTS > $output_objdir/$soname.def;
13133 cat $export_symbols >> $output_objdir/$soname.def;
13134 fi~
13135 $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'
13136 else
13137 ld_shlibs_CXX=no
13138 fi
13139 ;;
13140 esac
13141 ;;
13142 darwin* | rhapsody*)
13143
13144
13145 archive_cmds_need_lc_CXX=no
13146 hardcode_direct_CXX=no
13147 hardcode_automatic_CXX=yes
13148 hardcode_shlibpath_var_CXX=unsupported
13149 if test yes = "$lt_cv_ld_force_load"; then
13150 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\"`'
13151
13152 else
13153 whole_archive_flag_spec_CXX=''
13154 fi
13155 link_all_deplibs_CXX=yes
13156 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13157 case $cc_basename in
13158 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13159 *) _lt_dar_can_shared=$GCC ;;
13160 esac
13161 if test yes = "$_lt_dar_can_shared"; then
13162 output_verbose_link_cmd=func_echo_all
13163 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"
13164 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13165 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"
13166 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"
13167 if test yes != "$lt_cv_apple_cc_single_mod"; then
13168 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"
13169 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"
13170 fi
13171
13172 else
13173 ld_shlibs_CXX=no
13174 fi
13175
13176 ;;
13177
13178 os2*)
13179 hardcode_libdir_flag_spec_CXX='-L$libdir'
13180 hardcode_minus_L_CXX=yes
13181 allow_undefined_flag_CXX=unsupported
13182 shrext_cmds=.dll
13183 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13184 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13185 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13186 $ECHO EXPORTS >> $output_objdir/$libname.def~
13187 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13188 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13189 emximp -o $lib $output_objdir/$libname.def'
13190 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13191 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13192 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13193 $ECHO EXPORTS >> $output_objdir/$libname.def~
13194 prefix_cmds="$SED"~
13195 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13196 prefix_cmds="$prefix_cmds -e 1d";
13197 fi~
13198 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13199 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13200 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13201 emximp -o $lib $output_objdir/$libname.def'
13202 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13203 enable_shared_with_static_runtimes_CXX=yes
13204 ;;
13205
13206 dgux*)
13207 case $cc_basename in
13208 ec++*)
13209 # FIXME: insert proper C++ library support
13210 ld_shlibs_CXX=no
13211 ;;
13212 ghcx*)
13213 # Green Hills C++ Compiler
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 *)
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 ;;
13221 esac
13222 ;;
13223
13224 freebsd2.*)
13225 # C++ shared libraries reported to be fairly broken before
13226 # switch to ELF
13227 ld_shlibs_CXX=no
13228 ;;
13229
13230 freebsd-elf*)
13231 archive_cmds_need_lc_CXX=no
13232 ;;
13233
13234 freebsd* | dragonfly*)
13235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13236 # conventions
13237 ld_shlibs_CXX=yes
13238 ;;
13239
13240 haiku*)
13241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13242 link_all_deplibs_CXX=yes
13243 ;;
13244
13245 hpux9*)
13246 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13247 hardcode_libdir_separator_CXX=:
13248 export_dynamic_flag_spec_CXX='$wl-E'
13249 hardcode_direct_CXX=yes
13250 hardcode_minus_L_CXX=yes # Not in the search PATH,
13251 # but as the default
13252 # location of the library.
13253
13254 case $cc_basename in
13255 CC*)
13256 # FIXME: insert proper C++ library support
13257 ld_shlibs_CXX=no
13258 ;;
13259 aCC*)
13260 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 #
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13268 # dependencies.
13269 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"'
13270 ;;
13271 *)
13272 if test yes = "$GXX"; then
13273 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13274 else
13275 # FIXME: insert proper C++ library support
13276 ld_shlibs_CXX=no
13277 fi
13278 ;;
13279 esac
13280 ;;
13281
13282 hpux10*|hpux11*)
13283 if test no = "$with_gnu_ld"; then
13284 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13285 hardcode_libdir_separator_CXX=:
13286
13287 case $host_cpu in
13288 hppa*64*|ia64*)
13289 ;;
13290 *)
13291 export_dynamic_flag_spec_CXX='$wl-E'
13292 ;;
13293 esac
13294 fi
13295 case $host_cpu in
13296 hppa*64*|ia64*)
13297 hardcode_direct_CXX=no
13298 hardcode_shlibpath_var_CXX=no
13299 ;;
13300 *)
13301 hardcode_direct_CXX=yes
13302 hardcode_direct_absolute_CXX=yes
13303 hardcode_minus_L_CXX=yes # Not in the search PATH,
13304 # but as the default
13305 # location of the library.
13306 ;;
13307 esac
13308
13309 case $cc_basename in
13310 CC*)
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13313 ;;
13314 aCC*)
13315 case $host_cpu in
13316 hppa*64*)
13317 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13318 ;;
13319 ia64*)
13320 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321 ;;
13322 *)
13323 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13324 ;;
13325 esac
13326 # Commands to make compiler produce verbose output that lists
13327 # what "hidden" libraries, object files and flags are used when
13328 # linking a shared library.
13329 #
13330 # There doesn't appear to be a way to prevent this compiler from
13331 # explicitly linking system object files so we need to strip them
13332 # from the output so that they don't get included in the library
13333 # dependencies.
13334 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"'
13335 ;;
13336 *)
13337 if test yes = "$GXX"; then
13338 if test no = "$with_gnu_ld"; then
13339 case $host_cpu in
13340 hppa*64*)
13341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13342 ;;
13343 ia64*)
13344 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 ;;
13346 *)
13347 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'
13348 ;;
13349 esac
13350 fi
13351 else
13352 # FIXME: insert proper C++ library support
13353 ld_shlibs_CXX=no
13354 fi
13355 ;;
13356 esac
13357 ;;
13358
13359 interix[3-9]*)
13360 hardcode_direct_CXX=no
13361 hardcode_shlibpath_var_CXX=no
13362 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13363 export_dynamic_flag_spec_CXX='$wl-E'
13364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13365 # Instead, shared libraries are loaded at an image base (0x10000000 by
13366 # default) and relocated if they conflict, which is a slow very memory
13367 # consuming and fragmenting process. To avoid this, we pick a random,
13368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13370 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'
13371 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'
13372 ;;
13373 irix5* | irix6*)
13374 case $cc_basename in
13375 CC*)
13376 # SGI C++
13377 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'
13378
13379 # Archives containing C++ object files must be created using
13380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13381 # necessary to make sure instantiated templates are included
13382 # in the archive.
13383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13384 ;;
13385 *)
13386 if test yes = "$GXX"; then
13387 if test no = "$with_gnu_ld"; then
13388 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'
13389 else
13390 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'
13391 fi
13392 fi
13393 link_all_deplibs_CXX=yes
13394 ;;
13395 esac
13396 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13397 hardcode_libdir_separator_CXX=:
13398 inherit_rpath_CXX=yes
13399 ;;
13400
13401 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13402 case $cc_basename in
13403 KCC*)
13404 # Kuck and Associates, Inc. (KAI) C++ Compiler
13405
13406 # KCC will only create a shared library if the output file
13407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13408 # to its proper name (with version) after linking.
13409 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'
13410 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'
13411 # Commands to make compiler produce verbose output that lists
13412 # what "hidden" libraries, object files and flags are used when
13413 # linking a shared library.
13414 #
13415 # There doesn't appear to be a way to prevent this compiler from
13416 # explicitly linking system object files so we need to strip them
13417 # from the output so that they don't get included in the library
13418 # dependencies.
13419 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"'
13420
13421 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13422 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13423
13424 # Archives containing C++ object files must be created using
13425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13427 ;;
13428 icpc* | ecpc* )
13429 # Intel C++
13430 with_gnu_ld=yes
13431 # version 8.0 and above of icpc choke on multiply defined symbols
13432 # if we add $predep_objects and $postdep_objects, however 7.1 and
13433 # earlier do not add the objects themselves.
13434 case `$CC -V 2>&1` in
13435 *"Version 7."*)
13436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13437 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'
13438 ;;
13439 *) # Version 8.0 or newer
13440 tmp_idyn=
13441 case $host_cpu in
13442 ia64*) tmp_idyn=' -i_dynamic';;
13443 esac
13444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13445 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'
13446 ;;
13447 esac
13448 archive_cmds_need_lc_CXX=no
13449 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13450 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13451 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13452 ;;
13453 pgCC* | pgcpp*)
13454 # Portland Group C++ compiler
13455 case `$CC -V` in
13456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13457 prelink_cmds_CXX='tpldir=Template.dir~
13458 rm -rf $tpldir~
13459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13460 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13461 old_archive_cmds_CXX='tpldir=Template.dir~
13462 rm -rf $tpldir~
13463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13465 $RANLIB $oldlib'
13466 archive_cmds_CXX='tpldir=Template.dir~
13467 rm -rf $tpldir~
13468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13470 archive_expsym_cmds_CXX='tpldir=Template.dir~
13471 rm -rf $tpldir~
13472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13473 $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'
13474 ;;
13475 *) # Version 6 and above use weak symbols
13476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13477 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'
13478 ;;
13479 esac
13480
13481 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13482 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13483 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'
13484 ;;
13485 cxx*)
13486 # Compaq C++
13487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13488 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'
13489
13490 runpath_var=LD_RUN_PATH
13491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13492 hardcode_libdir_separator_CXX=:
13493
13494 # Commands to make compiler produce verbose output that lists
13495 # what "hidden" libraries, object files and flags are used when
13496 # linking a shared library.
13497 #
13498 # There doesn't appear to be a way to prevent this compiler from
13499 # explicitly linking system object files so we need to strip them
13500 # from the output so that they don't get included in the library
13501 # dependencies.
13502 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'
13503 ;;
13504 xl* | mpixl* | bgxl*)
13505 # IBM XL 8.0 on PPC, with GNU ld
13506 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13507 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13509 if test yes = "$supports_anon_versioning"; then
13510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13512 echo "local: *; };" >> $output_objdir/$libname.ver~
13513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13514 fi
13515 ;;
13516 *)
13517 case `$CC -V 2>&1 | sed 5q` in
13518 *Sun\ C*)
13519 # Sun C++ 5.9
13520 no_undefined_flag_CXX=' -zdefs'
13521 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13522 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'
13523 hardcode_libdir_flag_spec_CXX='-R$libdir'
13524 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'
13525 compiler_needs_object_CXX=yes
13526
13527 # Not sure whether something based on
13528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13529 # would be better.
13530 output_verbose_link_cmd='func_echo_all'
13531
13532 # Archives containing C++ object files must be created using
13533 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13534 # necessary to make sure instantiated templates are included
13535 # in the archive.
13536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13537 ;;
13538 esac
13539 ;;
13540 esac
13541 ;;
13542
13543 lynxos*)
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 ;;
13547
13548 m88k*)
13549 # FIXME: insert proper C++ library support
13550 ld_shlibs_CXX=no
13551 ;;
13552
13553 mvs*)
13554 case $cc_basename in
13555 cxx*)
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13558 ;;
13559 *)
13560 # FIXME: insert proper C++ library support
13561 ld_shlibs_CXX=no
13562 ;;
13563 esac
13564 ;;
13565
13566 netbsd*)
13567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13569 wlarc=
13570 hardcode_libdir_flag_spec_CXX='-R$libdir'
13571 hardcode_direct_CXX=yes
13572 hardcode_shlibpath_var_CXX=no
13573 fi
13574 # Workaround some broken pre-1.5 toolchains
13575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13576 ;;
13577
13578 *nto* | *qnx*)
13579 ld_shlibs_CXX=yes
13580 ;;
13581
13582 openbsd* | bitrig*)
13583 if test -f /usr/libexec/ld.so; then
13584 hardcode_direct_CXX=yes
13585 hardcode_shlibpath_var_CXX=no
13586 hardcode_direct_absolute_CXX=yes
13587 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13588 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13590 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13591 export_dynamic_flag_spec_CXX='$wl-E'
13592 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13593 fi
13594 output_verbose_link_cmd=func_echo_all
13595 else
13596 ld_shlibs_CXX=no
13597 fi
13598 ;;
13599
13600 osf3* | osf4* | osf5*)
13601 case $cc_basename in
13602 KCC*)
13603 # Kuck and Associates, Inc. (KAI) C++ Compiler
13604
13605 # KCC will only create a shared library if the output file
13606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13607 # to its proper name (with version) after linking.
13608 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'
13609
13610 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13611 hardcode_libdir_separator_CXX=:
13612
13613 # Archives containing C++ object files must be created using
13614 # the KAI C++ compiler.
13615 case $host in
13616 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13617 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13618 esac
13619 ;;
13620 RCC*)
13621 # Rational C++ 2.4.1
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13624 ;;
13625 cxx*)
13626 case $host in
13627 osf3*)
13628 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13629 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'
13630 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13631 ;;
13632 *)
13633 allow_undefined_flag_CXX=' -expect_unresolved \*'
13634 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'
13635 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13636 echo "-hidden">> $lib.exp~
13637 $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~
13638 $RM $lib.exp'
13639 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13640 ;;
13641 esac
13642
13643 hardcode_libdir_separator_CXX=:
13644
13645 # Commands to make compiler produce verbose output that lists
13646 # what "hidden" libraries, object files and flags are used when
13647 # linking a shared library.
13648 #
13649 # There doesn't appear to be a way to prevent this compiler from
13650 # explicitly linking system object files so we need to strip them
13651 # from the output so that they don't get included in the library
13652 # dependencies.
13653 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"'
13654 ;;
13655 *)
13656 if test yes,no = "$GXX,$with_gnu_ld"; then
13657 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13658 case $host in
13659 osf3*)
13660 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'
13661 ;;
13662 *)
13663 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'
13664 ;;
13665 esac
13666
13667 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13668 hardcode_libdir_separator_CXX=:
13669
13670 # Commands to make compiler produce verbose output that lists
13671 # what "hidden" libraries, object files and flags are used when
13672 # linking a shared library.
13673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13674
13675 else
13676 # FIXME: insert proper C++ library support
13677 ld_shlibs_CXX=no
13678 fi
13679 ;;
13680 esac
13681 ;;
13682
13683 psos*)
13684 # FIXME: insert proper C++ library support
13685 ld_shlibs_CXX=no
13686 ;;
13687
13688 sunos4*)
13689 case $cc_basename in
13690 CC*)
13691 # Sun C++ 4.x
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
13695 lcc*)
13696 # Lucid
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 ;;
13700 *)
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 ;;
13704 esac
13705 ;;
13706
13707 solaris*)
13708 case $cc_basename in
13709 CC* | sunCC*)
13710 # Sun C++ 4.2, 5.x and Centerline C++
13711 archive_cmds_need_lc_CXX=yes
13712 no_undefined_flag_CXX=' -zdefs'
13713 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13714 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13715 $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'
13716
13717 hardcode_libdir_flag_spec_CXX='-R$libdir'
13718 hardcode_shlibpath_var_CXX=no
13719 case $host_os in
13720 solaris2.[0-5] | solaris2.[0-5].*) ;;
13721 *)
13722 # The compiler driver will combine and reorder linker options,
13723 # but understands '-z linker_flag'.
13724 # Supported since Solaris 2.6 (maybe 2.5.1?)
13725 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13726 ;;
13727 esac
13728 link_all_deplibs_CXX=yes
13729
13730 output_verbose_link_cmd='func_echo_all'
13731
13732 # Archives containing C++ object files must be created using
13733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13734 # necessary to make sure instantiated templates are included
13735 # in the archive.
13736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13737 ;;
13738 gcx*)
13739 # Green Hills C++ Compiler
13740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13741
13742 # The C++ compiler must be used to create the archive.
13743 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13744 ;;
13745 *)
13746 # GNU C++ compiler with Solaris linker
13747 if test yes,no = "$GXX,$with_gnu_ld"; then
13748 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13749 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13750 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13751 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13752 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13753
13754 # Commands to make compiler produce verbose output that lists
13755 # what "hidden" libraries, object files and flags are used when
13756 # linking a shared library.
13757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13758 else
13759 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13760 # platform.
13761 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13762 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13763 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13764
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13768 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13769 fi
13770
13771 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13772 case $host_os in
13773 solaris2.[0-5] | solaris2.[0-5].*) ;;
13774 *)
13775 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13776 ;;
13777 esac
13778 fi
13779 ;;
13780 esac
13781 ;;
13782
13783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13784 no_undefined_flag_CXX='$wl-z,text'
13785 archive_cmds_need_lc_CXX=no
13786 hardcode_shlibpath_var_CXX=no
13787 runpath_var='LD_RUN_PATH'
13788
13789 case $cc_basename in
13790 CC*)
13791 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13792 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 ;;
13794 *)
13795 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 ;;
13798 esac
13799 ;;
13800
13801 sysv5* | sco3.2v5* | sco5v6*)
13802 # Note: We CANNOT use -z defs as we might desire, because we do not
13803 # link with -lc, and that would cause any symbols used from libc to
13804 # always be unresolved, which means just about no library would
13805 # ever link correctly. If we're not using GNU ld we use -z text
13806 # though, which does catch some bad symbols but isn't as heavy-handed
13807 # as -z defs.
13808 no_undefined_flag_CXX='$wl-z,text'
13809 allow_undefined_flag_CXX='$wl-z,nodefs'
13810 archive_cmds_need_lc_CXX=no
13811 hardcode_shlibpath_var_CXX=no
13812 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13813 hardcode_libdir_separator_CXX=':'
13814 link_all_deplibs_CXX=yes
13815 export_dynamic_flag_spec_CXX='$wl-Bexport'
13816 runpath_var='LD_RUN_PATH'
13817
13818 case $cc_basename in
13819 CC*)
13820 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13821 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13823 '"$old_archive_cmds_CXX"
13824 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13825 '"$reload_cmds_CXX"
13826 ;;
13827 *)
13828 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 ;;
13831 esac
13832 ;;
13833
13834 tandem*)
13835 case $cc_basename in
13836 NCC*)
13837 # NonStop-UX NCC 3.20
13838 # FIXME: insert proper C++ library support
13839 ld_shlibs_CXX=no
13840 ;;
13841 *)
13842 # FIXME: insert proper C++ library support
13843 ld_shlibs_CXX=no
13844 ;;
13845 esac
13846 ;;
13847
13848 vxworks*)
13849 # FIXME: insert proper C++ library support
13850 ld_shlibs_CXX=no
13851 ;;
13852
13853 *)
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13856 ;;
13857 esac
13858
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13860 $as_echo "$ld_shlibs_CXX" >&6; }
13861 test no = "$ld_shlibs_CXX" && can_build_shared=no
13862
13863 GCC_CXX=$GXX
13864 LD_CXX=$LD
13865
13866 ## CAVEAT EMPTOR:
13867 ## There is no encapsulation within the following macros, do not change
13868 ## the running order or otherwise move them around unless you know exactly
13869 ## what you are doing...
13870 # Dependencies to place before and after the object being linked:
13871 predep_objects_CXX=
13872 postdep_objects_CXX=
13873 predeps_CXX=
13874 postdeps_CXX=
13875 compiler_lib_search_path_CXX=
13876
13877 cat > conftest.$ac_ext <<_LT_EOF
13878 class Foo
13879 {
13880 public:
13881 Foo (void) { a = 0; }
13882 private:
13883 int a;
13884 };
13885 _LT_EOF
13886
13887
13888 _lt_libdeps_save_CFLAGS=$CFLAGS
13889 case "$CC $CFLAGS " in #(
13890 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13891 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13892 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13893 esac
13894
13895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13896 (eval $ac_compile) 2>&5
13897 ac_status=$?
13898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13899 test $ac_status = 0; }; then
13900 # Parse the compiler output and extract the necessary
13901 # objects, libraries and library flags.
13902
13903 # Sentinel used to keep track of whether or not we are before
13904 # the conftest object file.
13905 pre_test_object_deps_done=no
13906
13907 for p in `eval "$output_verbose_link_cmd"`; do
13908 case $prev$p in
13909
13910 -L* | -R* | -l*)
13911 # Some compilers place space between "-{L,R}" and the path.
13912 # Remove the space.
13913 if test x-L = "$p" ||
13914 test x-R = "$p"; then
13915 prev=$p
13916 continue
13917 fi
13918
13919 # Expand the sysroot to ease extracting the directories later.
13920 if test -z "$prev"; then
13921 case $p in
13922 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13923 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13924 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13925 esac
13926 fi
13927 case $p in
13928 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13929 esac
13930 if test no = "$pre_test_object_deps_done"; then
13931 case $prev in
13932 -L | -R)
13933 # Internal compiler library paths should come after those
13934 # provided the user. The postdeps already come after the
13935 # user supplied libs so there is no need to process them.
13936 if test -z "$compiler_lib_search_path_CXX"; then
13937 compiler_lib_search_path_CXX=$prev$p
13938 else
13939 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13940 fi
13941 ;;
13942 # The "-l" case would never come before the object being
13943 # linked, so don't bother handling this case.
13944 esac
13945 else
13946 if test -z "$postdeps_CXX"; then
13947 postdeps_CXX=$prev$p
13948 else
13949 postdeps_CXX="${postdeps_CXX} $prev$p"
13950 fi
13951 fi
13952 prev=
13953 ;;
13954
13955 *.lto.$objext) ;; # Ignore GCC LTO objects
13956 *.$objext)
13957 # This assumes that the test object file only shows up
13958 # once in the compiler output.
13959 if test "$p" = "conftest.$objext"; then
13960 pre_test_object_deps_done=yes
13961 continue
13962 fi
13963
13964 if test no = "$pre_test_object_deps_done"; then
13965 if test -z "$predep_objects_CXX"; then
13966 predep_objects_CXX=$p
13967 else
13968 predep_objects_CXX="$predep_objects_CXX $p"
13969 fi
13970 else
13971 if test -z "$postdep_objects_CXX"; then
13972 postdep_objects_CXX=$p
13973 else
13974 postdep_objects_CXX="$postdep_objects_CXX $p"
13975 fi
13976 fi
13977 ;;
13978
13979 *) ;; # Ignore the rest.
13980
13981 esac
13982 done
13983
13984 # Clean up.
13985 rm -f a.out a.exe
13986 else
13987 echo "libtool.m4: error: problem compiling CXX test program"
13988 fi
13989
13990 $RM -f confest.$objext
13991 CFLAGS=$_lt_libdeps_save_CFLAGS
13992
13993 # PORTME: override above test on systems where it is broken
13994 case $host_os in
13995 interix[3-9]*)
13996 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13997 # hack all around it, let's just trust "g++" to DTRT.
13998 predep_objects_CXX=
13999 postdep_objects_CXX=
14000 postdeps_CXX=
14001 ;;
14002 esac
14003
14004
14005 case " $postdeps_CXX " in
14006 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14007 esac
14008 compiler_lib_search_dirs_CXX=
14009 if test -n "${compiler_lib_search_path_CXX}"; then
14010 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14011 fi
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043 lt_prog_compiler_wl_CXX=
14044 lt_prog_compiler_pic_CXX=
14045 lt_prog_compiler_static_CXX=
14046
14047
14048 # C++ specific cases for pic, static, wl, etc.
14049 if test yes = "$GXX"; then
14050 lt_prog_compiler_wl_CXX='-Wl,'
14051 lt_prog_compiler_static_CXX='-static'
14052
14053 case $host_os in
14054 aix*)
14055 # All AIX code is PIC.
14056 if test ia64 = "$host_cpu"; then
14057 # AIX 5 now supports IA64 processor
14058 lt_prog_compiler_static_CXX='-Bstatic'
14059 fi
14060 lt_prog_compiler_pic_CXX='-fPIC'
14061 ;;
14062
14063 amigaos*)
14064 case $host_cpu in
14065 powerpc)
14066 # see comment about AmigaOS4 .so support
14067 lt_prog_compiler_pic_CXX='-fPIC'
14068 ;;
14069 m68k)
14070 # FIXME: we need at least 68020 code to build shared libraries, but
14071 # adding the '-m68020' flag to GCC prevents building anything better,
14072 # like '-m68040'.
14073 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14074 ;;
14075 esac
14076 ;;
14077
14078 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14079 # PIC is the default for these OSes.
14080 ;;
14081 mingw* | cygwin* | os2* | pw32* | cegcc*)
14082 # This hack is so that the source file can tell whether it is being
14083 # built for inclusion in a dll (and should export symbols for example).
14084 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14085 # (--disable-auto-import) libraries
14086 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14087 case $host_os in
14088 os2*)
14089 lt_prog_compiler_static_CXX='$wl-static'
14090 ;;
14091 esac
14092 ;;
14093 darwin* | rhapsody*)
14094 # PIC is the default on this platform
14095 # Common symbols not allowed in MH_DYLIB files
14096 lt_prog_compiler_pic_CXX='-fno-common'
14097 ;;
14098 *djgpp*)
14099 # DJGPP does not support shared libraries at all
14100 lt_prog_compiler_pic_CXX=
14101 ;;
14102 haiku*)
14103 # PIC is the default for Haiku.
14104 # The "-static" flag exists, but is broken.
14105 lt_prog_compiler_static_CXX=
14106 ;;
14107 interix[3-9]*)
14108 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14109 # Instead, we relocate shared libraries at runtime.
14110 ;;
14111 sysv4*MP*)
14112 if test -d /usr/nec; then
14113 lt_prog_compiler_pic_CXX=-Kconform_pic
14114 fi
14115 ;;
14116 hpux*)
14117 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14118 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14119 # sets the default TLS model and affects inlining.
14120 case $host_cpu in
14121 hppa*64*)
14122 ;;
14123 *)
14124 lt_prog_compiler_pic_CXX='-fPIC'
14125 ;;
14126 esac
14127 ;;
14128 *qnx* | *nto*)
14129 # QNX uses GNU C++, but need to define -shared option too, otherwise
14130 # it will coredump.
14131 lt_prog_compiler_pic_CXX='-fPIC -shared'
14132 ;;
14133 *)
14134 lt_prog_compiler_pic_CXX='-fPIC'
14135 ;;
14136 esac
14137 else
14138 case $host_os in
14139 aix[4-9]*)
14140 # All AIX code is PIC.
14141 if test ia64 = "$host_cpu"; then
14142 # AIX 5 now supports IA64 processor
14143 lt_prog_compiler_static_CXX='-Bstatic'
14144 else
14145 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14146 fi
14147 ;;
14148 chorus*)
14149 case $cc_basename in
14150 cxch68*)
14151 # Green Hills C++ Compiler
14152 # _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"
14153 ;;
14154 esac
14155 ;;
14156 mingw* | cygwin* | os2* | pw32* | cegcc*)
14157 # This hack is so that the source file can tell whether it is being
14158 # built for inclusion in a dll (and should export symbols for example).
14159 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14160 ;;
14161 dgux*)
14162 case $cc_basename in
14163 ec++*)
14164 lt_prog_compiler_pic_CXX='-KPIC'
14165 ;;
14166 ghcx*)
14167 # Green Hills C++ Compiler
14168 lt_prog_compiler_pic_CXX='-pic'
14169 ;;
14170 *)
14171 ;;
14172 esac
14173 ;;
14174 freebsd* | dragonfly*)
14175 # FreeBSD uses GNU C++
14176 ;;
14177 hpux9* | hpux10* | hpux11*)
14178 case $cc_basename in
14179 CC*)
14180 lt_prog_compiler_wl_CXX='-Wl,'
14181 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14182 if test ia64 != "$host_cpu"; then
14183 lt_prog_compiler_pic_CXX='+Z'
14184 fi
14185 ;;
14186 aCC*)
14187 lt_prog_compiler_wl_CXX='-Wl,'
14188 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14189 case $host_cpu in
14190 hppa*64*|ia64*)
14191 # +Z the default
14192 ;;
14193 *)
14194 lt_prog_compiler_pic_CXX='+Z'
14195 ;;
14196 esac
14197 ;;
14198 *)
14199 ;;
14200 esac
14201 ;;
14202 interix*)
14203 # This is c89, which is MS Visual C++ (no shared libs)
14204 # Anyone wants to do a port?
14205 ;;
14206 irix5* | irix6* | nonstopux*)
14207 case $cc_basename in
14208 CC*)
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_static_CXX='-non_shared'
14211 # CC pic flag -KPIC is the default.
14212 ;;
14213 *)
14214 ;;
14215 esac
14216 ;;
14217 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14218 case $cc_basename in
14219 KCC*)
14220 # KAI C++ Compiler
14221 lt_prog_compiler_wl_CXX='--backend -Wl,'
14222 lt_prog_compiler_pic_CXX='-fPIC'
14223 ;;
14224 ecpc* )
14225 # old Intel C++ for x86_64, which still supported -KPIC.
14226 lt_prog_compiler_wl_CXX='-Wl,'
14227 lt_prog_compiler_pic_CXX='-KPIC'
14228 lt_prog_compiler_static_CXX='-static'
14229 ;;
14230 icpc* )
14231 # Intel C++, used to be incompatible with GCC.
14232 # ICC 10 doesn't accept -KPIC any more.
14233 lt_prog_compiler_wl_CXX='-Wl,'
14234 lt_prog_compiler_pic_CXX='-fPIC'
14235 lt_prog_compiler_static_CXX='-static'
14236 ;;
14237 pgCC* | pgcpp*)
14238 # Portland Group C++ compiler
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_pic_CXX='-fpic'
14241 lt_prog_compiler_static_CXX='-Bstatic'
14242 ;;
14243 cxx*)
14244 # Compaq C++
14245 # Make sure the PIC flag is empty. It appears that all Alpha
14246 # Linux and Compaq Tru64 Unix objects are PIC.
14247 lt_prog_compiler_pic_CXX=
14248 lt_prog_compiler_static_CXX='-non_shared'
14249 ;;
14250 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14251 # IBM XL 8.0, 9.0 on PPC and BlueGene
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_pic_CXX='-qpic'
14254 lt_prog_compiler_static_CXX='-qstaticlink'
14255 ;;
14256 *)
14257 case `$CC -V 2>&1 | sed 5q` in
14258 *Sun\ C*)
14259 # Sun C++ 5.9
14260 lt_prog_compiler_pic_CXX='-KPIC'
14261 lt_prog_compiler_static_CXX='-Bstatic'
14262 lt_prog_compiler_wl_CXX='-Qoption ld '
14263 ;;
14264 esac
14265 ;;
14266 esac
14267 ;;
14268 lynxos*)
14269 ;;
14270 m88k*)
14271 ;;
14272 mvs*)
14273 case $cc_basename in
14274 cxx*)
14275 lt_prog_compiler_pic_CXX='-W c,exportall'
14276 ;;
14277 *)
14278 ;;
14279 esac
14280 ;;
14281 netbsd*)
14282 ;;
14283 *qnx* | *nto*)
14284 # QNX uses GNU C++, but need to define -shared option too, otherwise
14285 # it will coredump.
14286 lt_prog_compiler_pic_CXX='-fPIC -shared'
14287 ;;
14288 osf3* | osf4* | osf5*)
14289 case $cc_basename in
14290 KCC*)
14291 lt_prog_compiler_wl_CXX='--backend -Wl,'
14292 ;;
14293 RCC*)
14294 # Rational C++ 2.4.1
14295 lt_prog_compiler_pic_CXX='-pic'
14296 ;;
14297 cxx*)
14298 # Digital/Compaq C++
14299 lt_prog_compiler_wl_CXX='-Wl,'
14300 # Make sure the PIC flag is empty. It appears that all Alpha
14301 # Linux and Compaq Tru64 Unix objects are PIC.
14302 lt_prog_compiler_pic_CXX=
14303 lt_prog_compiler_static_CXX='-non_shared'
14304 ;;
14305 *)
14306 ;;
14307 esac
14308 ;;
14309 psos*)
14310 ;;
14311 solaris*)
14312 case $cc_basename in
14313 CC* | sunCC*)
14314 # Sun C++ 4.2, 5.x and Centerline C++
14315 lt_prog_compiler_pic_CXX='-KPIC'
14316 lt_prog_compiler_static_CXX='-Bstatic'
14317 lt_prog_compiler_wl_CXX='-Qoption ld '
14318 ;;
14319 gcx*)
14320 # Green Hills C++ Compiler
14321 lt_prog_compiler_pic_CXX='-PIC'
14322 ;;
14323 *)
14324 ;;
14325 esac
14326 ;;
14327 sunos4*)
14328 case $cc_basename in
14329 CC*)
14330 # Sun C++ 4.x
14331 lt_prog_compiler_pic_CXX='-pic'
14332 lt_prog_compiler_static_CXX='-Bstatic'
14333 ;;
14334 lcc*)
14335 # Lucid
14336 lt_prog_compiler_pic_CXX='-pic'
14337 ;;
14338 *)
14339 ;;
14340 esac
14341 ;;
14342 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14343 case $cc_basename in
14344 CC*)
14345 lt_prog_compiler_wl_CXX='-Wl,'
14346 lt_prog_compiler_pic_CXX='-KPIC'
14347 lt_prog_compiler_static_CXX='-Bstatic'
14348 ;;
14349 esac
14350 ;;
14351 tandem*)
14352 case $cc_basename in
14353 NCC*)
14354 # NonStop-UX NCC 3.20
14355 lt_prog_compiler_pic_CXX='-KPIC'
14356 ;;
14357 *)
14358 ;;
14359 esac
14360 ;;
14361 vxworks*)
14362 ;;
14363 *)
14364 lt_prog_compiler_can_build_shared_CXX=no
14365 ;;
14366 esac
14367 fi
14368
14369 case $host_os in
14370 # For platforms that do not support PIC, -DPIC is meaningless:
14371 *djgpp*)
14372 lt_prog_compiler_pic_CXX=
14373 ;;
14374 *)
14375 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14376 ;;
14377 esac
14378
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14380 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14381 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14387 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14388 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14389
14390 #
14391 # Check to make sure the PIC flag actually works.
14392 #
14393 if test -n "$lt_prog_compiler_pic_CXX"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14395 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14396 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 lt_cv_prog_compiler_pic_works_CXX=no
14400 ac_outfile=conftest.$ac_objext
14401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14402 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14403 # Insert the option either (1) after the last *FLAGS variable, or
14404 # (2) before a word containing "conftest.", or (3) at the end.
14405 # Note that $ac_compile itself does not contain backslashes and begins
14406 # with a dollar sign (not a hyphen), so the echo should work correctly.
14407 # The option is referenced via a variable to avoid confusing sed.
14408 lt_compile=`echo "$ac_compile" | $SED \
14409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14411 -e 's:$: $lt_compiler_flag:'`
14412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14413 (eval "$lt_compile" 2>conftest.err)
14414 ac_status=$?
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 if (exit $ac_status) && test -s "$ac_outfile"; then
14418 # The compiler can only warn and ignore the option if not recognized
14419 # So say no if there are warnings other than the usual output.
14420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14423 lt_cv_prog_compiler_pic_works_CXX=yes
14424 fi
14425 fi
14426 $RM conftest*
14427
14428 fi
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14430 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14431
14432 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14433 case $lt_prog_compiler_pic_CXX in
14434 "" | " "*) ;;
14435 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14436 esac
14437 else
14438 lt_prog_compiler_pic_CXX=
14439 lt_prog_compiler_can_build_shared_CXX=no
14440 fi
14441
14442 fi
14443
14444
14445
14446
14447
14448 #
14449 # Check to make sure the static flag actually works.
14450 #
14451 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14453 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14454 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 lt_cv_prog_compiler_static_works_CXX=no
14458 save_LDFLAGS=$LDFLAGS
14459 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14462 # The linker can only warn and ignore the option if not recognized
14463 # So say no if there are warnings
14464 if test -s conftest.err; then
14465 # Append any errors to the config.log.
14466 cat conftest.err 1>&5
14467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if diff conftest.exp conftest.er2 >/dev/null; then
14470 lt_cv_prog_compiler_static_works_CXX=yes
14471 fi
14472 else
14473 lt_cv_prog_compiler_static_works_CXX=yes
14474 fi
14475 fi
14476 $RM -r conftest*
14477 LDFLAGS=$save_LDFLAGS
14478
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14481 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14482
14483 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14484 :
14485 else
14486 lt_prog_compiler_static_CXX=
14487 fi
14488
14489
14490
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14493 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14494 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 lt_cv_prog_compiler_c_o_CXX=no
14498 $RM -r conftest 2>/dev/null
14499 mkdir conftest
14500 cd conftest
14501 mkdir out
14502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14503
14504 lt_compiler_flag="-o out/conftest2.$ac_objext"
14505 # Insert the option either (1) after the last *FLAGS variable, or
14506 # (2) before a word containing "conftest.", or (3) at the end.
14507 # Note that $ac_compile itself does not contain backslashes and begins
14508 # with a dollar sign (not a hyphen), so the echo should work correctly.
14509 lt_compile=`echo "$ac_compile" | $SED \
14510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14512 -e 's:$: $lt_compiler_flag:'`
14513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14514 (eval "$lt_compile" 2>out/conftest.err)
14515 ac_status=$?
14516 cat out/conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14519 then
14520 # The compiler can only warn and ignore the option if not recognized
14521 # So say no if there are warnings
14522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14525 lt_cv_prog_compiler_c_o_CXX=yes
14526 fi
14527 fi
14528 chmod u+w . 2>&5
14529 $RM conftest*
14530 # SGI C++ compiler will create directory out/ii_files/ for
14531 # template instantiation
14532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14533 $RM out/* && rmdir out
14534 cd ..
14535 $RM -r conftest
14536 $RM conftest*
14537
14538 fi
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14540 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14541
14542
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14546 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 lt_cv_prog_compiler_c_o_CXX=no
14550 $RM -r conftest 2>/dev/null
14551 mkdir conftest
14552 cd conftest
14553 mkdir out
14554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14555
14556 lt_compiler_flag="-o out/conftest2.$ac_objext"
14557 # Insert the option either (1) after the last *FLAGS variable, or
14558 # (2) before a word containing "conftest.", or (3) at the end.
14559 # Note that $ac_compile itself does not contain backslashes and begins
14560 # with a dollar sign (not a hyphen), so the echo should work correctly.
14561 lt_compile=`echo "$ac_compile" | $SED \
14562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14564 -e 's:$: $lt_compiler_flag:'`
14565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14566 (eval "$lt_compile" 2>out/conftest.err)
14567 ac_status=$?
14568 cat out/conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14571 then
14572 # The compiler can only warn and ignore the option if not recognized
14573 # So say no if there are warnings
14574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14577 lt_cv_prog_compiler_c_o_CXX=yes
14578 fi
14579 fi
14580 chmod u+w . 2>&5
14581 $RM conftest*
14582 # SGI C++ compiler will create directory out/ii_files/ for
14583 # template instantiation
14584 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14585 $RM out/* && rmdir out
14586 cd ..
14587 $RM -r conftest
14588 $RM conftest*
14589
14590 fi
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14592 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14593
14594
14595
14596
14597 hard_links=nottested
14598 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14599 # do not overwrite the value of need_locks provided by the user
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14601 $as_echo_n "checking if we can lock with hard links... " >&6; }
14602 hard_links=yes
14603 $RM conftest*
14604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14605 touch conftest.a
14606 ln conftest.a conftest.b 2>&5 || hard_links=no
14607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14609 $as_echo "$hard_links" >&6; }
14610 if test no = "$hard_links"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14612 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14613 need_locks=warn
14614 fi
14615 else
14616 need_locks=no
14617 fi
14618
14619
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14622 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14623
14624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14625 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14626 case $host_os in
14627 aix[4-9]*)
14628 # If we're using GNU nm, then we don't want the "-C" option.
14629 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14630 # Without the "-l" option, or with the "-B" option, AIX nm treats
14631 # weak defined symbols like other global defined symbols, whereas
14632 # GNU nm marks them as "W".
14633 # While the 'weak' keyword is ignored in the Export File, we need
14634 # it in the Import File for the 'aix-soname' feature, so we have
14635 # to replace the "-B" option with "-P" for AIX nm.
14636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14637 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14638 else
14639 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14640 fi
14641 ;;
14642 pw32*)
14643 export_symbols_cmds_CXX=$ltdll_cmds
14644 ;;
14645 cygwin* | mingw* | cegcc*)
14646 case $cc_basename in
14647 cl*)
14648 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14649 ;;
14650 *)
14651 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'
14652 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14653 ;;
14654 esac
14655 ;;
14656 *)
14657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14658 ;;
14659 esac
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14662 $as_echo "$ld_shlibs_CXX" >&6; }
14663 test no = "$ld_shlibs_CXX" && can_build_shared=no
14664
14665 with_gnu_ld_CXX=$with_gnu_ld
14666
14667
14668
14669
14670
14671
14672 #
14673 # Do we need to explicitly link libc?
14674 #
14675 case "x$archive_cmds_need_lc_CXX" in
14676 x|xyes)
14677 # Assume -lc should be added
14678 archive_cmds_need_lc_CXX=yes
14679
14680 if test yes,yes = "$GCC,$enable_shared"; then
14681 case $archive_cmds_CXX in
14682 *'~'*)
14683 # FIXME: we may have to deal with multi-command sequences.
14684 ;;
14685 '$CC '*)
14686 # Test whether the compiler implicitly links with -lc since on some
14687 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14688 # to ld, don't add -lc before -lgcc.
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14690 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14691 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 $RM conftest*
14695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14696
14697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14698 (eval $ac_compile) 2>&5
14699 ac_status=$?
14700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14701 test $ac_status = 0; } 2>conftest.err; then
14702 soname=conftest
14703 lib=conftest
14704 libobjs=conftest.$ac_objext
14705 deplibs=
14706 wl=$lt_prog_compiler_wl_CXX
14707 pic_flag=$lt_prog_compiler_pic_CXX
14708 compiler_flags=-v
14709 linker_flags=-v
14710 verstring=
14711 output_objdir=.
14712 libname=conftest
14713 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14714 allow_undefined_flag_CXX=
14715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14716 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14717 ac_status=$?
14718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14719 test $ac_status = 0; }
14720 then
14721 lt_cv_archive_cmds_need_lc_CXX=no
14722 else
14723 lt_cv_archive_cmds_need_lc_CXX=yes
14724 fi
14725 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14726 else
14727 cat conftest.err 1>&5
14728 fi
14729 $RM conftest*
14730
14731 fi
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14733 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14734 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14735 ;;
14736 esac
14737 fi
14738 ;;
14739 esac
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14804
14805 library_names_spec=
14806 libname_spec='lib$name'
14807 soname_spec=
14808 shrext_cmds=.so
14809 postinstall_cmds=
14810 postuninstall_cmds=
14811 finish_cmds=
14812 finish_eval=
14813 shlibpath_var=
14814 shlibpath_overrides_runpath=unknown
14815 version_type=none
14816 dynamic_linker="$host_os ld.so"
14817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14818 need_lib_prefix=unknown
14819 hardcode_into_libs=no
14820
14821 # when you set need_version to no, make sure it does not cause -set_version
14822 # flags to be left without arguments
14823 need_version=unknown
14824
14825
14826
14827 case $host_os in
14828 aix3*)
14829 version_type=linux # correct to gnu/linux during the next big refactor
14830 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14831 shlibpath_var=LIBPATH
14832
14833 # AIX 3 has no versioning support, so we append a major version to the name.
14834 soname_spec='$libname$release$shared_ext$major'
14835 ;;
14836
14837 aix[4-9]*)
14838 version_type=linux # correct to gnu/linux during the next big refactor
14839 need_lib_prefix=no
14840 need_version=no
14841 hardcode_into_libs=yes
14842 if test ia64 = "$host_cpu"; then
14843 # AIX 5 supports IA64
14844 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 else
14847 # With GCC up to 2.95.x, collect2 would create an import file
14848 # for dependence libraries. The import file would start with
14849 # the line '#! .'. This would cause the generated library to
14850 # depend on '.', always an invalid library. This was fixed in
14851 # development snapshots of GCC prior to 3.0.
14852 case $host_os in
14853 aix4 | aix4.[01] | aix4.[01].*)
14854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14855 echo ' yes '
14856 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14857 :
14858 else
14859 can_build_shared=no
14860 fi
14861 ;;
14862 esac
14863 # Using Import Files as archive members, it is possible to support
14864 # filename-based versioning of shared library archives on AIX. While
14865 # this would work for both with and without runtime linking, it will
14866 # prevent static linking of such archives. So we do filename-based
14867 # shared library versioning with .so extension only, which is used
14868 # when both runtime linking and shared linking is enabled.
14869 # Unfortunately, runtime linking may impact performance, so we do
14870 # not want this to be the default eventually. Also, we use the
14871 # versioned .so libs for executables only if there is the -brtl
14872 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14873 # To allow for filename-based versioning support, we need to create
14874 # libNAME.so.V as an archive file, containing:
14875 # *) an Import File, referring to the versioned filename of the
14876 # archive as well as the shared archive member, telling the
14877 # bitwidth (32 or 64) of that shared object, and providing the
14878 # list of exported symbols of that shared object, eventually
14879 # decorated with the 'weak' keyword
14880 # *) the shared object with the F_LOADONLY flag set, to really avoid
14881 # it being seen by the linker.
14882 # At run time we better use the real file rather than another symlink,
14883 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14884
14885 case $with_aix_soname,$aix_use_runtimelinking in
14886 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14887 # soname into executable. Probably we can add versioning support to
14888 # collect2, so additional links can be useful in future.
14889 aix,yes) # traditional libtool
14890 dynamic_linker='AIX unversionable lib.so'
14891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14892 # instead of lib<name>.a to let people know that these are not
14893 # typical AIX shared libraries.
14894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14895 ;;
14896 aix,no) # traditional AIX only
14897 dynamic_linker='AIX lib.a(lib.so.V)'
14898 # We preserve .a as extension for shared libraries through AIX4.2
14899 # and later when we are not doing run time linking.
14900 library_names_spec='$libname$release.a $libname.a'
14901 soname_spec='$libname$release$shared_ext$major'
14902 ;;
14903 svr4,*) # full svr4 only
14904 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14905 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14906 # We do not specify a path in Import Files, so LIBPATH fires.
14907 shlibpath_overrides_runpath=yes
14908 ;;
14909 *,yes) # both, prefer svr4
14910 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14911 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14912 # unpreferred sharedlib libNAME.a needs extra handling
14913 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14914 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14915 # We do not specify a path in Import Files, so LIBPATH fires.
14916 shlibpath_overrides_runpath=yes
14917 ;;
14918 *,no) # both, prefer aix
14919 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14920 library_names_spec='$libname$release.a $libname.a'
14921 soname_spec='$libname$release$shared_ext$major'
14922 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14923 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14924 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14925 ;;
14926 esac
14927 shlibpath_var=LIBPATH
14928 fi
14929 ;;
14930
14931 amigaos*)
14932 case $host_cpu in
14933 powerpc)
14934 # Since July 2007 AmigaOS4 officially supports .so libraries.
14935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14937 ;;
14938 m68k)
14939 library_names_spec='$libname.ixlibrary $libname.a'
14940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14941 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14942 ;;
14943 esac
14944 ;;
14945
14946 beos*)
14947 library_names_spec='$libname$shared_ext'
14948 dynamic_linker="$host_os ld.so"
14949 shlibpath_var=LIBRARY_PATH
14950 ;;
14951
14952 bsdi[45]*)
14953 version_type=linux # correct to gnu/linux during the next big refactor
14954 need_version=no
14955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14956 soname_spec='$libname$release$shared_ext$major'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14961 # the default ld.so.conf also contains /usr/contrib/lib and
14962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14963 # libtool to hard-code these into programs
14964 ;;
14965
14966 cygwin* | mingw* | pw32* | cegcc*)
14967 version_type=windows
14968 shrext_cmds=.dll
14969 need_version=no
14970 need_lib_prefix=no
14971
14972 case $GCC,$cc_basename in
14973 yes,*)
14974 # gcc
14975 library_names_spec='$libname.dll.a'
14976 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14977 postinstall_cmds='base_file=`basename \$file`~
14978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14979 dldir=$destdir/`dirname \$dlpath`~
14980 test -d \$dldir || mkdir -p \$dldir~
14981 $install_prog $dir/$dlname \$dldir/$dlname~
14982 chmod a+x \$dldir/$dlname~
14983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14985 fi'
14986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14987 dlpath=$dir/\$dldll~
14988 $RM \$dlpath'
14989 shlibpath_overrides_runpath=yes
14990
14991 case $host_os in
14992 cygwin*)
14993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14994 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14995
14996 ;;
14997 mingw* | cegcc*)
14998 # MinGW DLLs use traditional 'lib' prefix
14999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15000 ;;
15001 pw32*)
15002 # pw32 DLLs use 'pw' prefix rather than 'lib'
15003 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15004 ;;
15005 esac
15006 dynamic_linker='Win32 ld.exe'
15007 ;;
15008
15009 *,cl*)
15010 # Native MSVC
15011 libname_spec='$name'
15012 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15013 library_names_spec='$libname.dll.lib'
15014
15015 case $build_os in
15016 mingw*)
15017 sys_lib_search_path_spec=
15018 lt_save_ifs=$IFS
15019 IFS=';'
15020 for lt_path in $LIB
15021 do
15022 IFS=$lt_save_ifs
15023 # Let DOS variable expansion print the short 8.3 style file name.
15024 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15025 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15026 done
15027 IFS=$lt_save_ifs
15028 # Convert to MSYS style.
15029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15030 ;;
15031 cygwin*)
15032 # Convert to unix form, then to dos form, then back to unix form
15033 # but this time dos style (no spaces!) so that the unix form looks
15034 # like /cygdrive/c/PROGRA~1:/cygdr...
15035 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15036 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15037 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15038 ;;
15039 *)
15040 sys_lib_search_path_spec=$LIB
15041 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15042 # It is most probably a Windows format PATH.
15043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15044 else
15045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15046 fi
15047 # FIXME: find the short name or the path components, as spaces are
15048 # common. (e.g. "Program Files" -> "PROGRA~1")
15049 ;;
15050 esac
15051
15052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15053 postinstall_cmds='base_file=`basename \$file`~
15054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15055 dldir=$destdir/`dirname \$dlpath`~
15056 test -d \$dldir || mkdir -p \$dldir~
15057 $install_prog $dir/$dlname \$dldir/$dlname'
15058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15059 dlpath=$dir/\$dldll~
15060 $RM \$dlpath'
15061 shlibpath_overrides_runpath=yes
15062 dynamic_linker='Win32 link.exe'
15063 ;;
15064
15065 *)
15066 # Assume MSVC wrapper
15067 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15068 dynamic_linker='Win32 ld.exe'
15069 ;;
15070 esac
15071 # FIXME: first we should search . and the directory the executable is in
15072 shlibpath_var=PATH
15073 ;;
15074
15075 darwin* | rhapsody*)
15076 dynamic_linker="$host_os dyld"
15077 version_type=darwin
15078 need_lib_prefix=no
15079 need_version=no
15080 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15081 soname_spec='$libname$release$major$shared_ext'
15082 shlibpath_overrides_runpath=yes
15083 shlibpath_var=DYLD_LIBRARY_PATH
15084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15085
15086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15087 ;;
15088
15089 dgux*)
15090 version_type=linux # correct to gnu/linux during the next big refactor
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15094 soname_spec='$libname$release$shared_ext$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 ;;
15097
15098 freebsd* | dragonfly*)
15099 # DragonFly does not have aout. When/if they implement a new
15100 # versioning mechanism, adjust this.
15101 if test -x /usr/bin/objformat; then
15102 objformat=`/usr/bin/objformat`
15103 else
15104 case $host_os in
15105 freebsd[23].*) objformat=aout ;;
15106 *) objformat=elf ;;
15107 esac
15108 fi
15109 version_type=freebsd-$objformat
15110 case $version_type in
15111 freebsd-elf*)
15112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15113 soname_spec='$libname$release$shared_ext$major'
15114 need_version=no
15115 need_lib_prefix=no
15116 ;;
15117 freebsd-*)
15118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15119 need_version=yes
15120 ;;
15121 esac
15122 shlibpath_var=LD_LIBRARY_PATH
15123 case $host_os in
15124 freebsd2.*)
15125 shlibpath_overrides_runpath=yes
15126 ;;
15127 freebsd3.[01]* | freebsdelf3.[01]*)
15128 shlibpath_overrides_runpath=yes
15129 hardcode_into_libs=yes
15130 ;;
15131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15133 shlibpath_overrides_runpath=no
15134 hardcode_into_libs=yes
15135 ;;
15136 *) # from 4.6 on, and DragonFly
15137 shlibpath_overrides_runpath=yes
15138 hardcode_into_libs=yes
15139 ;;
15140 esac
15141 ;;
15142
15143 haiku*)
15144 version_type=linux # correct to gnu/linux during the next big refactor
15145 need_lib_prefix=no
15146 need_version=no
15147 dynamic_linker="$host_os runtime_loader"
15148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15149 soname_spec='$libname$release$shared_ext$major'
15150 shlibpath_var=LIBRARY_PATH
15151 shlibpath_overrides_runpath=no
15152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15153 hardcode_into_libs=yes
15154 ;;
15155
15156 hpux9* | hpux10* | hpux11*)
15157 # Give a soname corresponding to the major version so that dld.sl refuses to
15158 # link against other versions.
15159 version_type=sunos
15160 need_lib_prefix=no
15161 need_version=no
15162 case $host_cpu in
15163 ia64*)
15164 shrext_cmds='.so'
15165 hardcode_into_libs=yes
15166 dynamic_linker="$host_os dld.so"
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15170 soname_spec='$libname$release$shared_ext$major'
15171 if test 32 = "$HPUX_IA64_MODE"; then
15172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15173 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15174 else
15175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15176 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15177 fi
15178 ;;
15179 hppa*64*)
15180 shrext_cmds='.sl'
15181 hardcode_into_libs=yes
15182 dynamic_linker="$host_os dld.sl"
15183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15186 soname_spec='$libname$release$shared_ext$major'
15187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15189 ;;
15190 *)
15191 shrext_cmds='.sl'
15192 dynamic_linker="$host_os dld.sl"
15193 shlibpath_var=SHLIB_PATH
15194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15196 soname_spec='$libname$release$shared_ext$major'
15197 ;;
15198 esac
15199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15200 postinstall_cmds='chmod 555 $lib'
15201 # or fails outright, so override atomically:
15202 install_override_mode=555
15203 ;;
15204
15205 interix[3-9]*)
15206 version_type=linux # correct to gnu/linux during the next big refactor
15207 need_lib_prefix=no
15208 need_version=no
15209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15210 soname_spec='$libname$release$shared_ext$major'
15211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=no
15214 hardcode_into_libs=yes
15215 ;;
15216
15217 irix5* | irix6* | nonstopux*)
15218 case $host_os in
15219 nonstopux*) version_type=nonstopux ;;
15220 *)
15221 if test yes = "$lt_cv_prog_gnu_ld"; then
15222 version_type=linux # correct to gnu/linux during the next big refactor
15223 else
15224 version_type=irix
15225 fi ;;
15226 esac
15227 need_lib_prefix=no
15228 need_version=no
15229 soname_spec='$libname$release$shared_ext$major'
15230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15231 case $host_os in
15232 irix5* | nonstopux*)
15233 libsuff= shlibsuff=
15234 ;;
15235 *)
15236 case $LD in # libtool.m4 will add one of these switches to LD
15237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15238 libsuff= shlibsuff= libmagic=32-bit;;
15239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15240 libsuff=32 shlibsuff=N32 libmagic=N32;;
15241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15243 *) libsuff= shlibsuff= libmagic=never-match;;
15244 esac
15245 ;;
15246 esac
15247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15248 shlibpath_overrides_runpath=no
15249 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15250 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15251 hardcode_into_libs=yes
15252 ;;
15253
15254 # No shared lib support for Linux oldld, aout, or coff.
15255 linux*oldld* | linux*aout* | linux*coff*)
15256 dynamic_linker=no
15257 ;;
15258
15259 linux*android*)
15260 version_type=none # Android doesn't support versioned libraries.
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='$libname$release$shared_ext'
15264 soname_spec='$libname$release$shared_ext'
15265 finish_cmds=
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=yes
15268
15269 # This implies no fast_install, which is unacceptable.
15270 # Some rework will be needed to allow for fast_install
15271 # before this can be enabled.
15272 hardcode_into_libs=yes
15273
15274 dynamic_linker='Android linker'
15275 # Don't embed -rpath directories since the linker doesn't support them.
15276 hardcode_libdir_flag_spec_CXX='-L$libdir'
15277 ;;
15278
15279 # This must be glibc/ELF.
15280 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15281 version_type=linux # correct to gnu/linux during the next big refactor
15282 need_lib_prefix=no
15283 need_version=no
15284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15285 soname_spec='$libname$release$shared_ext$major'
15286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 shlibpath_overrides_runpath=no
15289
15290 # Some binutils ld are patched to set DT_RUNPATH
15291 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 lt_cv_shlibpath_overrides_runpath=no
15295 save_LDFLAGS=$LDFLAGS
15296 save_libdir=$libdir
15297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301
15302 int
15303 main ()
15304 {
15305
15306 ;
15307 return 0;
15308 }
15309 _ACEOF
15310 if ac_fn_cxx_try_link "$LINENO"; then :
15311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15312 lt_cv_shlibpath_overrides_runpath=yes
15313 fi
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15317 LDFLAGS=$save_LDFLAGS
15318 libdir=$save_libdir
15319
15320 fi
15321
15322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15323
15324 # This implies no fast_install, which is unacceptable.
15325 # Some rework will be needed to allow for fast_install
15326 # before this can be enabled.
15327 hardcode_into_libs=yes
15328
15329 # Ideally, we could use ldconfig to report *all* directores which are
15330 # searched for libraries, however this is still not possible. Aside from not
15331 # being certain /sbin/ldconfig is available, command
15332 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15333 # even though it is searched at run-time. Try to do the best guess by
15334 # appending ld.so.conf contents (and includes) to the search path.
15335 if test -f /etc/ld.so.conf; then
15336 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' ' '`
15337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15338 fi
15339
15340 # We used to test for /lib/ld.so.1 and disable shared libraries on
15341 # powerpc, because MkLinux only supported shared libraries with the
15342 # GNU dynamic linker. Since this was broken with cross compilers,
15343 # most powerpc-linux boxes support dynamic linking these days and
15344 # people can always --disable-shared, the test was removed, and we
15345 # assume the GNU/Linux dynamic linker is in use.
15346 dynamic_linker='GNU/Linux ld.so'
15347 ;;
15348
15349 netbsd*)
15350 version_type=sunos
15351 need_lib_prefix=no
15352 need_version=no
15353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 dynamic_linker='NetBSD (a.out) ld.so'
15357 else
15358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15359 soname_spec='$libname$release$shared_ext$major'
15360 dynamic_linker='NetBSD ld.elf_so'
15361 fi
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15365 ;;
15366
15367 newsos6)
15368 version_type=linux # correct to gnu/linux during the next big refactor
15369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 ;;
15373
15374 *nto* | *qnx*)
15375 version_type=qnx
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15379 soname_spec='$libname$release$shared_ext$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=no
15382 hardcode_into_libs=yes
15383 dynamic_linker='ldqnx.so'
15384 ;;
15385
15386 openbsd* | bitrig*)
15387 version_type=sunos
15388 sys_lib_dlsearch_path_spec=/usr/lib
15389 need_lib_prefix=no
15390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15391 need_version=no
15392 else
15393 need_version=yes
15394 fi
15395 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=yes
15399 ;;
15400
15401 os2*)
15402 libname_spec='$name'
15403 version_type=windows
15404 shrext_cmds=.dll
15405 need_version=no
15406 need_lib_prefix=no
15407 # OS/2 can only load a DLL with a base name of 8 characters or less.
15408 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15409 v=$($ECHO $release$versuffix | tr -d .-);
15410 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15411 $ECHO $n$v`$shared_ext'
15412 library_names_spec='${libname}_dll.$libext'
15413 dynamic_linker='OS/2 ld.exe'
15414 shlibpath_var=BEGINLIBPATH
15415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15417 postinstall_cmds='base_file=`basename \$file`~
15418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15419 dldir=$destdir/`dirname \$dlpath`~
15420 test -d \$dldir || mkdir -p \$dldir~
15421 $install_prog $dir/$dlname \$dldir/$dlname~
15422 chmod a+x \$dldir/$dlname~
15423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15425 fi'
15426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15427 dlpath=$dir/\$dldll~
15428 $RM \$dlpath'
15429 ;;
15430
15431 osf3* | osf4* | osf5*)
15432 version_type=osf
15433 need_lib_prefix=no
15434 need_version=no
15435 soname_spec='$libname$release$shared_ext$major'
15436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15440 ;;
15441
15442 rdos*)
15443 dynamic_linker=no
15444 ;;
15445
15446 solaris*)
15447 version_type=linux # correct to gnu/linux during the next big refactor
15448 need_lib_prefix=no
15449 need_version=no
15450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15451 soname_spec='$libname$release$shared_ext$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=yes
15454 hardcode_into_libs=yes
15455 # ldd complains unless libraries are executable
15456 postinstall_cmds='chmod +x $lib'
15457 ;;
15458
15459 sunos4*)
15460 version_type=sunos
15461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=yes
15465 if test yes = "$with_gnu_ld"; then
15466 need_lib_prefix=no
15467 fi
15468 need_version=yes
15469 ;;
15470
15471 sysv4 | sysv4.3*)
15472 version_type=linux # correct to gnu/linux during the next big refactor
15473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15474 soname_spec='$libname$release$shared_ext$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 case $host_vendor in
15477 sni)
15478 shlibpath_overrides_runpath=no
15479 need_lib_prefix=no
15480 runpath_var=LD_RUN_PATH
15481 ;;
15482 siemens)
15483 need_lib_prefix=no
15484 ;;
15485 motorola)
15486 need_lib_prefix=no
15487 need_version=no
15488 shlibpath_overrides_runpath=no
15489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15490 ;;
15491 esac
15492 ;;
15493
15494 sysv4*MP*)
15495 if test -d /usr/nec; then
15496 version_type=linux # correct to gnu/linux during the next big refactor
15497 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15498 soname_spec='$libname$shared_ext.$major'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 fi
15501 ;;
15502
15503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15504 version_type=sco
15505 need_lib_prefix=no
15506 need_version=no
15507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15508 soname_spec='$libname$release$shared_ext$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes
15511 hardcode_into_libs=yes
15512 if test yes = "$with_gnu_ld"; then
15513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15514 else
15515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15516 case $host_os in
15517 sco3.2v5*)
15518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15519 ;;
15520 esac
15521 fi
15522 sys_lib_dlsearch_path_spec='/usr/lib'
15523 ;;
15524
15525 tpf*)
15526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15527 version_type=linux # correct to gnu/linux during the next big refactor
15528 need_lib_prefix=no
15529 need_version=no
15530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=no
15533 hardcode_into_libs=yes
15534 ;;
15535
15536 uts4*)
15537 version_type=linux # correct to gnu/linux during the next big refactor
15538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15539 soname_spec='$libname$release$shared_ext$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 ;;
15542
15543 *)
15544 dynamic_linker=no
15545 ;;
15546 esac
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15548 $as_echo "$dynamic_linker" >&6; }
15549 test no = "$dynamic_linker" && can_build_shared=no
15550
15551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15552 if test yes = "$GCC"; then
15553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15554 fi
15555
15556 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15557 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15558 fi
15559
15560 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15561 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15562 fi
15563
15564 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15565 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15566
15567 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15568 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15569
15570 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15571 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15613 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15614 hardcode_action_CXX=
15615 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15616 test -n "$runpath_var_CXX" ||
15617 test yes = "$hardcode_automatic_CXX"; then
15618
15619 # We can hardcode non-existent directories.
15620 if test no != "$hardcode_direct_CXX" &&
15621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15622 # have to relink, otherwise we might link with an installed library
15623 # when we should be linking with a yet-to-be-installed one
15624 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15625 test no != "$hardcode_minus_L_CXX"; then
15626 # Linking always hardcodes the temporary library directory.
15627 hardcode_action_CXX=relink
15628 else
15629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15630 hardcode_action_CXX=immediate
15631 fi
15632 else
15633 # We cannot hardcode anything, or else we can only hardcode existing
15634 # directories.
15635 hardcode_action_CXX=unsupported
15636 fi
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15638 $as_echo "$hardcode_action_CXX" >&6; }
15639
15640 if test relink = "$hardcode_action_CXX" ||
15641 test yes = "$inherit_rpath_CXX"; then
15642 # Fast installation is not supported
15643 enable_fast_install=no
15644 elif test yes = "$shlibpath_overrides_runpath" ||
15645 test no = "$enable_shared"; then
15646 # Fast installation is not necessary
15647 enable_fast_install=needless
15648 fi
15649
15650
15651
15652
15653
15654
15655
15656 fi # test -n "$compiler"
15657
15658 CC=$lt_save_CC
15659 CFLAGS=$lt_save_CFLAGS
15660 LDCXX=$LD
15661 LD=$lt_save_LD
15662 GCC=$lt_save_GCC
15663 with_gnu_ld=$lt_save_with_gnu_ld
15664 lt_cv_path_LDCXX=$lt_cv_path_LD
15665 lt_cv_path_LD=$lt_save_path_LD
15666 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15667 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15668 fi # test yes != "$_lt_caught_CXX_error"
15669
15670 ac_ext=c
15671 ac_cpp='$CPP $CPPFLAGS'
15672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15675
15676
15677
15678
15679
15680 if test -n "$ac_tool_prefix"; then
15681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15682 set dummy ${ac_tool_prefix}ar; ac_word=$2
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15684 $as_echo_n "checking for $ac_word... " >&6; }
15685 if ${ac_cv_prog_AR+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 if test -n "$AR"; then
15689 ac_cv_prog_AR="$AR" # Let the user override the test.
15690 else
15691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692 for as_dir in $PATH
15693 do
15694 IFS=$as_save_IFS
15695 test -z "$as_dir" && as_dir=.
15696 for ac_exec_ext in '' $ac_executable_extensions; do
15697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15698 ac_cv_prog_AR="${ac_tool_prefix}ar"
15699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15700 break 2
15701 fi
15702 done
15703 done
15704 IFS=$as_save_IFS
15705
15706 fi
15707 fi
15708 AR=$ac_cv_prog_AR
15709 if test -n "$AR"; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15711 $as_echo "$AR" >&6; }
15712 else
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15714 $as_echo "no" >&6; }
15715 fi
15716
15717
15718 fi
15719 if test -z "$ac_cv_prog_AR"; then
15720 ac_ct_AR=$AR
15721 # Extract the first word of "ar", so it can be a program name with args.
15722 set dummy ar; ac_word=$2
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15724 $as_echo_n "checking for $ac_word... " >&6; }
15725 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 if test -n "$ac_ct_AR"; then
15729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15730 else
15731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732 for as_dir in $PATH
15733 do
15734 IFS=$as_save_IFS
15735 test -z "$as_dir" && as_dir=.
15736 for ac_exec_ext in '' $ac_executable_extensions; do
15737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15738 ac_cv_prog_ac_ct_AR="ar"
15739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15740 break 2
15741 fi
15742 done
15743 done
15744 IFS=$as_save_IFS
15745
15746 fi
15747 fi
15748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15749 if test -n "$ac_ct_AR"; then
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15751 $as_echo "$ac_ct_AR" >&6; }
15752 else
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754 $as_echo "no" >&6; }
15755 fi
15756
15757 if test "x$ac_ct_AR" = x; then
15758 AR=":"
15759 else
15760 case $cross_compiling:$ac_tool_warned in
15761 yes:)
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15764 ac_tool_warned=yes ;;
15765 esac
15766 AR=$ac_ct_AR
15767 fi
15768 else
15769 AR="$ac_cv_prog_AR"
15770 fi
15771
15772
15773
15774 # Extract the first word of "xml2-config", so it can be a program name with args.
15775 set dummy xml2-config; ac_word=$2
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15777 $as_echo_n "checking for $ac_word... " >&6; }
15778 if ${ac_cv_path_XML_CONFIG+:} false; then :
15779 $as_echo_n "(cached) " >&6
15780 else
15781 case $XML_CONFIG in
15782 [\\/]* | ?:[\\/]*)
15783 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
15784 ;;
15785 *)
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15788 do
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15796 fi
15797 done
15798 done
15799 IFS=$as_save_IFS
15800
15801 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
15802 ;;
15803 esac
15804 fi
15805 XML_CONFIG=$ac_cv_path_XML_CONFIG
15806 if test -n "$XML_CONFIG"; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
15808 $as_echo "$XML_CONFIG" >&6; }
15809 else
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15812 fi
15813
15814
15815 if test "$XML_CONFIG" = "no"; then
15816 as_fn_error $? "Cannot determine configuration of libxml.
15817 Perhaps you forgot to install the package libxml2-devel ?" "$LINENO" 5
15818 else
15819 XML_CFLAGS=`$XML_CONFIG --cflags`
15820
15821 XML_LIBS=`$XML_CONFIG --libs`
15822
15823 fi
15824
15825
15826 # Check whether --with-corba was given.
15827 if test "${with_corba+set}" = set; then :
15828 withval=$with_corba;
15829 fi
15830
15831 if test "$with_corba" != "yes"; then
15832 withcorba=false
15833 else
15834 withcorba=true
15835 fi
15836 if test x$withcorba = xtrue; then
15837 ENABLE_CORBA_TRUE=
15838 ENABLE_CORBA_FALSE='#'
15839 else
15840 ENABLE_CORBA_TRUE='#'
15841 ENABLE_CORBA_FALSE=
15842 fi
15843
15844 if test x$withcorba = xtrue; then
15845
15846 $as_echo "#define ENABLE_CORBA 1" >>confdefs.h
15847
15848 fi
15849
15850
15851
15852
15853 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
15854
15855 cat >confcache <<\_ACEOF
15856 # This file is a shell script that caches the results of configure
15857 # tests run on this system so they can be shared between configure
15858 # scripts and configure runs, see configure's option --config-cache.
15859 # It is not useful on other systems. If it contains results you don't
15860 # want to keep, you may remove or edit it.
15861 #
15862 # config.status only pays attention to the cache file if you give it
15863 # the --recheck option to rerun configure.
15864 #
15865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15867 # following values.
15868
15869 _ACEOF
15870
15871 # The following way of writing the cache mishandles newlines in values,
15872 # but we know of no workaround that is simple, portable, and efficient.
15873 # So, we kill variables containing newlines.
15874 # Ultrix sh set writes to stderr and can't be redirected directly,
15875 # and sets the high bit in the cache file unless we assign to the vars.
15876 (
15877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15878 eval ac_val=\$$ac_var
15879 case $ac_val in #(
15880 *${as_nl}*)
15881 case $ac_var in #(
15882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15884 esac
15885 case $ac_var in #(
15886 _ | IFS | as_nl) ;; #(
15887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15888 *) { eval $ac_var=; unset $ac_var;} ;;
15889 esac ;;
15890 esac
15891 done
15892
15893 (set) 2>&1 |
15894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15895 *${as_nl}ac_space=\ *)
15896 # `set' does not quote correctly, so add quotes: double-quote
15897 # substitution turns \\\\ into \\, and sed turns \\ into \.
15898 sed -n \
15899 "s/'/'\\\\''/g;
15900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15901 ;; #(
15902 *)
15903 # `set' quotes correctly as required by POSIX, so do not add quotes.
15904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15905 ;;
15906 esac |
15907 sort
15908 ) |
15909 sed '
15910 /^ac_cv_env_/b end
15911 t clear
15912 :clear
15913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15914 t end
15915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15916 :end' >>confcache
15917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15918 if test -w "$cache_file"; then
15919 if test "x$cache_file" != "x/dev/null"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15921 $as_echo "$as_me: updating cache $cache_file" >&6;}
15922 if test ! -f "$cache_file" || test -h "$cache_file"; then
15923 cat confcache >"$cache_file"
15924 else
15925 case $cache_file in #(
15926 */* | ?:*)
15927 mv -f confcache "$cache_file"$$ &&
15928 mv -f "$cache_file"$$ "$cache_file" ;; #(
15929 *)
15930 mv -f confcache "$cache_file" ;;
15931 esac
15932 fi
15933 fi
15934 else
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15937 fi
15938 fi
15939 rm -f confcache
15940
15941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15942 # Let make expand exec_prefix.
15943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15944
15945 DEFS=-DHAVE_CONFIG_H
15946
15947 ac_libobjs=
15948 ac_ltlibobjs=
15949 U=
15950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15951 # 1. Remove the extension, and $U if already installed.
15952 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15953 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15954 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15955 # will be set to the directory where LIBOBJS objects are built.
15956 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15957 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15958 done
15959 LIBOBJS=$ac_libobjs
15960
15961 LTLIBOBJS=$ac_ltlibobjs
15962
15963
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15965 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15966 if test -n "$am_sleep_pid"; then
15967 # Hide warnings about reused PIDs.
15968 wait $am_sleep_pid 2>/dev/null
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15971 $as_echo "done" >&6; }
15972 if test -n "$EXEEXT"; then
15973 am__EXEEXT_TRUE=
15974 am__EXEEXT_FALSE='#'
15975 else
15976 am__EXEEXT_TRUE='#'
15977 am__EXEEXT_FALSE=
15978 fi
15979
15980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15981 as_fn_error $? "conditional \"AMDEP\" was never defined.
15982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15983 fi
15984 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15985 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15987 fi
15988 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15989 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15991 fi
15992 if test -z "${ENABLE_CORBA_TRUE}" && test -z "${ENABLE_CORBA_FALSE}"; then
15993 as_fn_error $? "conditional \"ENABLE_CORBA\" was never defined.
15994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15995 fi
15996
15997 : "${CONFIG_STATUS=./config.status}"
15998 ac_write_fail=0
15999 ac_clean_files_save=$ac_clean_files
16000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16003 as_write_fail=0
16004 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16005 #! $SHELL
16006 # Generated by $as_me.
16007 # Run this file to recreate the current configuration.
16008 # Compiler output produced by configure, useful for debugging
16009 # configure, is in config.log if it exists.
16010
16011 debug=false
16012 ac_cs_recheck=false
16013 ac_cs_silent=false
16014
16015 SHELL=\${CONFIG_SHELL-$SHELL}
16016 export SHELL
16017 _ASEOF
16018 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16019 ## -------------------- ##
16020 ## M4sh Initialization. ##
16021 ## -------------------- ##
16022
16023 # Be more Bourne compatible
16024 DUALCASE=1; export DUALCASE # for MKS sh
16025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16026 emulate sh
16027 NULLCMD=:
16028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16029 # is contrary to our usage. Disable this feature.
16030 alias -g '${1+"$@"}'='"$@"'
16031 setopt NO_GLOB_SUBST
16032 else
16033 case `(set -o) 2>/dev/null` in #(
16034 *posix*) :
16035 set -o posix ;; #(
16036 *) :
16037 ;;
16038 esac
16039 fi
16040
16041
16042 as_nl='
16043 '
16044 export as_nl
16045 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16046 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16049 # Prefer a ksh shell builtin over an external printf program on Solaris,
16050 # but without wasting forks for bash or zsh.
16051 if test -z "$BASH_VERSION$ZSH_VERSION" \
16052 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16053 as_echo='print -r --'
16054 as_echo_n='print -rn --'
16055 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16056 as_echo='printf %s\n'
16057 as_echo_n='printf %s'
16058 else
16059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16061 as_echo_n='/usr/ucb/echo -n'
16062 else
16063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16064 as_echo_n_body='eval
16065 arg=$1;
16066 case $arg in #(
16067 *"$as_nl"*)
16068 expr "X$arg" : "X\\(.*\\)$as_nl";
16069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16070 esac;
16071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16072 '
16073 export as_echo_n_body
16074 as_echo_n='sh -c $as_echo_n_body as_echo'
16075 fi
16076 export as_echo_body
16077 as_echo='sh -c $as_echo_body as_echo'
16078 fi
16079
16080 # The user is always right.
16081 if test "${PATH_SEPARATOR+set}" != set; then
16082 PATH_SEPARATOR=:
16083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16085 PATH_SEPARATOR=';'
16086 }
16087 fi
16088
16089
16090 # IFS
16091 # We need space, tab and new line, in precisely that order. Quoting is
16092 # there to prevent editors from complaining about space-tab.
16093 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16094 # splitting by setting IFS to empty value.)
16095 IFS=" "" $as_nl"
16096
16097 # Find who we are. Look in the path if we contain no directory separator.
16098 as_myself=
16099 case $0 in #((
16100 *[\\/]* ) as_myself=$0 ;;
16101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16102 for as_dir in $PATH
16103 do
16104 IFS=$as_save_IFS
16105 test -z "$as_dir" && as_dir=.
16106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16107 done
16108 IFS=$as_save_IFS
16109
16110 ;;
16111 esac
16112 # We did not find ourselves, most probably we were run as `sh COMMAND'
16113 # in which case we are not to be found in the path.
16114 if test "x$as_myself" = x; then
16115 as_myself=$0
16116 fi
16117 if test ! -f "$as_myself"; then
16118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16119 exit 1
16120 fi
16121
16122 # Unset variables that we do not need and which cause bugs (e.g. in
16123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16124 # suppresses any "Segmentation fault" message there. '((' could
16125 # trigger a bug in pdksh 5.2.14.
16126 for as_var in BASH_ENV ENV MAIL MAILPATH
16127 do eval test x\${$as_var+set} = xset \
16128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16129 done
16130 PS1='$ '
16131 PS2='> '
16132 PS4='+ '
16133
16134 # NLS nuisances.
16135 LC_ALL=C
16136 export LC_ALL
16137 LANGUAGE=C
16138 export LANGUAGE
16139
16140 # CDPATH.
16141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16142
16143
16144 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16145 # ----------------------------------------
16146 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16147 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16148 # script with STATUS, using 1 if that was 0.
16149 as_fn_error ()
16150 {
16151 as_status=$1; test $as_status -eq 0 && as_status=1
16152 if test "$4"; then
16153 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16155 fi
16156 $as_echo "$as_me: error: $2" >&2
16157 as_fn_exit $as_status
16158 } # as_fn_error
16159
16160
16161 # as_fn_set_status STATUS
16162 # -----------------------
16163 # Set $? to STATUS, without forking.
16164 as_fn_set_status ()
16165 {
16166 return $1
16167 } # as_fn_set_status
16168
16169 # as_fn_exit STATUS
16170 # -----------------
16171 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16172 as_fn_exit ()
16173 {
16174 set +e
16175 as_fn_set_status $1
16176 exit $1
16177 } # as_fn_exit
16178
16179 # as_fn_unset VAR
16180 # ---------------
16181 # Portably unset VAR.
16182 as_fn_unset ()
16183 {
16184 { eval $1=; unset $1;}
16185 }
16186 as_unset=as_fn_unset
16187 # as_fn_append VAR VALUE
16188 # ----------------------
16189 # Append the text in VALUE to the end of the definition contained in VAR. Take
16190 # advantage of any shell optimizations that allow amortized linear growth over
16191 # repeated appends, instead of the typical quadratic growth present in naive
16192 # implementations.
16193 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16194 eval 'as_fn_append ()
16195 {
16196 eval $1+=\$2
16197 }'
16198 else
16199 as_fn_append ()
16200 {
16201 eval $1=\$$1\$2
16202 }
16203 fi # as_fn_append
16204
16205 # as_fn_arith ARG...
16206 # ------------------
16207 # Perform arithmetic evaluation on the ARGs, and store the result in the
16208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16209 # must be portable across $(()) and expr.
16210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16211 eval 'as_fn_arith ()
16212 {
16213 as_val=$(( $* ))
16214 }'
16215 else
16216 as_fn_arith ()
16217 {
16218 as_val=`expr "$@" || test $? -eq 1`
16219 }
16220 fi # as_fn_arith
16221
16222
16223 if expr a : '\(a\)' >/dev/null 2>&1 &&
16224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16225 as_expr=expr
16226 else
16227 as_expr=false
16228 fi
16229
16230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16231 as_basename=basename
16232 else
16233 as_basename=false
16234 fi
16235
16236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16237 as_dirname=dirname
16238 else
16239 as_dirname=false
16240 fi
16241
16242 as_me=`$as_basename -- "$0" ||
16243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16244 X"$0" : 'X\(//\)$' \| \
16245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16246 $as_echo X/"$0" |
16247 sed '/^.*\/\([^/][^/]*\)\/*$/{
16248 s//\1/
16249 q
16250 }
16251 /^X\/\(\/\/\)$/{
16252 s//\1/
16253 q
16254 }
16255 /^X\/\(\/\).*/{
16256 s//\1/
16257 q
16258 }
16259 s/.*/./; q'`
16260
16261 # Avoid depending upon Character Ranges.
16262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16265 as_cr_digits='0123456789'
16266 as_cr_alnum=$as_cr_Letters$as_cr_digits
16267
16268 ECHO_C= ECHO_N= ECHO_T=
16269 case `echo -n x` in #(((((
16270 -n*)
16271 case `echo 'xy\c'` in
16272 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16273 xy) ECHO_C='\c';;
16274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16275 ECHO_T=' ';;
16276 esac;;
16277 *)
16278 ECHO_N='-n';;
16279 esac
16280
16281 rm -f conf$$ conf$$.exe conf$$.file
16282 if test -d conf$$.dir; then
16283 rm -f conf$$.dir/conf$$.file
16284 else
16285 rm -f conf$$.dir
16286 mkdir conf$$.dir 2>/dev/null
16287 fi
16288 if (echo >conf$$.file) 2>/dev/null; then
16289 if ln -s conf$$.file conf$$ 2>/dev/null; then
16290 as_ln_s='ln -s'
16291 # ... but there are two gotchas:
16292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16294 # In both cases, we have to default to `cp -pR'.
16295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16296 as_ln_s='cp -pR'
16297 elif ln conf$$.file conf$$ 2>/dev/null; then
16298 as_ln_s=ln
16299 else
16300 as_ln_s='cp -pR'
16301 fi
16302 else
16303 as_ln_s='cp -pR'
16304 fi
16305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16306 rmdir conf$$.dir 2>/dev/null
16307
16308
16309 # as_fn_mkdir_p
16310 # -------------
16311 # Create "$as_dir" as a directory, including parents if necessary.
16312 as_fn_mkdir_p ()
16313 {
16314
16315 case $as_dir in #(
16316 -*) as_dir=./$as_dir;;
16317 esac
16318 test -d "$as_dir" || eval $as_mkdir_p || {
16319 as_dirs=
16320 while :; do
16321 case $as_dir in #(
16322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16323 *) as_qdir=$as_dir;;
16324 esac
16325 as_dirs="'$as_qdir' $as_dirs"
16326 as_dir=`$as_dirname -- "$as_dir" ||
16327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16328 X"$as_dir" : 'X\(//\)[^/]' \| \
16329 X"$as_dir" : 'X\(//\)$' \| \
16330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16331 $as_echo X"$as_dir" |
16332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16333 s//\1/
16334 q
16335 }
16336 /^X\(\/\/\)[^/].*/{
16337 s//\1/
16338 q
16339 }
16340 /^X\(\/\/\)$/{
16341 s//\1/
16342 q
16343 }
16344 /^X\(\/\).*/{
16345 s//\1/
16346 q
16347 }
16348 s/.*/./; q'`
16349 test -d "$as_dir" && break
16350 done
16351 test -z "$as_dirs" || eval "mkdir $as_dirs"
16352 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16353
16354
16355 } # as_fn_mkdir_p
16356 if mkdir -p . 2>/dev/null; then
16357 as_mkdir_p='mkdir -p "$as_dir"'
16358 else
16359 test -d ./-p && rmdir ./-p
16360 as_mkdir_p=false
16361 fi
16362
16363
16364 # as_fn_executable_p FILE
16365 # -----------------------
16366 # Test if FILE is an executable regular file.
16367 as_fn_executable_p ()
16368 {
16369 test -f "$1" && test -x "$1"
16370 } # as_fn_executable_p
16371 as_test_x='test -x'
16372 as_executable_p=as_fn_executable_p
16373
16374 # Sed expression to map a string onto a valid CPP name.
16375 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16376
16377 # Sed expression to map a string onto a valid variable name.
16378 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16379
16380
16381 exec 6>&1
16382 ## ----------------------------------- ##
16383 ## Main body of $CONFIG_STATUS script. ##
16384 ## ----------------------------------- ##
16385 _ASEOF
16386 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16387
16388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16389 # Save the log message, to keep $0 and so on meaningful, and to
16390 # report actual input values of CONFIG_FILES etc. instead of their
16391 # values after options handling.
16392 ac_log="
16393 This file was extended by dia2code $as_me 1.0.0, which was
16394 generated by GNU Autoconf 2.69. Invocation command line was
16395
16396 CONFIG_FILES = $CONFIG_FILES
16397 CONFIG_HEADERS = $CONFIG_HEADERS
16398 CONFIG_LINKS = $CONFIG_LINKS
16399 CONFIG_COMMANDS = $CONFIG_COMMANDS
16400 $ $0 $@
16401
16402 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16403 "
16404
16405 _ACEOF
16406
16407 case $ac_config_files in *"
16408 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16409 esac
16410
16411 case $ac_config_headers in *"
16412 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16413 esac
16414
16415
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16417 # Files that config.status was made for.
16418 config_files="$ac_config_files"
16419 config_headers="$ac_config_headers"
16420 config_commands="$ac_config_commands"
16421
16422 _ACEOF
16423
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 ac_cs_usage="\
16426 \`$as_me' instantiates files and other configuration actions
16427 from templates according to the current configuration. Unless the files
16428 and actions are specified as TAGs, all are instantiated by default.
16429
16430 Usage: $0 [OPTION]... [TAG]...
16431
16432 -h, --help print this help, then exit
16433 -V, --version print version number and configuration settings, then exit
16434 --config print configuration, then exit
16435 -q, --quiet, --silent
16436 do not print progress messages
16437 -d, --debug don't remove temporary files
16438 --recheck update $as_me by reconfiguring in the same conditions
16439 --file=FILE[:TEMPLATE]
16440 instantiate the configuration file FILE
16441 --header=FILE[:TEMPLATE]
16442 instantiate the configuration header FILE
16443
16444 Configuration files:
16445 $config_files
16446
16447 Configuration headers:
16448 $config_headers
16449
16450 Configuration commands:
16451 $config_commands
16452
16453 Report bugs to the package provider."
16454
16455 _ACEOF
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16458 ac_cs_version="\\
16459 dia2code config.status 1.0.0
16460 configured by $0, generated by GNU Autoconf 2.69,
16461 with options \\"\$ac_cs_config\\"
16462
16463 Copyright (C) 2012 Free Software Foundation, Inc.
16464 This config.status script is free software; the Free Software Foundation
16465 gives unlimited permission to copy, distribute and modify it."
16466
16467 ac_pwd='$ac_pwd'
16468 srcdir='$srcdir'
16469 INSTALL='$INSTALL'
16470 MKDIR_P='$MKDIR_P'
16471 AWK='$AWK'
16472 test -n "\$AWK" || AWK=awk
16473 _ACEOF
16474
16475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16476 # The default lists apply if the user does not specify any file.
16477 ac_need_defaults=:
16478 while test $# != 0
16479 do
16480 case $1 in
16481 --*=?*)
16482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16483 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16484 ac_shift=:
16485 ;;
16486 --*=)
16487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16488 ac_optarg=
16489 ac_shift=:
16490 ;;
16491 *)
16492 ac_option=$1
16493 ac_optarg=$2
16494 ac_shift=shift
16495 ;;
16496 esac
16497
16498 case $ac_option in
16499 # Handling of the options.
16500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16501 ac_cs_recheck=: ;;
16502 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16503 $as_echo "$ac_cs_version"; exit ;;
16504 --config | --confi | --conf | --con | --co | --c )
16505 $as_echo "$ac_cs_config"; exit ;;
16506 --debug | --debu | --deb | --de | --d | -d )
16507 debug=: ;;
16508 --file | --fil | --fi | --f )
16509 $ac_shift
16510 case $ac_optarg in
16511 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16512 '') as_fn_error $? "missing file argument" ;;
16513 esac
16514 as_fn_append CONFIG_FILES " '$ac_optarg'"
16515 ac_need_defaults=false;;
16516 --header | --heade | --head | --hea )
16517 $ac_shift
16518 case $ac_optarg in
16519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16520 esac
16521 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16522 ac_need_defaults=false;;
16523 --he | --h)
16524 # Conflict between --help and --header
16525 as_fn_error $? "ambiguous option: \`$1'
16526 Try \`$0 --help' for more information.";;
16527 --help | --hel | -h )
16528 $as_echo "$ac_cs_usage"; exit ;;
16529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16531 ac_cs_silent=: ;;
16532
16533 # This is an error.
16534 -*) as_fn_error $? "unrecognized option: \`$1'
16535 Try \`$0 --help' for more information." ;;
16536
16537 *) as_fn_append ac_config_targets " $1"
16538 ac_need_defaults=false ;;
16539
16540 esac
16541 shift
16542 done
16543
16544 ac_configure_extra_args=
16545
16546 if $ac_cs_silent; then
16547 exec 6>/dev/null
16548 ac_configure_extra_args="$ac_configure_extra_args --silent"
16549 fi
16550
16551 _ACEOF
16552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16553 if \$ac_cs_recheck; then
16554 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16555 shift
16556 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16557 CONFIG_SHELL='$SHELL'
16558 export CONFIG_SHELL
16559 exec "\$@"
16560 fi
16561
16562 _ACEOF
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 exec 5>>config.log
16565 {
16566 echo
16567 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16568 ## Running $as_me. ##
16569 _ASBOX
16570 $as_echo "$ac_log"
16571 } >&5
16572
16573 _ACEOF
16574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16575 #
16576 # INIT-COMMANDS
16577 #
16578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16579
16580
16581 # The HP-UX ksh and POSIX shell print the target directory to stdout
16582 # if CDPATH is set.
16583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16584
16585 sed_quote_subst='$sed_quote_subst'
16586 double_quote_subst='$double_quote_subst'
16587 delay_variable_subst='$delay_variable_subst'
16588 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16589 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16590 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16591 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16592 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16593 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16594 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16595 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16596 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16597 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16598 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16599 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16600 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16601 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16602 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16603 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16604 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16605 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16606 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16607 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16608 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16609 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16610 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16611 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16612 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16613 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16614 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16615 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16616 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16617 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16618 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16619 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16620 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16621 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16622 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16623 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16624 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16625 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16626 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16627 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16628 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16629 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16630 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16631 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16632 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16633 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16634 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16635 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16636 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16637 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16638 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16639 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16640 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16641 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16642 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16643 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16644 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16645 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16646 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"`'
16647 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16648 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16649 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16650 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16651 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16652 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16653 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16654 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16655 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16656 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16657 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16658 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16659 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16660 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16661 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16662 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16663 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16664 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16665 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16666 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16667 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16668 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16669 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16670 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16671 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16672 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16673 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16674 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16675 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16676 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16677 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16678 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16679 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16680 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16681 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16682 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16683 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16684 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16685 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16686 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16687 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16688 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16689 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16690 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16691 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16692 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16693 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16694 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16695 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16696 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16697 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16698 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16699 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16700 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16701 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16702 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16703 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16704 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16705 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16706 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16707 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16708 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16709 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16710 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16711 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16712 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16713 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16714 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16715 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16716 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16723 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16724 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16725 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16726 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16727 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16728 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16729 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16730 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16731 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16732 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16733 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16734 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16735 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16736 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16737 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16738 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16739 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16740 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16741 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16742 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16743 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16744 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16745 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16746 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16747 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16748 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16749 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16750 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16751 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16752 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16753 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16754 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16755 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16756 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16757 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16758 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16759 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16760 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16761 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16762 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16763 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16764 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16765 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16766 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16767 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16768 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16769 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16770 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16771 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16772 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16773 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16774 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16775 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16776 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16777
16778 LTCC='$LTCC'
16779 LTCFLAGS='$LTCFLAGS'
16780 compiler='$compiler_DEFAULT'
16781
16782 # A function that is used when there is no print builtin or printf.
16783 func_fallback_echo ()
16784 {
16785 eval 'cat <<_LTECHO_EOF
16786 \$1
16787 _LTECHO_EOF'
16788 }
16789
16790 # Quote evaled strings.
16791 for var in SHELL \
16792 ECHO \
16793 PATH_SEPARATOR \
16794 SED \
16795 GREP \
16796 EGREP \
16797 FGREP \
16798 LD \
16799 NM \
16800 LN_S \
16801 lt_SP2NL \
16802 lt_NL2SP \
16803 reload_flag \
16804 OBJDUMP \
16805 deplibs_check_method \
16806 file_magic_cmd \
16807 file_magic_glob \
16808 want_nocaseglob \
16809 DLLTOOL \
16810 sharedlib_from_linklib_cmd \
16811 AR \
16812 AR_FLAGS \
16813 archiver_list_spec \
16814 STRIP \
16815 RANLIB \
16816 CC \
16817 CFLAGS \
16818 compiler \
16819 lt_cv_sys_global_symbol_pipe \
16820 lt_cv_sys_global_symbol_to_cdecl \
16821 lt_cv_sys_global_symbol_to_import \
16822 lt_cv_sys_global_symbol_to_c_name_address \
16823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16824 lt_cv_nm_interface \
16825 nm_file_list_spec \
16826 lt_cv_truncate_bin \
16827 lt_prog_compiler_no_builtin_flag \
16828 lt_prog_compiler_pic \
16829 lt_prog_compiler_wl \
16830 lt_prog_compiler_static \
16831 lt_cv_prog_compiler_c_o \
16832 need_locks \
16833 MANIFEST_TOOL \
16834 DSYMUTIL \
16835 NMEDIT \
16836 LIPO \
16837 OTOOL \
16838 OTOOL64 \
16839 shrext_cmds \
16840 export_dynamic_flag_spec \
16841 whole_archive_flag_spec \
16842 compiler_needs_object \
16843 with_gnu_ld \
16844 allow_undefined_flag \
16845 no_undefined_flag \
16846 hardcode_libdir_flag_spec \
16847 hardcode_libdir_separator \
16848 exclude_expsyms \
16849 include_expsyms \
16850 file_list_spec \
16851 variables_saved_for_relink \
16852 libname_spec \
16853 library_names_spec \
16854 soname_spec \
16855 install_override_mode \
16856 finish_eval \
16857 old_striplib \
16858 striplib \
16859 compiler_lib_search_dirs \
16860 predep_objects \
16861 postdep_objects \
16862 predeps \
16863 postdeps \
16864 compiler_lib_search_path \
16865 LD_CXX \
16866 reload_flag_CXX \
16867 compiler_CXX \
16868 lt_prog_compiler_no_builtin_flag_CXX \
16869 lt_prog_compiler_pic_CXX \
16870 lt_prog_compiler_wl_CXX \
16871 lt_prog_compiler_static_CXX \
16872 lt_cv_prog_compiler_c_o_CXX \
16873 export_dynamic_flag_spec_CXX \
16874 whole_archive_flag_spec_CXX \
16875 compiler_needs_object_CXX \
16876 with_gnu_ld_CXX \
16877 allow_undefined_flag_CXX \
16878 no_undefined_flag_CXX \
16879 hardcode_libdir_flag_spec_CXX \
16880 hardcode_libdir_separator_CXX \
16881 exclude_expsyms_CXX \
16882 include_expsyms_CXX \
16883 file_list_spec_CXX \
16884 compiler_lib_search_dirs_CXX \
16885 predep_objects_CXX \
16886 postdep_objects_CXX \
16887 predeps_CXX \
16888 postdeps_CXX \
16889 compiler_lib_search_path_CXX; do
16890 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16891 *[\\\\\\\`\\"\\\$]*)
16892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16893 ;;
16894 *)
16895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16896 ;;
16897 esac
16898 done
16899
16900 # Double-quote double-evaled strings.
16901 for var in reload_cmds \
16902 old_postinstall_cmds \
16903 old_postuninstall_cmds \
16904 old_archive_cmds \
16905 extract_expsyms_cmds \
16906 old_archive_from_new_cmds \
16907 old_archive_from_expsyms_cmds \
16908 archive_cmds \
16909 archive_expsym_cmds \
16910 module_cmds \
16911 module_expsym_cmds \
16912 export_symbols_cmds \
16913 prelink_cmds \
16914 postlink_cmds \
16915 postinstall_cmds \
16916 postuninstall_cmds \
16917 finish_cmds \
16918 sys_lib_search_path_spec \
16919 configure_time_dlsearch_path \
16920 configure_time_lt_sys_library_path \
16921 reload_cmds_CXX \
16922 old_archive_cmds_CXX \
16923 old_archive_from_new_cmds_CXX \
16924 old_archive_from_expsyms_cmds_CXX \
16925 archive_cmds_CXX \
16926 archive_expsym_cmds_CXX \
16927 module_cmds_CXX \
16928 module_expsym_cmds_CXX \
16929 export_symbols_cmds_CXX \
16930 prelink_cmds_CXX \
16931 postlink_cmds_CXX; do
16932 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16933 *[\\\\\\\`\\"\\\$]*)
16934 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16935 ;;
16936 *)
16937 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16938 ;;
16939 esac
16940 done
16941
16942 ac_aux_dir='$ac_aux_dir'
16943
16944 # See if we are running on zsh, and set the options that allow our
16945 # commands through without removal of \ escapes INIT.
16946 if test -n "\${ZSH_VERSION+set}"; then
16947 setopt NO_GLOB_SUBST
16948 fi
16949
16950
16951 PACKAGE='$PACKAGE'
16952 VERSION='$VERSION'
16953 RM='$RM'
16954 ofile='$ofile'
16955
16956
16957
16958
16959
16960
16961 _ACEOF
16962
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964
16965 # Handling of arguments.
16966 for ac_config_target in $ac_config_targets
16967 do
16968 case $ac_config_target in
16969 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16970 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16971 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16972 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16973 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16974 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16975
16976 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16977 esac
16978 done
16979
16980
16981 # If the user did not use the arguments to specify the items to instantiate,
16982 # then the envvar interface is used. Set only those that are not.
16983 # We use the long form for the default assignment because of an extremely
16984 # bizarre bug on SunOS 4.1.3.
16985 if $ac_need_defaults; then
16986 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16987 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16988 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16989 fi
16990
16991 # Have a temporary directory for convenience. Make it in the build tree
16992 # simply because there is no reason against having it here, and in addition,
16993 # creating and moving files from /tmp can sometimes cause problems.
16994 # Hook for its removal unless debugging.
16995 # Note that there is a small window in which the directory will not be cleaned:
16996 # after its creation but before its name has been assigned to `$tmp'.
16997 $debug ||
16998 {
16999 tmp= ac_tmp=
17000 trap 'exit_status=$?
17001 : "${ac_tmp:=$tmp}"
17002 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17003 ' 0
17004 trap 'as_fn_exit 1' 1 2 13 15
17005 }
17006 # Create a (secure) tmp directory for tmp files.
17007
17008 {
17009 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17010 test -d "$tmp"
17011 } ||
17012 {
17013 tmp=./conf$$-$RANDOM
17014 (umask 077 && mkdir "$tmp")
17015 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17016 ac_tmp=$tmp
17017
17018 # Set up the scripts for CONFIG_FILES section.
17019 # No need to generate them if there are no CONFIG_FILES.
17020 # This happens for instance with `./config.status config.h'.
17021 if test -n "$CONFIG_FILES"; then
17022
17023
17024 ac_cr=`echo X | tr X '\015'`
17025 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17026 # But we know of no other shell where ac_cr would be empty at this
17027 # point, so we can use a bashism as a fallback.
17028 if test "x$ac_cr" = x; then
17029 eval ac_cr=\$\'\\r\'
17030 fi
17031 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17032 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17033 ac_cs_awk_cr='\\r'
17034 else
17035 ac_cs_awk_cr=$ac_cr
17036 fi
17037
17038 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17039 _ACEOF
17040
17041
17042 {
17043 echo "cat >conf$$subs.awk <<_ACEOF" &&
17044 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17045 echo "_ACEOF"
17046 } >conf$$subs.sh ||
17047 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17048 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17049 ac_delim='%!_!# '
17050 for ac_last_try in false false false false false :; do
17051 . ./conf$$subs.sh ||
17052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17053
17054 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17055 if test $ac_delim_n = $ac_delim_num; then
17056 break
17057 elif $ac_last_try; then
17058 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17059 else
17060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17061 fi
17062 done
17063 rm -f conf$$subs.sh
17064
17065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17066 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17067 _ACEOF
17068 sed -n '
17069 h
17070 s/^/S["/; s/!.*/"]=/
17071 p
17072 g
17073 s/^[^!]*!//
17074 :repl
17075 t repl
17076 s/'"$ac_delim"'$//
17077 t delim
17078 :nl
17079 h
17080 s/\(.\{148\}\)..*/\1/
17081 t more1
17082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17083 p
17084 n
17085 b repl
17086 :more1
17087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17088 p
17089 g
17090 s/.\{148\}//
17091 t nl
17092 :delim
17093 h
17094 s/\(.\{148\}\)..*/\1/
17095 t more2
17096 s/["\\]/\\&/g; s/^/"/; s/$/"/
17097 p
17098 b
17099 :more2
17100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17101 p
17102 g
17103 s/.\{148\}//
17104 t delim
17105 ' <conf$$subs.awk | sed '
17106 /^[^""]/{
17107 N
17108 s/\n//
17109 }
17110 ' >>$CONFIG_STATUS || ac_write_fail=1
17111 rm -f conf$$subs.awk
17112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17113 _ACAWK
17114 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17115 for (key in S) S_is_set[key] = 1
17116 FS = ""
17117
17118 }
17119 {
17120 line = $ 0
17121 nfields = split(line, field, "@")
17122 substed = 0
17123 len = length(field[1])
17124 for (i = 2; i < nfields; i++) {
17125 key = field[i]
17126 keylen = length(key)
17127 if (S_is_set[key]) {
17128 value = S[key]
17129 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17130 len += length(value) + length(field[++i])
17131 substed = 1
17132 } else
17133 len += 1 + keylen
17134 }
17135
17136 print line
17137 }
17138
17139 _ACAWK
17140 _ACEOF
17141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17142 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17143 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17144 else
17145 cat
17146 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17147 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17148 _ACEOF
17149
17150 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17151 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17152 # trailing colons and then remove the whole line if VPATH becomes empty
17153 # (actually we leave an empty line to preserve line numbers).
17154 if test "x$srcdir" = x.; then
17155 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17156 h
17157 s///
17158 s/^/:/
17159 s/[ ]*$/:/
17160 s/:\$(srcdir):/:/g
17161 s/:\${srcdir}:/:/g
17162 s/:@srcdir@:/:/g
17163 s/^:*//
17164 s/:*$//
17165 x
17166 s/\(=[ ]*\).*/\1/
17167 G
17168 s/\n//
17169 s/^[^=]*=[ ]*$//
17170 }'
17171 fi
17172
17173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17174 fi # test -n "$CONFIG_FILES"
17175
17176 # Set up the scripts for CONFIG_HEADERS section.
17177 # No need to generate them if there are no CONFIG_HEADERS.
17178 # This happens for instance with `./config.status Makefile'.
17179 if test -n "$CONFIG_HEADERS"; then
17180 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17181 BEGIN {
17182 _ACEOF
17183
17184 # Transform confdefs.h into an awk script `defines.awk', embedded as
17185 # here-document in config.status, that substitutes the proper values into
17186 # config.h.in to produce config.h.
17187
17188 # Create a delimiter string that does not exist in confdefs.h, to ease
17189 # handling of long lines.
17190 ac_delim='%!_!# '
17191 for ac_last_try in false false :; do
17192 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17193 if test -z "$ac_tt"; then
17194 break
17195 elif $ac_last_try; then
17196 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17197 else
17198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17199 fi
17200 done
17201
17202 # For the awk script, D is an array of macro values keyed by name,
17203 # likewise P contains macro parameters if any. Preserve backslash
17204 # newline sequences.
17205
17206 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17207 sed -n '
17208 s/.\{148\}/&'"$ac_delim"'/g
17209 t rset
17210 :rset
17211 s/^[ ]*#[ ]*define[ ][ ]*/ /
17212 t def
17213 d
17214 :def
17215 s/\\$//
17216 t bsnl
17217 s/["\\]/\\&/g
17218 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17219 D["\1"]=" \3"/p
17220 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17221 d
17222 :bsnl
17223 s/["\\]/\\&/g
17224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17225 D["\1"]=" \3\\\\\\n"\\/p
17226 t cont
17227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17228 t cont
17229 d
17230 :cont
17231 n
17232 s/.\{148\}/&'"$ac_delim"'/g
17233 t clear
17234 :clear
17235 s/\\$//
17236 t bsnlc
17237 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17238 d
17239 :bsnlc
17240 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17241 b cont
17242 ' <confdefs.h | sed '
17243 s/'"$ac_delim"'/"\\\
17244 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17245
17246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17247 for (key in D) D_is_set[key] = 1
17248 FS = ""
17249 }
17250 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17251 line = \$ 0
17252 split(line, arg, " ")
17253 if (arg[1] == "#") {
17254 defundef = arg[2]
17255 mac1 = arg[3]
17256 } else {
17257 defundef = substr(arg[1], 2)
17258 mac1 = arg[2]
17259 }
17260 split(mac1, mac2, "(") #)
17261 macro = mac2[1]
17262 prefix = substr(line, 1, index(line, defundef) - 1)
17263 if (D_is_set[macro]) {
17264 # Preserve the white space surrounding the "#".
17265 print prefix "define", macro P[macro] D[macro]
17266 next
17267 } else {
17268 # Replace #undef with comments. This is necessary, for example,
17269 # in the case of _POSIX_SOURCE, which is predefined and required
17270 # on some systems where configure will not decide to define it.
17271 if (defundef == "undef") {
17272 print "/*", prefix defundef, macro, "*/"
17273 next
17274 }
17275 }
17276 }
17277 { print }
17278 _ACAWK
17279 _ACEOF
17280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17281 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17282 fi # test -n "$CONFIG_HEADERS"
17283
17284
17285 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17286 shift
17287 for ac_tag
17288 do
17289 case $ac_tag in
17290 :[FHLC]) ac_mode=$ac_tag; continue;;
17291 esac
17292 case $ac_mode$ac_tag in
17293 :[FHL]*:*);;
17294 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17295 :[FH]-) ac_tag=-:-;;
17296 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17297 esac
17298 ac_save_IFS=$IFS
17299 IFS=:
17300 set x $ac_tag
17301 IFS=$ac_save_IFS
17302 shift
17303 ac_file=$1
17304 shift
17305
17306 case $ac_mode in
17307 :L) ac_source=$1;;
17308 :[FH])
17309 ac_file_inputs=
17310 for ac_f
17311 do
17312 case $ac_f in
17313 -) ac_f="$ac_tmp/stdin";;
17314 *) # Look for the file first in the build tree, then in the source tree
17315 # (if the path is not absolute). The absolute path cannot be DOS-style,
17316 # because $ac_f cannot contain `:'.
17317 test -f "$ac_f" ||
17318 case $ac_f in
17319 [\\/$]*) false;;
17320 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17321 esac ||
17322 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17323 esac
17324 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17325 as_fn_append ac_file_inputs " '$ac_f'"
17326 done
17327
17328 # Let's still pretend it is `configure' which instantiates (i.e., don't
17329 # use $as_me), people would be surprised to read:
17330 # /* config.h. Generated by config.status. */
17331 configure_input='Generated from '`
17332 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17333 `' by configure.'
17334 if test x"$ac_file" != x-; then
17335 configure_input="$ac_file. $configure_input"
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17337 $as_echo "$as_me: creating $ac_file" >&6;}
17338 fi
17339 # Neutralize special characters interpreted by sed in replacement strings.
17340 case $configure_input in #(
17341 *\&* | *\|* | *\\* )
17342 ac_sed_conf_input=`$as_echo "$configure_input" |
17343 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17344 *) ac_sed_conf_input=$configure_input;;
17345 esac
17346
17347 case $ac_tag in
17348 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17350 esac
17351 ;;
17352 esac
17353
17354 ac_dir=`$as_dirname -- "$ac_file" ||
17355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17356 X"$ac_file" : 'X\(//\)[^/]' \| \
17357 X"$ac_file" : 'X\(//\)$' \| \
17358 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17359 $as_echo X"$ac_file" |
17360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17361 s//\1/
17362 q
17363 }
17364 /^X\(\/\/\)[^/].*/{
17365 s//\1/
17366 q
17367 }
17368 /^X\(\/\/\)$/{
17369 s//\1/
17370 q
17371 }
17372 /^X\(\/\).*/{
17373 s//\1/
17374 q
17375 }
17376 s/.*/./; q'`
17377 as_dir="$ac_dir"; as_fn_mkdir_p
17378 ac_builddir=.
17379
17380 case "$ac_dir" in
17381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17382 *)
17383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17384 # A ".." for each directory in $ac_dir_suffix.
17385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17386 case $ac_top_builddir_sub in
17387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17389 esac ;;
17390 esac
17391 ac_abs_top_builddir=$ac_pwd
17392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17393 # for backward compatibility:
17394 ac_top_builddir=$ac_top_build_prefix
17395
17396 case $srcdir in
17397 .) # We are building in place.
17398 ac_srcdir=.
17399 ac_top_srcdir=$ac_top_builddir_sub
17400 ac_abs_top_srcdir=$ac_pwd ;;
17401 [\\/]* | ?:[\\/]* ) # Absolute name.
17402 ac_srcdir=$srcdir$ac_dir_suffix;
17403 ac_top_srcdir=$srcdir
17404 ac_abs_top_srcdir=$srcdir ;;
17405 *) # Relative name.
17406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17407 ac_top_srcdir=$ac_top_build_prefix$srcdir
17408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17409 esac
17410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17411
17412
17413 case $ac_mode in
17414 :F)
17415 #
17416 # CONFIG_FILE
17417 #
17418
17419 case $INSTALL in
17420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17421 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17422 esac
17423 ac_MKDIR_P=$MKDIR_P
17424 case $MKDIR_P in
17425 [\\/$]* | ?:[\\/]* ) ;;
17426 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17427 esac
17428 _ACEOF
17429
17430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17431 # If the template does not know about datarootdir, expand it.
17432 # FIXME: This hack should be removed a few years after 2.60.
17433 ac_datarootdir_hack=; ac_datarootdir_seen=
17434 ac_sed_dataroot='
17435 /datarootdir/ {
17436 p
17437 q
17438 }
17439 /@datadir@/p
17440 /@docdir@/p
17441 /@infodir@/p
17442 /@localedir@/p
17443 /@mandir@/p'
17444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17445 *datarootdir*) ac_datarootdir_seen=yes;;
17446 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17449 _ACEOF
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 ac_datarootdir_hack='
17452 s&@datadir@&$datadir&g
17453 s&@docdir@&$docdir&g
17454 s&@infodir@&$infodir&g
17455 s&@localedir@&$localedir&g
17456 s&@mandir@&$mandir&g
17457 s&\\\${datarootdir}&$datarootdir&g' ;;
17458 esac
17459 _ACEOF
17460
17461 # Neutralize VPATH when `$srcdir' = `.'.
17462 # Shell code in configure.ac might set extrasub.
17463 # FIXME: do we really want to maintain this feature?
17464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17465 ac_sed_extra="$ac_vpsub
17466 $extrasub
17467 _ACEOF
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17469 :t
17470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17471 s|@configure_input@|$ac_sed_conf_input|;t t
17472 s&@top_builddir@&$ac_top_builddir_sub&;t t
17473 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17474 s&@srcdir@&$ac_srcdir&;t t
17475 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17476 s&@top_srcdir@&$ac_top_srcdir&;t t
17477 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17478 s&@builddir@&$ac_builddir&;t t
17479 s&@abs_builddir@&$ac_abs_builddir&;t t
17480 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17481 s&@INSTALL@&$ac_INSTALL&;t t
17482 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17483 $ac_datarootdir_hack
17484 "
17485 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17486 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17487
17488 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17489 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17490 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17491 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17493 which seems to be undefined. Please make sure it is defined" >&5
17494 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17495 which seems to be undefined. Please make sure it is defined" >&2;}
17496
17497 rm -f "$ac_tmp/stdin"
17498 case $ac_file in
17499 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17500 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17501 esac \
17502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17503 ;;
17504 :H)
17505 #
17506 # CONFIG_HEADER
17507 #
17508 if test x"$ac_file" != x-; then
17509 {
17510 $as_echo "/* $configure_input */" \
17511 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17512 } >"$ac_tmp/config.h" \
17513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17514 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17516 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17517 else
17518 rm -f "$ac_file"
17519 mv "$ac_tmp/config.h" "$ac_file" \
17520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17521 fi
17522 else
17523 $as_echo "/* $configure_input */" \
17524 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17525 || as_fn_error $? "could not create -" "$LINENO" 5
17526 fi
17527 # Compute "$ac_file"'s index in $config_headers.
17528 _am_arg="$ac_file"
17529 _am_stamp_count=1
17530 for _am_header in $config_headers :; do
17531 case $_am_header in
17532 $_am_arg | $_am_arg:* )
17533 break ;;
17534 * )
17535 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17536 esac
17537 done
17538 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17539 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17540 X"$_am_arg" : 'X\(//\)[^/]' \| \
17541 X"$_am_arg" : 'X\(//\)$' \| \
17542 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17543 $as_echo X"$_am_arg" |
17544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17545 s//\1/
17546 q
17547 }
17548 /^X\(\/\/\)[^/].*/{
17549 s//\1/
17550 q
17551 }
17552 /^X\(\/\/\)$/{
17553 s//\1/
17554 q
17555 }
17556 /^X\(\/\).*/{
17557 s//\1/
17558 q
17559 }
17560 s/.*/./; q'`/stamp-h$_am_stamp_count
17561 ;;
17562
17563 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17564 $as_echo "$as_me: executing $ac_file commands" >&6;}
17565 ;;
17566 esac
17567
17568
17569 case $ac_file$ac_mode in
17570 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17571 # Older Autoconf quotes --file arguments for eval, but not when files
17572 # are listed without --file. Let's play safe and only enable the eval
17573 # if we detect the quoting.
17574 case $CONFIG_FILES in
17575 *\'*) eval set x "$CONFIG_FILES" ;;
17576 *) set x $CONFIG_FILES ;;
17577 esac
17578 shift
17579 for mf
17580 do
17581 # Strip MF so we end up with the name of the file.
17582 mf=`echo "$mf" | sed -e 's/:.*$//'`
17583 # Check whether this is an Automake generated Makefile or not.
17584 # We used to match only the files named 'Makefile.in', but
17585 # some people rename them; so instead we look at the file content.
17586 # Grep'ing the first line is not enough: some people post-process
17587 # each Makefile.in and add a new line on top of each file to say so.
17588 # Grep'ing the whole file is not good either: AIX grep has a line
17589 # limit of 2048, but all sed's we know have understand at least 4000.
17590 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17591 dirpart=`$as_dirname -- "$mf" ||
17592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17593 X"$mf" : 'X\(//\)[^/]' \| \
17594 X"$mf" : 'X\(//\)$' \| \
17595 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17596 $as_echo X"$mf" |
17597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17598 s//\1/
17599 q
17600 }
17601 /^X\(\/\/\)[^/].*/{
17602 s//\1/
17603 q
17604 }
17605 /^X\(\/\/\)$/{
17606 s//\1/
17607 q
17608 }
17609 /^X\(\/\).*/{
17610 s//\1/
17611 q
17612 }
17613 s/.*/./; q'`
17614 else
17615 continue
17616 fi
17617 # Extract the definition of DEPDIR, am__include, and am__quote
17618 # from the Makefile without running 'make'.
17619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17620 test -z "$DEPDIR" && continue
17621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17622 test -z "$am__include" && continue
17623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17624 # Find all dependency output files, they are included files with
17625 # $(DEPDIR) in their names. We invoke sed twice because it is the
17626 # simplest approach to changing $(DEPDIR) to its actual value in the
17627 # expansion.
17628 for file in `sed -n "
17629 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17630 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17631 # Make sure the directory exists.
17632 test -f "$dirpart/$file" && continue
17633 fdir=`$as_dirname -- "$file" ||
17634 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$file" : 'X\(//\)[^/]' \| \
17636 X"$file" : 'X\(//\)$' \| \
17637 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17638 $as_echo X"$file" |
17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17640 s//\1/
17641 q
17642 }
17643 /^X\(\/\/\)[^/].*/{
17644 s//\1/
17645 q
17646 }
17647 /^X\(\/\/\)$/{
17648 s//\1/
17649 q
17650 }
17651 /^X\(\/\).*/{
17652 s//\1/
17653 q
17654 }
17655 s/.*/./; q'`
17656 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17657 # echo "creating $dirpart/$file"
17658 echo '# dummy' > "$dirpart/$file"
17659 done
17660 done
17661 }
17662 ;;
17663 "libtool":C)
17664
17665 # See if we are running on zsh, and set the options that allow our
17666 # commands through without removal of \ escapes.
17667 if test -n "${ZSH_VERSION+set}"; then
17668 setopt NO_GLOB_SUBST
17669 fi
17670
17671 cfgfile=${ofile}T
17672 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17673 $RM "$cfgfile"
17674
17675 cat <<_LT_EOF >> "$cfgfile"
17676 #! $SHELL
17677 # Generated automatically by $as_me ($PACKAGE) $VERSION
17678 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17679
17680 # Provide generalized library-building support services.
17681 # Written by Gordon Matzigkeit, 1996
17682
17683 # Copyright (C) 2014 Free Software Foundation, Inc.
17684 # This is free software; see the source for copying conditions. There is NO
17685 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17686
17687 # GNU Libtool is free software; you can redistribute it and/or modify
17688 # it under the terms of the GNU General Public License as published by
17689 # the Free Software Foundation; either version 2 of of the License, or
17690 # (at your option) any later version.
17691 #
17692 # As a special exception to the GNU General Public License, if you
17693 # distribute this file as part of a program or library that is built
17694 # using GNU Libtool, you may include this file under the same
17695 # distribution terms that you use for the rest of that program.
17696 #
17697 # GNU Libtool is distributed in the hope that it will be useful, but
17698 # WITHOUT ANY WARRANTY; without even the implied warranty of
17699 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17700 # GNU General Public License for more details.
17701 #
17702 # You should have received a copy of the GNU General Public License
17703 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17704
17705
17706 # The names of the tagged configurations supported by this script.
17707 available_tags='CXX '
17708
17709 # Configured defaults for sys_lib_dlsearch_path munging.
17710 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17711
17712 # ### BEGIN LIBTOOL CONFIG
17713
17714 # Which release of libtool.m4 was used?
17715 macro_version=$macro_version
17716 macro_revision=$macro_revision
17717
17718 # Whether or not to build shared libraries.
17719 build_libtool_libs=$enable_shared
17720
17721 # Whether or not to build static libraries.
17722 build_old_libs=$enable_static
17723
17724 # What type of objects to build.
17725 pic_mode=$pic_mode
17726
17727 # Whether or not to optimize for fast installation.
17728 fast_install=$enable_fast_install
17729
17730 # Shared archive member basename,for filename based shared library versioning on AIX.
17731 shared_archive_member_spec=$shared_archive_member_spec
17732
17733 # Shell to use when invoking shell scripts.
17734 SHELL=$lt_SHELL
17735
17736 # An echo program that protects backslashes.
17737 ECHO=$lt_ECHO
17738
17739 # The PATH separator for the build system.
17740 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17741
17742 # The host system.
17743 host_alias=$host_alias
17744 host=$host
17745 host_os=$host_os
17746
17747 # The build system.
17748 build_alias=$build_alias
17749 build=$build
17750 build_os=$build_os
17751
17752 # A sed program that does not truncate output.
17753 SED=$lt_SED
17754
17755 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17756 Xsed="\$SED -e 1s/^X//"
17757
17758 # A grep program that handles long lines.
17759 GREP=$lt_GREP
17760
17761 # An ERE matcher.
17762 EGREP=$lt_EGREP
17763
17764 # A literal string matcher.
17765 FGREP=$lt_FGREP
17766
17767 # A BSD- or MS-compatible name lister.
17768 NM=$lt_NM
17769
17770 # Whether we need soft or hard links.
17771 LN_S=$lt_LN_S
17772
17773 # What is the maximum length of a command?
17774 max_cmd_len=$max_cmd_len
17775
17776 # Object file suffix (normally "o").
17777 objext=$ac_objext
17778
17779 # Executable file suffix (normally "").
17780 exeext=$exeext
17781
17782 # whether the shell understands "unset".
17783 lt_unset=$lt_unset
17784
17785 # turn spaces into newlines.
17786 SP2NL=$lt_lt_SP2NL
17787
17788 # turn newlines into spaces.
17789 NL2SP=$lt_lt_NL2SP
17790
17791 # convert \$build file names to \$host format.
17792 to_host_file_cmd=$lt_cv_to_host_file_cmd
17793
17794 # convert \$build files to toolchain format.
17795 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17796
17797 # An object symbol dumper.
17798 OBJDUMP=$lt_OBJDUMP
17799
17800 # Method to check whether dependent libraries are shared objects.
17801 deplibs_check_method=$lt_deplibs_check_method
17802
17803 # Command to use when deplibs_check_method = "file_magic".
17804 file_magic_cmd=$lt_file_magic_cmd
17805
17806 # How to find potential files when deplibs_check_method = "file_magic".
17807 file_magic_glob=$lt_file_magic_glob
17808
17809 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17810 want_nocaseglob=$lt_want_nocaseglob
17811
17812 # DLL creation program.
17813 DLLTOOL=$lt_DLLTOOL
17814
17815 # Command to associate shared and link libraries.
17816 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17817
17818 # The archiver.
17819 AR=$lt_AR
17820
17821 # Flags to create an archive.
17822 AR_FLAGS=$lt_AR_FLAGS
17823
17824 # How to feed a file listing to the archiver.
17825 archiver_list_spec=$lt_archiver_list_spec
17826
17827 # A symbol stripping program.
17828 STRIP=$lt_STRIP
17829
17830 # Commands used to install an old-style archive.
17831 RANLIB=$lt_RANLIB
17832 old_postinstall_cmds=$lt_old_postinstall_cmds
17833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17834
17835 # Whether to use a lock for old archive extraction.
17836 lock_old_archive_extraction=$lock_old_archive_extraction
17837
17838 # A C compiler.
17839 LTCC=$lt_CC
17840
17841 # LTCC compiler flags.
17842 LTCFLAGS=$lt_CFLAGS
17843
17844 # Take the output of nm and produce a listing of raw symbols and C names.
17845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17846
17847 # Transform the output of nm in a proper C declaration.
17848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17849
17850 # Transform the output of nm into a list of symbols to manually relocate.
17851 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17852
17853 # Transform the output of nm in a C name address pair.
17854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17855
17856 # Transform the output of nm in a C name address pair when lib prefix is needed.
17857 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17858
17859 # The name lister interface.
17860 nm_interface=$lt_lt_cv_nm_interface
17861
17862 # Specify filename containing input files for \$NM.
17863 nm_file_list_spec=$lt_nm_file_list_spec
17864
17865 # The root where to search for dependent libraries,and where our libraries should be installed.
17866 lt_sysroot=$lt_sysroot
17867
17868 # Command to truncate a binary pipe.
17869 lt_truncate_bin=$lt_lt_cv_truncate_bin
17870
17871 # The name of the directory that contains temporary libtool files.
17872 objdir=$objdir
17873
17874 # Used to examine libraries when file_magic_cmd begins with "file".
17875 MAGIC_CMD=$MAGIC_CMD
17876
17877 # Must we lock files when doing compilation?
17878 need_locks=$lt_need_locks
17879
17880 # Manifest tool.
17881 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17882
17883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17884 DSYMUTIL=$lt_DSYMUTIL
17885
17886 # Tool to change global to local symbols on Mac OS X.
17887 NMEDIT=$lt_NMEDIT
17888
17889 # Tool to manipulate fat objects and archives on Mac OS X.
17890 LIPO=$lt_LIPO
17891
17892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17893 OTOOL=$lt_OTOOL
17894
17895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17896 OTOOL64=$lt_OTOOL64
17897
17898 # Old archive suffix (normally "a").
17899 libext=$libext
17900
17901 # Shared library suffix (normally ".so").
17902 shrext_cmds=$lt_shrext_cmds
17903
17904 # The commands to extract the exported symbol list from a shared archive.
17905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17906
17907 # Variables whose values should be saved in libtool wrapper scripts and
17908 # restored at link time.
17909 variables_saved_for_relink=$lt_variables_saved_for_relink
17910
17911 # Do we need the "lib" prefix for modules?
17912 need_lib_prefix=$need_lib_prefix
17913
17914 # Do we need a version for libraries?
17915 need_version=$need_version
17916
17917 # Library versioning type.
17918 version_type=$version_type
17919
17920 # Shared library runtime path variable.
17921 runpath_var=$runpath_var
17922
17923 # Shared library path variable.
17924 shlibpath_var=$shlibpath_var
17925
17926 # Is shlibpath searched before the hard-coded library search path?
17927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17928
17929 # Format of library name prefix.
17930 libname_spec=$lt_libname_spec
17931
17932 # List of archive names. First name is the real one, the rest are links.
17933 # The last name is the one that the linker finds with -lNAME
17934 library_names_spec=$lt_library_names_spec
17935
17936 # The coded name of the library, if different from the real name.
17937 soname_spec=$lt_soname_spec
17938
17939 # Permission mode override for installation of shared libraries.
17940 install_override_mode=$lt_install_override_mode
17941
17942 # Command to use after installation of a shared archive.
17943 postinstall_cmds=$lt_postinstall_cmds
17944
17945 # Command to use after uninstallation of a shared archive.
17946 postuninstall_cmds=$lt_postuninstall_cmds
17947
17948 # Commands used to finish a libtool library installation in a directory.
17949 finish_cmds=$lt_finish_cmds
17950
17951 # As "finish_cmds", except a single script fragment to be evaled but
17952 # not shown.
17953 finish_eval=$lt_finish_eval
17954
17955 # Whether we should hardcode library paths into libraries.
17956 hardcode_into_libs=$hardcode_into_libs
17957
17958 # Compile-time system search path for libraries.
17959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17960
17961 # Detected run-time system search path for libraries.
17962 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17963
17964 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17965 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17966
17967 # Whether dlopen is supported.
17968 dlopen_support=$enable_dlopen
17969
17970 # Whether dlopen of programs is supported.
17971 dlopen_self=$enable_dlopen_self
17972
17973 # Whether dlopen of statically linked programs is supported.
17974 dlopen_self_static=$enable_dlopen_self_static
17975
17976 # Commands to strip libraries.
17977 old_striplib=$lt_old_striplib
17978 striplib=$lt_striplib
17979
17980
17981 # The linker used to build libraries.
17982 LD=$lt_LD
17983
17984 # How to create reloadable object files.
17985 reload_flag=$lt_reload_flag
17986 reload_cmds=$lt_reload_cmds
17987
17988 # Commands used to build an old-style archive.
17989 old_archive_cmds=$lt_old_archive_cmds
17990
17991 # A language specific compiler.
17992 CC=$lt_compiler
17993
17994 # Is the compiler the GNU compiler?
17995 with_gcc=$GCC
17996
17997 # Compiler flag to turn off builtin functions.
17998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17999
18000 # Additional compiler flags for building library objects.
18001 pic_flag=$lt_lt_prog_compiler_pic
18002
18003 # How to pass a linker flag through the compiler.
18004 wl=$lt_lt_prog_compiler_wl
18005
18006 # Compiler flag to prevent dynamic linking.
18007 link_static_flag=$lt_lt_prog_compiler_static
18008
18009 # Does compiler simultaneously support -c and -o options?
18010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18011
18012 # Whether or not to add -lc for building shared libraries.
18013 build_libtool_need_lc=$archive_cmds_need_lc
18014
18015 # Whether or not to disallow shared libs when runtime libs are static.
18016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18017
18018 # Compiler flag to allow reflexive dlopens.
18019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18020
18021 # Compiler flag to generate shared objects directly from archives.
18022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18023
18024 # Whether the compiler copes with passing no objects directly.
18025 compiler_needs_object=$lt_compiler_needs_object
18026
18027 # Create an old-style archive from a shared archive.
18028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18029
18030 # Create a temporary old-style archive to link instead of a shared archive.
18031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18032
18033 # Commands used to build a shared archive.
18034 archive_cmds=$lt_archive_cmds
18035 archive_expsym_cmds=$lt_archive_expsym_cmds
18036
18037 # Commands used to build a loadable module if different from building
18038 # a shared archive.
18039 module_cmds=$lt_module_cmds
18040 module_expsym_cmds=$lt_module_expsym_cmds
18041
18042 # Whether we are building with GNU ld or not.
18043 with_gnu_ld=$lt_with_gnu_ld
18044
18045 # Flag that allows shared libraries with undefined symbols to be built.
18046 allow_undefined_flag=$lt_allow_undefined_flag
18047
18048 # Flag that enforces no undefined symbols.
18049 no_undefined_flag=$lt_no_undefined_flag
18050
18051 # Flag to hardcode \$libdir into a binary during linking.
18052 # This must work even if \$libdir does not exist
18053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18054
18055 # Whether we need a single "-rpath" flag with a separated argument.
18056 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18057
18058 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18059 # DIR into the resulting binary.
18060 hardcode_direct=$hardcode_direct
18061
18062 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18063 # DIR into the resulting binary and the resulting library dependency is
18064 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18065 # library is relocated.
18066 hardcode_direct_absolute=$hardcode_direct_absolute
18067
18068 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18069 # into the resulting binary.
18070 hardcode_minus_L=$hardcode_minus_L
18071
18072 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18073 # into the resulting binary.
18074 hardcode_shlibpath_var=$hardcode_shlibpath_var
18075
18076 # Set to "yes" if building a shared library automatically hardcodes DIR
18077 # into the library and all subsequent libraries and executables linked
18078 # against it.
18079 hardcode_automatic=$hardcode_automatic
18080
18081 # Set to yes if linker adds runtime paths of dependent libraries
18082 # to runtime path list.
18083 inherit_rpath=$inherit_rpath
18084
18085 # Whether libtool must link a program against all its dependency libraries.
18086 link_all_deplibs=$link_all_deplibs
18087
18088 # Set to "yes" if exported symbols are required.
18089 always_export_symbols=$always_export_symbols
18090
18091 # The commands to list exported symbols.
18092 export_symbols_cmds=$lt_export_symbols_cmds
18093
18094 # Symbols that should not be listed in the preloaded symbols.
18095 exclude_expsyms=$lt_exclude_expsyms
18096
18097 # Symbols that must always be exported.
18098 include_expsyms=$lt_include_expsyms
18099
18100 # Commands necessary for linking programs (against libraries) with templates.
18101 prelink_cmds=$lt_prelink_cmds
18102
18103 # Commands necessary for finishing linking programs.
18104 postlink_cmds=$lt_postlink_cmds
18105
18106 # Specify filename containing input files.
18107 file_list_spec=$lt_file_list_spec
18108
18109 # How to hardcode a shared library path into an executable.
18110 hardcode_action=$hardcode_action
18111
18112 # The directories searched by this compiler when creating a shared library.
18113 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18114
18115 # Dependencies to place before and after the objects being linked to
18116 # create a shared library.
18117 predep_objects=$lt_predep_objects
18118 postdep_objects=$lt_postdep_objects
18119 predeps=$lt_predeps
18120 postdeps=$lt_postdeps
18121
18122 # The library search path used internally by the compiler when linking
18123 # a shared library.
18124 compiler_lib_search_path=$lt_compiler_lib_search_path
18125
18126 # ### END LIBTOOL CONFIG
18127
18128 _LT_EOF
18129
18130 cat <<'_LT_EOF' >> "$cfgfile"
18131
18132 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18133
18134 # func_munge_path_list VARIABLE PATH
18135 # -----------------------------------
18136 # VARIABLE is name of variable containing _space_ separated list of
18137 # directories to be munged by the contents of PATH, which is string
18138 # having a format:
18139 # "DIR[:DIR]:"
18140 # string "DIR[ DIR]" will be prepended to VARIABLE
18141 # ":DIR[:DIR]"
18142 # string "DIR[ DIR]" will be appended to VARIABLE
18143 # "DIRP[:DIRP]::[DIRA:]DIRA"
18144 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18145 # "DIRA[ DIRA]" will be appended to VARIABLE
18146 # "DIR[:DIR]"
18147 # VARIABLE will be replaced by "DIR[ DIR]"
18148 func_munge_path_list ()
18149 {
18150 case x$2 in
18151 x)
18152 ;;
18153 *:)
18154 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18155 ;;
18156 x:*)
18157 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18158 ;;
18159 *::*)
18160 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18161 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18162 ;;
18163 *)
18164 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18165 ;;
18166 esac
18167 }
18168
18169
18170 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18171 func_cc_basename ()
18172 {
18173 for cc_temp in $*""; do
18174 case $cc_temp in
18175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18177 \-*) ;;
18178 *) break;;
18179 esac
18180 done
18181 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18182 }
18183
18184
18185 # ### END FUNCTIONS SHARED WITH CONFIGURE
18186
18187 _LT_EOF
18188
18189 case $host_os in
18190 aix3*)
18191 cat <<\_LT_EOF >> "$cfgfile"
18192 # AIX sometimes has problems with the GCC collect2 program. For some
18193 # reason, if we set the COLLECT_NAMES environment variable, the problems
18194 # vanish in a puff of smoke.
18195 if test set != "${COLLECT_NAMES+set}"; then
18196 COLLECT_NAMES=
18197 export COLLECT_NAMES
18198 fi
18199 _LT_EOF
18200 ;;
18201 esac
18202
18203
18204 ltmain=$ac_aux_dir/ltmain.sh
18205
18206
18207 # We use sed instead of cat because bash on DJGPP gets confused if
18208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18209 # text mode, it properly converts lines to CR/LF. This bash problem
18210 # is reportedly fixed, but why not run on old versions too?
18211 sed '$q' "$ltmain" >> "$cfgfile" \
18212 || (rm -f "$cfgfile"; exit 1)
18213
18214 mv -f "$cfgfile" "$ofile" ||
18215 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18216 chmod +x "$ofile"
18217
18218
18219 cat <<_LT_EOF >> "$ofile"
18220
18221 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18222
18223 # The linker used to build libraries.
18224 LD=$lt_LD_CXX
18225
18226 # How to create reloadable object files.
18227 reload_flag=$lt_reload_flag_CXX
18228 reload_cmds=$lt_reload_cmds_CXX
18229
18230 # Commands used to build an old-style archive.
18231 old_archive_cmds=$lt_old_archive_cmds_CXX
18232
18233 # A language specific compiler.
18234 CC=$lt_compiler_CXX
18235
18236 # Is the compiler the GNU compiler?
18237 with_gcc=$GCC_CXX
18238
18239 # Compiler flag to turn off builtin functions.
18240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18241
18242 # Additional compiler flags for building library objects.
18243 pic_flag=$lt_lt_prog_compiler_pic_CXX
18244
18245 # How to pass a linker flag through the compiler.
18246 wl=$lt_lt_prog_compiler_wl_CXX
18247
18248 # Compiler flag to prevent dynamic linking.
18249 link_static_flag=$lt_lt_prog_compiler_static_CXX
18250
18251 # Does compiler simultaneously support -c and -o options?
18252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18253
18254 # Whether or not to add -lc for building shared libraries.
18255 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18256
18257 # Whether or not to disallow shared libs when runtime libs are static.
18258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18259
18260 # Compiler flag to allow reflexive dlopens.
18261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18262
18263 # Compiler flag to generate shared objects directly from archives.
18264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18265
18266 # Whether the compiler copes with passing no objects directly.
18267 compiler_needs_object=$lt_compiler_needs_object_CXX
18268
18269 # Create an old-style archive from a shared archive.
18270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18271
18272 # Create a temporary old-style archive to link instead of a shared archive.
18273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18274
18275 # Commands used to build a shared archive.
18276 archive_cmds=$lt_archive_cmds_CXX
18277 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18278
18279 # Commands used to build a loadable module if different from building
18280 # a shared archive.
18281 module_cmds=$lt_module_cmds_CXX
18282 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18283
18284 # Whether we are building with GNU ld or not.
18285 with_gnu_ld=$lt_with_gnu_ld_CXX
18286
18287 # Flag that allows shared libraries with undefined symbols to be built.
18288 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18289
18290 # Flag that enforces no undefined symbols.
18291 no_undefined_flag=$lt_no_undefined_flag_CXX
18292
18293 # Flag to hardcode \$libdir into a binary during linking.
18294 # This must work even if \$libdir does not exist
18295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18296
18297 # Whether we need a single "-rpath" flag with a separated argument.
18298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18299
18300 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18301 # DIR into the resulting binary.
18302 hardcode_direct=$hardcode_direct_CXX
18303
18304 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18305 # DIR into the resulting binary and the resulting library dependency is
18306 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18307 # library is relocated.
18308 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18309
18310 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18311 # into the resulting binary.
18312 hardcode_minus_L=$hardcode_minus_L_CXX
18313
18314 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18315 # into the resulting binary.
18316 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18317
18318 # Set to "yes" if building a shared library automatically hardcodes DIR
18319 # into the library and all subsequent libraries and executables linked
18320 # against it.
18321 hardcode_automatic=$hardcode_automatic_CXX
18322
18323 # Set to yes if linker adds runtime paths of dependent libraries
18324 # to runtime path list.
18325 inherit_rpath=$inherit_rpath_CXX
18326
18327 # Whether libtool must link a program against all its dependency libraries.
18328 link_all_deplibs=$link_all_deplibs_CXX
18329
18330 # Set to "yes" if exported symbols are required.
18331 always_export_symbols=$always_export_symbols_CXX
18332
18333 # The commands to list exported symbols.
18334 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18335
18336 # Symbols that should not be listed in the preloaded symbols.
18337 exclude_expsyms=$lt_exclude_expsyms_CXX
18338
18339 # Symbols that must always be exported.
18340 include_expsyms=$lt_include_expsyms_CXX
18341
18342 # Commands necessary for linking programs (against libraries) with templates.
18343 prelink_cmds=$lt_prelink_cmds_CXX
18344
18345 # Commands necessary for finishing linking programs.
18346 postlink_cmds=$lt_postlink_cmds_CXX
18347
18348 # Specify filename containing input files.
18349 file_list_spec=$lt_file_list_spec_CXX
18350
18351 # How to hardcode a shared library path into an executable.
18352 hardcode_action=$hardcode_action_CXX
18353
18354 # The directories searched by this compiler when creating a shared library.
18355 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18356
18357 # Dependencies to place before and after the objects being linked to
18358 # create a shared library.
18359 predep_objects=$lt_predep_objects_CXX
18360 postdep_objects=$lt_postdep_objects_CXX
18361 predeps=$lt_predeps_CXX
18362 postdeps=$lt_postdeps_CXX
18363
18364 # The library search path used internally by the compiler when linking
18365 # a shared library.
18366 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18367
18368 # ### END LIBTOOL TAG CONFIG: CXX
18369 _LT_EOF
18370
18371 ;;
18372
18373 esac
18374 done # for ac_tag
18375
18376
18377 as_fn_exit 0
18378 _ACEOF
18379 ac_clean_files=$ac_clean_files_save
18380
18381 test $ac_write_fail = 0 ||
18382 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18383
18384
18385 # configure is writing to config.log, and then calls config.status.
18386 # config.status does its own redirection, appending to config.log.
18387 # Unfortunately, on DOS this fails, as config.log is still kept open
18388 # by configure, so config.status won't be able to write to it; its
18389 # output is simply discarded. So we exec the FD to /dev/null,
18390 # effectively closing config.log, so it can be properly (re)opened and
18391 # appended to by config.status. When coming back to configure, we
18392 # need to make the FD available again.
18393 if test "$no_create" != yes; then
18394 ac_cs_success=:
18395 ac_config_status_args=
18396 test "$silent" = yes &&
18397 ac_config_status_args="$ac_config_status_args --quiet"
18398 exec 5>/dev/null
18399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18400 exec 5>>config.log
18401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18402 # would make configure fail if this is the last instruction.
18403 $ac_cs_success || as_fn_exit 1
18404 fi
18405 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18407 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18408 fi
18409